//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:06:34 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
                                        // Texture:   t38
//
// }
//
// cbuffer ConstBuf__materialData
// {
//
//   struct MaterialData
//   {
//
//       float2 material_cst_ParticleSpawnReference;// Index:    0
//       float material_cst_ParticleSpawnReferenceRange;// Index:    0.z
//       float base_cst_AlphaBlendAmount;// Index:    0.w
//       float3 base_cst_EmissiveTint;  // Index:    1
//       float base_cst_EmissiveIntensity;// Index:    1.w
//       float3 glow_cst_EmissiveTint;  // Index:    2
//       float glow_cst_EmissiveIntensity;// Index:    2.w
//
//   } resourceTables__materialData;    // Index:    0 1 2            Components:    12
                                        // Textures:  t41-t52
//
// }
//
//
// 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__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__viewData.blueNoiseTexture    texture   float     2darray   38        1
// resourceTables__materialData.material_dudv1    texture  float4          2d   41        1
// resourceTables__materialData.material_dudv2    texture  float4          2d   42        1
// resourceTables__materialData.material_particlespawn    texture  float4          2d   43        1
// resourceTables__materialData.base_diffuse    texture  float4          2d   44        1
// resourceTables__materialData.base_alpha    texture  float4          2d   46        1
// resourceTables__materialData.layer_1__alpha    texture  float4          2d   47        1
// resourceTables__materialData.glow_opacity    texture  float4          2d   48        1
// resourceTables__materialData.glow_alpha    texture  float4          2d   49        1
// resourceTables__materialData.layer_3__alpha    texture  float4          2d   51        1
// resourceTables__materialData.layer_4__alpha    texture  float4          2d   52        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
// ConstBuf__materialData            cbuffer      NA          NA    4        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   x
// TEXCOORD                 0   xy          2     NONE   float   xy
// TEXCOORD                 1   xy          3     NONE   float   xy
// NORMAL                   0   xyz         4     NONE   float   xyz
// TANGENT                  0   xyz         5     NONE   float
// BINORMAL                 0   xyz         6     NONE   float
// TEXCOORD                 8   xyz         7     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[4], immediateIndexed
dcl_constantbuffer cb2[87], dynamicIndexed
dcl_constantbuffer cb3[38], immediateIndexed
dcl_constantbuffer cb4[3], 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_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_texture2darray (float,float,float,float) t38
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_resource_texture2d (float,float,float,float) t44
dcl_resource_texture2d (float,float,float,float) t46
dcl_resource_texture2d (float,float,float,float) t47
dcl_resource_texture2d (float,float,float,float) t48
dcl_resource_texture2d (float,float,float,float) t49
dcl_resource_texture2d (float,float,float,float) t51
dcl_resource_texture2d (float,float,float,float) t52
dcl_input_ps_siv linear noperspective v0.xyz, position
dcl_input_ps constant v1.x
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xy
dcl_input_ps linear v4.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
ushr r0.x, v1.x, l(24)
ubfe r0.y, l(7), l(24), v1.x
utof r0.y, r0.y
mul r0.y, r0.y, l(0.00787401572)
and r0.x, r0.x, l(128)
movc r0.x, r0.x, -r0.y, r0.y
ne r0.y, r0.x, l(0.000000)
if_nz r0.y
  ftou r0.yz, v0.xxyx
  and r1.xy, r0.yzyy, l(63, 63, 0, 0)
  and r1.z, l(7), cb3[37].z
  mov r1.w, l(0)
  ld_indexable(texture2darray)(float,float,float,float) r0.y, r1.xyzw, t38.yxzw
  lt r0.z, l(0.000000), r0.x
  add r0.w, -r0.x, l(1.000000)
  lt r0.w, r0.w, r0.y
  add r0.x, r0.x, l(1.000000)
  ge r0.x, r0.x, r0.y
  movc r0.x, r0.z, r0.w, r0.x
  mov r0.y, l(-1)
else
  mov r0.x, l(0)
endif
and r0.x, r0.y, r0.x
discard_nz r0.x
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 r3.x, r2.xyzw, cb3[12].xyzw
dp4 r3.y, r2.xyzw, cb3[13].xyzw
dp4 r3.z, r2.xyzw, cb3[14].xyzw
add r2.xyz, -r3.xyzx, cb3[29].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 r2.x, r40.x, r41.x, r2.x
mad r2.y, r40.x, r41.y, r2.y
mad r2.z, r40.x, r41.z, r2.z

dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r2.xyzx
dp3 r0.w, v4.xyzx, v4.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, v4.yzxy
sample_indexable(texture2d)(float,float,float,float) r1.zw, v2.xyxx, t41.zwxy, s1
mad r5.xyzw, r1.zwzw, l(2.000000, 2.000000, 2.000000, 2.000000), l(-0.996078432, -0.996078432, -0.996078432, -0.996078432)
mul r1.zw, l(0.000000, 0.000000, 100.000000, 10.000000), cb3[35].xxxx
frc r1.zw, r1.zzzw
add r6.xy, r1.zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
mul r5.xyzw, r5.xyzw, l(4.000000, 4.000000, 4.000000, 4.000000)
add r6.zw, l(0.000000, 0.000000, 0.005000, 0.050000), cb3[35].xxxx
mul r6.xyzw, r6.xyzw, l(0.150000, 0.150000, 100.000000, 10.000000)
frc r6.zw, r6.zzzw
add r6.zw, r6.zzzw, l(0.000000, 0.000000, -0.500000, -0.500000)
mul r6.zw, r6.zzzw, l(0.000000, 0.000000, 0.150000, 0.150000)
mul r1.zw, r1.zzzw, l(0.000000, 0.000000, 6.28318548, 6.28318548)
sincos null, r1.zw, r1.zzzw
sample_indexable(texture2d)(float,float,float,float) r7.xy, v2.xyxx, t42.xyzw, s1
mad r7.xy, r7.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-0.996078432, -0.996078432, 0.000000, 0.000000)
mul r7.xy, r7.xyxx, l(4.000000, 4.000000, 0.000000, 0.000000)
mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.500000, 0.500000), l(0.000000, 0.000000, 0.500000, 0.500000)
mad r7.zw, r7.xxxy, r6.yyyy, v2.xxxy
mad r6.yw, r7.xxxy, r6.wwww, v2.xxxy
mad r8.xyzw, r5.zwzw, r6.xxxx, v2.xyxy
mad r5.xyzw, r5.xyzw, r6.zzzz, v2.xyxy
mul r8.xyzw, r8.xyzw, l(5.000000, 5.000000, 3.000000, 3.000000)
mul r5.xyzw, r5.xyzw, l(5.000000, 5.000000, 3.000000, 3.000000)
sample_indexable(texture2d)(float,float,float,float) r2.w, v3.xyxx, t46.yzwx, s2
dp3 r2.x, r4.zxyz, r2.xyzx
dp2 r1.x, r1.xyxx, r1.xyxx
sqrt r1.x, r1.x
add r2.xy, |r2.xxxx|, l(-0.149719, -0.053894, 0.000000, 0.000000)
mul_sat r2.xy, r2.xyxx, l(1.17608178, 1.056964, 0.000000, 0.000000)
log r2.xy, r2.xyxx
mul r2.xy, r2.xyxx, l(0.538940, 0.718384, 0.000000, 0.000000)
exp r2.xy, r2.xyxx
add_sat r1.x, -r1.x, l(2.000000)
mul r1.y, r1.x, r1.x
mad r1.x, -r1.x, l(2.000000), l(3.000000)
mul r1.x, r1.x, r1.y
mul r1.y, r1.x, r2.x
mul_sat r1.y, r1.y, r2.w
sample_indexable(texture2d)(float,float,float,float) r2.xzw, r7.zwzz, t44.xwyz, s1
sample_indexable(texture2d)(float,float,float,float) r9.xyz, r6.ywyy, t44.xyzw, s1
add r9.xyz, -r2.xzwx, r9.xyzx
mad r2.xzw, r1.wwww, r9.xxyz, r2.xxzw
mul r9.xyz, cb4[1].wwww, cb4[1].xyzx
mul r10.xyz, r2.xzwx, r9.xyzx
sample_indexable(texture2d)(float,float,float,float) r4.w, r7.zwzz, t47.yzwx, s2
sample_indexable(texture2d)(float,float,float,float) r6.x, r6.ywyy, t47.xyzw, s2
add r6.x, -r4.w, r6.x
mad_sat r1.w, r1.w, r6.x, r4.w
lt r4.w, l(0.000000), r1.w
if_nz r4.w
  mul r6.xy, r1.wwww, l(0.999999940, 10.000000, 0.000000, 0.000000)
  mad r10.xyz, r2.xzwx, r9.xyzx, r6.yyyy
  mov r2.xzw, r6.xxxx
else
  mov r2.xzw, l(0,0,0,0)
endif
sample_indexable(texture2d)(float,float,float,float) r1.w, v2.xyxx, t48.yzwx, s1
sample_indexable(texture2d)(float,float,float,float) r4.w, r8.xyxx, t49.yzwx, s2
sample_indexable(texture2d)(float,float,float,float) r5.x, r5.xyxx, t49.xyzw, s2
add r5.x, -r4.w, r5.x
mad r4.w, r1.z, r5.x, r4.w
mad_sat r1.w, r4.w, r1.w, l(-0.0209960993)
lt r4.w, l(0.000000), r1.w
if_nz r4.w
  mul r6.xyz, cb4[2].wwww, cb4[2].xyzx
  mad r4.w, r1.w, l(0.234958), l(0.118041992)
  mad r10.xyz, r6.xyzx, r1.wwww, r10.xyzx
else
  mov r4.w, l(0.118041992)
endif
sample_indexable(texture2d)(float,float,float,float) r1.w, r8.zwzz, t49.yzwx, s1
sample_indexable(texture2d)(float,float,float,float) r5.x, r5.zwzz, t49.xyzw, s1
add r5.x, -r1.w, r5.x
mad r1.z, r1.z, r5.x, r1.w
sample_indexable(texture2d)(float,float,float,float) r1.w, v3.xyxx, t51.yzwx, s2
add r2.y, -r2.y, l(1.000000)
mul r1.x, r1.x, r2.y
mul r1.x, r1.x, r1.w
mad_sat r1.x, r1.x, r1.z, l(-0.0462646000)
mad_sat r1.y, r1.y, cb4[0].w, r1.x
lt r1.z, l(0.000000), r1.x
if_nz r1.z
  add r5.xyz, -r2.xzwx, l(0.498039424, 0.498039424, 0.498039424, 0.000000)
  mad r2.xzw, r1.xxxx, r5.xxyz, r2.xxzw
  add r1.z, -r4.w, l(0.353000)
  mad r4.w, r1.x, r1.z, r4.w
  add r5.xyz, -r10.xyzx, l(200.001007, 200.001007, 200.001007, 0.000000)
  mad r10.xyz, r1.xxxx, r5.xyzx, r10.xyzx
endif
sample_indexable(texture2d)(float,float,float,float) r1.x, v2.xyxx, t52.xyzw, s2
mov_sat r1.x, r1.x
add r1.y, r1.x, r1.y
min r1.y, r1.y, l(1.000000)
lt r1.z, l(0.000000), r1.x
if_nz r1.z
  add r5.xyz, -r2.xzwx, l(0.498039424, 0.498039424, 0.498039424, 0.000000)
  mad r2.xzw, r1.xxxx, r5.xxyz, r2.xxzw
  add r1.z, -r4.w, l(0.353000)
  mad r4.w, r1.x, r1.z, r4.w
  add r5.xyz, -r10.xyzx, l(200.001007, 200.001007, 200.001007, 0.000000)
  mad r10.xyz, r1.xxxx, r5.xyzx, r10.xyzx
endif
ge r1.x, l(0.000100), r1.y
discard_nz r1.x
mul r1.zw, v2.xxxy, l(0.000000, 0.000000, 8.000000, 8.000000)
sample_l_indexable(texture2d)(float,float,float,float) r1.z, r1.zwzz, t43.yzxw, s1, l(0.000000)
ge r1.z, cb4[0].y, r1.z
discard_nz r1.z
ne r1.z, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].z
deriv_rtx_fine r5.xyz, r4.zxyz
deriv_rty_fine r6.xyz, r4.zxyz
dp3 r1.w, r5.xyzx, r5.xyzx
dp3 r2.y, r6.xyzx, r6.xyzx
add r1.w, r1.w, r2.y
min r1.w, r1.w, l(0.300000)
movc r1.z, r1.z, l(0), r1.w
add r1.w, -r4.w, l(1.000000)
mul r1.w, r1.w, r1.w
mad r1.z, r1.w, r1.w, r1.z
sqrt r1.z, r1.z
min r1.z, r1.z, l(1.000000)
sqrt r1.z, r1.z
add r1.z, -r1.z, l(1.000000)
ftoi r5.xy, v0.yxyy
add r6.xyz, -r3.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.w, r6.xyzx, r6.xyzx
rsq r1.w, r1.w
mul r7.xyz, r1.wwww, r6.xyzx
add r8.x, -r1.z, l(1.000000)
mul r1.z, r8.x, r8.x
mul r2.y, r8.x, r1.z
dp3 r4.w, -r7.yzxy, r4.xyzx
add r4.w, r4.w, r4.w
mad r9.xyz, r4.xyzx, -r4.wwww, -r7.yzxy
mad r11.xyz, v4.yzxy, r0.wwww, -r9.xyzx
mad r9.xyz, r2.yyyy, r11.xyzx, r9.xyzx
dp3 r0.w, r9.xyzx, r9.xyzx
rsq r0.w, r0.w
mul r9.xyz, r0.wwww, r9.xyzx
mul r5.zw, l(0.000000, 0.000000, -1.000000, 1.000000), cb2[71].xxxy
mul r5.zw, r5.zzzw, r9.yyyy
mad r11.xz, r9.zzzz, cb2[71].yyxy, r5.zzwz
dp3 r0.w, r4.zxyz, r7.xyzx
mov r3.w, l(1.000000)
dp4 r12.x, cb2[72].xyzw, r3.xyzw
dp4 r12.y, cb2[73].xyzw, r3.xyzw
dp4 r12.z, cb2[74].xyzw, r3.xyzw
mov r11.y, r9.x
dp3 r13.x, cb2[72].xyzx, r11.xyzx
dp3 r13.y, cb2[73].xyzx, r11.xyzx
dp3 r13.z, cb2[74].xyzx, r11.xyzx
div r14.xyz, l(1.000000, 1.000000, 1.000000, 1.000000), r13.xyzx
lt r15.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, -r15.xyzx, r13.xyzx
itof r13.xyz, r13.xyzx
mad r12.xyz, r13.xyzx, cb2[75].xyzx, -r12.xyzx
mul r12.xyz, r14.xyzx, r12.xyzx
lt r13.xyz, r12.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
movc r12.xyz, r13.xyzx, l(99999997952.000000,99999997952.000000,99999997952.000000,0), r12.xyzx
min r2.y, r12.z, r12.y
min r2.y, r2.y, r12.x
mad r11.xyz, r11.xyzx, r2.yyyy, r3.xyzx
add r11.xyz, r11.xyzx, -cb2[76].xyzx
dp3 r2.y, r11.xyzx, r11.xyzx
rsq r2.y, r2.y
mul r11.xyz, r2.yyyy, r11.xyzx
mul r12.yzw, r11.yyzx, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r12.x, l(0.282094806)
dp4 r2.y, r12.xyzw, cb2[68].xyzw
dp4 r4.w, r12.xyzw, cb2[69].xyzw
dp4 r5.z, r12.xyzw, cb2[70].xyzw
rcp r12.x, r2.y
rcp r12.y, r4.w
rcp r12.z, r5.z
iadd r2.y, l(-3), cb2[71].z
utof r2.y, r2.y
mul r2.y, r2.y, r8.x
lt r4.w, r2.y, l(1.000000)
mad_sat r5.z, r2.y, l(2.000000), l(-1.000000)
movc r2.y, r4.w, r5.z, r2.y
sample_l_indexable(texturecube)(float,float,float,float) r11.xyz, r11.xyzx, t21.xyzw, s5, r2.y
mul r11.xyz, r12.xyzx, r11.xyzx
sqrt r8.y, |r0.w|
mad r8.yzw, r8.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) r2.y, r8.yzyy, t7.xyzw, s5, l(0.000000)
mul r11.xyz, r2.yyyy, r11.xyzx
mul r12.xyz, r3.yyyy, cb2[9].xzyx
mad r12.xyz, cb2[8].xzyx, r3.xxxx, r12.xyzx
mad r12.xyz, cb2[10].xzyx, r3.zzzz, r12.xyzx
add r12.xyz, r12.xyzx, cb2[11].xzyx
lt r13.xyz, |r12.xzyx|, l(0.500000, 0.500000, 0.500000, 0.000000)
and r2.y, r13.y, r13.x
and r2.y, r13.z, r2.y
if_nz r2.y
  add r12.xyz, r12.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
  and r2.y, l(1), cb2[27].x
  if_nz r2.y
    utof r13.xyz, cb2[15].xyzx
    mul r13.xyz, r12.xyzx, r13.xyzx
    ftoi r14.xyz, r13.xyzx
    mov r14.w, l(0)
    ld_indexable(texture3d)(float,float,float,float) r14.xyzw, r14.xyzw, t22.xyzw
    mul r15.xyzw, r14.xyzw, l(1020.000000, 255.000000, 63.750000, 255.000000)
    frc r2.y, r15.z
    mad r15.x, r2.y, l(4.000000), r15.x
    mad r15.z, r14.z, l(63.750000), -r2.y
    frc r13.xyz, r13.xyzx
    mad r13.xyz, r13.xyzx, r15.wwww, r15.xyzx
    add r13.xyz, r13.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
    utof r14.xyz, cb2[17].xyzx
    div r12.xyz, r13.xyzx, r14.xyzx
  endif
  sample_l_indexable(texture3d)(float,float,float,float) r13.xyzw, r12.xyzx, t23.xyzw, s5, l(0.000000)
  mul r13.xyzw, r13.xyzw, cb2[26].xyzw
  sample_l_indexable(texture3d)(float,float,float,float) r14.xyzw, r12.xyzx, t24.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r15.xyzw, r12.xyzx, t25.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r12.xyzw, r12.xyzx, t26.xyzw, s5, l(0.000000)
  mad r14.xyzw, r14.xyzw, cb2[20].xyzw, cb2[19].xyzw
  mad r15.xyzw, r15.xyzw, cb2[22].xyzw, cb2[21].xyzw
  mad r12.xyzw, r12.xyzw, cb2[24].xyzw, cb2[23].xyzw
  mul r14.xyzw, r14.xyzw, cb2[26].xyzw
  mul r15.xyzw, r15.xyzw, cb2[26].xyzw
  mul r12.xyzw, r12.xywz, cb2[26].xywz
  mov r16.x, r12.z
  mov r16.y, r14.w
  mov r16.z, r15.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 r16.xyz, r4.zxyz, cb0[2].xxxx
  mul r18.xyz, r16.yyyy, cb2[13].yzxy
  mad r16.xyw, cb2[12].yzyx, r16.xxxx, r18.xyxz
  mad r16.xyz, cb2[14].yzxy, r16.zzzz, r16.xywx
  mul r16.yzw, r16.xxyz, l(0.000000, 0.325735033, 0.325735033, 0.325735033)
  mov r16.x, l(0.282094806)
  mov r18.x, r13.x
  mov r18.y, r14.x
  mov r18.z, r15.x
  mov r18.w, r12.x
  dp4 r19.x, r16.xyzw, r18.xyzw
  mov r20.x, r13.y
  mov r20.y, r14.y
  mov r20.z, r15.y
  mov r20.w, r12.y
  dp4 r19.y, r16.xyzw, r20.xyzw
  mov r12.x, r13.z
  mov r12.y, r14.z
  mov r12.z, r15.z
  dp4 r19.z, r16.xyzw, r12.xyzw
  max r13.xyz, r19.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  mul r14.xyz, r9.zxyz, cb0[2].yyyy
  mul r15.xyz, r14.yyyy, cb2[13].yzxy
  mad r14.xyw, cb2[12].yzyx, r14.xxxx, r15.xyxz
  mad r14.xyz, cb2[14].yzxy, r14.zzzz, r14.xywx
  mul r14.yzw, r14.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
  mov r14.x, l(0.282094806)
  dp4 r15.x, r14.xyzw, r18.xyzw
  dp4 r15.y, r14.xyzw, r20.xyzw
  dp4 r15.z, r14.xyzw, r12.xyzw
  max r12.xyz, r15.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  mov r17.x, r13.w
else
  mov r17.xyzw, cb0[3].xyzw
  mov r13.xyz, l(0,0,0,0)
  mov r12.xyz, l(0,0,0,0)
endif
dp3 r2.y, r12.xyzx, l(0.300000, 0.300000, 0.400000, 0.000000)
add r12.xyz, -r2.yyyy, r12.xyzx
mad r12.xyz, cb0[2].zzzz, r12.xyzx, r2.yyyy
mul r14.xyz, r9.xyzx, cb0[2].yyyy
mul r14.yzw, r14.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r14.x, l(0.282094806)
dp4_sat r2.y, r14.xyzw, r17.xyzw
mul r9.yzw, r9.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r9.x, l(0.282094806)
dp4 r14.x, r9.xyzw, cb0[25].xyzw
dp4 r14.y, r9.xyzw, cb0[26].xyzw
dp4 r14.z, r9.xyzw, cb0[27].xyzw
max r9.xyz, r14.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r9.xyz, r2.yyyy, r9.xyzx, 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 r5.xy, r5.xyxx
mul r5.xy, r5.xyxx, l(4159.000000, 3169.000000, 0.000000, 0.000000)
add r2.y, r5.y, r5.x
mul r2.y, r2.y, l(0.159154937)
frc r2.y, r2.y
mul r2.y, r2.y, l(39.478420)
sincos r5.x, r12.x, r2.y
mov r14.x, -r5.x
dp4 r15.x, r3.xyzw, cb0[586].xyzw
dp4 r15.y, r3.xyzw, cb0[587].xyzw
dp4 r2.y, r3.xyzw, cb0[588].xyzw
dp4 r4.w, r3.xyzw, cb0[589].xyzw
div r5.yz, r15.xxyx, r4.wwww
lt r8.yz, l(0.000000, 1.000000, 1.000000, 0.000000), |r5.yyzy|
or r5.w, r8.z, r8.y
max r6.w, |r5.z|, |r5.y|
mad r6.w, r6.w, l(1.05263162), l(-1.000000)
mul_sat r6.w, r6.w, l(20.000000)
movc r6.w, r5.w, l(0), r6.w
add r0.w, |r0.w|, l(0.001000)
mad r5.yz, r5.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) r15.xyzw, r5.yzyy, t3.xyzw, s5, l(0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r16.xyzw, r5.yzyy, t4.xyzw, s5, l(0.000000)
div r2.y, r2.y, r4.w
max r2.y, r2.y, l(0.000000)
min r2.y, r2.y, l(0.999990)
mul r4.w, r2.y, l(8.000000)
round_ni r4.w, r4.w
ftoi r5.y, r4.w
ilt r5.z, r5.y, l(7)
iadd r7.w, r5.y, l(1)
movc r5.z, r5.z, r7.w, l(7)
mad r2.y, r2.y, l(8.000000), -r4.w
add r4.w, -r0.w, l(1.000000)
mul r7.w, r4.w, r4.w
mul r7.w, r7.w, r7.w
mul r4.w, r4.w, r7.w
mov r14.y, r12.x
mov r12.z, l(1.000000)
mov r18.z, l(1.000000)
mov r19.z, l(1.000000)
mov r20.z, l(1.000000)
mov r21.z, l(0)
mov r14.z, r5.x
mov r22.xyz, l(0,0,0,0)
mov r23.xyz, l(0,0,0,0)
mov r5.x, l(0)
loop
  uge r7.w, r5.x, cb2[0].z
  breakc_nz r7.w
  imul null, r8.yz, l(0, 5, 13, 0), cb2[r5.x + 0].xxxx
  ushr r7.w, cb0[r8.y + 58].w, l(30)
  dp4 r24.x, r3.xyzw, cb0[r8.z + 378].xyzw
  dp4 r24.y, r3.xyzw, cb0[r8.z + 379].xyzw
  dp4 r24.z, r3.xyzw, cb0[r8.z + 380].xyzw
  ine r9.w, r7.w, l(2)
  if_nz r9.w
    dp4 r10.w, r3.xyzw, cb0[r8.z + 381].xyzw
    lt r12.yw, r10.wwww, |r24.xxxy|
    or r11.w, r12.w, r12.y
    lt r12.y, r10.w, l(0.000000)
    or r11.w, r11.w, r12.y
    if_nz r11.w
      mov r25.xyz, l(0,0,0,0)
    else
      div r25.xyz, r24.xyzx, r10.wwww
      mad r25.xy, r25.xyxx, cb0[r8.z + 385].xyxx, cb0[r8.z + 385].zwzz
    endif
    mov r12.y, l(0)
  else
    lt r12.w, r24.z, l(0.000000)
    lt r13.w, l(1.000000), r24.z
    or r12.y, r12.w, r13.w
    if_z r12.y
      add r12.w, l(1.000000), cb0[r8.z + 390].x
      dp2 r12.w, cb0[0].yyyy, r12.wwww
      add r12.w, -r12.w, l(1.000000)
      mov r12.x, cb0[r8.z + 382].x
      mad r26.xyz, r24.xyzx, r12.xxzx, cb0[r8.z + 382].yzwy
      mov r18.x, cb0[r8.z + 383].x
      mad r18.xyw, r24.xyxz, r18.xxxz, cb0[r8.z + 383].yzyw
      mov r19.x, cb0[r8.z + 384].x
      mad r19.xyw, r24.xyxz, r19.xxxz, cb0[r8.z + 384].yzyw
      lt r27.xy, |r24.xyxx|, r12.wwww
      and r12.x, r27.y, r27.x
      lt r27.xy, |r26.xyxx|, r12.wwww
      and r13.w, r27.y, r27.x
      lt r27.xy, |r18.xyxx|, r12.wwww
      and r14.w, r27.y, r27.x
      lt r27.xy, |r19.xyxx|, r12.wwww
      and r12.w, r27.y, r27.x
      mad r19.xy, r19.xyxx, cb0[r8.z + 388].xyxx, cb0[r8.z + 388].zwzz
      mad r18.xy, r18.xyxx, cb0[r8.z + 387].xyxx, cb0[r8.z + 387].zwzz
      movc r18.xyw, r14.wwww, r18.xyxw, r19.xyxw
      mad r26.xy, r26.xyxx, cb0[r8.z + 386].xyxx, cb0[r8.z + 386].zwzz
      movc r18.xyw, r13.wwww, r26.xyxz, r18.xyxw
      mov r20.xy, cb0[r8.z + 385].xyxx
      mov r21.xy, cb0[r8.z + 385].zwzz
      mad r19.xyw, r24.xyxz, r20.xyxz, r21.xyxz
      movc r25.xyz, r12.xxxx, r19.xywx, r18.xywx
      movc r12.w, r12.w, l(3), l(-1)
      movc r12.w, r14.w, l(2), r12.w
      movc r12.w, r13.w, l(1), r12.w
      movc r11.w, r12.x, l(0), r12.w
    else
      mov r25.xyz, l(0,0,0,0)
      mov r11.w, l(0)
    endif
    mov r10.w, l(-1)
  endif
  movc r10.w, r12.y, r10.w, r11.w
  ige r10.w, r10.w, l(0)
  if_nz r10.w
    mul r10.w, l(0.500000), cb0[r8.z + 390].x
    mul r24.xyzw, r10.wwww, cb0[1].xyxy
    mul r26.xyzw, r14.yzyz, r24.zwzw
    mad r27.xyzw, r26.zwzw, l(-0.550705791, -0.550705791, 0.924529552, 0.924529552), r25.xyxy
    mul r24.xyzw, r14.xyxy, r24.xyzw
    mad r27.xyzw, r24.zwzw, l(0.495261461, 0.495261461, -0.131719455, -0.131719455), r27.xyzw
    mov_sat r25.z, r25.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r10.w, r27.xyxx, t2.xxxx, s7, r25.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r11.w, r27.zwzz, t2.xxxx, s7, r25.z
    add r10.w, r10.w, r11.w
    mad r27.xyzw, r26.zwzw, l(0.389092624, 0.389092624, -0.182296202, -0.182296202), r25.xyxy
    mad r27.xyzw, r24.zwzw, l(0.862155199, 0.862155199, -0.714493573, -0.714493573), r27.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r11.w, r27.xyxx, t2.xxxx, s7, r25.z
    add r10.w, r10.w, r11.w
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r11.w, r27.zwzz, t2.xxxx, s7, r25.z
    add r10.w, r10.w, r11.w
    mad r26.xyzw, r26.xyzw, l(-0.00643500872, -0.00643500872, -0.432008445, -0.432008445), r25.xyxy
    mad r24.xyzw, r24.xyzw, l(0.191590905, 0.191590905, -0.168338627, -0.168338627), r26.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r11.w, r24.xyxx, t2.xxxx, s7, r25.z
    add r10.w, r10.w, r11.w
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r11.w, r24.zwzz, t2.xxxx, s7, r25.z
    add r10.w, r10.w, r11.w
    mul r10.w, r10.w, l(0.166666672)
  else
    mov r10.w, l(1.000000)
  endif
  add_sat r10.w, r10.w, cb0[r8.z + 390].y
  ieq r7.w, r7.w, l(2)
  if_nz r7.w
    if_nz r5.w
      mov r11.w, l(1.000000)
    endif
    if_z r5.w
      mov x1[0].x, r15.x
      mov x1[1].x, r15.y
      mov x1[2].x, r15.z
      mov x1[3].x, r15.w
      mov x1[4].x, r16.x
      mov x1[5].x, r16.y
      mov x1[6].x, r16.z
      mov x1[7].x, r16.w
      mov r12.x, x1[r5.y + 0].x
      mov r12.y, x1[r5.z + 0].x
      add r12.y, -r12.x, r12.y
      mad r12.x, r2.y, r12.y, r12.x
      exp r12.x, -r12.x
      add r12.x, r6.w, r12.x
      min r11.w, r12.x, l(1.000000)
    endif
  else
    mov r11.w, l(1.000000)
  endif
  ine r12.x, l(-1), cb0[r8.z + 389].x
  and r12.x, r7.w, r12.x
  if_nz r12.x
    imul null, r8.z, l(13), cb0[r8.z + 389].x
    dp4 r12.x, r3.xyzw, cb0[r8.z + 601].xyzw
    lt r12.y, r12.x, l(0.000000)
    lt r12.w, l(1.000000), r12.x
    or r12.y, r12.w, r12.y
    if_z r12.y
      dp4 r18.x, r3.xyzw, cb0[r8.z + 599].xyzw
      dp4 r18.y, r3.xyzw, cb0[r8.z + 600].xyzw
      mad r19.xy, r18.xyxx, cb0[r8.z + 606].xyxx, cb0[r8.z + 606].zwzz
      lt r18.xy, l(1.000000, 1.000000, 0.000000, 0.000000), |r18.xyxx|
      or r12.w, r18.y, r18.x
    else
      mov r19.xy, l(0,0,0,0)
      mov r12.xw, l(0,0,0,0)
    endif
    ige r12.w, r12.w, l(0)
    movc r12.y, r12.y, l(0), r12.w
    if_nz r12.y
      mov_sat r12.x, r12.x
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r12.x, r19.xyxx, t2.xxxx, s7, r12.x
    else
      mov r12.x, l(1.000000)
    endif
    add_sat r8.z, r12.x, cb0[r8.z + 611].y
    mul r10.w, r8.z, r10.w
  endif
  ige r8.z, cb0[r8.y + 62].x, l(0)
  if_nz r8.z
    ishl r8.z, cb0[r8.y + 62].x, l(2)
    mov r24.x, x0[r8.z + 0].x
    mov r25.x, x0[r8.z + 1].x
    mov r26.x, x0[r8.z + 3].x
    mov r24.y, x0[r8.z + 0].y
    mov r25.y, x0[r8.z + 1].y
    mov r26.y, x0[r8.z + 3].y
    mov r24.z, x0[r8.z + 0].z
    mov r25.z, x0[r8.z + 1].z
    mov r26.z, x0[r8.z + 3].z
    mov r24.w, x0[r8.z + 0].w
    mov r25.w, x0[r8.z + 1].w
    mov r26.w, x0[r8.z + 3].w
    dp4 r12.x, r3.xyzw, r24.xyzw
    dp4 r12.y, r3.xyzw, r25.xyzw
    dp4 r8.z, r3.xyzw, r26.xyzw
    div r12.xy, r12.xyxx, r8.zzzz
    sample_l_indexable(texture2d)(float,float,float,float) r18.xyw, r12.xyxx, t11.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r19.xyw, r12.xyxx, t12.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r20.xyw, r12.xyxx, t13.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r12.xyw, r12.xyxx, t14.xywz, s1, l(0.000000)
    ieq r21.xyw, l(1, 2, 0, 3), cb0[r8.y + 62].xxxx
    movc r18.xyw, r21.xxxx, r19.xyxw, r18.xyxw
    movc r18.xyw, r21.yyyy, r20.xyxw, r18.xyxw
    movc r12.xyw, r21.wwww, r12.xyxw, r18.xyxw
  else
    mov r12.xyw, l(1.000000,1.000000,0,1.000000)
  endif
  and r8.z, cb1[0].x, cb0[r8.y + 58].w
  add r18.xyw, -r3.xyxz, cb0[r8.y + 59].xyxz
  dp3 r13.w, r18.xywx, r18.xywx
  rsq r14.w, r13.w
  mul r18.xyw, r14.wwww, r18.xyxw
  add r14.w, r13.w, -cb0[r8.y + 59].w
  max r14.w, r14.w, l(0.001000)
  rcp r14.w, r14.w
  mad r14.w, cb0[r8.y + 59].w, r14.w, l(1.000000)
  rsq r14.w, r14.w
  add r14.w, -r14.w, l(1.000000)
  mul r14.w, r14.w, l(6.28318548)
  mul r13.w, r13.w, r13.w
  mad_sat r13.w, -r13.w, cb0[r8.y + 60].x, l(1.000000)
  mul r13.w, r13.w, r13.w
  mul r13.w, r13.w, r14.w
  dp3_sat r14.w, cb0[r8.y + 61].xyzx, r18.xywx
  add_sat r14.w, r14.w, -cb0[r8.y + 60].z
  mul_sat r14.w, r14.w, cb0[r8.y + 60].y
  mul r19.x, r14.w, r14.w
  mad r14.w, -r14.w, l(2.000000), l(3.000000)
  mul r14.w, r14.w, r19.x
  mul r13.w, r13.w, r14.w
  movc r18.xyw, r7.wwww, cb0[r8.y + 61].xyxz, r18.xyxw
  movc r7.w, r7.w, cb0[r8.y + 61].w, r13.w
  movc r18.xyw, r8.zzzz, r18.xyxw, l(0,1.000000,0,0)
  movc r7.w, r8.z, r7.w, l(0)
  mad_sat r8.z, -r7.w, l(0.159154937), l(1.000000)
  mad r13.w, r8.z, l(-0.156583), l(1.57079637)
  add r8.z, -r8.z, l(1.000000)
  sqrt r8.z, r8.z
  mul r8.z, r8.z, r13.w
  movc r8.z, r9.w, r8.z, cb0[r8.y + 60].w
  mad_sat r8.z, r8.z, l(0.318309873), r1.z
  mad r9.w, -r8.x, r8.x, r8.z
  mad r9.w, -r9.w, r9.w, l(1.000000)
  sqrt r9.w, r9.w
  dp3 r13.w, r4.zxyz, r18.xywx
  max r9.w, r9.w, l(0.950000)
  add r14.w, -r9.w, l(1.000000)
  rsq r19.x, r14.w
  mul r14.w, r14.w, r19.x
  mul r19.y, r13.w, l(0.373837)
  mul r14.w, r14.w, l(0.668740)
  mad r19.w, r13.w, l(0.373837), r14.w
  ge r14.w, r14.w, |r19.y|
  mul r19.y, r19.w, r19.w
  mul r19.x, r19.x, r19.y
  mov_sat r13.w, r13.w
  movc r13.w, r14.w, r19.x, r13.w
  mul r9.w, r9.w, r13.w
  min r13.w, r9.w, l(1.000000)
  mul r19.xyw, r13.wwww, l(0.318309873, 0.318309873, 0.000000, 0.318309873)
  lt r14.w, l(0.000000), r9.w
  if_nz r14.w
    mad r18.xyw, r6.xyxz, r1.wwww, r18.xyxw
    dp3 r14.w, r18.xywx, r18.xywx
    rsq r14.w, r14.w
    mul r18.xyw, r14.wwww, r18.xyxw
    dp3 r14.w, r4.zxyz, r18.xywx
    dp3 r18.x, r7.xyzx, r18.xywx
    mul r18.y, r18.x, r18.x
    dp2 r18.y, r18.yyyy, r8.xxxx
    mad r18.y, r8.x, l(0.500000), r18.y
    add r18.y, r18.y, l(-1.000000)
    add r13.w, -r13.w, l(1.000000)
    mul r18.w, r13.w, r13.w
    mul r18.w, r18.w, r18.w
    mul r13.w, r13.w, r18.w
    mad r13.w, r18.y, r13.w, l(1.000000)
    mad r18.y, r18.y, r4.w, l(1.000000)
    mul r13.w, r13.w, r18.y
    mul r13.w, r8.w, r13.w
    mul r20.xyw, r13.wwww, r19.wwww
    add r13.w, -r18.x, l(1.000000)
    mul r18.x, r13.w, r13.w
    mul r18.x, r18.x, r18.x
    mul r13.w, r13.w, r18.x
    mul r18.x, r8.z, r8.z
    mad r18.y, -r9.w, r18.x, r9.w
    mad r18.y, r18.y, r9.w, r18.x
    mad r18.w, -r0.w, r18.x, r0.w
    mad r18.w, r18.w, r0.w, r18.x
    sqrt r18.yw, r18.yyyw
    mul r9.w, r9.w, r18.w
    mad r9.w, r0.w, r18.y, r9.w
    rcp r9.w, r9.w
    mul r9.w, r9.w, l(0.500000)
    mad r8.z, r8.z, r8.z, l(-1.000000)
    mul r14.w, r14.w, r14.w
    mad r8.z, r14.w, r8.z, l(1.000000)
    mul r8.z, r8.z, r8.z
    div r8.z, r18.x, r8.z
    mul r8.z, r9.w, r8.z
    mul r8.z, r13.w, r8.z
    mul r19.xyw, r8.zzzz, r19.wwww
  else
    mov r20.xyw, r19.wwww
  endif
  mul r7.w, r7.w, r11.w
  mul r18.xyw, r7.wwww, cb0[r8.y + 58].xyxz
  mul r12.xyw, r12.xyxw, r18.xyxw
  mul r18.xyw, r10.wwww, r20.xyxw
  mul r19.xyw, r10.wwww, r19.xyxw
  mad r22.xyz, r12.xywx, r18.xywx, r22.xyzx
  mad r23.xyz, r12.xywx, r19.xywx, r23.xyzx
  iadd r5.x, r5.x, l(1)
endloop
mov r5.xyz, r22.xyzx
mov r12.xyz, r23.xyzx
mov r14.xyz, l(1.000000,1.000000,1.000000,0)
mov r2.y, l(0)
loop
  uge r5.w, r2.y, cb2[0].w
  breakc_nz r5.w
  imul null, r5.w, l(5), cb2[r2.y + 0].y
  ushr r6.w, cb0[r5.w + 58].w, l(30)
  if_z r6.w
    and r7.w, cb1[0].x, cb0[r5.w + 58].w
    add r15.xyz, -r3.xyzx, cb0[r5.w + 59].xyzx
    dp3 r8.y, r15.xyzx, r15.xyzx
    ishr r8.y, r8.y, l(1)
    iadd r8.y, r8.y, l(0x1fbd22df)
    mul_sat r8.y, r8.y, cb0[r5.w + 60].x
    add r15.xyz, l(1.000000, 1.000000, 1.000000, 0.000000), -cb0[r5.w + 58].xyzx
    mad r15.xyz, r8.yyyy, r15.xyzx, cb0[r5.w + 58].xyzx
    movc r15.xyz, r7.wwww, r15.xyzx, l(1.000000,1.000000,1.000000,0)
    mul r14.xyz, r14.xyzx, r15.xyzx
  else
    ige r7.w, cb0[r5.w + 62].x, l(0)
    if_nz r7.w
      ishl r7.w, cb0[r5.w + 62].x, l(2)
      mov r15.x, x0[r7.w + 0].x
      mov r16.x, x0[r7.w + 1].x
      mov r18.x, x0[r7.w + 3].x
      mov r15.y, x0[r7.w + 0].y
      mov r16.y, x0[r7.w + 1].y
      mov r18.y, x0[r7.w + 3].y
      mov r15.z, x0[r7.w + 0].z
      mov r16.z, x0[r7.w + 1].z
      mov r18.z, x0[r7.w + 3].z
      mov r15.w, x0[r7.w + 0].w
      mov r16.w, x0[r7.w + 1].w
      mov r18.w, x0[r7.w + 3].w
      dp4 r15.x, r3.xyzw, r15.xyzw
      dp4 r15.y, r3.xyzw, r16.xyzw
      dp4 r7.w, r3.xyzw, r18.xyzw
      div r8.yz, r15.xxyx, r7.wwww
      sample_l_indexable(texture2d)(float,float,float,float) r15.xyz, r8.yzyy, t11.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r16.xyz, r8.yzyy, t12.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r18.xyz, r8.yzyy, t13.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r19.xyz, r8.yzyy, t14.xyzw, s1, l(0.000000)
      ieq r20.xyz, l(1, 2, 3, 0), cb0[r5.w + 62].xxxx
      movc r15.xyz, r20.xxxx, r16.xyzx, r15.xyzx
      movc r15.xyz, r20.yyyy, r18.xyzx, r15.xyzx
      movc r15.xyz, r20.zzzz, r19.xyzx, r15.xyzx
    else
      mov r15.xyz, l(1.000000,1.000000,1.000000,0)
    endif
    and r7.w, cb1[0].x, cb0[r5.w + 58].w
    ieq r8.y, r6.w, l(2)
    add r16.xyz, -r3.xyzx, cb0[r5.w + 59].xyzx
    dp3 r8.z, r16.xyzx, r16.xyzx
    rsq r9.w, r8.z
    mul r16.xyz, r9.wwww, r16.xyzx
    add r9.w, r8.z, -cb0[r5.w + 59].w
    max r9.w, r9.w, l(0.001000)
    rcp r9.w, r9.w
    mad r9.w, cb0[r5.w + 59].w, r9.w, l(1.000000)
    rsq r9.w, r9.w
    add r9.w, -r9.w, l(1.000000)
    mul r9.w, r9.w, l(6.28318548)
    mul r8.z, r8.z, r8.z
    mad_sat r8.z, -r8.z, cb0[r5.w + 60].x, l(1.000000)
    mul r8.z, r8.z, r8.z
    mul r8.z, r8.z, r9.w
    dp3_sat r9.w, cb0[r5.w + 61].xyzx, r16.xyzx
    add_sat r9.w, r9.w, -cb0[r5.w + 60].z
    mul_sat r9.w, r9.w, cb0[r5.w + 60].y
    mul r10.w, r9.w, r9.w
    mad r9.w, -r9.w, l(2.000000), l(3.000000)
    mul r9.w, r9.w, r10.w
    mul r8.z, r8.z, r9.w
    movc r16.xyz, r8.yyyy, cb0[r5.w + 61].xyzx, r16.xyzx
    movc r8.y, r8.y, cb0[r5.w + 61].w, r8.z
    movc r16.xyz, r7.wwww, r16.xyzx, l(0,1.000000,0,0)
    movc r7.w, r7.w, r8.y, l(0)
    ine r6.w, r6.w, l(2)
    mad_sat r8.y, -r7.w, l(0.159154937), l(1.000000)
    mad r8.z, r8.y, l(-0.156583), l(1.57079637)
    add r8.y, -r8.y, l(1.000000)
    sqrt r8.y, r8.y
    mul r8.y, r8.y, r8.z
    movc r6.w, r6.w, r8.y, cb0[r5.w + 60].w
    mad_sat r6.w, r6.w, l(0.318309873), r1.z
    mad r8.y, -r8.x, r8.x, r6.w
    mad r8.y, -r8.y, r8.y, l(1.000000)
    sqrt r8.y, r8.y
    dp3 r8.z, r4.zxyz, r16.xyzx
    max r8.y, r8.y, l(0.950000)
    add r9.w, -r8.y, l(1.000000)
    rsq r10.w, r9.w
    mul r9.w, r9.w, r10.w
    mul r11.w, r8.z, l(0.373837)
    mul r9.w, r9.w, l(0.668740)
    mad r12.w, r8.z, l(0.373837), r9.w
    ge r9.w, r9.w, |r11.w|
    mul r11.w, r12.w, r12.w
    mul r10.w, r10.w, r11.w
    mov_sat r8.z, r8.z
    movc r8.z, r9.w, r10.w, r8.z
    mul r8.y, r8.z, r8.y
    min r8.z, r8.y, l(1.000000)
    mul r18.xyz, r8.zzzz, l(0.318309873, 0.318309873, 0.318309873, 0.000000)
    lt r9.w, l(0.000000), r8.y
    if_nz r9.w
      mad r16.xyz, r6.xyzx, r1.wwww, r16.xyzx
      dp3 r9.w, r16.xyzx, r16.xyzx
      rsq r9.w, r9.w
      mul r16.xyz, r9.wwww, r16.xyzx
      dp3 r9.w, r4.zxyz, r16.xyzx
      dp3 r10.w, r7.xyzx, r16.xyzx
      mul r11.w, r10.w, r10.w
      dp2 r11.w, r11.wwww, r8.xxxx
      mad r11.w, r8.x, l(0.500000), r11.w
      add r11.w, r11.w, l(-1.000000)
      add r8.z, -r8.z, l(1.000000)
      mul r12.w, r8.z, r8.z
      mul r12.w, r12.w, r12.w
      mul r8.z, r8.z, r12.w
      mad r8.z, r11.w, r8.z, l(1.000000)
      mad r11.w, r11.w, r4.w, l(1.000000)
      mul r8.z, r8.z, r11.w
      mul r8.z, r8.w, r8.z
      mul r16.xyz, r8.zzzz, r18.zzzz
      add r8.z, -r10.w, l(1.000000)
      mul r10.w, r8.z, r8.z
      mul r10.w, r10.w, r10.w
      mul r8.z, r8.z, r10.w
      mul r10.w, r6.w, r6.w
      mad r11.w, -r8.y, r10.w, r8.y
      mad r11.w, r11.w, r8.y, r10.w
      sqrt r11.w, r11.w
      mad r12.w, -r0.w, r10.w, r0.w
      mad r12.w, r12.w, r0.w, r10.w
      sqrt r12.w, r12.w
      mul r8.y, r8.y, r12.w
      mad r8.y, r0.w, r11.w, r8.y
      rcp r8.y, r8.y
      mul r8.y, r8.y, l(0.500000)
      mad r6.w, r6.w, r6.w, l(-1.000000)
      mul r9.w, r9.w, r9.w
      mad r6.w, r9.w, r6.w, l(1.000000)
      mul r6.w, r6.w, r6.w
      div r6.w, r10.w, r6.w
      mul r6.w, r8.y, r6.w
      mul r6.w, r8.z, r6.w
      mul r18.xyz, r6.wwww, r18.zzzz
    else
      mov r16.xyz, r18.zzzz
    endif
    mul r19.xyz, r7.wwww, cb0[r5.w + 58].xyzx
    mul r15.xyz, r15.xyzx, r19.xyzx
    mad r5.xyz, r15.xyzx, r16.xyzx, r5.xyzx
    mad r12.xyz, r15.xyzx, r18.xyzx, r12.xyzx
  endif
  iadd r2.y, r2.y, l(1)
endloop
mad r6.xyz, r11.xyzx, r9.xyzx, r12.xyzx
mul r6.xyz, r6.xyzx, cb0[823].zzzz
mul r6.xyz, r6.xyzx, r14.xyzx
ge r7.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r6.xyzx
and r0.w, r7.y, r7.x
and r0.w, r7.z, r0.w
and r0.w, r0.w, r1.x
discard_nz r0.w
dp3 r0.w, r13.xyzx, l(0.300000, 0.300000, 0.400000, 0.000000)
add r1.xzw, -r0.wwww, r13.xxyz
mad r1.xzw, cb0[2].zzzz, r1.xxzw, r0.wwww
mul r7.xyz, r4.xyzx, cb0[2].xxxx
mul r7.yzw, r7.xxyz, l(0.000000, 0.325735033, 0.325735033, 0.325735033)
mov r7.x, l(0.282094806)
dp4_sat r0.w, r7.xyzw, r17.xyzw
mul r4.yzw, r4.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r4.x, l(0.282094806)
dp4 r7.x, r4.xyzw, cb0[52].xyzw
dp4 r7.y, r4.xyzw, cb0[53].xyzw
dp4 r7.z, r4.xyzw, cb0[54].xyzw
max r4.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r1.xzw, r0.wwww, r4.xxyz, r1.xxzw
mul r1.xzw, r1.xxzw, cb0[823].xxxx
mad r1.xzw, r5.xxyz, cb0[823].yyyy, r1.xxzw
mul r1.xzw, r1.xxzw, r14.xxyz
lt r0.w, r2.x, l(0.040450)
mul r2.y, r2.x, l(0.0773993805)
add r2.x, r2.x, l(0.055000)
mul r2.x, r2.x, l(0.947867334)
log r2.x, r2.x
mul r2.x, r2.x, l(2.400000)
exp r2.x, r2.x
movc r4.x, r0.w, r2.y, r2.x
lt r0.w, r2.z, l(0.040450)
mul r2.x, r2.z, l(0.0773993805)
add r2.y, r2.z, l(0.055000)
mul r2.y, r2.y, l(0.947867334)
log r2.y, r2.y
mul r2.y, r2.y, l(2.400000)
exp r2.y, r2.y
movc r4.y, r0.w, r2.x, r2.y
lt r0.w, r2.w, l(0.040450)
mul r2.x, r2.w, l(0.0773993805)
add r2.y, r2.w, l(0.055000)
mul r2.y, r2.y, l(0.947867334)
log r2.y, r2.y
mul r2.y, r2.y, l(2.400000)
exp r2.y, r2.y
movc r4.z, r0.w, r2.x, r2.y
mul r0.w, l(0.900000), cb3[37].w
exp r0.w, r0.w
mul r2.xyz, r0.wwww, r10.xyzx
mul r2.xyz, r2.xyzx, cb1[3].xxxx
mad r1.xzw, r1.xxzw, r4.xxyz, r2.xxyz
mul r2.xyz, r1.yyyy, r6.xyzx
mad r1.xyz, r1.xzwx, r1.yyyy, 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 r2.xyz, cb0[842].yzwy
mad r4.xyz, r2.xyzx, cb0[842].xxxx, l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r0.xyz, r0.xyzx, r4.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
div r2.xyz, l(1.000000, 1.000000, 1.000000, 1.000000), r2.xyzx
mul r0.xyz, r0.xyzx, r2.xyzx
sample_l_indexable(texture3d)(float,float,float,float) r0.x, r0.xyzx, t8.wxyz, s5, l(0.000000)
lt r0.y, l(0.000000), cb0[832].y
if_nz r0.y
  add r0.yzw, r3.xxyz, -cb0[831].xxyz
  dp3 r0.y, r0.yzwy, r0.yzwy
  sqrt r0.y, r0.y
  mul r0.z, r0.z, cb0[830].w
  lt r0.w, l(0.010000), |r0.z|
  mul r1.w, r0.z, l(-1.442695)
  exp r1.w, r1.w
  add r1.w, -r1.w, l(1.000000)
  div r0.z, r1.w, r0.z
  mul r0.z, r0.z, cb0[831].w
  movc r0.z, r0.w, r0.z, cb0[831].w
  mul r0.z, r0.z, cb0[832].y
  add r0.y, r0.y, -cb0[832].x
  max r0.y, r0.y, l(0.000000)
  mad r0.y, r0.z, r0.y, r0.x
  exp r0.y, -r0.y
  min r0.y, r0.y, l(1.000000)
else
  exp r0.x, -r0.x
  min r0.y, r0.x, l(1.000000)
endif
mul r0.xyz, r0.yyyy, r1.xyzx
mul o0.xyz, r0.xyzx, cb1[2].wwww
mov o0.w, l(0)
ret
// Approximately 958 instruction slots used
