//Shadows PS from cache.
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v1.3.16 on Fri Jan 14 20:08:17 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
//
// }
//
// 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 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.bilateralVectorsTex    texture  float2          2d    5        1
// resourceTables__passData.ssaoTex    texture  float4          2d    6        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__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.layer_0_1__diffuse    texture  float4          2d   41        1
// resourceTables__materialData.layer_0_1__normal    texture  float4          2d   42        1
// resourceTables__materialData.layer_0_1__gloss    texture  float4          2d   43        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                 8   xyz         6     NONE   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
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) t5
dcl_resource_texture2d (float,float,float,float) t6
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_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) t41
dcl_resource_texture2d (float,float,float,float) t42
dcl_resource_texture2d (float,float,float,float) t43
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_output o0.xyzw
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
mul r0.xy, v0.xyxx, cb3[32].zwzz
mad r1.xy, r0.xyxx, l(2.000000, -2.000000, 0.000000, 0.000000), l(-1.000000, 1.000000, 0.000000, 0.000000)
mad r0.w, v0.z, cb3[35].z, cb3[35].w
rcp r0.w, r0.w
mov r2.z, -r0.w
mul r2.xy, r1.xyxx, r2.zzzz
mov r2.w, l(1.000000)

add r40.w, r2.z, -r40.y
mad r2.x, -r40.x, r40.w, r2.x

dp4 r1.x, r2.xyzw, cb3[12].xyzw
dp4 r1.y, r2.xyzw, cb3[13].xyzw
dp4 r1.z, r2.xyzw, cb3[14].xyzw
dp3 r0.w, v3.xyzx, v3.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, v3.xyzx
sample_indexable(texture2d)(float,float,float,float) r3.xyzw, v2.xyxx, t41.wxyz, s2
mov_sat r3.x, r3.x
sample_indexable(texture2d)(float,float,float,float) r4.xyz, v2.xyxx, t42.xyzw, s2
mad r4.xyz, r4.xyzx, l(2.007874, 2.007874, 2.007874, 0.000000), l(-1.007874, -1.007874, -1.007874, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r5.xy, v2.xyxx, t43.xwyz, s2
dp3 r0.w, r4.xyzx, r4.xyzx
sqrt r0.w, r0.w
max r6.x, r0.w, l(0.000010)
rcp r0.w, r6.x
mul r4.xyz, r0.wwww, r4.xyzx
mul r0.w, r5.y, r5.y
mul r0.w, r0.w, l(0.160000)
dp3 r2.w, v4.xyzx, v4.xyzx
rsq r2.w, r2.w
mul r5.yzw, r2.wwww, v4.yyzx
dp3 r2.w, v5.xyzx, v5.xyzx
rsq r2.w, r2.w
mul r7.xyz, r2.wwww, v5.yzxy
dp3 r2.w, r4.xyzx, r4.xyzx
rsq r2.w, r2.w
mul r4.xyz, r2.wwww, r4.xyzx
mul r7.xyz, r7.xyzx, r4.yyyy
mad r4.xyw, r4.xxxx, r5.yzyw, r7.xyxz
mad r4.xyz, r4.zzzz, r2.yzxy, r4.xywx
dp3 r2.w, r4.xyzx, r4.xyzx
rsq r2.w, r2.w
mul r5.yzw, r2.wwww, r4.xxyz
ne r4.w, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].z
deriv_rtx_fine r7.xyz, r2.xyzx
deriv_rty_fine r2.xyz, r2.xyzx
dp3 r6.z, r7.xyzx, r7.xyzx
dp3 r2.x, r2.xyzx, r2.xyzx
add r2.x, r2.x, r6.z
min r6.y, r2.x, l(0.300000)
movc r2.xy, r4.wwww, l(1.000000,0,0,0), r6.xyxx
add r2.z, -r5.x, l(1.000000)
mul r2.z, r2.z, r2.z
max r2.x, r2.x, l(0.600000)
mad r2.x, r2.x, l(-0.527635), l(0.520718)
max r2.x, r2.x, l(0.000000)
mad r2.x, r2.z, r2.z, r2.x
add r2.x, r2.y, r2.x
sqrt r2.x, r2.x
min r2.x, r2.x, l(1.000000)
max r2.x, r2.x, l(0.001000)
sqrt r2.x, r2.x
add r2.x, -r2.x, l(1.000000)
ftoi r6.xy, v0.xyxx
min r0.w, r0.w, l(0.160000)
add r7.xyz, -r1.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 r2.y, r7.xyzx, r7.xyzx
rsq r2.y, r2.y
mul r8.xyz, r2.yyyy, r7.xyzx
mov r6.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r6.zw, r6.xyzw, t5.zwxy
mul r6.zw, r6.zzzw, cb3[32].zzzw
mad r6.zw, r6.zzzw, l(0.000000, 0.000000, 8.000000, 8.000000), r0.xxxy
sample_l_indexable(texture2d)(float,float,float,float) r9.xzw, r6.zwzz, t6.yxzw, s5, l(0.000000)
and r6.zw, l(0, 0, 1, 0x80000000), cb0[829].xxxx
mad r10.yzw, r9.xxzw, l(0.000000, 2.000000, 2.000000, 2.000000), l(0.000000, -1.000000, -1.000000, -1.000000)
dp3 r2.z, r10.yzwy, r10.yzwy
sqrt r10.x, r2.z
mov r9.yzw, l(0,0,0,0)
movc r9.xyzw, r6.zzzz, r10.xyzw, r9.xyzw
add r10.x, -r2.x, l(1.000000)
mul r2.x, r10.x, r10.x
max r2.x, r2.x, l(0.001000)
mul r2.z, r10.x, r2.x
dp3 r4.w, -r8.yzxy, r5.yzwy
add r4.w, r4.w, r4.w
mad r11.xyz, r5.yzwy, -r4.wwww, -r8.yzxy
mad r12.xyz, r4.xyzx, r2.wwww, -r11.xyzx
mad r11.xyz, r2.zzzz, r12.xyzx, r11.xyzx
dp3 r4.w, r11.xyzx, r11.xyzx
rsq r4.w, r4.w
mul r11.xyz, r4.wwww, r11.xyzx
if_nz r6.w
  and r4.w, l(2), cb0[829].x
  log r5.x, r9.x
  mul r5.x, r5.x, l(2.750000)
  exp r5.x, r5.x
  mad r4.xyz, r4.zxyz, r2.wwww, -r8.xyzx
  mad r4.xyz, r5.xxxx, r4.xyzx, r8.xyzx
  dp3 r2.w, r4.xyzx, r4.xyzx
  rsq r2.w, r2.w
  mul r4.xyz, r2.wwww, r4.xyzx
  mul r4.xyz, r9.xxxx, r4.xyzx
  movc r4.xyz, r4.wwww, r9.yzwy, r4.xyzx
  dp3 r2.w, r4.xyzx, r4.xyzx
  sqrt r2.w, r2.w
  min r2.w, r2.w, l(1.000000)
  add r4.w, -r2.w, l(1.000000)
  dp3 r4.x, r11.zxyz, r4.xyzx
  div_sat r4.x, r4.x, r2.w
  add r4.x, -r4.x, r4.w
  div_sat r4.x, r4.x, cb0[829].y
  add r4.x, -r4.x, l(1.000000)
  add r2.w, r2.w, -r4.x
  mad r2.z, r2.z, r2.w, r4.x
else
  mov r2.z, l(1.000000)
endif
min r2.z, r2.z, l(1.000000)
mul r4.xy, l(-1.000000, 1.000000, 0.000000, 0.000000), cb2[71].xyxx
mul r4.xy, r4.xyxx, r11.yyyy
mad r4.xz, r11.zzzz, cb2[71].yyxy, r4.xxyx
dp3 r2.w, r5.wyzw, r8.xyzx
mov r1.w, l(1.000000)
dp4 r12.x, cb2[72].xyzw, r1.xyzw
dp4 r12.y, cb2[73].xyzw, r1.xyzw
dp4 r12.z, cb2[74].xyzw, r1.xyzw
mov r4.y, r11.x
dp3 r13.x, cb2[72].xyzx, r4.xyzx
dp3 r13.y, cb2[73].xyzx, r4.xyzx
dp3 r13.z, cb2[74].xyzx, r4.xyzx
div r9.yzw, l(1.000000, 1.000000, 1.000000, 1.000000), r13.xxyz
lt r14.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r13.xyzx
lt r13.xyz, r13.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
iadd r13.xyz, -r14.xyzx, r13.xyzx
itof r13.xyz, r13.xyzx
mad r12.xyz, r13.xyzx, cb2[75].xyzx, -r12.xyzx
mul r9.yzw, r9.yyzw, r12.xxyz
lt r12.xyz, r9.yzwy, l(0.000000, 0.000000, 0.000000, 0.000000)
movc r9.yzw, r12.xxyz, l(0,99999997952.000000,99999997952.000000,99999997952.000000), r9.yyzw
min r4.w, r9.w, r9.z
min r4.w, r4.w, r9.y
mad r4.xyz, r4.xyzx, r4.wwww, r1.xyzx
add r4.xyz, r4.xyzx, -cb2[76].xyzx
dp3 r4.w, r4.xyzx, r4.xyzx
rsq r4.w, r4.w
mul r4.xyz, r4.wwww, r4.xyzx
mul r12.yzw, r4.yyzx, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r12.x, l(0.282094806)
dp4 r4.w, r12.xyzw, cb2[68].xyzw
dp4 r5.x, r12.xyzw, cb2[69].xyzw
dp4 r6.z, r12.xyzw, cb2[70].xyzw
rcp r12.x, r4.w
rcp r12.y, r5.x
rcp r12.z, r6.z
iadd r4.w, l(-3), cb2[71].z
utof r4.w, r4.w
mul r4.w, r4.w, r10.x
lt r5.x, r4.w, l(1.000000)
mad_sat r6.z, r4.w, l(2.000000), l(-1.000000)
movc r4.w, r5.x, r6.z, r4.w
sample_l_indexable(texturecube)(float,float,float,float) r4.xyz, r4.xyzx, t21.xyzw, s5, r4.w
mul r4.xyz, r12.xyzx, r4.xyzx
sqrt r10.y, |r2.w|
mad r9.yzw, r10.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) r6.zw, r9.yzyy, t7.zwxy, s5, l(0.000000)
mad r4.w, r0.w, r6.z, r6.w
mul r4.xyz, r4.wwww, r4.xyzx
mul r10.yzw, r1.yyyy, cb2[9].xxzy
mad r10.yzw, cb2[8].xxzy, r1.xxxx, r10.yyzw
mad r10.yzw, cb2[10].xxzy, r1.zzzz, r10.yyzw
add r10.yzw, r10.yyzw, cb2[11].xxzy
lt r12.xyz, |r10.ywzy|, l(0.500000, 0.500000, 0.500000, 0.000000)
and r4.w, r12.y, r12.x
and r4.w, r12.z, r4.w
if_nz r4.w
  add r10.yzw, r10.yyzw, l(0.000000, 0.500000, 0.500000, 0.500000)
  and r4.w, l(1), cb2[27].x
  if_nz r4.w
    utof r12.xyz, cb2[15].xyzx
    mul r12.xyz, r10.yzwy, 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 r4.w, r14.z
    mad r14.x, r4.w, l(4.000000), r14.x
    mad r14.z, r13.z, l(63.750000), -r4.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 r10.yzw, r12.xxyz, r13.xxyz
  endif
  sample_l_indexable(texture3d)(float,float,float,float) r12.xyzw, r10.yzwy, t23.xyzw, s5, l(0.000000)
  mul r12.xyzw, r12.xyzw, cb2[26].xyzw
  sample_l_indexable(texture3d)(float,float,float,float) r13.xyzw, r10.yzwy, t24.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r14.xyzw, r10.yzwy, t25.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r15.xyzw, r10.yzwy, 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 r15.xyzw, r15.xyzw, cb2[24].xyzw, cb2[23].xyzw
  mul r13.xyzw, r13.xyzw, cb2[26].xyzw
  mul r14.xyzw, r14.xyzw, cb2[26].xyzw
  mul r15.xyzw, r15.xywz, cb2[26].xywz
  mov r16.x, r15.z
  mov r16.y, r13.w
  mov r16.z, r14.w
  dp3 r17.w, cb2[12].xyzx, r16.xyzx
  dp3 r17.y, cb2[13].xyzx, r16.xyzx
  dp3 r17.z, cb2[14].xyzx, r16.xyzx
  mul r10.yzw, r5.wwyz, cb0[2].xxxx
  mul r16.xyz, r10.zzzz, cb2[13].yzxy
  mad r16.xyz, cb2[12].yzxy, r10.yyyy, r16.xyzx
  mad r10.yzw, cb2[14].yyzx, r10.wwww, r16.xxyz
  mul r16.yzw, r10.yyzw, l(0.000000, 0.325735033, 0.325735033, 0.325735033)
  mov r16.x, l(0.282094806)
  mov r18.x, r12.x
  mov r18.y, r13.x
  mov r18.z, r14.x
  mov r18.w, r15.x
  dp4 r19.x, r16.xyzw, r18.xyzw
  mov r20.x, r12.y
  mov r20.y, r13.y
  mov r20.z, r14.y
  mov r20.w, r15.y
  dp4 r19.y, r16.xyzw, r20.xyzw
  mov r15.x, r12.z
  mov r15.y, r13.z
  mov r15.z, r14.z
  dp4 r19.z, r16.xyzw, r15.xyzw
  max r10.yzw, r19.xxyz, l(0.000000, 0.000000, 0.000000, 0.000000)
  mul r12.xyz, r11.zxyz, cb0[2].yyyy
  mul r13.xyz, r12.yyyy, cb2[13].yzxy
  mad r13.xyz, cb2[12].yzxy, r12.xxxx, r13.xyzx
  mad r12.xyz, cb2[14].yzxy, r12.zzzz, r13.xyzx
  mul r13.yzw, r12.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
  mov r13.x, l(0.282094806)
  dp4 r12.x, r13.xyzw, r18.xyzw
  dp4 r12.y, r13.xyzw, r20.xyzw
  dp4 r12.z, r13.xyzw, r15.xyzw
  max r12.xyz, r12.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  mov r17.x, r12.w
else
  mov r17.xyzw, cb0[3].xyzw
  mov r10.yzw, l(0,0,0,0)
  mov r12.xyz, l(0,0,0,0)
endif
dp3 r4.w, r12.xyzx, l(0.300000, 0.300000, 0.400000, 0.000000)
add r12.xyz, -r4.wwww, r12.xyzx
mad r12.xyz, cb0[2].zzzz, r12.xyzx, r4.wwww
mul r13.xyz, r11.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, r17.xyzw
mul r11.yzw, r11.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r11.x, l(0.282094806)
dp4 r13.x, r11.xyzw, cb0[25].xyzw
dp4 r13.y, r11.xyzw, cb0[26].xyzw
dp4 r13.z, r11.xyzw, cb0[27].xyzw
max r11.xyz, r13.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r11.xyz, r4.wwww, r11.xyzx, r12.xyzx
mul r4.xyz, r4.xyzx, r11.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 r6.xy, r6.yxyy
mul r6.xy, r6.xyxx, l(4159.000000, 3169.000000, 0.000000, 0.000000)
add r4.w, r6.y, r6.x
mul r4.w, r4.w, l(0.159154937)
frc r4.w, r4.w
mul r4.w, r4.w, l(39.478420)
sincos r5.x, r6.x, r4.w
mov r11.x, -r5.x
dp4 r12.x, r1.xyzw, cb0[586].xyzw
dp4 r12.y, r1.xyzw, cb0[587].xyzw
dp4 r4.w, r1.xyzw, cb0[588].xyzw
dp4 r6.y, r1.xyzw, cb0[589].xyzw
div r6.zw, r12.xxxy, r6.yyyy
lt r9.yz, l(0.000000, 1.000000, 1.000000, 0.000000), |r6.zzwz|
or r7.w, r9.z, r9.y
max r8.w, |r6.w|, |r6.z|
mad r8.w, r8.w, l(1.05263162), l(-1.000000)
mul_sat r8.w, r8.w, l(20.000000)
movc r8.w, r7.w, l(0), r8.w
add r2.w, |r2.w|, l(0.001000)
mad r6.zw, r6.zzzw, l(0.000000, 0.000000, 0.500000, -0.500000), l(0.000000, 0.000000, 0.500000, 0.500000)
sample_l_indexable(texture2d)(float,float,float,float) r12.xyzw, r6.zwzz, t3.xyzw, s5, l(0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r13.xyzw, r6.zwzz, t4.xyzw, s5, l(0.000000)
div r4.w, r4.w, r6.y
max r4.w, r4.w, l(0.000000)
min r4.w, r4.w, l(0.999990)
mul r6.y, r4.w, l(8.000000)
round_ni r6.y, r6.y
ftoi r6.z, r6.y
ilt r6.w, r6.z, l(7)
iadd r9.y, r6.z, l(1)
movc r6.w, r6.w, r9.y, l(7)
mad r4.w, r4.w, l(8.000000), -r6.y
add r6.y, -r2.w, l(1.000000)
mul r9.y, r6.y, r6.y
mul r9.y, r9.y, r9.y
mul r6.y, r6.y, r9.y
add r9.y, -r0.w, l(1.000000)
mov r11.y, r6.x
mov r14.z, l(1.000000)
mov r15.z, l(1.000000)
mov r16.z, l(1.000000)
mov r18.z, l(1.000000)
mov r19.z, l(0)
mov r11.z, r5.x
mov r20.xyz, l(0,0,0,0)
mov r21.xyz, l(0,0,0,0)
mov r5.x, l(0)
loop
  uge r6.x, r5.x, cb2[0].z
  breakc_nz r6.x
  imul null, r14.yw, l(0, 5, 0, 13), cb2[r5.x + 0].xxxx
  ushr r6.x, cb0[r14.y + 58].w, l(30)
  dp4 r22.x, r1.xyzw, cb0[r14.w + 378].xyzw
  dp4 r22.y, r1.xyzw, cb0[r14.w + 379].xyzw
  dp4 r22.z, r1.xyzw, cb0[r14.w + 380].xyzw
  ine r9.z, r6.x, l(2)
  if_nz r9.z
    dp4 r11.w, r1.xyzw, cb0[r14.w + 381].xyzw
    lt r15.yw, r11.wwww, |r22.xxxy|
    or r15.y, r15.w, r15.y
    lt r15.w, r11.w, l(0.000000)
    or r15.y, r15.w, r15.y
    if_nz r15.y
      mov r23.xyz, l(0,0,0,0)
    else
      div r23.xyz, r22.xyzx, r11.wwww
      mad r23.xy, r23.xyxx, cb0[r14.w + 385].xyxx, cb0[r14.w + 385].zwzz
    endif
    mov r15.w, l(0)
  else
    lt r16.y, r22.z, l(0.000000)
    lt r16.w, l(1.000000), r22.z
    or r15.w, r16.w, r16.y
    if_z r15.w
      add r16.y, l(1.000000), cb0[r14.w + 390].x
      dp2 r16.y, cb0[0].yyyy, r16.yyyy
      add r16.y, -r16.y, l(1.000000)
      mov r14.x, cb0[r14.w + 382].x
      mad r24.xyz, r22.xyzx, r14.xxzx, cb0[r14.w + 382].yzwy
      mov r15.x, cb0[r14.w + 383].x
      mad r25.xyz, r22.xyzx, r15.xxzx, cb0[r14.w + 383].yzwy
      mov r16.x, cb0[r14.w + 384].x
      mad r26.xyz, r22.xyzx, r16.xxzx, cb0[r14.w + 384].yzwy
      lt r16.xw, |r22.xxxy|, r16.yyyy
      and r14.x, r16.w, r16.x
      lt r16.xw, |r24.xxxy|, r16.yyyy
      and r15.x, r16.w, r16.x
      lt r16.xw, |r25.xxxy|, r16.yyyy
      and r16.x, r16.w, r16.x
      lt r16.yw, |r26.xxxy|, r16.yyyy
      and r16.y, r16.w, r16.y
      mad r26.xy, r26.xyxx, cb0[r14.w + 388].xyxx, cb0[r14.w + 388].zwzz
      mad r25.xy, r25.xyxx, cb0[r14.w + 387].xyxx, cb0[r14.w + 387].zwzz
      movc r25.xyz, r16.xxxx, r25.xyzx, r26.xyzx
      mad r24.xy, r24.xyxx, cb0[r14.w + 386].xyxx, cb0[r14.w + 386].zwzz
      movc r24.xyz, r15.xxxx, r24.xyzx, r25.xyzx
      mov r18.xy, cb0[r14.w + 385].xyxx
      mov r19.xy, cb0[r14.w + 385].zwzz
      mad r18.xyw, r22.xyxz, r18.xyxz, r19.xyxz
      movc r23.xyz, r14.xxxx, r18.xywx, r24.xyzx
      movc r16.y, r16.y, l(3), l(-1)
      movc r16.x, r16.x, l(2), r16.y
      movc r15.x, r15.x, l(1), r16.x
      movc r15.y, r14.x, l(0), r15.x
    else
      mov r23.xyz, l(0,0,0,0)
      mov r15.y, l(0)
    endif
    mov r11.w, l(-1)
  endif
  movc r11.w, r15.w, r11.w, r15.y
  ige r11.w, r11.w, l(0)
  if_nz r11.w
    mul r11.w, l(0.500000), cb0[r14.w + 390].x
    mul r22.xyzw, r11.wwww, cb0[1].xyxy
    mul r24.xyzw, r11.yzyz, r22.zwzw
    mad r25.xyzw, r24.zwzw, l(-0.550705791, -0.550705791, 0.924529552, 0.924529552), r23.xyxy
    mul r22.xyzw, r11.xyxy, r22.xyzw
    mad r25.xyzw, r22.zwzw, l(0.495261461, 0.495261461, -0.131719455, -0.131719455), r25.xyzw
    mov_sat r23.z, r23.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r11.w, r25.xyxx, t2.xxxx, s7, r23.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r14.x, r25.zwzz, t2.xxxx, s7, r23.z
    add r11.w, r11.w, r14.x
    mad r25.xyzw, r24.zwzw, l(0.389092624, 0.389092624, -0.182296202, -0.182296202), r23.xyxy
    mad r25.xyzw, r22.zwzw, l(0.862155199, 0.862155199, -0.714493573, -0.714493573), r25.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r14.x, r25.xyxx, t2.xxxx, s7, r23.z
    add r11.w, r11.w, r14.x
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r14.x, r25.zwzz, t2.xxxx, s7, r23.z
    add r11.w, r11.w, r14.x
    mad r24.xyzw, r24.xyzw, l(-0.00643500872, -0.00643500872, -0.432008445, -0.432008445), r23.xyxy
    mad r22.xyzw, r22.xyzw, l(0.191590905, 0.191590905, -0.168338627, -0.168338627), r24.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r14.x, r22.xyxx, t2.xxxx, s7, r23.z
    add r11.w, r11.w, r14.x
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r14.x, r22.zwzz, t2.xxxx, s7, r23.z
    add r11.w, r11.w, r14.x
    mul r11.w, r11.w, l(0.166666672)
  else
    mov r11.w, l(1.000000)
  endif
  add_sat r11.w, r11.w, cb0[r14.w + 390].y
  ieq r6.x, r6.x, l(2)
  if_nz r6.x
    if_nz r7.w
      mov r14.x, l(1.000000)
    endif
    if_z r7.w
      mov x1[0].x, r12.x
      mov x1[1].x, r12.y
      mov x1[2].x, r12.z
      mov x1[3].x, r12.w
      mov x1[4].x, r13.x
      mov x1[5].x, r13.y
      mov x1[6].x, r13.z
      mov x1[7].x, r13.w
      mov r15.x, x1[r6.z + 0].x
      mov r15.y, x1[r6.w + 0].x
      add r15.y, -r15.x, r15.y
      mad r15.x, r4.w, r15.y, r15.x
      exp r15.x, -r15.x
      add r15.x, r8.w, r15.x
      min r14.x, r15.x, l(1.000000)
    endif
  else
    mov r14.x, l(1.000000)
  endif
  ine r15.x, l(-1), cb0[r14.w + 389].x
  and r15.x, r6.x, r15.x
  if_nz r15.x
    imul null, r14.w, l(13), cb0[r14.w + 389].x
    dp4 r15.x, r1.xyzw, cb0[r14.w + 601].xyzw
    lt r15.y, r15.x, l(0.000000)
    lt r15.w, l(1.000000), r15.x
    or r15.y, r15.w, r15.y
    if_z r15.y
      dp4 r16.x, r1.xyzw, cb0[r14.w + 599].xyzw
      dp4 r16.y, r1.xyzw, cb0[r14.w + 600].xyzw
      mad r18.xy, r16.xyxx, cb0[r14.w + 606].xyxx, cb0[r14.w + 606].zwzz
      lt r16.xy, l(1.000000, 1.000000, 0.000000, 0.000000), |r16.xyxx|
      or r15.w, r16.y, r16.x
    else
      mov r18.xy, l(0,0,0,0)
      mov r15.xw, l(0,0,0,0)
    endif
    ige r15.w, r15.w, l(0)
    movc r15.y, r15.y, l(0), r15.w
    if_nz r15.y
      mov_sat r15.x, r15.x
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r15.x, r18.xyxx, t2.xxxx, s7, r15.x
    else
      mov r15.x, l(1.000000)
    endif
    add_sat r14.w, r15.x, cb0[r14.w + 611].y
    mul r11.w, r11.w, r14.w
  endif
  ige r14.w, cb0[r14.y + 62].x, l(0)
  if_nz r14.w
    ishl r14.w, cb0[r14.y + 62].x, l(2)
    mov r22.x, x0[r14.w + 0].x
    mov r23.x, x0[r14.w + 1].x
    mov r24.x, x0[r14.w + 3].x
    mov r22.y, x0[r14.w + 0].y
    mov r23.y, x0[r14.w + 1].y
    mov r24.y, x0[r14.w + 3].y
    mov r22.z, x0[r14.w + 0].z
    mov r23.z, x0[r14.w + 1].z
    mov r24.z, x0[r14.w + 3].z
    mov r22.w, x0[r14.w + 0].w
    mov r23.w, x0[r14.w + 1].w
    mov r24.w, x0[r14.w + 3].w
    dp4 r15.x, r1.xyzw, r22.xyzw
    dp4 r15.y, r1.xyzw, r23.xyzw
    dp4 r14.w, r1.xyzw, r24.xyzw
    div r15.xy, r15.xyxx, r14.wwww
    sample_l_indexable(texture2d)(float,float,float,float) r16.xyw, r15.xyxx, t11.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r18.xyw, r15.xyxx, t12.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r19.xyw, r15.xyxx, t13.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r15.xyw, r15.xyxx, t14.xywz, s1, l(0.000000)
    ieq r22.xyz, l(1, 2, 3, 0), cb0[r14.y + 62].xxxx
    movc r16.xyw, r22.xxxx, r18.xyxw, r16.xyxw
    movc r16.xyw, r22.yyyy, r19.xyxw, r16.xyxw
    movc r15.xyw, r22.zzzz, r15.xyxw, r16.xyxw
  else
    mov r15.xyw, l(1.000000,1.000000,0,1.000000)
  endif
  and r14.w, cb1[0].x, cb0[r14.y + 58].w
  add r16.xyw, -r1.xyxz, cb0[r14.y + 59].xyxz
  dp3 r18.x, r16.xywx, r16.xywx
  rsq r18.y, r18.x
  mul r16.xyw, r16.xyxw, r18.yyyy
  add r18.y, r18.x, -cb0[r14.y + 59].w
  max r18.y, r18.y, l(0.001000)
  rcp r18.y, r18.y
  mad r18.y, cb0[r14.y + 59].w, r18.y, l(1.000000)
  rsq r18.y, r18.y
  add r18.y, -r18.y, l(1.000000)
  mul r18.y, r18.y, l(6.28318548)
  mul r18.x, r18.x, r18.x
  mad_sat r18.x, -r18.x, cb0[r14.y + 60].x, l(1.000000)
  mul r18.x, r18.x, r18.x
  mul r18.x, r18.x, r18.y
  dp3_sat r18.y, cb0[r14.y + 61].xyzx, r16.xywx
  add_sat r18.y, r18.y, -cb0[r14.y + 60].z
  mul_sat r18.y, r18.y, cb0[r14.y + 60].y
  mul r18.w, r18.y, r18.y
  mad r18.y, -r18.y, l(2.000000), l(3.000000)
  mul r18.y, r18.y, r18.w
  mul r18.x, r18.y, r18.x
  movc r16.xyw, r6.xxxx, cb0[r14.y + 61].xyxz, r16.xyxw
  movc r6.x, r6.x, cb0[r14.y + 61].w, r18.x
  movc r16.xyw, r14.wwww, r16.xyxw, l(0,1.000000,0,0)
  movc r6.x, r14.w, r6.x, l(0)
  mad_sat r14.w, -r6.x, l(0.159154937), l(1.000000)
  mad r18.x, r14.w, l(-0.156583), l(1.57079637)
  add r14.w, -r14.w, l(1.000000)
  sqrt r14.w, r14.w
  mul r14.w, r14.w, r18.x
  movc r9.z, r9.z, r14.w, cb0[r14.y + 60].w
  mad_sat r9.z, r9.z, l(0.318309873), r2.x
  add r14.w, -r2.x, r9.z
  mad r14.w, -r14.w, r14.w, l(1.000000)
  sqrt r14.w, r14.w
  dp3 r18.x, r5.wyzw, r16.xywx
  max r14.w, r14.w, l(0.950000)
  add r18.y, -r14.w, l(1.000000)
  rsq r18.w, r18.y
  mul r18.y, r18.w, r18.y
  mul r19.x, r18.x, l(0.373837)
  mul r18.y, r18.y, l(0.668740)
  mad r19.y, r18.x, l(0.373837), r18.y
  ge r18.y, r18.y, |r19.x|
  mul r19.x, r19.y, r19.y
  mul r18.w, r18.w, r19.x
  mov_sat r18.x, r18.x
  movc r18.x, r18.y, r18.w, r18.x
  mul r14.w, r14.w, r18.x
  min r18.x, r14.w, l(1.000000)
  mul r19.xyw, r18.xxxx, l(0.318309873, 0.318309873, 0.000000, 0.318309873)
  lt r18.y, l(0.000000), r14.w
  if_nz r18.y
    mad r16.xyw, r7.xyxz, r2.yyyy, r16.xyxw
    dp3 r18.y, r16.xywx, r16.xywx
    rsq r18.y, r18.y
    mul r16.xyw, r16.xyxw, r18.yyyy
    dp3 r18.y, r5.wyzw, r16.xywx
    dp3 r16.x, r8.xyzx, r16.xywx
    mul r16.y, r16.x, r16.x
    dp2 r16.y, r16.yyyy, r10.xxxx
    mad r16.y, r10.x, l(0.500000), r16.y
    add r16.y, r16.y, l(-1.000000)
    add r16.w, -r18.x, l(1.000000)
    mul r18.x, r16.w, r16.w
    mul r18.x, r18.x, r18.x
    mul r16.w, r16.w, r18.x
    mad r16.w, r16.y, r16.w, l(1.000000)
    mad r16.y, r16.y, r6.y, l(1.000000)
    mul r16.y, r16.y, r16.w
    mul r16.y, r9.w, r16.y
    mul r22.xyz, r16.yyyy, r19.wwww
    add r16.x, -r16.x, l(1.000000)
    mul r16.y, r16.x, r16.x
    mul r16.y, r16.y, r16.y
    mul r16.x, r16.y, r16.x
    mad r16.x, r9.y, r16.x, r0.w
    mul r16.y, r9.z, r9.z
    mad r16.w, -r14.w, r16.y, r14.w
    mad r16.w, r16.w, r14.w, r16.y
    sqrt r16.w, r16.w
    mad r18.x, -r2.w, r16.y, r2.w
    mad r18.x, r18.x, r2.w, r16.y
    sqrt r18.x, r18.x
    mul r14.w, r14.w, r18.x
    mad r14.w, r2.w, r16.w, r14.w
    rcp r14.w, r14.w
    mul r14.w, r14.w, l(0.500000)
    mad r9.z, r9.z, r9.z, l(-1.000000)
    mul r16.w, r18.y, r18.y
    mad r9.z, r16.w, r9.z, l(1.000000)
    mul r9.z, r9.z, r9.z
    div r9.z, r16.y, r9.z
    mul r9.z, r14.w, r9.z
    mul r9.z, r16.x, r9.z
    mul r19.xyw, r9.zzzz, r19.wwww
  else
    mov r22.xyz, r19.wwww
  endif
  mul r6.x, r6.x, r14.x
  mul r14.xyw, r6.xxxx, cb0[r14.y + 58].xyxz
  mul r14.xyw, r15.xyxw, r14.xyxw
  mul r15.xyw, r11.wwww, r22.xyxz
  mul r16.xyw, r11.wwww, r19.xyxw
  mad r20.xyz, r14.xywx, r15.xywx, r20.xyzx
  mad r21.xyz, r14.xywx, r16.xywx, r21.xyzx
  iadd r5.x, r5.x, l(1)
endloop
mov r6.xzw, r20.xxyz
mov r11.xyz, r21.xyzx
mov r12.xyz, l(1.000000,1.000000,1.000000,0)
mov r4.w, l(0)
loop
  uge r5.x, r4.w, cb2[0].w
  breakc_nz r5.x
  imul null, r5.x, l(5), cb2[r4.w + 0].y
  ushr r7.w, cb0[r5.x + 58].w, l(30)
  if_z r7.w
    and r8.w, cb1[0].x, cb0[r5.x + 58].w
    add r13.xyz, -r1.xyzx, cb0[r5.x + 59].xyzx
    dp3 r9.z, r13.xyzx, r13.xyzx
    ishr r9.z, r9.z, l(1)
    iadd r9.z, r9.z, l(0x1fbd22df)
    mul_sat r9.z, r9.z, cb0[r5.x + 60].x
    add r13.xyz, l(1.000000, 1.000000, 1.000000, 0.000000), -cb0[r5.x + 58].xyzx
    mad r13.xyz, r9.zzzz, r13.xyzx, cb0[r5.x + 58].xyzx
    movc r13.xyz, r8.wwww, r13.xyzx, l(1.000000,1.000000,1.000000,0)
    mul r12.xyz, r12.xyzx, r13.xyzx
  else
    ige r8.w, cb0[r5.x + 62].x, l(0)
    if_nz r8.w
      ishl r8.w, cb0[r5.x + 62].x, l(2)
      mov r13.x, x0[r8.w + 0].x
      mov r14.x, x0[r8.w + 1].x
      mov r15.x, x0[r8.w + 3].x
      mov r13.y, x0[r8.w + 0].y
      mov r14.y, x0[r8.w + 1].y
      mov r15.y, x0[r8.w + 3].y
      mov r13.z, x0[r8.w + 0].z
      mov r14.z, x0[r8.w + 1].z
      mov r15.z, x0[r8.w + 3].z
      mov r13.w, x0[r8.w + 0].w
      mov r14.w, x0[r8.w + 1].w
      mov r15.w, x0[r8.w + 3].w
      dp4 r13.x, r1.xyzw, r13.xyzw
      dp4 r13.y, r1.xyzw, r14.xyzw
      dp4 r8.w, r1.xyzw, r15.xyzw
      div r13.xy, r13.xyxx, r8.wwww
      sample_l_indexable(texture2d)(float,float,float,float) r14.xyz, r13.xyxx, t11.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r15.xyz, r13.xyxx, t12.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r16.xyz, r13.xyxx, t13.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r13.xyz, r13.xyxx, t14.xyzw, s1, l(0.000000)
      ieq r18.xyz, l(1, 2, 3, 0), cb0[r5.x + 62].xxxx
      movc r14.xyz, r18.xxxx, r15.xyzx, r14.xyzx
      movc r14.xyz, r18.yyyy, r16.xyzx, r14.xyzx
      movc r13.xyz, r18.zzzz, r13.xyzx, r14.xyzx
    else
      mov r13.xyz, l(1.000000,1.000000,1.000000,0)
    endif
    and r8.w, cb1[0].x, cb0[r5.x + 58].w
    ieq r9.z, r7.w, l(2)
    add r14.xyz, -r1.xyzx, cb0[r5.x + 59].xyzx
    dp3 r11.w, r14.xyzx, r14.xyzx
    rsq r12.w, r11.w
    mul r14.xyz, r12.wwww, r14.xyzx
    add r12.w, r11.w, -cb0[r5.x + 59].w
    max r12.w, r12.w, l(0.001000)
    rcp r12.w, r12.w
    mad r12.w, cb0[r5.x + 59].w, r12.w, l(1.000000)
    rsq r12.w, r12.w
    add r12.w, -r12.w, l(1.000000)
    mul r12.w, r12.w, l(6.28318548)
    mul r11.w, r11.w, r11.w
    mad_sat r11.w, -r11.w, cb0[r5.x + 60].x, l(1.000000)
    mul r11.w, r11.w, r11.w
    mul r11.w, r11.w, r12.w
    dp3_sat r12.w, cb0[r5.x + 61].xyzx, r14.xyzx
    add_sat r12.w, r12.w, -cb0[r5.x + 60].z
    mul_sat r12.w, r12.w, cb0[r5.x + 60].y
    mul r13.w, r12.w, r12.w
    mad r12.w, -r12.w, l(2.000000), l(3.000000)
    mul r12.w, r12.w, r13.w
    mul r11.w, r11.w, r12.w
    movc r14.xyz, r9.zzzz, cb0[r5.x + 61].xyzx, r14.xyzx
    movc r9.z, r9.z, cb0[r5.x + 61].w, r11.w
    movc r14.xyz, r8.wwww, r14.xyzx, l(0,1.000000,0,0)
    movc r8.w, r8.w, r9.z, l(0)
    ine r7.w, r7.w, l(2)
    mad_sat r9.z, -r8.w, l(0.159154937), l(1.000000)
    mad r11.w, r9.z, l(-0.156583), l(1.57079637)
    add r9.z, -r9.z, l(1.000000)
    sqrt r9.z, r9.z
    mul r9.z, r9.z, r11.w
    movc r7.w, r7.w, r9.z, cb0[r5.x + 60].w
    mad_sat r7.w, r7.w, l(0.318309873), r2.x
    add r9.z, -r2.x, r7.w
    mad r9.z, -r9.z, r9.z, l(1.000000)
    sqrt r9.z, r9.z
    dp3 r11.w, r5.wyzw, r14.xyzx
    max r9.z, r9.z, l(0.950000)
    add r12.w, -r9.z, l(1.000000)
    rsq r13.w, r12.w
    mul r12.w, r12.w, r13.w
    mul r14.w, r11.w, l(0.373837)
    mul r12.w, r12.w, l(0.668740)
    mad r15.x, r11.w, l(0.373837), r12.w
    ge r12.w, r12.w, |r14.w|
    mul r14.w, r15.x, r15.x
    mul r13.w, r13.w, r14.w
    mov_sat r11.w, r11.w
    movc r11.w, r12.w, r13.w, r11.w
    mul r9.z, r9.z, r11.w
    min r11.w, r9.z, l(1.000000)
    mul r15.xyz, r11.wwww, l(0.318309873, 0.318309873, 0.318309873, 0.000000)
    lt r12.w, l(0.000000), r9.z
    if_nz r12.w
      mad r14.xyz, r7.xyzx, r2.yyyy, r14.xyzx
      dp3 r12.w, r14.xyzx, r14.xyzx
      rsq r12.w, r12.w
      mul r14.xyz, r12.wwww, r14.xyzx
      dp3 r12.w, r5.wyzw, r14.xyzx
      dp3 r13.w, r8.xyzx, r14.xyzx
      mul r14.x, r13.w, r13.w
      dp2 r14.x, r14.xxxx, r10.xxxx
      mad r14.x, r10.x, l(0.500000), r14.x
      add r14.x, r14.x, l(-1.000000)
      add r11.w, -r11.w, l(1.000000)
      mul r14.y, r11.w, r11.w
      mul r14.y, r14.y, r14.y
      mul r11.w, r11.w, r14.y
      mad r11.w, r14.x, r11.w, l(1.000000)
      mad r14.x, r14.x, r6.y, l(1.000000)
      mul r11.w, r11.w, r14.x
      mul r11.w, r9.w, r11.w
      mul r14.xyz, r11.wwww, r15.zzzz
      add r11.w, -r13.w, l(1.000000)
      mul r13.w, r11.w, r11.w
      mul r13.w, r13.w, r13.w
      mul r11.w, r11.w, r13.w
      mad r11.w, r9.y, r11.w, r0.w
      mul r13.w, r7.w, r7.w
      mad r14.w, -r9.z, r13.w, r9.z
      mad r14.w, r14.w, r9.z, r13.w
      sqrt r14.w, r14.w
      mad r15.w, -r2.w, r13.w, r2.w
      mad r15.w, r15.w, r2.w, r13.w
      sqrt r15.w, r15.w
      mul r9.z, r9.z, r15.w
      mad r9.z, r2.w, r14.w, r9.z
      rcp r9.z, r9.z
      mul r9.z, r9.z, l(0.500000)
      mad r7.w, r7.w, r7.w, l(-1.000000)
      mul r12.w, r12.w, r12.w
      mad r7.w, r12.w, r7.w, l(1.000000)
      mul r7.w, r7.w, r7.w
      div r7.w, r13.w, r7.w
      mul r7.w, r9.z, r7.w
      mul r7.w, r11.w, r7.w
      mul r15.xyz, r7.wwww, r15.zzzz
    else
      mov r14.xyz, r15.zzzz
    endif
    mul r16.xyz, r8.wwww, cb0[r5.x + 58].xyzx
    mul r13.xyz, r13.xyzx, r16.xyzx
    mad r6.xzw, r13.xxyz, r14.xxyz, r6.xxzw
    mad r11.xyz, r13.xyzx, r15.xyzx, r11.xyzx
  endif
  iadd r4.w, r4.w, l(1)
endloop
mad r2.xyz, r2.zzzz, r4.xyzx, r11.xyzx
mul r2.xyz, r2.xyzx, cb0[823].zzzz
mul r2.xyz, r2.xyzx, r12.xyzx
ge r0.w, l(0.000999999931), r3.x
ge r4.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r2.xyzx
and r1.w, r4.y, r4.x
and r1.w, r4.z, r1.w
and r0.w, r0.w, r1.w
discard_nz r0.w
mul r4.w, r3.x, l(0.100000)
min r0.w, r9.x, l(1.000000)
dp3 r1.w, r10.yzwy, l(0.300000, 0.300000, 0.400000, 0.000000)
add r7.xyz, -r1.wwww, r10.yzwy
mad r7.xyz, cb0[2].zzzz, r7.xyzx, r1.wwww
mul r8.xyz, r5.yzwy, cb0[2].xxxx
mul r8.yzw, r8.xxyz, l(0.000000, 0.325735033, 0.325735033, 0.325735033)
mov r8.x, l(0.282094806)
dp4_sat r1.w, r8.xyzw, r17.xyzw
mul r5.yzw, r5.yyzw, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r5.x, l(0.282094806)
dp4 r8.x, r5.xyzw, cb0[52].xyzw
dp4 r8.y, r5.xyzw, cb0[53].xyzw
dp4 r8.z, r5.xyzw, cb0[54].xyzw
max r5.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r5.xyz, r1.wwww, r5.xyzx, r7.xyzx
mul r5.xyz, r0.wwww, r5.xyzx
mul r5.xyz, r5.xyzx, cb0[823].xxxx
mad r5.xyz, r6.xzwx, cb0[823].yyyy, r5.xyzx
mul r5.xyz, r5.xyzx, r12.xyzx
lt r6.xyzw, r3.yzwy, l(0.00313080009, 0.00313080009, 0.00313080009, 0.00313080009)
mul r7.xyzw, r3.yzwy, l(12.920000, 12.920000, 12.920000, 12.920000)
log r3.xyzw, r3.yzwy
mul r3.xyzw, r3.xyzw, l(0.416666657, 0.416666657, 0.416666657, 0.416666657)
exp r3.xyzw, r3.xyzw
mad r3.xyzw, r3.xyzw, l(1.055000, 1.055000, 1.055000, 1.055000), l(-0.055000, -0.055000, -0.055000, -0.055000)
movc r3.xyzw, r6.xyzw, r7.xyzw, r3.xyzw
lt r6.xyz, r3.wyzw, l(0.0404500030, 0.0404500030, 0.0404500030, 0.000000)
mul r0.w, r3.w, l(0.0773993731)
mad r7.xyz, r3.xyzx, l(0.999999940, 0.999999940, 0.999999940, 0.000000), l(0.055000, 0.055000, 0.055000, 0.000000)
mul r7.xyz, r7.xyzx, l(0.947867334, 0.947867334, 0.947867334, 0.000000)
log r7.xyz, r7.xyzx
mul r7.xyz, r7.xyzx, l(2.400000, 2.400000, 2.400000, 0.000000)
exp r7.xyz, r7.xyzx
movc r8.x, r6.x, r0.w, r7.x
mul r3.xy, r3.yzyy, l(0.0773993731, 0.0773993731, 0.000000, 0.000000)
movc r8.yz, r6.yyzy, r3.xxyx, r7.yyzy
mul r3.xyz, r5.xyzx, r8.xyzx
mad r2.xyz, r3.xyzx, r4.wwww, r2.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 r0.z, r0.w, cb0[841].z
mov_sat r0.xyz, r0.xyzx
itof r3.xyz, cb0[842].yzwy
mad r5.xyz, r3.xyzx, cb0[842].xxxx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r0.xyz, r0.xyzx, r5.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
div r3.xyz, l(1.000000, 1.000000, 1.000000, 1.000000), r3.xyzx
mul r0.xyz, r0.xyzx, r3.xyzx
sample_l_indexable(texture3d)(float,float,float,float) r0.xyzw, r0.xyzx, t8.xyzw, s5, l(0.000000)
exp r1.w, -r0.w
min r1.w, r1.w, l(1.000000)
lt r2.w, l(0.000000), cb0[832].y
if_nz r2.w
  add r1.xyz, r1.xyzx, -cb0[831].xyzx
  dp3 r2.w, r1.xyzx, r1.xyzx
  sqrt r2.w, r2.w
  max r3.x, r2.w, l(0.001000)
  div r3.xyz, r1.xyzx, r3.xxxx
  mul r1.x, r1.y, cb0[830].w
  lt r1.y, l(0.010000), |r1.x|
  mul r1.z, r1.x, l(-1.442695)
  exp r1.z, r1.z
  add r1.z, -r1.z, l(1.000000)
  div r1.x, r1.z, r1.x
  mul r1.x, r1.x, cb0[831].w
  movc r1.x, r1.y, r1.x, cb0[831].w
  dp3_sat r1.y, r3.xyzx, cb0[837].xyzx
  log r1.y, r1.y
  mul r1.y, r1.y, cb0[837].w
  exp r1.y, r1.y
  mul r1.x, r1.x, cb0[832].y
  add r1.z, r2.w, -cb0[832].x
  max r1.z, r1.z, l(0.000000)
  mul r2.w, r1.z, r1.x
  exp r2.w, -r2.w
  min r2.w, r2.w, l(1.000000)
  mad r3.xyz, r1.yyyy, cb0[838].xyzx, cb0[830].xyzx
  mul r3.xyz, r1.wwww, r3.xyzx
  add r1.y, -r2.w, l(1.000000)
  mad r0.xyz, r3.xyzx, r1.yyyy, r0.xyzx
  mad r0.w, r1.x, r1.z, r0.w
  exp r0.w, -r0.w
  min r1.w, r0.w, l(1.000000)
endif
mul r0.xyz, r4.wwww, r0.xyzx
mad r4.xyz, r2.xyzx, r1.wwww, r0.xyzx
mul o0.xyzw, r4.xyzw, cb1[2].wwww
ret
// Approximately 903 instruction slots used
