//Water PS puddle.
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v1.3.16 on Thu Feb 03 00:09:06 2022
//
//
// Buffer Definitions:
//
// cbuffer ConstBuf__passData
// {
//
//   struct PassDataTransparent
//   {
//
//       float CascadeShadowSize;       // Index:    0
//       float OneOverCascadeShadowSize;// Index:    0.y
//       float ShadowTextureW;          // Index:    0.z
//       float ShadowTextureH;          // Index:    0.w
//       float OneOverShadowTextureW;   // Index:    1
//       float OneOverShadowTextureH;   // Index:    1.y
//
//       struct GIVolumeGlobal
//       {
//
//           float giVolumeSHDiffuseBlur;// Index:    2
//           float giVolumeSHSpecularBlur;// Index:    2.y
//           float giVolumeSaturation;  // Index:    2.z
//           float4 defaultOcclusionSH; // Index:    3
//           float4 skyFullRSH;         // Index:    4
//           float4 skyFullGSH;         // Index:    5
//           float4 skyFullBSH;         // Index:    6
//           float4 skyFullClampRSH;    // Index:    7
//           float4 skyFullClampGSH;    // Index:    8
//           float4 skyFullClampBSH;    // Index:    9
//           float4 skyFullGeoRSH;      // Index:   10
//           float4 skyFullGeoGSH;      // Index:   11
//           float4 skyFullGeoBSH;      // Index:   12
//           float4 skyTopRSH;          // Index:   13
//           float4 skyTopGSH;          // Index:   14
//           float4 skyTopBSH;          // Index:   15
//           float4 skyTopClampRSH;     // Index:   16
//           float4 skyTopClampGSH;     // Index:   17
//           float4 skyTopClampBSH;     // Index:   18
//           float4 skyTopGeoRSH;       // Index:   19
//           float4 skyTopGeoGSH;       // Index:   20
//           float4 skyTopGeoBSH;       // Index:   21
//           float4 skyTopAndBounceRSH; // Index:   22
//           float4 skyTopAndBounceGSH; // Index:   23
//           float4 skyTopAndBounceBSH; // Index:   24
//           float4 skyTopAndBounceClampRSH;// Index:   25
//           float4 skyTopAndBounceClampGSH;// Index:   26
//           float4 skyTopAndBounceClampBSH;// Index:   27
//           float4 skyTopAndBounceGeoRSH;// Index:   28
//           float4 skyTopAndBounceGeoGSH;// Index:   29
//           float4 skyTopAndBounceGeoBSH;// Index:   30
//           float4 skyDifFullRSH;      // Index:   31
//           float4 skyDifFullGSH;      // Index:   32
//           float4 skyDifFullBSH;      // Index:   33
//           float4 skyDifFullClampRSH; // Index:   34
//           float4 skyDifFullClampGSH; // Index:   35
//           float4 skyDifFullClampBSH; // Index:   36
//           float4 skyDifFullGeoRSH;   // Index:   37
//           float4 skyDifFullGeoGSH;   // Index:   38
//           float4 skyDifFullGeoBSH;   // Index:   39
//           float4 skyDifTopRSH;       // Index:   40
//           float4 skyDifTopGSH;       // Index:   41
//           float4 skyDifTopBSH;       // Index:   42
//           float4 skyDifTopClampRSH;  // Index:   43
//           float4 skyDifTopClampGSH;  // Index:   44
//           float4 skyDifTopClampBSH;  // Index:   45
//           float4 skyDifTopGeoRSH;    // Index:   46
//           float4 skyDifTopGeoGSH;    // Index:   47
//           float4 skyDifTopGeoBSH;    // Index:   48
//           float4 skyDifTopAndBounceRSH;// Index:   49
//           float4 skyDifTopAndBounceGSH;// Index:   50
//           float4 skyDifTopAndBounceBSH;// Index:   51
//           float4 skyDifTopAndBounceClampRSH;// Index:   52
//           float4 skyDifTopAndBounceClampGSH;// Index:   53
//           float4 skyDifTopAndBounceClampBSH;// Index:   54
//           float4 skyDifTopAndBounceGeoRSH;// Index:   55
//           float4 skyDifTopAndBounceGeoGSH;// Index:   56
//           float4 skyDifTopAndBounceGeoBSH;// Index:   57
//
//       } giVolumeGlobal;              // Index:    2
//
//       struct ForwardLightBuffer
//       {
//
//           struct LightParameters
//           {
//
//               float3 color;          // Index:   58
//               uint lightgroupID;     // Index:   58.w
//               float3 position;       // Index:   59
//               float sourceRadiusSquared;// Index:   59.w
//               float falloffConstant; // Index:   60
//               float innerMinusOuterCosHalfAngleRcp;// Index:   60.y
//               float outerCosHalfAngle;// Index:   60.z
//               float dirLightHalfAngle;// Index:   60.w
//               float3 direction;      // Index:   61
//               float dirLightSolidAngle;// Index:   61.w
//               int projectorIndex;    // Index:   62
//               float fadeStartOnDist; // Index:   62.y
//               float fadeRcpDist;     // Index:   62.z
//               float fadeRate;        // Index:   62.w
//
//           } gLight[64];              // Index:   58
//
//           struct LightShadowInfo
//           {
//
//               float4x4 gWorldToLight;// Index:  378
//
//               struct CascadeOffset
//               {
//
//                   float fScale;      // Index:  382
//                   float3 vTranslate; // Index:  382.y
//
//               } gCascadeOffset[3];   // Index:  382
//               float4 uvScaleOffset[4];// Index:  385
//               int extraCascadeIndex; // Index:  389
//               float cascadeRange;    // Index:  389.y
//               float2 linearizeConstants;// Index:  389.z
//               float filterSize;      // Index:  390
//               float shadowFade;      // Index:  390.y
//               float shadowBias;      // Index:  390.z
//               float padd;            // Index:  390.w
//
//           } gLightShadowInfo[16];    // Index:  378
//
//           struct LightShadowInfo
//           {
//
//               float4x4 gWorldToLight;// Index:  586
//
//               struct CascadeOffset
//               {
//
//                   float fScale;      // Index:  590
//                   float3 vTranslate; // Index:  590.y
//
//               } gCascadeOffset[3];   // Index:  590
//               float4 uvScaleOffset[4];// Index:  593
//               int extraCascadeIndex; // Index:  597
//               float cascadeRange;    // Index:  597.y
//               float2 linearizeConstants;// Index:  597.z
//               float filterSize;      // Index:  598
//               float shadowFade;      // Index:  598.y
//               float shadowBias;      // Index:  598.z
//               float padd;            // Index:  598.w
//
//           } gShadowTransmittanceInfo;// Index:  586
//
//           struct LightShadowInfo
//           {
//
//               float4x4 gWorldToLight;// Index:  599
//
//               struct CascadeOffset
//               {
//
//                   float fScale;      // Index:  603
//                   float3 vTranslate; // Index:  603.y
//
//               } gCascadeOffset[3];   // Index:  603
//               float4 uvScaleOffset[4];// Index:  606
//               int extraCascadeIndex; // Index:  610
//               float cascadeRange;    // Index:  610.y
//               float2 linearizeConstants;// Index:  610.z
//               float filterSize;      // Index:  611
//               float shadowFade;      // Index:  611.y
//               float shadowBias;      // Index:  611.z
//               float padd;            // Index:  611.w
//
//           } gExtraCascadeShadowInfo[16];// Index:  599
//
//           struct Projector
//           {
//
//               float4x4 mat;          // Index:  807
//
//           } projectors[4];           // Index:  807
//
//       } lightBuffer;                 // Index:   58
//
//       struct EnvironmentBuffer
//       {
//
//           float gDebugAmbientAmount; // Index:  823
//           float gDebugDiffuseAmount; // Index:  823.y
//           float gDebugSpecularAmount;// Index:  823.z
//           float gDebugEnvmapAmount;  // Index:  823.w
//           float3 g_GPUDebugOverridePositionXYZ;// Index:  824
//           float gDebugAOAmount;      // Index:  824.w
//           float g_GPUDebugOn;        // Index:  825
//           float g_GPUDebugOverridePositionEnable;// Index:  825.y
//           float g_skinSpecSecondLobeShift;// Index:  825.z
//           float g_skinSpecSecondProportion;// Index:  825.w
//           float g_thinScatteringAnisotropy;// Index:  826
//           float g_volumetricScatteringAnisotropy;// Index:  826.y
//           float g_volumetricSpecularScatteringAnisotropy;// Index:  826.z
//           float g_skinScatteringAnisotropy;// Index:  826.w
//           float g_volumetricScatteringNormalBend;// Index:  827
//           float g_volumetricSpecularScatteringNormalBend;// Index:  827.y
//           float g_hairSpecSecondLobeShift;// Index:  827.z
//           float g_hairSpecSecondProportion;// Index:  827.w
//           float g_isHDRRendering;    // Index:  828
//           float g_defaultSceneToScreenPower;// Index:  828.y
//           float g_defaultWhiteLevel; // Index:  828.z
//           float padding0;            // Index:  828.w
//           int g_flags;               // Index:  829
//           float g_reflectionOcclusionFalloff;// Index:  829.y
//           float padding1;            // Index:  829.z
//           float padding2;            // Index:  829.w
//
//           struct AtmosphericConstants
//           {
//
//               float3 cFogColor;      // Index:  830
//               float cHeightFalloff;  // Index:  830.w
//               float3 cEyePosition;   // Index:  831
//               float cHeightDensity;  // Index:  831.w
//               float cStartDistance;  // Index:  832
//               float cGlobalDensity;  // Index:  832.y
//               float cDepthReprojectScale;// Index:  832.z
//               float cDepthReprojectBias;// Index:  832.w
//               float4x4 cInvProjNoZReproj;// Index:  833
//               float3 cDirectionalFogDirection;// Index:  837
//               float cDirectionalityPower;// Index:  837.w
//               float3 cDirectionalFogColor;// Index:  838
//               float cDensityMapSparseBias;// Index:  838.w
//               float3 cDensityMapInvExtents;// Index:  839
//               float cDensityMapSparseSegmentScale;// Index:  839.w
//               float3 cDensityMapBias;// Index:  840
//               float cDensityMapSparseCutoff;// Index:  840.w
//               float cVolFogExponentMultiply;// Index:  841
//               float cVolFogDistanceMultiply;// Index:  841.y
//               float cVolFogExponentNormalize;// Index:  841.z
//               float cVolFogDistanceNormalize;// Index:  841.w
//               float cVolFogResolutionScale;// Index:  842
//               int cVolFogWidth;      // Index:  842.y
//               int cVolFogHeight;     // Index:  842.z
//               int cVolFogDepth;      // Index:  842.w
//
//           } atmosphericConstants;    // Index:  830
//
//       } environmentBuffer;           // Index:  823
//       float4x4 worldToBoatCap;       // Index:  843
//       float3 cameraPosInBoatSpace;   // Index:  847
//       float automaticWetnessFromHeightHeight;// Index:  847.w
//       float automaticWetnessFromHeightTransitionDistance;// Index:  848
//       float automaticWetnessFromHeightAmount;// Index:  848.y
//
//       struct ToneMappingConstants
//       {
//
//           float3 WBMatrixR;          // Index:  849
//           float3 WBMatrixG;          // Index:  850
//           float3 WBMatrixB;          // Index:  851
//           float EnableLocalAdaptation;// Index:  851.w
//           float Adaptation_Exposure; // Index:  852
//           float ExposureEV;          // Index:  852.y
//           float ExposureEVClampMin;  // Index:  852.z
//           float ExposureEVClampMax;  // Index:  852.w
//           float LocalAdaptationShadows;// Index:  853
//           float LocalAdaptationHighlights;// Index:  853.y
//           int Tonemapping_Curve;     // Index:  853.z
//           float Contrast;            // Index:  853.w
//           float HDRMax;              // Index:  854
//           float HDRWhite;            // Index:  854.y
//           float ContrastTimesShoulder;// Index:  854.z
//           float ChannelCrossTalk;    // Index:  854.w
//           float PrecomputedBMult;    // Index:  855
//           float PrecomputedCAdd;     // Index:  855.y
//           float SceneToScreenPower;  // Index:  855.z
//           float IsHDRRendering;      // Index:  855.w
//           float DebugHDRRendering;   // Index:  856
//           float DebugHDRRenderingPhase;// Index:  856.y
//           float DebugNoHDRRendering; // Index:  856.z
//           float ShowWaveform;        // Index:  856.w
//
//       } calibrationTonemappingConstants;// Index:  849
//       float4 userClipPlane0;         // Index:  857
//       float4 userClipPlane1;         // Index:  858
//
//   } resourceTables__passData;        // Index:    0-858            Components:  3436
                                        // Textures:  t0-t14
//
// }
//
// cbuffer ConstBuf__modelData
// {
//
//   struct ModelData
//   {
//
//       uint lightGroupID;             // Index:    0
//       uint modelFlags;               // Index:    0.y
//       float lodFade;                 // Index:    0.z
//       float displacementBlend;       // Index:    0.w
//       int turbulenceDataIdx;         // Index:    1
//       int instanceOffset;            // Index:    1.y
//       int characterFxIdx;            // Index:    1.z
//       uint debugRenderChannel;       // Index:    1.w
//       uint decayWriteOffset;         // Index:    2
//       uint decayWriteMaxCount;       // Index:    2.y
//       uint decayAtomicCounterIndex;  // Index:    2.z
//       float modelAlpha;              // Index:    2.w
//       float emissiveScale;           // Index:    3
//       float desaturationScale;       // Index:    3.y
//       float decayCoverageEstimation; // Index:    3.z
//       float3 quantScale;             // Index:    4
//       float3 quantBias;              // Index:    5
//
//   } resourceTables__modelData;       // Index:    0-5.z            Components:    23
                                        // Textures:  t15-t20
//
// }
//
// cbuffer ConstBuf__batchData
// {
//
//   struct BatchDataTransparent
//   {
//
//       struct LightTileParameters
//       {
//
//           uint4 lightIndices[8];     // Index:    0
//
//       } objectLights;                // Index:    0
//
//       struct GIVolume
//       {
//
//           float3 invTransX;          // Index:    8
//           float3 invTransY;          // Index:    9
//           float3 invTransZ;          // Index:   10
//           float3 invTransT;          // Index:   11
//           float3 invRotX;            // Index:   12
//           float3 invRotY;            // Index:   13
//           float3 invRotZ;            // Index:   14
//           uint3 indDims;             // Index:   15
//           float3 invIndDims;         // Index:   16
//           uint3 atlasDims;           // Index:   17
//           float3 invAtlasDims;       // Index:   18
//           float4 cr1Min;             // Index:   19
//           float4 cr1MaxSubMin;       // Index:   20
//           float4 cr2Min;             // Index:   21
//           float4 cr2MaxSubMin;       // Index:   22
//           float4 cr3Min;             // Index:   23
//           float4 cr3MaxSubMin;       // Index:   24
//           float normalOffset;        // Index:   25
//           float4 giTintScaled;       // Index:   26
//           uint flags;                // Index:   27
//
//       } giVolume[3];                 // Index:    8
//       float4 m_EnvironmentMapSHR;    // Index:   68
//       float4 m_EnvironmentMapSHG;    // Index:   69
//       float4 m_EnvironmentMapSHB;    // Index:   70
//       float2 m_EnvironmentMapRotation;// Index:   71
//       int m_EnvironmentMapMipCount;  // Index:   71.z
//
//       struct RflGeometryProxyOBB
//       {
//
//           float4 m_WS2OBBSrow0;      // Index:   72
//           float4 m_WS2OBBSrow1;      // Index:   73
//           float4 m_WS2OBBSrow2;      // Index:   74
//           float3 m_halfExtents;      // Index:   75
//           float3 m_cubeCapturePos;   // Index:   76
//
//       } m_EnvironmentProxy;          // Index:   72
//       uint particleSystemIndex;      // Index:   76.w
//
//       struct LightParameters
//       {
//
//           float3 color;              // Index:   77
//           uint lightgroupID;         // Index:   77.w
//           float3 position;           // Index:   78
//           float sourceRadiusSquared; // Index:   78.w
//           float falloffConstant;     // Index:   79
//           float innerMinusOuterCosHalfAngleRcp;// Index:   79.y
//           float outerCosHalfAngle;   // Index:   79.z
//           float dirLightHalfAngle;   // Index:   79.w
//           float3 direction;          // Index:   80
//           float dirLightSolidAngle;  // Index:   80.w
//           int projectorIndex;        // Index:   81
//           float fadeStartOnDist;     // Index:   81.y
//           float fadeRcpDist;         // Index:   81.z
//           float fadeRate;            // Index:   81.w
//
//       } bonusMirrorLight;            // Index:   77
//       float4x4 worldToShadowRegionUV;// Index:   82
//       float shadowFadeFactor;        // Index:   86
//       uint numGIVolumes;             // Index:   86.y
//       bool useBonusMirrorLight;      // Index:   86.z
//       bool useShadowMap;             // Index:   86.w
//
//   } resourceTables__batchData;       // Index:    0-86             Components:   348
                                        // Textures:  t21-t26
//
// }
//
// cbuffer ConstBuf__viewData
// {
//
//   struct ViewData
//   {
//
//       float4x4 view;                 // Index:    0
//       float4x4 invView;              // Index:    4
//       float4x4 proj;                 // Index:    8
//       float4x4 invViewProjNoZReproj; // Index:   12
//       float4x4 viewProj;             // Index:   16
//       float4x4 invViewProj;          // Index:   20
//       float4x4 previousViewProj;     // Index:   24
//       float4 prevLodEyePos;          // Index:   28
//       float4 lodEyePos;              // Index:   29
//       float4 viewDirDepthBias;       // Index:   30
//       float3 eyePos;                 // Index:   31
//       float2 viewportSize;           // Index:   32
//       float2 invViewportSize;        // Index:   32.z
//       float4 mirrorPlaneWS;          // Index:   33
//       float2 mirrorViewportSize;     // Index:   34
//       float2 opaqueRefractionViewportSize;// Index:   34.z
//       float windTime;                // Index:   35
//       float deltaTime;               // Index:   35.y
//       float depthReprojectScale;     // Index:   35.z
//       float depthReprojectBias;      // Index:   35.w
//       uint shadowViewType;           // Index:   36
//       float normalDepthBias;         // Index:   36.y
//       float noNormalAA;              // Index:   36.z
//       float noNormalFromAlpha;       // Index:   36.w
//       float noOpaqueTransparency;    // Index:   37
//       float translucentAmount;       // Index:   37.y
//       uint framePhase;               // Index:   37.z
//       float cameraAmbientExposure;   // Index:   37.w
//       float fxExposure;              // Index:   38
//       float fxAmbientExposure;       // Index:   38.y
//       uint checkerboardPhase;        // Index:   38.z
//       float sparkleIntensityScale;   // Index:   38.w
//
//   } resourceTables__viewData;        // Index:    0-38             Components:   156
//
// }
//
// Resource bind info for resourceTables__modelData.customRTs
// {
//
//   struct CustomRTTransform
//   {
//
//       float4x4 ws2ts;                // Index:    0
//
//   } $Element;                        // Index:    0 1 2 3          Components:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// resourceTables__viewData__smpLinear    sampler      NA          NA    1        1
// resourceTables__viewData__smpLowAniso    sampler      NA          NA    2        1
// resourceTables__viewData__smpLinearClamp    sampler      NA          NA    5        1
// resourceTables__viewData__smpComparison  sampler_c      NA          NA    7        1
// resourceTables__passData.shadowTexture    texture   float          2d    2        1
// resourceTables__passData.shadowTransmittanceTexture0    texture  float4          2d    3        1
// resourceTables__passData.shadowTransmittanceTexture1    texture  float4          2d    4        1
// resourceTables__passData.ambientBRDFMap    texture  float2          2d    7        1
// resourceTables__passData.volumetricFog    texture  float4          3d    8        1
// resourceTables__passData.ProjTextureMaps[0]    texture  float4          2d   11        1
// resourceTables__passData.ProjTextureMaps[1]    texture  float4          2d   12        1
// resourceTables__passData.ProjTextureMaps[2]    texture  float4          2d   13        1
// resourceTables__passData.ProjTextureMaps[3]    texture  float4          2d   14        1
// resourceTables__modelData.customRTs    texture  struct         r/o   20        1
// resourceTables__batchData.m_EnvironmentMap    texture  float4        cube   21        1
// resourceTables__batchData.giVolumesInd_0    texture  float4          3d   22        1
// resourceTables__batchData.giVolumesSH0_0    texture  float4          3d   23        1
// resourceTables__batchData.giVolumesSH1_0    texture  float4          3d   24        1
// resourceTables__batchData.giVolumesSH2_0    texture  float4          3d   25        1
// resourceTables__batchData.giVolumesSH3_0    texture  float4          3d   26        1
// resourceTables__materialData.material_screenspaceparallax    texture  float4          2d   42        1
// resourceTables__materialData.layer_2__diffuse    texture  float4          2d   43        1
// resourceTables__materialData.layer_2__opacity    texture  float4          2d   44        1
// resourceTables__materialData.layer_2__alpha    texture  float4          2d   45        1
// ConstBuf__passData                cbuffer      NA          NA    0        1
// ConstBuf__modelData               cbuffer      NA          NA    1        1
// ConstBuf__batchData               cbuffer      NA          NA    2        1
// ConstBuf__viewData                cbuffer      NA          NA    3        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyz
// VERT_ID                  0   x           1     NONE    uint
// TEXCOORD                 0   xy          2     NONE   float   xy
// NORMAL                   0   xyz         3     NONE   float   xyz
// TANGENT                  0   xyz         4     NONE   float   xyz
// BINORMAL                 0   xyz         5     NONE   float   xyz
// TEXCOORD                 7   xyz         6     NONE   float   xyz
// TEXCOORD                 8   xyz         7     NONE   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_Depth                 0    N/A   oDepth    DEPTH   float    YES
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[859], dynamicIndexed
dcl_constantbuffer cb1[3], immediateIndexed
dcl_constantbuffer cb2[87], dynamicIndexed
dcl_constantbuffer cb3[37], immediateIndexed
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s5, mode_default
dcl_sampler s7, mode_comparison
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture3d (float,float,float,float) t8
dcl_resource_texture2d (float,float,float,float) t11
dcl_resource_texture2d (float,float,float,float) t12
dcl_resource_texture2d (float,float,float,float) t13
dcl_resource_texture2d (float,float,float,float) t14
dcl_resource_structured t20, 64
dcl_resource_texturecube (float,float,float,float) t21
dcl_resource_texture3d (float,float,float,float) t22
dcl_resource_texture3d (float,float,float,float) t23
dcl_resource_texture3d (float,float,float,float) t24
dcl_resource_texture3d (float,float,float,float) t25
dcl_resource_texture3d (float,float,float,float) t26
dcl_resource_texture2d (float,float,float,float) t42
dcl_resource_texture2d (float,float,float,float) t43
dcl_resource_texture2d (float,float,float,float) t44
dcl_resource_texture2d (float,float,float,float) t45
dcl_input_ps_siv linear noperspective v0.xyz, position
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_output o0.xyzw
dcl_output oDepth
dcl_temps 50
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r40.xyzw, l(0, 0, 0, 0), t125.xyzw
dcl_indexableTemp x0[16], 4
dcl_indexableTemp x1[8], 4
dp3 r0.x, v3.xyzx, v3.xyzx
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v3.xyzx
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r1.xyzw, l(0), l(0), t20.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r2.xyzw, l(0), l(16), t20.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r3.xyzw, l(0), l(48), t20.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r4.xyzw, l(2), l(0), t20.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r5.xyzw, l(2), l(16), t20.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r6.xyzw, l(2), l(48), t20.xyzw
add r7.xyz, v6.xyzx, -cb3[31].xyzx

//Tessellation specular PS..
mul r41.xyz, r40.yyyy, cb3[16].xyzx
mul r41.w, cb3[16].x, cb3[16].x
mad r41.w, cb3[16].y, cb3[16].y, r41.w
mad r41.w, cb3[16].z, cb3[16].z, r41.w
div r41.xyz, r41.xyzx, r41.wwww
mad r7.x, -r40.x, r41.x, r7.x
mad r7.y, -r40.x, r41.y, r7.y
mad r7.z, -r40.x, r41.z, r7.z

dp3 r0.w, r7.xyzx, r7.xyzx
sqrt r0.w, r0.w
div r7.xyz, r7.xyzx, r0.wwww
mov r8.xyz, v6.xyzx
mov r8.w, l(1.000000)
dp4 r9.x, r8.xyzw, r4.xyzw
dp4 r9.y, r8.xyzw, r5.xyzw
dp4 r7.w, r8.xyzw, r6.xyzw
div r9.xy, r9.xyxx, r7.wwww
sample_l_indexable(texture2d)(float,float,float,float) r9.zw, r9.xyxx, t42.zwxy, s5, l(0.000000)
mul r9.z, r9.w, r9.z
dp3 r9.w, r0.xyzx, v6.xyzx
div r10.x, l(0.400000), r7.y
mad r10.xyz, r7.xyzx, |r10.xxxx|, v6.xyzx
resinfo_indexable(texture2d)(float,float,float,float)_uint r11.xy, l(0), t42.xyzw
utof r11.xy, r11.xyxx
dp3 r10.w, r10.xyzx, r0.xyzx
add r10.w, -r9.w, r10.w
mad r12.xyz, -r10.wwww, r0.xyzx, r10.xyzx
mov r12.w, l(1.000000)
dp4 r13.x, r12.xyzw, r4.xyzw
dp4 r13.y, r12.xyzw, r5.xyzw
dp4 r10.w, r12.xyzw, r6.xyzw
div r11.zw, r13.xxxy, r10.wwww
mul r12.xy, r9.xyxx, r11.xyxx
div r13.xyz, v6.xyzx, r7.wwww
div r10.xyz, r10.xyzx, r10.wwww
add r10.xyz, -r13.xyzx, r10.xyzx
mad r12.zw, r11.zzzw, r11.xxxy, -r12.xxxy
dp2 r12.z, r12.zwzz, r12.zwzz
sqrt r12.z, r12.z
mul r14.xy, r11.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
mad r14.zw, r11.zzzw, r11.xxxy, -r14.xxxy
lt r12.w, r14.x, |r14.z|
div r13.w, r14.x, r14.z
movc r12.w, r12.w, |r13.w|, l(1.000000)
mul r14.zw, r12.wwww, r14.zzzw
lt r12.w, r14.y, |r14.w|
div r13.w, r14.y, r14.w
movc r12.w, r12.w, |r13.w|, l(1.000000)
mad r14.xy, r14.zwzz, r12.wwww, r14.xyxx
mad r14.xy, -r9.xyxx, r11.xyxx, r14.xyxx
div r7.w, l(1.000000, 1.000000, 1.000000, 1.000000), r7.w
div r10.w, l(1.000000, 1.000000, 1.000000, 1.000000), r10.w
max r11.y, |r14.y|, |r14.x|
ftoi r12.w, r11.y
iadd r12.w, r12.w, l(1)
imin r12.w, r12.w, l(99)
mul r9.z, r9.z, l(0.400000)
lt r13.w, |r14.y|, |r14.x|
frc r12.xy, r12.xyxx
div r12.xy, r12.xyxx, r12.zzzz
movc r12.x, r13.w, r12.x, r12.y
div r11.y, l(1.000000, 1.000000, 1.000000, 1.000000), r11.y
add r10.w, -r7.w, r10.w
mad r12.y, r12.x, r10.w, r7.w
add r11.zw, -r9.xxxy, r11.zzzw
mad r14.xy, r12.xxxx, r11.zwzz, r9.xyxx
sample_l_indexable(texture2d)(float,float,float,float) r14.xy, r14.xyxx, t42.xyzw, s5, l(0.000000)
mul r12.z, r14.y, r14.x
mul r12.z, r12.z, l(0.400000)
mad r14.xyz, r10.xyzx, r12.xxxx, r13.xyzx
div r14.xyz, r14.xyzx, r12.yyyy
dp3 r12.y, r14.xyzx, r0.xyzx
add r12.y, r9.w, -r12.y
mov r13.w, r12.y
mov r14.z, r12.z
mov r14.y, r9.z
mov r14.xw, l(0,0,0,1)
mov r15.x, r12.x
loop
  ilt r15.y, r12.w, r14.w
  breakc_nz r15.y
  mad r15.y, r15.x, r10.w, r7.w
  mad r15.zw, r15.xxxx, r11.zzzw, r9.xxxy
  sample_l_indexable(texture2d)(float,float,float,float) r15.zw, r15.zwzz, t42.zwxy, s5, l(0.000000)
  mul r15.z, r15.w, r15.z
  mul r16.y, r15.z, l(0.400000)
  mad r17.xyz, r10.xyzx, r15.xxxx, r13.xyzx
  div r15.yzw, r17.xxyz, r15.yyyy
  dp3 r15.y, r15.yzwy, r0.xyzx
  add r16.x, r9.w, -r15.y
  ge r15.y, r16.y, r16.x
  movc r15.zw, r15.yyyy, r16.xxxy, r14.xxxy
  add r16.z, r11.y, r15.x
  movc r15.x, r15.y, r16.z, r15.x
  if_nz r15.y
    mad r15.y, r15.x, r10.w, r7.w
    mad r16.zw, r15.xxxx, r11.zzzw, r9.xxxy
    sample_l_indexable(texture2d)(float,float,float,float) r16.zw, r16.zwzz, t42.zwxy, s5, l(0.000000)
    mul r16.z, r16.w, r16.z
    mul r16.y, r16.z, l(0.400000)
    mad r17.xyz, r10.xyzx, r15.xxxx, r13.xyzx
    div r17.xyz, r17.xyzx, r15.yyyy
    dp3 r15.y, r17.xyzx, r0.xyzx
    add r16.x, r9.w, -r15.y
    ge r15.y, r16.y, r16.x
    not r16.z, r15.y
    movc r15.zw, r15.yyyy, r16.xxxy, r15.zzzw
    add r15.y, r11.y, r15.x
    movc r15.x, r16.z, r15.x, r15.y
  else
    mov r16.z, l(-1)
  endif
  if_z r16.z
    mad r15.y, r15.x, r10.w, r7.w
    mad r16.zw, r15.xxxx, r11.zzzw, r9.xxxy
    sample_l_indexable(texture2d)(float,float,float,float) r16.zw, r16.zwzz, t42.zwxy, s5, l(0.000000)
    mul r16.z, r16.w, r16.z
    mul r16.y, r16.z, l(0.400000)
    mad r17.xyz, r10.xyzx, r15.xxxx, r13.xyzx
    div r17.xyz, r17.xyzx, r15.yyyy
    dp3 r15.y, r17.xyzx, r0.xyzx
    add r16.x, r9.w, -r15.y
    ge r15.y, r16.y, r16.x
    not r16.z, r15.y
    add r16.w, r11.y, r15.x
    movc r15.xzw, r15.yyyy, r16.wwxy, r15.xxzw
  else
    mov r16.z, l(-1)
  endif
  if_z r16.z
    mad r15.y, r15.x, r10.w, r7.w
    mad r16.zw, r15.xxxx, r11.zzzw, r9.xxxy
    sample_l_indexable(texture2d)(float,float,float,float) r16.zw, r16.zwzz, t42.zwxy, s5, l(0.000000)
    mul r16.z, r16.w, r16.z
    mul r16.y, r16.z, l(0.400000)
    mad r17.xyz, r10.xyzx, r15.xxxx, r13.xyzx
    div r17.xyz, r17.xyzx, r15.yyyy
    dp3 r15.y, r17.xyzx, r0.xyzx
    add r16.x, r9.w, -r15.y
    ge r15.y, r16.y, r16.x
    add r16.z, r11.y, r15.x
    movc r15.xzw, r15.yyyy, r16.zzxy, r15.xxzw
  endif
  lt r15.y, r16.y, r16.x
  if_nz r15.y
    mov r13.w, r16.x
    mov r14.z, r16.y
    mov r14.xy, r15.zwzz
    break
  endif
  iadd r14.w, r14.w, l(4)
  mov r13.w, r16.x
  mov r14.z, r16.y
  mov r14.xy, r15.zwzz
endloop
add r7.w, r13.w, -r14.z
add r9.x, -r14.y, r14.x
add r9.x, |r7.w|, |r9.x|
max r9.x, r9.x, l(0.000010)
div r7.w, |r7.w|, r9.x
min r7.w, r7.w, l(1.000000)
add r9.x, -r14.z, r14.y
mad r9.x, r7.w, r9.x, r14.z
add r9.y, -r13.w, r14.x
mad r7.w, r7.w, r9.y, r13.w
dp3 r9.y, r7.xyzx, r0.xyzx
rcp r9.y, r9.y
mul r7.w, -r7.w, r9.y
mad r7.xyz, r7.xyzx, r7.wwww, v6.xyzx
div r9.y, cb3[32].x, r11.x
deriv_rtx_fine r10.xyz, v6.xyzx
mul r10.xyz, r9.yyyy, r10.xyzx
add r0.w, r0.w, l(-8.000000)
mul_sat r0.w, r0.w, l(0.125000)
mad r9.y, r0.w, l(-2.000000), l(3.000000)
mul r0.w, r0.w, r0.w
dp2 r0.w, r9.yyyy, r0.wwww
add r0.w, r0.w, l(1.000000)
dp3 r9.y, r10.xyzx, r10.xyzx
sqrt r9.y, r9.y
mul r0.w, r0.w, r9.y
dp3 r9.y, r7.xyzx, r0.xyzx
add r9.y, -r9.w, r9.y
mad r9.yzw, -r9.yyyy, r0.zzxy, r7.zzxy
mad r10.xyz, -v5.yzxy, r0.wwww, r9.wyzw
mad r11.xyz, v5.yzxy, r0.wwww, r9.wyzw
mad r12.xyz, -v4.zxyz, r0.wwww, r9.yzwy
mad r13.xyz, v4.zxyz, r0.wwww, r9.yzwy
mov r10.w, l(1.000000)
dp4 r14.x, r10.zxyw, r4.xyzw
dp4 r14.y, r10.zxyw, r5.xyzw
dp4 r0.w, r10.zxyw, r6.xyzw
div r14.xy, r14.xyxx, r0.wwww
mov r11.w, l(1.000000)
dp4 r15.x, r11.zxyw, r4.xyzw
dp4 r15.y, r11.zxyw, r5.xyzw
dp4 r0.w, r11.zxyw, r6.xyzw
div r14.zw, r15.xxxy, r0.wwww
mov r12.w, l(1.000000)
dp4 r15.x, r12.yzxw, r4.xyzw
dp4 r15.y, r12.yzxw, r5.xyzw
dp4 r0.w, r12.yzxw, r6.xyzw
div r15.xy, r15.xyxx, r0.wwww
mov r13.w, l(1.000000)
dp4 r4.x, r13.yzxw, r4.xyzw
dp4 r4.y, r13.yzxw, r5.xyzw
dp4 r0.w, r13.yzxw, r6.xyzw
div r4.xy, r4.xyxx, r0.wwww
sample_l_indexable(texture2d)(float,float,float,float) r4.zw, r14.xyxx, t42.zwxy, s5, l(0.000000)
mul r0.w, r4.w, r4.z
sample_l_indexable(texture2d)(float,float,float,float) r4.zw, r14.zwzz, t42.zwxy, s5, l(0.000000)
mul r4.z, r4.w, r4.z
sample_l_indexable(texture2d)(float,float,float,float) r5.xy, r15.xyxx, t42.xyzw, s5, l(0.000000)
mul r4.w, r5.y, r5.x
sample_l_indexable(texture2d)(float,float,float,float) r4.xy, r4.xyxx, t42.xyzw, s5, l(0.000000)
mul r4.x, r4.y, r4.x
mad r10.x, -r0.w, l(0.400000), r10.x
mad r11.x, -r4.z, l(0.400000), r11.x
mad r12.z, -r4.w, l(0.400000), r12.z
mad r13.z, -r4.x, l(0.400000), r13.z
add r4.xyz, r9.wyzw, -r10.xyzx
add r5.xyz, -r9.wyzw, r11.xyzx
add r6.xyz, r9.yzwy, -r12.xyzx
add r9.yzw, -r9.yyzw, r13.xxyz
mul r10.xyz, r5.xyzx, r9.yzwy
mad r5.xyz, r9.wyzw, r5.yzxy, -r10.xyzx
mul r9.yzw, r4.xxyz, r6.xxyz
mad r4.xyz, r6.zxyz, r4.yzxy, -r9.yzwy
add r4.xyz, r4.xyzx, r5.xyzx
dp3 r0.w, r4.xyzx, r4.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, r4.xyzx
dp3 r5.x, r4.xyzx, v4.xyzx
dp3 r5.y, r4.xyzx, v5.xyzx
dp3 r0.w, r4.xyzx, r0.xyzx
mul r4.xy, v2.xyxx, l(30.000000, 20.000000, 0.000000, 0.000000)
dp4 r1.x, r8.xyzw, r1.xyzw
dp4 r1.y, r8.xyzw, r2.xyzw
dp4 r1.z, r8.xyzw, r3.xyzw
div r1.xy, r1.xyxx, r1.zzzz
sample_indexable(texture2d)(float,float,float,float) r1.z, r4.xyxx, t44.yzxw, s1
sample_indexable(texture2d)(float,float,float,float) r1.x, r1.xyxx, t45.zxyw, s5
add_sat r1.y, r1.x, l(-0.0313725993)
mul r1.w, r1.y, r1.z
lt r2.x, r1.x, l(0.500000)
dp2 r1.w, r1.wwww, r1.xxxx
add r1.x, -r1.x, l(1.000000)
add r1.x, r1.x, r1.x
mad r1.y, -r1.z, r1.y, l(1.000000)
mad r1.x, -r1.x, r1.y, l(1.000000)
movc r1.x, r2.x, r1.w, r1.x
add r1.x, r1.x, l(-0.0313725993)
mul_sat r1.y, r1.x, l(3.98438144)
add r1.y, -r1.y, l(1.000000)
mov_sat r1.x, r1.x
mul r1.y, r1.y, l(0.060000)
deriv_rtx_fine r1.z, r1.y
deriv_rty_fine r1.y, r1.y
lt r1.w, l(0.000000), r1.x
ne r2.xy, r1.zyzz, l(0.000000, 0.000000, 0.000000, 0.000000)
or r2.x, r1.w, r2.x
or r2.x, r2.y, r2.x
if_nz r2.x
  mul r2.xy, v2.xyxx, l(30.000000, 30.000000, 0.000000, 0.000000)
  sample_indexable(texture2d)(float,float,float,float) r2.xyz, r2.xyxx, t43.xyzw, s2
  lt r3.xyz, r2.xyzx, l(0.00313080009, 0.00313080009, 0.00313080009, 0.000000)
  mul r4.xyz, r2.xyzx, l(12.920000, 12.920000, 12.920000, 0.000000)
  log r2.xyz, r2.xyzx
  mul r2.xyz, r2.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000)
  exp r2.xyz, r2.xyzx
  mad r2.xyz, r2.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000)
  movc r2.xyz, r3.xyzx, r4.xyzx, r2.xyzx
  if_nz r1.w
    mad r2.xyz, r2.xyzx, l(0.920654058, 0.920654058, 0.920654058, 0.000000), l(-0.231372476, -0.231372476, -0.231372476, 0.000000)
    mad r2.xyz, r1.xxxx, r2.xyzx, l(0.231372476, 0.231372476, 0.231372476, 0.000000)
    mad r1.xw, r1.xxxx, l(-0.300735, 0.000000, 0.000000, 0.022000), l(0.950000, 0.000000, 0.000000, 0.020000)
  else
    mov r2.xyz, l(0.231372476,0.231372476,0.231372476,0)
    mov r1.xw, l(0.950000,0,0,0.020000)
  endif
  ne r2.w, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].w
  dp3 r3.x, v6.xyzx, v4.xyzx
  dp3 r3.y, v6.xyzx, v5.xyzx
  deriv_rtx_fine r4.xy, r3.xyxx
  deriv_rty_fine r6.xy, r3.xyxx
  dp2 r3.x, r4.xyxx, r4.xyxx
  dp2 r3.y, r6.xyxx, r6.xyxx
  sqrt r3.xy, r3.xyxx
  lt r3.z, l(0.001000), r3.x
  rcp r3.x, r3.x
  mul r3.xw, r3.xxxx, r4.xxxy
  and r3.xz, r3.xxwx, r3.zzzz
  lt r3.w, l(0.001000), r3.y
  rcp r3.y, r3.y
  mul r4.xy, r3.yyyy, r6.xyxx
  and r3.yw, r3.wwww, r4.xxxy
  mul r3.yw, r1.yyyy, r3.yyyw
  mad r3.xy, r3.xzxx, r1.zzzz, r3.ywyy
  mov r3.z, l(1.000000)
  dp3 r1.y, r3.xyzx, r3.xyzx
  rsq r1.y, r1.y
  mul r3.xyz, r1.yyyy, r3.xyzx
  movc r3.xyz, r2.wwww, l(0,0,1.000000,0), r3.xyzx
else
  mov r2.xyz, l(0.231372476,0.231372476,0.231372476,0)
  mov r3.xyz, l(0,0,1.000000,0)
  mov r1.xw, l(0.950000,0,0,0.020000)
endif
mad r1.y, -r9.x, l(0.625000), l(1.000000)
mov r7.w, l(1.000000)
dp4 r1.z, r7.xyzw, cb3[18].xyzw
dp4 r2.w, r7.xyzw, cb3[19].xyzw
div_sat r1.z, r1.z, r2.w
min oDepth, r1.z, v0.z
add r0.w, r0.w, l(1.000000)
max r5.z, r0.w, l(0.001000)
mov r3.xy, -r3.xyxx
dp3 r0.w, r5.xyzx, r3.xyzx
mul r4.xyz, r0.wwww, r5.xyzx
div r4.xyz, r4.xyzx, r5.zzzz
add r3.xyz, -r3.xyzx, r4.xyzx
dp3 r0.w, v4.xyzx, v4.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, v4.xyzx
dp3 r0.w, v5.xyzx, v5.xyzx
rsq r0.w, r0.w
mul r5.xyz, r0.wwww, v5.xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
mul r5.xyz, r5.xyzx, r3.yyyy
mad r3.xyw, r3.xxxx, r4.xyxz, r5.xyxz
mad r3.xyz, r3.zzzz, r0.xyzx, r3.xywx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, r3.xyzx
ne r1.z, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].z
deriv_rtx_fine r5.xyz, r0.xyzx
deriv_rty_fine r0.xyz, r0.xyzx
dp3 r2.w, r5.xyzx, r5.xyzx
dp3 r0.x, r0.xyzx, r0.xyzx
add r0.x, r0.x, r2.w
min r0.x, r0.x, l(0.300000)
movc r0.x, r1.z, l(0), r0.x
add r0.y, -r1.x, l(1.000000)
mul r0.y, r0.y, r0.y
mad r0.x, r0.y, r0.y, r0.x
sqrt r0.x, r0.x
sqrt r0.x, r0.x
add r0.x, -r0.x, l(1.000000)
lt r0.y, r2.x, l(0.040450)
mul r0.z, r2.x, l(0.0773993805)
add r1.x, r2.x, l(0.055000)
mul r1.x, r1.x, l(0.947867334)
log r1.x, r1.x
mul r1.x, r1.x, l(2.400000)
exp r1.x, r1.x
movc r5.x, r0.y, r0.z, r1.x
lt r0.y, r2.y, l(0.040450)
mul r0.z, r2.y, l(0.0773993805)
add r1.x, r2.y, l(0.055000)
mul r1.x, r1.x, l(0.947867334)
log r1.x, r1.x
mul r1.x, r1.x, l(2.400000)
exp r1.x, r1.x
movc r5.y, r0.y, r0.z, r1.x
lt r0.y, r2.z, l(0.040450)
mul r0.z, r2.z, l(0.0773993805)
add r1.x, r2.z, l(0.055000)
mul r1.x, r1.x, l(0.947867334)
log r1.x, r1.x
mul r1.x, r1.x, l(2.400000)
exp r1.x, r1.x
movc r5.z, r0.y, r0.z, r1.x
mul_sat r2.xy, v0.xyxx, cb3[32].zwzz
ftoi r0.yz, v0.yyxy
add r6.xyz, -v6.xyzx, cb3[31].xyzx

//Tessellation specular PS..
mul r41.xyz, r40.yyyy, cb3[16].xyzx
mul r41.w, cb3[16].x, cb3[16].x
mad r41.w, cb3[16].y, cb3[16].y, r41.w
mad r41.w, cb3[16].z, cb3[16].z, r41.w
div r41.xyz, r41.xyzx, r41.wwww
mad r6.x, r40.x, r41.x, r6.x
mad r6.y, r40.x, r41.y, r6.y
mad r6.z, r40.x, r41.z, r6.z

dp3 r1.x, r6.xyzx, r6.xyzx
rsq r1.x, r1.x
mul r7.xyz, r1.xxxx, r6.xyzx
add r9.x, -r0.x, l(1.000000)
mul r1.z, r9.x, r9.x
mul r2.w, r9.x, r1.z
dp3 r3.w, -r7.xyzx, r4.xyzx
add r3.w, r3.w, r3.w
mad r10.xyz, r4.yzxy, -r3.wwww, -r7.yzxy
mad r3.xyz, r3.yzxy, r0.wwww, -r10.xyzx
mad r3.xyz, r2.wwww, r3.xyzx, r10.xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
and r0.w, l(0x80000000), cb0[829].x
dp3 r2.w, r4.xyzx, r7.xyzx
mov_sat r3.w, r2.w
add r4.w, r1.y, r3.w
log r4.w, r4.w
mul r0.x, r0.x, r4.w
exp r0.x, r0.x
add r0.x, r1.y, r0.x
add_sat r0.x, r0.x, l(-1.000000)
add r3.w, -r3.w, l(1.000000)
mul r4.w, r3.w, r3.w
mul r3.w, r3.w, r4.w
add r4.w, -r0.x, l(1.000000)
mad r0.x, r3.w, r4.w, r0.x
movc r0.x, r0.w, r0.x, l(1.000000)
min r0.w, r1.y, l(1.000000)
min r1.y, r0.x, l(1.000000)
mul r9.zw, l(0.000000, 0.000000, -1.000000, 1.000000), cb2[71].xxxy
mul r9.zw, r3.yyyy, r9.zzzw
mad r10.xz, r3.zzzz, cb2[71].yyxy, r9.zzwz
dp4 r11.x, cb2[72].xyzw, r8.xyzw
dp4 r11.y, cb2[73].xyzw, r8.xyzw
dp4 r11.z, cb2[74].xyzw, r8.xyzw
mov r10.y, r3.x
dp3 r12.x, cb2[72].xyzx, r10.xyzx
dp3 r12.y, cb2[73].xyzx, r10.xyzx
dp3 r12.z, cb2[74].xyzx, r10.xyzx
div r13.xyz, l(1.000000, 1.000000, 1.000000, 1.000000), r12.xyzx
lt r14.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r12.xyzx
lt r12.xyz, r12.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
iadd r12.xyz, -r14.xyzx, r12.xyzx
itof r12.xyz, r12.xyzx
mad r11.xyz, r12.xyzx, cb2[75].xyzx, -r11.xyzx
mul r11.xyz, r13.xyzx, r11.xyzx
lt r12.xyz, r11.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
movc r11.xyz, r12.xyzx, l(99999997952.000000,99999997952.000000,99999997952.000000,0), r11.xyzx
min r3.w, r11.z, r11.y
min r3.w, r3.w, r11.x
mad r10.xyz, r10.xyzx, r3.wwww, v6.xyzx
add r10.xyz, r10.xyzx, -cb2[76].xyzx
dp3 r3.w, r10.xyzx, r10.xyzx
rsq r3.w, r3.w
mul r10.xyz, r3.wwww, r10.xyzx
mul r11.yzw, r10.yyzx, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r11.x, l(0.282094806)
dp4 r3.w, r11.xyzw, cb2[68].xyzw
dp4 r4.w, r11.xyzw, cb2[69].xyzw
dp4 r5.w, r11.xyzw, cb2[70].xyzw
rcp r11.x, r3.w
rcp r11.y, r4.w
rcp r11.z, r5.w
iadd r3.w, l(-3), cb2[71].z
utof r3.w, r3.w
mul r3.w, r3.w, r9.x
lt r4.w, r3.w, l(1.000000)
mad_sat r5.w, r3.w, l(2.000000), l(-1.000000)
movc r3.w, r4.w, r5.w, r3.w
sample_l_indexable(texturecube)(float,float,float,float) r10.xyz, r10.xyzx, t21.xyzw, s5, r3.w
mul r10.xyz, r11.xyzx, r10.xyzx
sqrt r9.y, |r2.w|
mad r9.yzw, r9.xxyx, l(0.000000, 0.996093750, 0.996093750, -0.337748349), l(0.000000, 0.00195312500, 0.00195312500, 1.000000)
sample_l_indexable(texture2d)(float,float,float,float) r9.yz, r9.yzyy, t7.zxyw, s5, l(0.000000)
mad r3.w, r1.w, r9.y, r9.z
mul r10.xyz, r3.wwww, r10.xyzx
mul r11.xyz, v6.yyyy, cb2[9].xzyx
mad r11.xyz, cb2[8].xzyx, v6.xxxx, r11.xyzx
mad r11.xyz, cb2[10].xzyx, v6.zzzz, r11.xyzx
add r11.xyz, r11.xyzx, cb2[11].xzyx
lt r12.xyz, |r11.xzyx|, l(0.500000, 0.500000, 0.500000, 0.000000)
and r3.w, r12.y, r12.x
and r3.w, r12.z, r3.w
if_nz r3.w
  add r11.xyz, r11.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
  and r3.w, l(1), cb2[27].x
  if_nz r3.w
    utof r12.xyz, cb2[15].xyzx
    mul r12.xyz, r11.xyzx, r12.xyzx
    ftoi r13.xyz, r12.xyzx
    mov r13.w, l(0)
    ld_indexable(texture3d)(float,float,float,float) r13.xyzw, r13.xyzw, t22.xyzw
    mul r14.xyzw, r13.xyzw, l(1020.000000, 255.000000, 63.750000, 255.000000)
    frc r3.w, r14.z
    mad r14.x, r3.w, l(4.000000), r14.x
    mad r14.z, r13.z, l(63.750000), -r3.w
    frc r12.xyz, r12.xyzx
    mad r12.xyz, r12.xyzx, r14.wwww, r14.xyzx
    add r12.xyz, r12.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
    utof r13.xyz, cb2[17].xyzx
    div r11.xyz, r12.xyzx, r13.xyzx
  endif
  sample_l_indexable(texture3d)(float,float,float,float) r12.xyzw, r11.xyzx, t23.xyzw, s5, l(0.000000)
  mul r12.xyzw, r12.xyzw, cb2[26].xyzw
  sample_l_indexable(texture3d)(float,float,float,float) r13.xyzw, r11.xyzx, t24.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r14.xyzw, r11.xyzx, t25.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r11.xyzw, r11.xyzx, t26.xyzw, s5, l(0.000000)
  mad r13.xyzw, r13.xyzw, cb2[20].xyzw, cb2[19].xyzw
  mad r14.xyzw, r14.xyzw, cb2[22].xyzw, cb2[21].xyzw
  mad r11.xyzw, r11.xyzw, cb2[24].xyzw, cb2[23].xyzw
  mul r13.xyzw, r13.xyzw, cb2[26].xyzw
  mul r14.xyzw, r14.xyzw, cb2[26].xyzw
  mul r11.xyzw, r11.xywz, cb2[26].xywz
  mov r15.x, r11.z
  mov r15.y, r13.w
  mov r15.z, r14.w
  dp3 r16.w, cb2[12].xyzx, r15.xyzx
  dp3 r16.y, cb2[13].xyzx, r15.xyzx
  dp3 r16.z, cb2[14].xyzx, r15.xyzx
  mul r15.xyz, r4.xyzx, cb0[2].xxxx
  mul r17.xyz, r15.yyyy, cb2[13].yzxy
  mad r15.xyw, cb2[12].yzyx, r15.xxxx, r17.xyxz
  mad r15.xyz, cb2[14].yzxy, r15.zzzz, r15.xywx
  mul r15.yzw, r15.xxyz, l(0.000000, 0.325735033, 0.325735033, 0.325735033)
  mov r15.x, l(0.282094806)
  mov r17.x, r12.x
  mov r17.y, r13.x
  mov r17.z, r14.x
  mov r17.w, r11.x
  dp4 r18.x, r15.xyzw, r17.xyzw
  mov r19.x, r12.y
  mov r19.y, r13.y
  mov r19.z, r14.y
  mov r19.w, r11.y
  dp4 r18.y, r15.xyzw, r19.xyzw
  mov r11.x, r12.z
  mov r11.y, r13.z
  mov r11.z, r14.z
  dp4 r18.z, r15.xyzw, r11.xyzw
  max r12.xyz, r18.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  mul r13.xyz, r3.zxyz, cb0[2].yyyy
  mul r14.xyz, r13.yyyy, cb2[13].yzxy
  mad r13.xyw, cb2[12].yzyx, r13.xxxx, r14.xyxz
  mad r13.xyz, cb2[14].yzxy, r13.zzzz, r13.xywx
  mul r13.yzw, r13.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
  mov r13.x, l(0.282094806)
  dp4 r14.x, r13.xyzw, r17.xyzw
  dp4 r14.y, r13.xyzw, r19.xyzw
  dp4 r14.z, r13.xyzw, r11.xyzw
  max r11.xyz, r14.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  mov r16.x, r12.w
else
  mov r16.xyzw, cb0[3].xyzw
  mov r12.xyz, l(0,0,0,0)
  mov r11.xyz, l(0,0,0,0)
endif
dp3 r3.w, r12.xyzx, l(0.300000, 0.300000, 0.400000, 0.000000)
dp3 r4.w, r11.xyzx, l(0.300000, 0.300000, 0.400000, 0.000000)
add r12.xyz, -r3.wwww, r12.xyzx
mad r12.xyz, cb0[2].zzzz, r12.xyzx, r3.wwww
add r11.xyz, -r4.wwww, r11.xyzx
mad r11.xyz, cb0[2].zzzz, r11.xyzx, r4.wwww
mul r13.xyz, r4.yzxy, cb0[2].xxxx
mul r13.yzw, r13.xxyz, l(0.000000, 0.325735033, 0.325735033, 0.325735033)
mov r13.x, l(0.282094806)
dp4_sat r3.w, r13.xyzw, r16.xyzw
mul r13.xyz, r3.xyzx, cb0[2].yyyy
mul r13.yzw, r13.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r13.x, l(0.282094806)
dp4_sat r4.w, r13.xyzw, r16.xyzw
mul r13.yzw, r4.yyzx, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r13.x, l(0.282094806)
dp4 r14.x, r13.xyzw, cb0[52].xyzw
dp4 r14.y, r13.xyzw, cb0[53].xyzw
dp4 r14.z, r13.xyzw, cb0[54].xyzw
max r13.xyz, r14.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r12.xyz, r3.wwww, r13.xyzx, r12.xyzx
mul r3.yzw, r3.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r3.x, l(0.282094806)
dp4 r13.x, r3.xyzw, cb0[25].xyzw
dp4 r13.y, r3.xyzw, cb0[26].xyzw
dp4 r13.z, r3.xyzw, cb0[27].xyzw
max r3.xyz, r13.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r3.xyz, r4.wwww, r3.xyzx, r11.xyzx
mul r3.xyz, r3.xyzx, r10.xyzx
mul r10.xyz, r0.wwww, r12.xyzx
mov x0[0].x, cb0[807].x
mov x0[1].x, cb0[808].x
mov x0[3].x, cb0[810].x
mov x0[0].y, cb0[807].y
mov x0[1].y, cb0[808].y
mov x0[3].y, cb0[810].y
mov x0[0].z, cb0[807].z
mov x0[1].z, cb0[808].z
mov x0[3].z, cb0[810].z
mov x0[0].w, cb0[807].w
mov x0[1].w, cb0[808].w
mov x0[3].w, cb0[810].w
mov x0[4].x, cb0[811].x
mov x0[5].x, cb0[812].x
mov x0[7].x, cb0[814].x
mov x0[4].y, cb0[811].y
mov x0[5].y, cb0[812].y
mov x0[7].y, cb0[814].y
mov x0[4].z, cb0[811].z
mov x0[5].z, cb0[812].z
mov x0[7].z, cb0[814].z
mov x0[4].w, cb0[811].w
mov x0[5].w, cb0[812].w
mov x0[7].w, cb0[814].w
mov x0[8].x, cb0[815].x
mov x0[9].x, cb0[816].x
mov x0[11].x, cb0[818].x
mov x0[8].y, cb0[815].y
mov x0[9].y, cb0[816].y
mov x0[11].y, cb0[818].y
mov x0[8].z, cb0[815].z
mov x0[9].z, cb0[816].z
mov x0[11].z, cb0[818].z
mov x0[8].w, cb0[815].w
mov x0[9].w, cb0[816].w
mov x0[11].w, cb0[818].w
mov x0[12].x, cb0[819].x
mov x0[13].x, cb0[820].x
mov x0[15].x, cb0[822].x
mov x0[12].y, cb0[819].y
mov x0[13].y, cb0[820].y
mov x0[15].y, cb0[822].y
mov x0[12].z, cb0[819].z
mov x0[13].z, cb0[820].z
mov x0[15].z, cb0[822].z
mov x0[12].w, cb0[819].w
mov x0[13].w, cb0[820].w
mov x0[15].w, cb0[822].w
utof r0.yz, r0.yyzy
mul r0.yz, r0.yyzy, l(0.000000, 4159.000000, 3169.000000, 0.000000)
add r0.y, r0.z, r0.y
mul r0.y, r0.y, l(0.159154937)
frc r0.y, r0.y
mul r0.y, r0.y, l(39.478420)
sincos r11.x, r12.x, r0.y
mov r13.x, -r11.x
dp4 r14.x, r8.xyzw, cb0[586].xyzw
dp4 r14.y, r8.xyzw, cb0[587].xyzw
dp4 r0.y, r8.xyzw, cb0[588].xyzw
dp4 r0.z, r8.xyzw, cb0[589].xyzw
div r9.yz, r14.xxyx, r0.zzzz
lt r11.yz, l(0.000000, 1.000000, 1.000000, 0.000000), |r9.yyzy|
or r0.w, r11.z, r11.y
max r3.w, |r9.z|, |r9.y|
mad r3.w, r3.w, l(1.05263162), l(-1.000000)
mul_sat r3.w, r3.w, l(20.000000)
movc r3.w, r0.w, l(0), r3.w
add r2.w, |r2.w|, l(0.001000)
mad r9.yz, r9.yyzy, l(0.000000, 0.500000, -0.500000, 0.000000), l(0.000000, 0.500000, 0.500000, 0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r14.xyzw, r9.yzyy, t3.xyzw, s5, l(0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r15.xyzw, r9.yzyy, t4.xyzw, s5, l(0.000000)
div r0.y, r0.y, r0.z
max r0.y, r0.y, l(0.000000)
min r0.y, r0.y, l(0.999990)
mul r0.z, r0.y, l(8.000000)
round_ni r0.z, r0.z
ftoi r4.w, r0.z
ilt r5.w, r4.w, l(7)
iadd r6.w, r4.w, l(1)
movc r5.w, r5.w, r6.w, l(7)
mad r0.y, r0.y, l(8.000000), -r0.z
add r0.z, -r2.w, l(1.000000)
mul r6.w, r0.z, r0.z
mul r6.w, r6.w, r6.w
mul r0.z, r0.z, r6.w
add r6.w, -r1.w, l(1.000000)
mov r13.y, r12.x
mov r12.z, l(1.000000)
mov r16.z, l(1.000000)
mov r17.z, l(1.000000)
mov r18.z, l(1.000000)
mov r19.z, l(0)
mov r13.z, r11.x
mov r11.xyz, l(0,0,0,0)
mov r20.xyz, l(0,0,0,0)
mov r7.w, l(0)
loop
  uge r9.y, r7.w, cb2[0].z
  breakc_nz r9.y
  imul null, r9.yz, l(0, 5, 13, 0), cb2[r7.w + 0].xxxx
  ushr r10.w, cb0[r9.y + 58].w, l(30)
  dp4 r21.x, r8.xyzw, cb0[r9.z + 378].xyzw
  dp4 r21.y, r8.xyzw, cb0[r9.z + 379].xyzw
  dp4 r21.z, r8.xyzw, cb0[r9.z + 380].xyzw
  ine r11.w, r10.w, l(2)
  if_nz r11.w
    dp4 r12.y, r8.xyzw, cb0[r9.z + 381].xyzw
    lt r16.yw, r12.yyyy, |r21.xxxy|
    or r12.w, r16.w, r16.y
    if_nz r12.w
      mov r22.xyz, l(0,0,0,0)
    else
      div r22.xyz, r21.xyzx, r12.yyyy
      mad r22.xy, r22.xyxx, cb0[r9.z + 385].xyxx, cb0[r9.z + 385].zwzz
    endif
    mov r13.w, l(0)
  else
    lt r16.y, r21.z, l(0.000000)
    lt r16.w, l(1.000000), r21.z
    or r13.w, r16.w, r16.y
    if_z r13.w
      add r16.y, l(1.000000), cb0[r9.z + 390].x
      dp2 r16.y, cb0[0].yyyy, r16.yyyy
      add r16.y, -r16.y, l(1.000000)
      mov r12.x, cb0[r9.z + 382].x
      mad r23.xyz, r21.xyzx, r12.xxzx, cb0[r9.z + 382].yzwy
      mov r16.x, cb0[r9.z + 383].x
      mad r24.xyz, r21.xyzx, r16.xxzx, cb0[r9.z + 383].yzwy
      mov r17.x, cb0[r9.z + 384].x
      mad r17.xyw, r21.xyxz, r17.xxxz, cb0[r9.z + 384].yzyw
      lt r16.xw, |r21.xxxy|, r16.yyyy
      and r12.x, r16.w, r16.x
      lt r16.xw, |r23.xxxy|, r16.yyyy
      and r16.x, r16.w, r16.x
      lt r25.xy, |r24.xyxx|, r16.yyyy
      and r16.w, r25.y, r25.x
      lt r25.xy, |r17.xyxx|, r16.yyyy
      and r16.y, r25.y, r25.x
      mad r17.xy, r17.xyxx, cb0[r9.z + 388].xyxx, cb0[r9.z + 388].zwzz
      mad r24.xy, r24.xyxx, cb0[r9.z + 387].xyxx, cb0[r9.z + 387].zwzz
      movc r17.xyw, r16.wwww, r24.xyxz, r17.xyxw
      mad r23.xy, r23.xyxx, cb0[r9.z + 386].xyxx, cb0[r9.z + 386].zwzz
      movc r17.xyw, r16.xxxx, r23.xyxz, r17.xyxw
      mov r18.xy, cb0[r9.z + 385].xyxx
      mov r19.xy, cb0[r9.z + 385].zwzz
      mad r18.xyw, r21.xyxz, r18.xyxz, r19.xyxz
      movc r22.xyz, r12.xxxx, r18.xywx, r17.xywx
      movc r16.y, r16.y, l(3), l(-1)
      movc r16.y, r16.w, l(2), r16.y
      movc r16.x, r16.x, l(1), r16.y
      movc r12.w, r12.x, l(0), r16.x
    else
      mov r22.xyz, l(0,0,0,0)
      mov r12.w, l(0)
    endif
    mov r12.y, l(-1)
  endif
  movc r12.x, r13.w, r12.y, r12.w
  ige r12.x, r12.x, l(0)
  if_nz r12.x
    mul r12.x, l(0.500000), cb0[r9.z + 390].x
    mul r21.xyzw, r12.xxxx, cb0[1].xyxy
    mul r23.xyzw, r13.yzyz, r21.zwzw
    mad r24.xyzw, r23.zwzw, l(-0.550705791, -0.550705791, 0.924529552, 0.924529552), r22.xyxy
    mul r21.xyzw, r13.xyxy, r21.xyzw
    mad r24.xyzw, r21.zwzw, l(0.495261461, 0.495261461, -0.131719455, -0.131719455), r24.xyzw
    mov_sat r22.z, r22.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.x, r24.xyxx, t2.xxxx, s7, r22.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.y, r24.zwzz, t2.xxxx, s7, r22.z
    add r12.x, r12.y, r12.x
    mad r24.xyzw, r23.zwzw, l(0.389092624, 0.389092624, -0.182296202, -0.182296202), r22.xyxy
    mad r24.xyzw, r21.zwzw, l(0.862155199, 0.862155199, -0.714493573, -0.714493573), r24.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.y, r24.xyxx, t2.xxxx, s7, r22.z
    add r12.x, r12.y, r12.x
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.y, r24.zwzz, t2.xxxx, s7, r22.z
    add r12.x, r12.y, r12.x
    mad r23.xyzw, r23.xyzw, l(-0.00643500872, -0.00643500872, -0.432008445, -0.432008445), r22.xyxy
    mad r21.xyzw, r21.xyzw, l(0.191590905, 0.191590905, -0.168338627, -0.168338627), r23.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.y, r21.xyxx, t2.xxxx, s7, r22.z
    add r12.x, r12.y, r12.x
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.y, r21.zwzz, t2.xxxx, s7, r22.z
    add r12.x, r12.y, r12.x
    mul r12.x, r12.x, l(0.166666672)
  else
    mov r12.x, l(1.000000)
  endif
  add_sat r12.x, r12.x, cb0[r9.z + 390].y
  ieq r10.w, r10.w, l(2)
  if_nz r10.w
    if_nz r0.w
      mov r12.y, l(1.000000)
    endif
    if_z r0.w
      mov x1[0].x, r14.x
      mov x1[1].x, r14.y
      mov x1[2].x, r14.z
      mov x1[3].x, r14.w
      mov x1[4].x, r15.x
      mov x1[5].x, r15.y
      mov x1[6].x, r15.z
      mov x1[7].x, r15.w
      mov r12.w, x1[r4.w + 0].x
      mov r13.w, x1[r5.w + 0].x
      add r13.w, -r12.w, r13.w
      mad r12.w, r0.y, r13.w, r12.w
      exp r12.w, -r12.w
      add r12.w, r3.w, r12.w
      min r12.y, r12.w, l(1.000000)
    endif
  else
    mov r12.y, l(1.000000)
  endif
  ine r12.w, l(-1), cb0[r9.z + 389].x
  and r12.w, r10.w, r12.w
  if_nz r12.w
    imul null, r9.z, l(13), cb0[r9.z + 389].x
    dp4 r12.w, r8.xyzw, cb0[r9.z + 601].xyzw
    lt r13.w, r12.w, l(0.000000)
    lt r16.x, l(1.000000), r12.w
    or r13.w, r13.w, r16.x
    if_z r13.w
      dp4 r16.x, r8.xyzw, cb0[r9.z + 599].xyzw
      dp4 r16.y, r8.xyzw, cb0[r9.z + 600].xyzw
      mad r17.xy, r16.xyxx, cb0[r9.z + 606].xyxx, cb0[r9.z + 606].zwzz
      lt r16.xy, l(1.000000, 1.000000, 0.000000, 0.000000), |r16.xyxx|
      or r16.x, r16.y, r16.x
    else
      mov r17.xy, l(0,0,0,0)
      mov r12.w, l(0)
      mov r16.x, l(0)
    endif
    ige r16.x, r16.x, l(0)
    movc r13.w, r13.w, l(0), r16.x
    if_nz r13.w
      mov_sat r12.w, r12.w
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.w, r17.xyxx, t2.xxxx, s7, r12.w
    else
      mov r12.w, l(1.000000)
    endif
    add_sat r9.z, r12.w, cb0[r9.z + 611].y
    mul r12.x, r9.z, r12.x
  endif
  ige r9.z, cb0[r9.y + 62].x, l(0)
  if_nz r9.z
    ishl r9.z, cb0[r9.y + 62].x, l(2)
    mov r21.x, x0[r9.z + 0].x
    mov r22.x, x0[r9.z + 1].x
    mov r23.x, x0[r9.z + 3].x
    mov r21.y, x0[r9.z + 0].y
    mov r22.y, x0[r9.z + 1].y
    mov r23.y, x0[r9.z + 3].y
    mov r21.z, x0[r9.z + 0].z
    mov r22.z, x0[r9.z + 1].z
    mov r23.z, x0[r9.z + 3].z
    mov r21.w, x0[r9.z + 0].w
    mov r22.w, x0[r9.z + 1].w
    mov r23.w, x0[r9.z + 3].w
    dp4 r16.x, r8.xyzw, r21.xyzw
    dp4 r16.y, r8.xyzw, r22.xyzw
    dp4 r9.z, r8.xyzw, r23.xyzw
    div r16.xy, r16.xyxx, r9.zzzz
    sample_l_indexable(texture2d)(float,float,float,float) r17.xyw, r16.xyxx, t11.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r18.xyw, r16.xyxx, t12.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r19.xyw, r16.xyxx, t13.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r16.xyw, r16.xyxx, t14.xywz, s1, l(0.000000)
    ieq r21.xyz, l(1, 2, 3, 0), cb0[r9.y + 62].xxxx
    movc r17.xyw, r21.xxxx, r18.xyxw, r17.xyxw
    movc r17.xyw, r21.yyyy, r19.xyxw, r17.xyxw
    movc r16.xyw, r21.zzzz, r16.xyxw, r17.xyxw
  else
    mov r16.xyw, l(1.000000,1.000000,0,1.000000)
  endif
  and r9.z, cb1[0].x, cb0[r9.y + 58].w
  add r17.xyw, -v6.xyxz, cb0[r9.y + 59].xyxz
  dp3 r12.w, r17.xywx, r17.xywx
  rsq r13.w, r12.w
  mul r17.xyw, r13.wwww, r17.xyxw
  add r13.w, r12.w, -cb0[r9.y + 59].w
  max r13.w, r13.w, l(0.001000)
  rcp r13.w, r13.w
  mad r13.w, cb0[r9.y + 59].w, r13.w, l(1.000000)
  rsq r13.w, r13.w
  add r13.w, -r13.w, l(1.000000)
  mul r13.w, r13.w, l(6.28318548)
  mul r12.w, r12.w, r12.w
  mad_sat r12.w, -r12.w, cb0[r9.y + 60].x, l(1.000000)
  mul r12.w, r12.w, r12.w
  mul r12.w, r12.w, r13.w
  dp3_sat r13.w, cb0[r9.y + 61].xyzx, r17.xywx
  add_sat r13.w, r13.w, -cb0[r9.y + 60].z
  mul_sat r13.w, r13.w, cb0[r9.y + 60].y
  mul r18.x, r13.w, r13.w
  mad r13.w, -r13.w, l(2.000000), l(3.000000)
  mul r13.w, r13.w, r18.x
  mul r12.w, r12.w, r13.w
  movc r17.xyw, r10.wwww, cb0[r9.y + 61].xyxz, r17.xyxw
  movc r10.w, r10.w, cb0[r9.y + 61].w, r12.w
  movc r17.xyw, r9.zzzz, r17.xyxw, l(0,1.000000,0,0)
  movc r9.z, r9.z, r10.w, l(0)
  mad_sat r10.w, -r9.z, l(0.159154937), l(1.000000)
  mad r12.w, r10.w, l(-0.156583), l(1.57079637)
  add r10.w, -r10.w, l(1.000000)
  sqrt r10.w, r10.w
  mul r10.w, r10.w, r12.w
  movc r10.w, r11.w, r10.w, cb0[r9.y + 60].w
  mad_sat r10.w, r10.w, l(0.318309873), r1.z
  mad r11.w, -r9.x, r9.x, r10.w
  mad r11.w, -r11.w, r11.w, l(1.000000)
  sqrt r11.w, r11.w
  dp3 r12.w, r4.xyzx, r17.xywx
  max r11.w, r11.w, l(0.950000)
  add r13.w, -r11.w, l(1.000000)
  rsq r18.x, r13.w
  mul r13.w, r13.w, r18.x
  mul r18.y, r12.w, l(0.373837)
  mul r13.w, r13.w, l(0.668740)
  mad r18.w, r12.w, l(0.373837), r13.w
  ge r13.w, r13.w, |r18.y|
  mul r18.y, r18.w, r18.w
  mul r18.x, r18.x, r18.y
  mov_sat r12.w, r12.w
  movc r12.w, r13.w, r18.x, r12.w
  mul r11.w, r11.w, r12.w
  min r12.w, r11.w, l(1.000000)
  mul r18.xyw, r12.wwww, l(0.318309873, 0.318309873, 0.000000, 0.318309873)
  lt r13.w, l(0.000000), r11.w
  if_nz r13.w
    mad r17.xyw, r6.xyxz, r1.xxxx, r17.xyxw
    dp3 r13.w, r17.xywx, r17.xywx
    rsq r13.w, r13.w
    mul r17.xyw, r13.wwww, r17.xyxw
    dp3 r13.w, r4.xyzx, r17.xywx
    dp3 r17.x, r7.xyzx, r17.xywx
    mul r17.y, r17.x, r17.x
    dp2 r17.y, r17.yyyy, r9.xxxx
    mad r17.y, r9.x, l(0.500000), r17.y
    add r17.y, r17.y, l(-1.000000)
    add r12.w, -r12.w, l(1.000000)
    mul r17.w, r12.w, r12.w
    mul r17.w, r17.w, r17.w
    mul r12.w, r12.w, r17.w
    mad r12.w, r17.y, r12.w, l(1.000000)
    mad r17.y, r17.y, r0.z, l(1.000000)
    mul r12.w, r12.w, r17.y
    mul r12.w, r9.w, r12.w
    mul r19.xyw, r12.wwww, r18.wwww
    add r12.w, -r17.x, l(1.000000)
    mul r17.x, r12.w, r12.w
    mul r17.x, r17.x, r17.x
    mul r12.w, r12.w, r17.x
    mad r12.w, r6.w, r12.w, r1.w
    mul r17.x, r10.w, r10.w
    mad r17.y, -r11.w, r17.x, r11.w
    mad r17.y, r17.y, r11.w, r17.x
    mad r17.w, -r2.w, r17.x, r2.w
    mad r17.w, r17.w, r2.w, r17.x
    sqrt r17.yw, r17.yyyw
    mul r11.w, r11.w, r17.w
    mad r11.w, r2.w, r17.y, r11.w
    rcp r11.w, r11.w
    mul r11.w, r11.w, l(0.500000)
    mad r10.w, r10.w, r10.w, l(-1.000000)
    mul r13.w, r13.w, r13.w
    mad r10.w, r13.w, r10.w, l(1.000000)
    mul r10.w, r10.w, r10.w
    div r10.w, r17.x, r10.w
    mul r10.w, r11.w, r10.w
    mul r10.w, r12.w, r10.w
    mul r18.xyw, r10.wwww, r18.wwww
  else
    mov r19.xyw, r18.wwww
  endif
  mul r9.z, r9.z, r12.y
  mul r17.xyw, r9.zzzz, cb0[r9.y + 58].xyxz
  mul r16.xyw, r16.xyxw, r17.xyxw
  mul r17.xyw, r12.xxxx, r19.xyxw
  min r9.y, r0.x, r12.x
  mul r12.xyw, r9.yyyy, r18.xyxw
  mad r11.xyz, r16.xywx, r17.xywx, r11.xyzx
  mad r20.xyz, r16.xywx, r12.xywx, r20.xyzx
  iadd r7.w, r7.w, l(1)
endloop
mov r0.xyw, r11.xyxz
mov r12.xyz, r20.xyzx
mov r13.xyz, l(1.000000,1.000000,1.000000,0)
mov r3.w, l(0)
loop
  uge r4.w, r3.w, cb2[0].w
  breakc_nz r4.w
  imul null, r4.w, l(5), cb2[r3.w + 0].y
  ushr r5.w, cb0[r4.w + 58].w, l(30)
  if_z r5.w
    and r7.w, cb1[0].x, cb0[r4.w + 58].w
    add r14.xyz, -v6.xyzx, cb0[r4.w + 59].xyzx
    dp3 r9.y, r14.xyzx, r14.xyzx
    ishr r9.y, r9.y, l(1)
    iadd r9.y, r9.y, l(0x1fbd22df)
    mul_sat r9.y, r9.y, cb0[r4.w + 60].x
    add r14.xyz, l(1.000000, 1.000000, 1.000000, 0.000000), -cb0[r4.w + 58].xyzx
    mad r14.xyz, r9.yyyy, r14.xyzx, cb0[r4.w + 58].xyzx
    movc r14.xyz, r7.wwww, r14.xyzx, l(1.000000,1.000000,1.000000,0)
    mul r13.xyz, r13.xyzx, r14.xyzx
  else
    ige r7.w, cb0[r4.w + 62].x, l(0)
    if_nz r7.w
      ishl r7.w, cb0[r4.w + 62].x, l(2)
      mov r14.x, x0[r7.w + 0].x
      mov r15.x, x0[r7.w + 1].x
      mov r16.x, x0[r7.w + 3].x
      mov r14.y, x0[r7.w + 0].y
      mov r15.y, x0[r7.w + 1].y
      mov r16.y, x0[r7.w + 3].y
      mov r14.z, x0[r7.w + 0].z
      mov r15.z, x0[r7.w + 1].z
      mov r16.z, x0[r7.w + 3].z
      mov r14.w, x0[r7.w + 0].w
      mov r15.w, x0[r7.w + 1].w
      mov r16.w, x0[r7.w + 3].w
      dp4 r14.x, r8.xyzw, r14.xyzw
      dp4 r14.y, r8.xyzw, r15.xyzw
      dp4 r7.w, r8.xyzw, r16.xyzw
      div r9.yz, r14.xxyx, r7.wwww
      sample_l_indexable(texture2d)(float,float,float,float) r14.xyz, r9.yzyy, t11.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r15.xyz, r9.yzyy, t12.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r16.xyz, r9.yzyy, t13.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r17.xyz, r9.yzyy, t14.xyzw, s1, l(0.000000)
      ieq r18.xyz, l(1, 2, 3, 0), cb0[r4.w + 62].xxxx
      movc r14.xyz, r18.xxxx, r15.xyzx, r14.xyzx
      movc r14.xyz, r18.yyyy, r16.xyzx, r14.xyzx
      movc r14.xyz, r18.zzzz, r17.xyzx, r14.xyzx
    else
      mov r14.xyz, l(1.000000,1.000000,1.000000,0)
    endif
    and r7.w, cb1[0].x, cb0[r4.w + 58].w
    ieq r9.y, r5.w, l(2)
    add r15.xyz, -v6.xyzx, cb0[r4.w + 59].xyzx
    dp3 r9.z, r15.xyzx, r15.xyzx
    rsq r10.w, r9.z
    mul r15.xyz, r10.wwww, r15.xyzx
    add r10.w, r9.z, -cb0[r4.w + 59].w
    max r10.w, r10.w, l(0.001000)
    rcp r10.w, r10.w
    mad r10.w, cb0[r4.w + 59].w, r10.w, l(1.000000)
    rsq r10.w, r10.w
    add r10.w, -r10.w, l(1.000000)
    mul r10.w, r10.w, l(6.28318548)
    mul r9.z, r9.z, r9.z
    mad_sat r9.z, -r9.z, cb0[r4.w + 60].x, l(1.000000)
    mul r9.z, r9.z, r9.z
    mul r9.z, r9.z, r10.w
    dp3_sat r10.w, cb0[r4.w + 61].xyzx, r15.xyzx
    add_sat r10.w, r10.w, -cb0[r4.w + 60].z
    mul_sat r10.w, r10.w, cb0[r4.w + 60].y
    mul r11.w, r10.w, r10.w
    mad r10.w, -r10.w, l(2.000000), l(3.000000)
    mul r10.w, r10.w, r11.w
    mul r9.z, r9.z, r10.w
    movc r15.xyz, r9.yyyy, cb0[r4.w + 61].xyzx, r15.xyzx
    movc r9.y, r9.y, cb0[r4.w + 61].w, r9.z
    movc r15.xyz, r7.wwww, r15.xyzx, l(0,1.000000,0,0)
    movc r7.w, r7.w, r9.y, l(0)
    ine r5.w, r5.w, l(2)
    mad_sat r9.y, -r7.w, l(0.159154937), l(1.000000)
    mad r9.z, r9.y, l(-0.156583), l(1.57079637)
    add r9.y, -r9.y, l(1.000000)
    sqrt r9.y, r9.y
    mul r9.y, r9.y, r9.z
    movc r5.w, r5.w, r9.y, cb0[r4.w + 60].w
    mad_sat r5.w, r5.w, l(0.318309873), r1.z
    mad r9.y, -r9.x, r9.x, r5.w
    mad r9.y, -r9.y, r9.y, l(1.000000)
    sqrt r9.y, r9.y
    dp3 r9.z, r4.xyzx, r15.xyzx
    max r9.y, r9.y, l(0.950000)
    add r10.w, -r9.y, l(1.000000)
    rsq r11.w, r10.w
    mul r10.w, r10.w, r11.w
    mul r12.w, r9.z, l(0.373837)
    mul r10.w, r10.w, l(0.668740)
    mad r13.w, r9.z, l(0.373837), r10.w
    ge r10.w, r10.w, |r12.w|
    mul r12.w, r13.w, r13.w
    mul r11.w, r11.w, r12.w
    mov_sat r9.z, r9.z
    movc r9.z, r10.w, r11.w, r9.z
    mul r9.y, r9.z, r9.y
    min r9.z, r9.y, l(1.000000)
    mul r16.xyz, r9.zzzz, l(0.318309873, 0.318309873, 0.318309873, 0.000000)
    lt r10.w, l(0.000000), r9.y
    if_nz r10.w
      mad r15.xyz, r6.xyzx, r1.xxxx, r15.xyzx
      dp3 r10.w, r15.xyzx, r15.xyzx
      rsq r10.w, r10.w
      mul r15.xyz, r10.wwww, r15.xyzx
      dp3 r10.w, r4.xyzx, r15.xyzx
      dp3 r11.w, r7.xyzx, r15.xyzx
      mul r12.w, r11.w, r11.w
      dp2 r12.w, r12.wwww, r9.xxxx
      mad r12.w, r9.x, l(0.500000), r12.w
      add r12.w, r12.w, l(-1.000000)
      add r9.z, -r9.z, l(1.000000)
      mul r13.w, r9.z, r9.z
      mul r13.w, r13.w, r13.w
      mul r9.z, r9.z, r13.w
      mad r9.z, r12.w, r9.z, l(1.000000)
      mad r12.w, r12.w, r0.z, l(1.000000)
      mul r9.z, r9.z, r12.w
      mul r9.z, r9.w, r9.z
      mul r15.xyz, r9.zzzz, r16.zzzz
      add r9.z, -r11.w, l(1.000000)
      mul r11.w, r9.z, r9.z
      mul r11.w, r11.w, r11.w
      mul r9.z, r9.z, r11.w
      mad r9.z, r6.w, r9.z, r1.w
      mul r11.w, r5.w, r5.w
      mad r12.w, -r9.y, r11.w, r9.y
      mad r12.w, r12.w, r9.y, r11.w
      sqrt r12.w, r12.w
      mad r13.w, -r2.w, r11.w, r2.w
      mad r13.w, r13.w, r2.w, r11.w
      sqrt r13.w, r13.w
      mul r9.y, r9.y, r13.w
      mad r9.y, r2.w, r12.w, r9.y
      rcp r9.y, r9.y
      mul r9.y, r9.y, l(0.500000)
      mad r5.w, r5.w, r5.w, l(-1.000000)
      mul r10.w, r10.w, r10.w
      mad r5.w, r10.w, r5.w, l(1.000000)
      mul r5.w, r5.w, r5.w
      div r5.w, r11.w, r5.w
      mul r5.w, r9.y, r5.w
      mul r5.w, r9.z, r5.w
      mul r16.xyz, r5.wwww, r16.zzzz
    else
      mov r15.xyz, r16.zzzz
    endif
    mul r17.xyz, r7.wwww, cb0[r4.w + 58].xyzx
    mul r14.xyz, r14.xyzx, r17.xyzx
    mul r16.xyz, r1.yyyy, r16.xyzx
    mad r0.xyw, r14.xyxz, r15.xyxz, r0.xyxw
    mad r12.xyz, r14.xyzx, r16.xyzx, r12.xyzx
  endif
  iadd r3.w, r3.w, l(1)
endloop
mul r1.xzw, r10.xxyz, cb0[823].xxxx
mad r0.xyz, r0.xywx, cb0[823].yyyy, r1.xzwx
mad r1.xyz, r1.yyyy, r3.xyzx, r12.xyzx
mul r0.xyz, r0.xyzx, r13.xyzx
mul r1.xyz, r1.xyzx, cb0[823].zzzz
mul r1.xyz, r1.xyzx, r13.xyzx
mul r0.xyz, r5.xyzx, r0.xyzx
mad r0.xyz, r0.xyzx, l(0.829407, 0.829407, 0.829407, 0.000000), r1.xyzx
mad r0.w, v0.z, cb0[832].z, cb0[832].w
rcp r0.w, r0.w
mad r0.w, -r0.w, cb0[841].w, l(1.000000)
log r0.w, r0.w
mul_sat r2.z, r0.w, cb0[841].z
itof r1.xyz, cb0[842].yzwy
mad r3.xyz, r1.xyzx, cb0[842].xxxx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r2.xyz, r2.xyzx, r3.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
div r1.xyz, l(1.000000, 1.000000, 1.000000, 1.000000), r1.xyzx
mul r1.xyz, r1.xyzx, r2.xyzx
sample_l_indexable(texture3d)(float,float,float,float) r1.xyzw, r1.xyzx, t8.xyzw, s5, l(0.000000)
exp r0.w, -r1.w
min r0.w, r0.w, l(1.000000)
lt r2.x, l(0.000000), cb0[832].y
if_nz r2.x
  add r2.xyz, v6.xyzx, -cb0[831].xyzx
  dp3 r2.w, r2.xyzx, r2.xyzx
  sqrt r2.w, r2.w
  max r3.x, r2.w, l(0.001000)
  div r3.xyz, r2.xyzx, r3.xxxx
  mul r2.x, r2.y, cb0[830].w
  lt r2.y, l(0.010000), |r2.x|
  mul r2.z, r2.x, l(-1.442695)
  exp r2.z, r2.z
  add r2.z, -r2.z, l(1.000000)
  div r2.x, r2.z, r2.x
  mul r2.x, r2.x, cb0[831].w
  movc r2.x, r2.y, r2.x, cb0[831].w
  dp3_sat r2.y, r3.xyzx, cb0[837].xyzx
  log r2.y, r2.y
  mul r2.y, r2.y, cb0[837].w
  exp r2.y, r2.y
  mul r2.x, r2.x, cb0[832].y
  add r2.z, r2.w, -cb0[832].x
  max r2.z, r2.z, l(0.000000)
  mul r2.w, r2.z, r2.x
  exp r2.w, -r2.w
  min r2.w, r2.w, l(1.000000)
  mad r3.xyz, r2.yyyy, cb0[838].xyzx, cb0[830].xyzx
  mul r3.xyz, r0.wwww, r3.xyzx
  add r2.y, -r2.w, l(1.000000)
  mad r1.xyz, r3.xyzx, r2.yyyy, r1.xyzx
  mad r1.w, r2.x, r2.z, r1.w
  exp r1.w, -r1.w
  min r0.w, r1.w, l(1.000000)
endif
mul r1.xyz, r1.xyzx, l(0.829407, 0.829407, 0.829407, 0.000000)
mad r0.xyz, r0.xyzx, r0.wwww, r1.xyzx
mov r0.w, l(0.829407)
mul o0.xyzw, r0.xyzw, cb1[2].wwww
ret
// Approximately 1170 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v1.3.16 on Thu Feb 03 00:09:06 2022
//
// struct CustomRTTransform
// {
//     float4x4 ws2ts;                // Offset:    0
// };
//
// cbuffer ConstBuf__passData : register(b0)
// {
//
//   struct
//   {
//     float CascadeShadowSize;
//     float OneOverCascadeShadowSize;
//     float ShadowTextureW;
//     float ShadowTextureH;
//     float OneOverShadowTextureW;
//     float OneOverShadowTextureH;
//
//     struct
//     {
//       float giVolumeSHDiffuseBlur;
//       float giVolumeSHSpecularBlur;
//       float giVolumeSaturation;
//       float4 defaultOcclusionSH;
//       float4 skyFullRSH;
//       float4 skyFullGSH;
//       float4 skyFullBSH;
//       float4 skyFullClampRSH;
//       float4 skyFullClampGSH;
//       float4 skyFullClampBSH;
//       float4 skyFullGeoRSH;
//       float4 skyFullGeoGSH;
//       float4 skyFullGeoBSH;
//       float4 skyTopRSH;
//       float4 skyTopGSH;
//       float4 skyTopBSH;
//       float4 skyTopClampRSH;
//       float4 skyTopClampGSH;
//       float4 skyTopClampBSH;
//       float4 skyTopGeoRSH;
//       float4 skyTopGeoGSH;
//       float4 skyTopGeoBSH;
//       float4 skyTopAndBounceRSH;
//       float4 skyTopAndBounceGSH;
//       float4 skyTopAndBounceBSH;
//       float4 skyTopAndBounceClampRSH;
//       float4 skyTopAndBounceClampGSH;
//       float4 skyTopAndBounceClampBSH;
//       float4 skyTopAndBounceGeoRSH;
//       float4 skyTopAndBounceGeoGSH;
//       float4 skyTopAndBounceGeoBSH;
//       float4 skyDifFullRSH;
//       float4 skyDifFullGSH;
//       float4 skyDifFullBSH;
//       float4 skyDifFullClampRSH;
//       float4 skyDifFullClampGSH;
//       float4 skyDifFullClampBSH;
//       float4 skyDifFullGeoRSH;
//       float4 skyDifFullGeoGSH;
//       float4 skyDifFullGeoBSH;
//       float4 skyDifTopRSH;
//       float4 skyDifTopGSH;
//       float4 skyDifTopBSH;
//       float4 skyDifTopClampRSH;
//       float4 skyDifTopClampGSH;
//       float4 skyDifTopClampBSH;
//       float4 skyDifTopGeoRSH;
//       float4 skyDifTopGeoGSH;
//       float4 skyDifTopGeoBSH;
//       float4 skyDifTopAndBounceRSH;
//       float4 skyDifTopAndBounceGSH;
//       float4 skyDifTopAndBounceBSH;
//       float4 skyDifTopAndBounceClampRSH;
//       float4 skyDifTopAndBounceClampGSH;
//       float4 skyDifTopAndBounceClampBSH;
//       float4 skyDifTopAndBounceGeoRSH;
//       float4 skyDifTopAndBounceGeoGSH;
//       float4 skyDifTopAndBounceGeoBSH;
//     } giVolumeGlobal;
//
//
//     struct
//     {
//
//       struct
//       {
//         float3 color;
//         uint lightgroupID;
//         float3 position;
//         float sourceRadiusSquared;
//         float falloffConstant;
//         float innerMinusOuterCosHalfAngleRcp;
//         float outerCosHalfAngle;
//         float dirLightHalfAngle;
//         float3 direction;
//         float dirLightSolidAngle;
//         int projectorIndex;
//         float fadeStartOnDist;
//         float fadeRcpDist;
//         float fadeRate;
//       } gLight[64];
//
//
//       struct
//       {
//         float4x4 gWorldToLight;
//
//         struct
//         {
//           float fScale;
//           float3 vTranslate;
//         } gCascadeOffset[3];
//
//         float4 uvScaleOffset[4];
//         int extraCascadeIndex;
//         float cascadeRange;
//         float2 linearizeConstants;
//         float filterSize;
//         float shadowFade;
//         float shadowBias;
//         float padd;
//       } gLightShadowInfo[16];
//
//
//       struct
//       {
//         float4x4 gWorldToLight;
//
//         struct
//         {
//           float fScale;
//           float3 vTranslate;
//         } gCascadeOffset[3];
//
//         float4 uvScaleOffset[4];
//         int extraCascadeIndex;
//         float cascadeRange;
//         float2 linearizeConstants;
//         float filterSize;
//         float shadowFade;
//         float shadowBias;
//         float padd;
//       } gShadowTransmittanceInfo;
//
//
//       struct
//       {
//         float4x4 gWorldToLight;
//
//         struct
//         {
//           float fScale;
//           float3 vTranslate;
//         } gCascadeOffset[3];
//
//         float4 uvScaleOffset[4];
//         int extraCascadeIndex;
//         float cascadeRange;
//         float2 linearizeConstants;
//         float filterSize;
//         float shadowFade;
//         float shadowBias;
//         float padd;
//       } gExtraCascadeShadowInfo[16];
//
//
//       struct
//       {
//         float4x4 mat;
//       } projectors[4];
//
//     } lightBuffer;
//
//
//     struct
//     {
//       float gDebugAmbientAmount;
//       float gDebugDiffuseAmount;
//       float gDebugSpecularAmount;
//       float gDebugEnvmapAmount;
//       float3 g_GPUDebugOverridePositionXYZ;
//       float gDebugAOAmount;
//       float g_GPUDebugOn;
//       float g_GPUDebugOverridePositionEnable;
//       float g_skinSpecSecondLobeShift;
//       float g_skinSpecSecondProportion;
//       float g_thinScatteringAnisotropy;
//       float g_volumetricScatteringAnisotropy;
//       float g_volumetricSpecularScatteringAnisotropy;
//       float g_skinScatteringAnisotropy;
//       float g_volumetricScatteringNormalBend;
//       float g_volumetricSpecularScatteringNormalBend;
//       float g_hairSpecSecondLobeShift;
//       float g_hairSpecSecondProportion;
//       float g_isHDRRendering;
//       float g_defaultSceneToScreenPower;
//       float g_defaultWhiteLevel;
//       float padding0;
//       int g_flags;
//       float g_reflectionOcclusionFalloff;
//       float padding1;
//       float padding2;
//
//       struct
//       {
//         float3 cFogColor;
//         float cHeightFalloff;
//         float3 cEyePosition;
//         float cHeightDensity;
//         float cStartDistance;
//         float cGlobalDensity;
//         float cDepthReprojectScale;
//         float cDepthReprojectBias;
//         float4x4 cInvProjNoZReproj;
//         float3 cDirectionalFogDirection;
//         float cDirectionalityPower;
//         float3 cDirectionalFogColor;
//         float cDensityMapSparseBias;
//         float3 cDensityMapInvExtents;
//         float cDensityMapSparseSegmentScale;
//         float3 cDensityMapBias;
//         float cDensityMapSparseCutoff;
//         float cVolFogExponentMultiply;
//         float cVolFogDistanceMultiply;
//         float cVolFogExponentNormalize;
//         float cVolFogDistanceNormalize;
//         float cVolFogResolutionScale;
//         int cVolFogWidth;
//         int cVolFogHeight;
//         int cVolFogDepth;
//       } atmosphericConstants;
//
//     } environmentBuffer;
//
//     float4x4 worldToBoatCap;
//     float3 cameraPosInBoatSpace;
//     float automaticWetnessFromHeightHeight;
//     float automaticWetnessFromHeightTransitionDistance;
//     float automaticWetnessFromHeightAmount;
//
//     struct
//     {
//       float3 WBMatrixR;
//       float3 WBMatrixG;
//       float3 WBMatrixB;
//       float EnableLocalAdaptation;
//       float Adaptation_Exposure;
//       float ExposureEV;
//       float ExposureEVClampMin;
//       float ExposureEVClampMax;
//       float LocalAdaptationShadows;
//       float LocalAdaptationHighlights;
//       int Tonemapping_Curve;
//       float Contrast;
//       float HDRMax;
//       float HDRWhite;
//       float ContrastTimesShoulder;
//       float ChannelCrossTalk;
//       float PrecomputedBMult;
//       float PrecomputedCAdd;
//       float SceneToScreenPower;
//       float IsHDRRendering;
//       float DebugHDRRendering;
//       float DebugHDRRenderingPhase;
//       float DebugNoHDRRendering;
//       float ShowWaveform;
//     } calibrationTonemappingConstants;
//
//     float4 userClipPlane0;
//     float4 userClipPlane1;
//   } resourceTables__passData : packoffset(c0);
//
//
// SamplerState resourceTables__viewData__smpLinear_s : register(s1);
// SamplerState resourceTables__viewData__smpLowAniso_s : register(s2);
// SamplerState resourceTables__viewData__smpLinearClamp_s : register(s5);
// SamplerComparisonState resourceTables__viewData__smpComparison_s : register(s7);
// Texture2D<float> resourceTables__passData.shadowTexture : register(t2);
// Texture2D<float4> resourceTables__passData.shadowTransmittanceTexture0 : register(t3);
// Texture2D<float4> resourceTables__passData.shadowTransmittanceTexture1 : register(t4);
// Texture2D<float2> resourceTables__passData.ambientBRDFMap : register(t7);
// Texture3D<float4> resourceTables__passData.volumetricFog : register(t8);
// Texture2D<float4> resourceTables__passData.ProjTextureMaps_0_ : register(t11);
// Texture2D<float4> resourceTables__passData.ProjTextureMaps_1_ : register(t12);
// Texture2D<float4> resourceTables__passData.ProjTextureMaps_2_ : register(t13);
// Texture2D<float4> resourceTables__passData.ProjTextureMaps_3_ : register(t14);
// StructuredBuffer<CustomRTTransform> resourceTables__modelData.customRTs : register(t20);
// TextureCube<float4> resourceTables__batchData.m_EnvironmentMap : register(t21);
// Texture3D<float4> resourceTables__batchData.giVolumesInd_0 : register(t22);
// Texture3D<float4> resourceTables__batchData.giVolumesSH0_0 : register(t23);
// Texture3D<float4> resourceTables__batchData.giVolumesSH1_0 : register(t24);
// Texture3D<float4> resourceTables__batchData.giVolumesSH2_0 : register(t25);
// Texture3D<float4> resourceTables__batchData.giVolumesSH3_0 : register(t26);
// Texture2D<float4> resourceTables__materialData.material_screenspaceparallax : register(t42);
// Texture2D<float4> resourceTables__materialData.layer_2__diffuse : register(t43);
// Texture2D<float4> resourceTables__materialData.layer_2__opacity : register(t44);
// Texture2D<float4> resourceTables__materialData.layer_2__alpha : register(t45);
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Texture2D<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : SV_POSITION0,
//   uint v1 : VERT_ID0,
//   float2 v2 : TEXCOORD0,
//   float3 v3 : NORMAL0,
//   float3 v4 : TANGENT0,
//   float3 v5 : BINORMAL0,
//   float4 v6 : TEXCOORD7,
//   float3 v7 : TEXCOORD8,
//   out float4 o0 : SV_Target0,
//   out float oDepth : SV_Depth)
// {
//   Textures: = dot(t0-t14, );
//   Textures: = rsqrt(t15-t20);
//   Textures: =  * t21-t26;
//   float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20,r21,r22,r23,r24,r25;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   float4 x0[16];
//   float4 x1[8];
//   r0.x = [v3.x].val[v3.x/4];
//   r0.y = [v3.x].val[v3.x/4+1];
//   r0.z = [v3.x].val[v3.x/4+2];
//   r0.w = [v3.x].val[v3.x/4+3];
//   r0.x = [r0.x].val[/4];
//   r0.y = [r0.x].val[/4+1];
//   r0.z = [r0.x].val[/4+2];
//   r0.w = [r0.x].val[/4+3];
//   r0.x = [r0.x].val[v3.x/4];
//   r0.y = [r0.x].val[v3.x/4+1];
//   r0.z = [r0.x].val[v3.x/4+2];
//   r0.w = [r0.x].val[v3.x/4+3];
//   r1.x = resourceTables__modelData.customRTs[0].ws2ts._m00;
//   r1.y = resourceTables__modelData.customRTs[0].ws2ts._m10;
//   r1.z = resourceTables__modelData.customRTs[0].ws2ts._m20;
//   r1.w = resourceTables__modelData.customRTs[0].ws2ts._m30;
//   r2.x = resourceTables__modelData.customRTs[0].ws2ts._m01;
//   r2.y = resourceTables__modelData.customRTs[0].ws2ts._m11;
//   r2.z = resourceTables__modelData.customRTs[0].ws2ts._m21;
//   r2.w = resourceTables__modelData.customRTs[0].ws2ts._m31;
//   r3.x = resourceTables__modelData.customRTs[0].ws2ts._m03;
//   r3.y = resourceTables__modelData.customRTs[0].ws2ts._m13;
//   r3.z = resourceTables__modelData.customRTs[0].ws2ts._m23;
//   r3.w = resourceTables__modelData.customRTs[0].ws2ts._m33;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// error X3506: unrecognized compiler target '                                        // Textures:  t0-t14'
/////////////////////////////////////////////////////////////////////////////
