//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:07:41 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-t8
//
// }
//
// 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__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
//
// }
//
// cbuffer ConstBuf__materialData
// {
//
//   struct MaterialData
//   {
//
//       float3 material_dudv1_matU;    // Index:    0
//       float3 material_dudv1_matV;    // Index:    1
//       float3 LayerX_normal_matU;     // Index:    2
//       float3 LayerX_normal_matV;     // Index:    3
//       float3 LayerX_emissive_matU;   // Index:    4
//       float3 LayerX_emissive_matV;   // Index:    5
//       float3 Layer1_normal_matU;     // Index:    6
//       float3 Layer1_normal_matV;     // Index:    7
//       float3 Layer1_emissive_matU;   // Index:    8
//       float3 Layer1_emissive_matV;   // Index:    9
//       float LayerX_cst_AlphaBlendAmount;// Index:    9.w
//
//   } resourceTables__materialData;    // Index:    0-9              Components:    40
                                        // Textures:  t41-t47
//
// }
//
//
// 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__passData.depthTexture    texture  float4          2d    0        1
// resourceTables__passData.volumetricFog    texture  float4          3d    8        1
// resourceTables__materialData.material_dudv1    texture  float4          2d   41        1
// resourceTables__materialData.LayerX_normal    texture  float4          2d   42        1
// resourceTables__materialData.LayerX_emissive    texture  float4          2d   43        1
// resourceTables__materialData.Layer1_opacity    texture  float4          2d   46        1
// resourceTables__materialData.Layer1_alpha    texture  float4          2d   47        1
// ConstBuf__passData                cbuffer      NA          NA    0        1
// ConstBuf__modelData               cbuffer      NA          NA    1        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
// 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   xyz
// BINORMAL                 0   xyz         6     NONE   float   xyz
// TEXCOORD                 5   xyzw        7     NONE   float   x
// TEXCOORD                 8   xyz         8     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[843], immediateIndexed
dcl_constantbuffer cb1[4], immediateIndexed
dcl_constantbuffer cb3[38], immediateIndexed
dcl_constantbuffer cb4[10], immediateIndexed
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s5, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture3d (float,float,float,float) t8
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) t46
dcl_resource_texture2d (float,float,float,float) t47
dcl_input_ps_siv linear noperspective v0.xyz, position
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xy
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_input_ps linear v7.x
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
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.xyzx
mov r5.xy, v2.xyxx
mov r5.z, l(1.000000)
dp3 r6.x, cb4[0].xyzx, r5.xyzx
dp3 r6.y, cb4[1].xyzx, r5.xyzx
sample_indexable(texture2d)(float,float,float,float) r1.zw, r6.xyxx, t41.zwxy, s1
mad r1.zw, r1.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -0.996078432, -0.996078432)
dp2 r0.w, cb4[2].xyxx, cb4[2].xyxx
rsq r0.w, r0.w
mul r6.xy, r0.wwww, cb4[2].xyxx
dp3 r7.x, cb4[2].xyzx, r5.xyzx
dp3 r7.y, cb4[3].xyzx, r5.xyzx
mad r5.xy, r1.zwzz, l(-0.0258789007, 0.0258789007, 0.000000, 0.000000), v2.xyxx
mov r5.z, l(1.000000)
dp3 r8.x, cb4[4].xyzx, r5.xyzx
dp3 r8.y, cb4[5].xyzx, r5.xyzx
dp3 r0.w, r4.xyzx, r2.xyzx
dp2 r1.x, r1.xyxx, r1.xyxx
sqrt r1.x, r1.x
min r0.w, |r0.w|, l(1.000000)
log r0.w, r0.w
mul r0.w, r0.w, l(0.0323485993)
exp r0.w, r0.w
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 r0.w, r0.w, r1.x
mad_sat r0.w, r0.w, v7.x, l(-0.488159)
sample_indexable(texture2d)(float,float,float,float) r5.xyz, r7.xyxx, t42.xyzw, s2
mad r5.xyz, r5.xyzx, l(2.007874, 2.007874, 2.007874, 0.000000), l(-1.007874, -1.007874, -1.007874, 0.000000)
dp2 r7.x, r6.xyxx, r5.xyxx
mov r6.z, -r6.y
dp2 r7.y, r6.zxzz, r5.xyxx
sample_indexable(texture2d)(float,float,float,float) r5.xyw, r8.xyxx, t43.xywz, s1
mov r7.z, r5.z
dp3 r1.y, r7.xyzx, r7.xyzx
sqrt r1.y, r1.y
max r1.y, r1.y, l(0.000010)
rcp r1.y, r1.y
mul r6.xyz, r1.yyyy, r7.xyzx
mul r5.xyz, r5.xywx, l(100.000000, 100.000000, 100.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r1.y, v3.xyxx, t46.yxzw, s1
sample_indexable(texture2d)(float,float,float,float) r2.w, v2.xyxx, t47.yzwx, s2
dp3 r4.w, v5.xyzx, v5.xyzx
rsq r4.w, r4.w
mul r7.xyz, r4.wwww, v5.xyzx
dp3 r4.w, v6.xyzx, v6.xyzx
rsq r4.w, r4.w
mul r8.xyz, r4.wwww, v6.xyzx
dp3 r4.w, r6.xyzx, r6.xyzx
rsq r4.w, r4.w
mul r6.xyz, r4.wwww, r6.xyzx
mul r8.xyz, r8.xyzx, r6.yyyy
mad r6.xyw, r6.xxxx, r7.xyxz, r8.xyxz
mad r4.xyz, r6.zzzz, r4.xyzx, r6.xywx
dp3 r4.w, r4.xyzx, r4.xyzx
rsq r4.w, r4.w
mul r4.xyz, r4.wwww, r4.xyzx
dp3 r2.x, r4.xyzx, r2.xyzx
min r2.x, |r2.x|, l(1.000000)
log r2.x, r2.x
mul r2.x, r2.x, l(0.519409)
exp r2.x, r2.x
mul r1.x, r1.x, r2.x
mul r1.x, r1.x, r2.w
mul r1.x, r1.x, v7.x
mad_sat r1.x, r1.x, r1.y, l(-0.422119)
mul r1.y, r1.x, l(0.447205)
mad_sat r0.w, r0.w, cb4[9].w, r1.y
lt r1.x, l(0.000000), r1.x
if_nz r1.x
  mad r2.xy, r1.zwzz, l(-0.0258789007, 0.0258789007, 0.000000, 0.000000), v3.xyxx
  mov r2.z, l(1.000000)
  dp3 r4.x, cb4[8].xyzx, r2.xyzx
  dp3 r4.y, cb4[9].xyzx, r2.xyzx
  sample_indexable(texture2d)(float,float,float,float) r1.xzw, r4.xyxx, t43.xwyz, s1
  mul r1.xyz, r1.yyyy, r1.xzwx
  mad r5.xyz, r1.xyzx, l(150.000000, 150.000000, 150.000000, 0.000000), r5.xyzx
endif
ge r1.x, l(0.000100), r0.w
discard_nz r1.x
exp r1.x, cb3[37].w
mul r1.xyz, r1.xxxx, r5.xyzx
mul r1.xyz, r1.xyzx, cb1[3].xxxx
ftoi r2.xy, v0.xyxx
lt r1.w, r0.w, l(0.040450)
mul r4.x, r0.w, l(0.0773993805)
add r0.w, r0.w, l(0.055000)
mul r0.w, r0.w, l(0.947867334)
log r0.w, r0.w
mul r0.w, r0.w, l(2.400000)
exp r0.w, r0.w
movc r0.w, r1.w, r4.x, r0.w
mov r3.w, l(1.000000)
dp4 r1.w, r3.xyzw, cb3[2].xyzw
mov r2.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r2.x, r2.xyzw, t0.xyzw
add r1.w, r1.w, r2.x
mul_sat r1.w, r1.w, l(0.536106765)
lt r2.x, l(0.500000), r1.w
add r2.y, -r1.w, l(1.000000)
movc r1.w, r2.x, r2.y, r1.w
add r1.w, r1.w, r1.w
mul r2.y, r1.w, r1.w
mul r1.w, r1.w, r2.y
mul r2.y, r1.w, l(0.500000)
mad r1.w, -r1.w, l(0.500000), l(1.000000)
movc r1.w, r2.x, r1.w, r2.y
mul r0.w, r0.w, r1.w
mul r1.xyz, r0.wwww, r1.xyzx
mad r0.w, v0.z, cb0[832].z, cb0[832].w
rcp r0.w, r0.w
mad r0.w, -r0.w, cb0[841].w, l(1.000000)
log r0.w, r0.w
mul 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 166 instruction slots used
