//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:26 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
//
// }
//
// cbuffer ConstBuf__materialData
// {
//
//   struct MaterialData
//   {
//
//       float3 BaseLayer1_normal_matU; // Index:    0
//       float3 BaseLayer1_normal_matV; // Index:    1
//       float3 BaseLayer1_opacity_matU;// Index:    2
//       float3 BaseLayer1_opacity_matV;// Index:    3
//       float3 BaseLayer2_normal_matU; // Index:    4
//       float3 BaseLayer2_normal_matV; // Index:    5
//       float3 BaseLayer2_opacity_matU;// Index:    6
//       float3 BaseLayer2_opacity_matV;// Index:    7
//       float3 AlphaMask1_opacity_matU;// Index:    8
//       float3 AlphaMask1_opacity_matV;// Index:    9
//
//   } resourceTables__materialData;    // Index:    0-9.z            Components:    39
                                        // Textures:  t41-t45
//
// }
//
//
// 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.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.BaseLayer1_normal    texture  float4          2d   41        1
// resourceTables__materialData.BaseLayer1_opacity    texture  float4          2d   42        1
// resourceTables__materialData.AlphaMask1_opacity    texture  float4          2d   45        1
// ConstBuf__passData                cbuffer      NA          NA    0        1
// ConstBuf__modelData               cbuffer      NA          NA    1        1
// ConstBuf__batchData               cbuffer      NA          NA    2        1
// ConstBuf__viewData                cbuffer      NA          NA    3        1
// 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
// NORMAL                   0   xyz         3     NONE   float   xyz
// TANGENT                  0   xyz         4     NONE   float   xyz
// BINORMAL                 0   xyz         5     NONE   float   xyz
// TEXCOORD                 5   xyzw        6     NONE   float   xy
// 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[1], immediateIndexed
dcl_constantbuffer cb2[87], dynamicIndexed
dcl_constantbuffer cb3[37], immediateIndexed
dcl_constantbuffer cb4[10], 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_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) t45
dcl_input_ps_siv linear noperspective v0.xyz, position
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xy
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 r0.xy, r0.xyxx, l(2.000000, -2.000000, 0.000000, 0.000000), l(-1.000000, 1.000000, 0.000000, 0.000000)
mad r0.z, v0.z, cb3[35].z, cb3[35].w
rcp r0.z, r0.z
mov r1.z, -r0.z
mul r1.xy, r0.xyxx, r1.zzzz
mov r1.w, l(1.000000)

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

dp4 r2.x, r1.xyzw, cb3[12].xyzw
dp4 r2.y, r1.xyzw, cb3[13].xyzw
dp4 r2.z, r1.xyzw, cb3[14].xyzw
add r1.xyz, -r2.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 r1.x, r40.x, r41.x, r1.x
mad r1.y, r40.x, r41.y, r1.y
mad r1.z, r40.x, r41.z, r1.z

dp3 r0.z, r1.xyzx, r1.xyzx
rsq r0.z, r0.z
mul r1.xyz, r0.zzzz, r1.xyzx
dp3 r0.z, v3.xyzx, v3.xyzx
rsq r0.z, r0.z
mul r3.xyz, r0.zzzz, v3.xyzx
dp2 r0.z, cb4[0].xyxx, cb4[0].xyxx
rsq r0.z, r0.z
mul r4.xy, r0.zzzz, cb4[0].xyxx
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
dp3 r7.x, cb4[2].xyzx, r5.xyzx
dp3 r7.y, cb4[3].xyzx, r5.xyzx
dp3 r8.x, cb4[6].xyzx, r5.xyzx
dp3 r8.y, cb4[7].xyzx, r5.xyzx
dp3 r9.x, cb4[8].xyzx, r5.xyzx
dp3 r9.y, cb4[9].xyzx, r5.xyzx
sample_indexable(texture2d)(float,float,float,float) r0.z, r7.xyxx, t42.yzxw, s1
dp3 r0.w, r3.xyzx, r1.xyzx
dp2 r1.w, r0.xyxx, r0.xyxx
sqrt r1.w, r1.w
min r0.w, |r0.w|, l(1.000000)
rsq r0.w, r0.w
div r0.w, l(1.000000, 1.000000, 1.000000, 1.000000), r0.w
add_sat r1.w, -r1.w, l(2.000000)
mul r3.w, r1.w, r1.w
mad r1.w, -r1.w, l(2.000000), l(3.000000)
mul r1.w, r1.w, r3.w
mul r0.w, r0.w, r1.w
mul_sat r0.z, r0.z, r0.w
mul r0.w, r0.z, l(0.594000041)
deriv_rtx_fine r3.w, r0.w
deriv_rty_fine r0.w, r0.w
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r6.xyxx, t41.xyzw, s2
mad r7.xyz, r7.xyzx, l(2.007874, 2.007874, 2.007874, 0.000000), l(-1.007874, -1.007874, -1.007874, 0.000000)
dp2 r10.x, r4.xyxx, r7.xyxx
mov r4.z, -r4.y
dp2 r10.y, r4.zxzz, r7.xyxx
mov r10.z, r7.z
dp3 r4.x, r10.xyzx, r10.xyzx
sqrt r4.x, r4.x
max r4.x, r4.x, l(0.000010)
rcp r4.z, r4.x
mul r7.xyz, r4.zzzz, r10.xyzx
ne r4.z, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].w
mul r3.w, r3.w, l(0.010000)
mul r0.w, r0.w, l(0.010000)
deriv_rtx_fine r6.zw, r6.xxxy
deriv_rty_fine r6.xy, r6.xyxx
dp2 r4.w, r6.zwzz, r6.zwzz
dp2 r5.w, r6.xyxx, r6.xyxx
max r4.w, r4.w, l(0.001000)
div r6.zw, r6.zzzw, r4.wwww
max r4.w, r5.w, l(0.001000)
div r6.xy, r6.xyxx, r4.wwww
mul r6.xy, r0.wwww, r6.xyxx
mad r6.xy, r6.zwzz, r3.wwww, r6.xyxx
mad r6.xy, -r6.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000), r7.xyxx
mov r6.z, r7.z
dp3 r0.w, r6.xyzx, r6.xyzx
rsq r0.w, r0.w
mul r6.xyz, r0.wwww, r6.xyzx
movc r6.xyz, r4.zzzz, r7.xyzx, r6.xyzx
sample_indexable(texture2d)(float,float,float,float) r0.w, r8.xyxx, t42.yzwx, s1
dp3 r3.w, v4.xyzx, v4.xyzx
rsq r3.w, r3.w
mul r7.xyz, r3.wwww, v4.xyzx
dp3 r3.w, v5.xyzx, v5.xyzx
rsq r3.w, r3.w
mul r8.xyz, r3.wwww, v5.xyzx
dp3 r3.w, r6.xyzx, r6.xyzx
rsq r3.w, r3.w
mul r10.xyz, r3.wwww, r6.xyzx
mul r11.xyz, r8.xyzx, r10.yyyy
mad r10.xyw, r10.xxxx, r7.xyxz, r11.xyxz
mad r10.xyz, r10.zzzz, r3.xyzx, r10.xywx
dp3 r3.w, r10.xyzx, r10.xyzx
rsq r3.w, r3.w
mul r10.xyz, r3.wwww, r10.xyzx
dp3 r1.x, r10.xyzx, r1.xyzx
min r1.x, |r1.x|, l(1.000000)
rsq r1.x, r1.x
div r1.x, l(1.000000, 1.000000, 1.000000, 1.000000), r1.x
mul r1.x, r1.w, r1.x
mul r1.x, r1.x, v6.x
mad_sat r0.w, r1.x, r0.w, l(0.196078)
mad r0.z, r0.z, l(0.990000), r0.w
min r0.z, r0.z, l(1.000000)
lt r1.x, l(0.000000), r0.w
if_nz r1.x
  dp2 r1.x, cb4[4].xyxx, cb4[4].xyxx
  rsq r1.x, r1.x
  mul r1.xy, r1.xxxx, cb4[4].xyxx
  dp3 r10.x, cb4[4].xyzx, r5.xyzx
  dp3 r10.y, cb4[5].xyzx, r5.xyzx
  sample_indexable(texture2d)(float,float,float,float) r5.xyz, r10.xyxx, t41.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 r10.x, r1.xyxx, r5.xyxx
  mov r1.z, -r1.y
  dp2 r10.y, r1.zxzz, r5.xyxx
  mov r10.z, r5.z
  dp3 r1.x, r10.xyzx, r10.xyzx
  sqrt r1.x, r1.x
  max r1.x, r1.x, l(0.000010)
  rcp r1.y, r1.x
  add r1.x, -r4.x, r1.x
  mad r4.x, r0.w, r1.x, r4.x
  mad r1.xyz, r10.xyzx, r1.yyyy, -r6.xyzx
  mad r6.xyz, r0.wwww, r1.xyzx, r6.xyzx
  mad r0.w, r0.w, l(-0.629000), l(0.730000)
else
  mov r0.w, l(0.730000)
endif
sample_indexable(texture2d)(float,float,float,float) r1.x, r9.xyxx, t45.xyzw, s1
mad r1.x, v6.y, r1.x, l(0.0392156988)
mul_sat r1.x, r1.x, l(4.250002)
add r0.z, r0.z, -r1.x
max r0.z, r0.z, l(0.000000)
lt r1.y, l(0.000000), r1.x
if_nz r1.y
  add r1.yzw, -r6.xxyz, l(0.000000, 0.000000, 0.000000, 1.000000)
  mad r6.xyz, r1.xxxx, r1.yzwy, r6.xyzx
  add r1.y, -r4.x, l(1.000000)
  mad r4.x, r1.x, r1.y, r4.x
  add r1.y, -r0.w, l(0.900000)
  mad r0.w, r1.x, r1.y, r0.w
endif
ge r1.x, l(0.000100), r0.z
discard_nz r1.x
dp3 r1.y, r6.xyzx, r6.xyzx
rsq r1.y, r1.y
mul r1.yzw, r1.yyyy, r6.xxyz
mul r5.xyz, r8.xyzx, r1.zzzz
mad r5.xyz, r1.yyyy, r7.xyzx, r5.xyzx
mad r1.yzw, r1.wwww, r3.xxyz, r5.xxyz
dp3 r3.w, r1.yzwy, r1.yzwy
rsq r3.w, r3.w
mul r5.xyz, r1.yzwy, r3.wwww
ne r4.z, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].z
deriv_rtx_fine r6.xyz, r3.xyzx
deriv_rty_fine r3.xyz, r3.xyzx
dp3 r4.w, r6.xyzx, r6.xyzx
dp3 r3.x, r3.xyzx, r3.xyzx
add r3.x, r3.x, r4.w
min r4.y, r3.x, l(0.300000)
movc r3.xy, r4.zzzz, l(1.000000,0,0,0), r4.xyxx
add r0.w, -r0.w, l(1.000000)
mul r0.w, r0.w, r0.w
max r3.x, r3.x, l(0.600000)
mad r3.x, r3.x, l(-0.527635), l(0.520718)
max r3.x, r3.x, l(0.000000)
mad r0.w, r0.w, r0.w, r3.x
add r0.w, r3.y, r0.w
sqrt r0.w, r0.w
min r0.w, r0.w, l(1.000000)
max r0.w, r0.w, l(0.001000)
sqrt r0.w, r0.w
add r0.w, -r0.w, l(1.000000)
ftoi r3.xy, v0.yxyy
add r4.xyz, -r2.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 r4.x, r40.x, r41.x, r4.x
mad r4.y, r40.x, r41.y, r4.y
mad r4.z, r40.x, r41.z, r4.z

dp3 r3.z, r4.xyzx, r4.xyzx
rsq r3.z, r3.z
mul r6.xyz, r3.zzzz, r4.xyzx
add r7.x, -r0.w, l(1.000000)
mul r0.w, r7.x, r7.x
max r0.w, r0.w, l(0.001000)
mul r4.w, r7.x, r0.w
dp3 r5.w, -r6.xyzx, r5.xyzx
add r5.w, r5.w, r5.w
mad r8.xyz, r5.xyzx, -r5.wwww, -r6.xyzx
mad r1.yzw, r1.zzwy, r3.wwww, -r8.yyzx
mad r1.yzw, r4.wwww, r1.yyzw, r8.yyzx
dp3 r3.w, r1.yzwy, r1.yzwy
rsq r3.w, r3.w
mul r1.yzw, r1.yyzw, r3.wwww
mul r7.zw, l(0.000000, 0.000000, -1.000000, 1.000000), cb2[71].xxxy
mul r7.zw, r1.zzzz, r7.zzzw
mad r9.xz, r1.wwww, cb2[71].yyxy, r7.zzwz
dp3 r3.w, r5.xyzx, r6.xyzx
mov r2.w, l(1.000000)
dp4 r10.x, cb2[72].xyzw, r2.xyzw
dp4 r10.y, cb2[73].xyzw, r2.xyzw
dp4 r10.z, cb2[74].xyzw, r2.xyzw
mov r9.y, r1.y
dp3 r11.x, cb2[72].xyzx, r9.xyzx
dp3 r11.y, cb2[73].xyzx, r9.xyzx
dp3 r11.z, cb2[74].xyzx, r9.xyzx
div r12.xyz, l(1.000000, 1.000000, 1.000000, 1.000000), r11.xyzx
lt r13.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), r11.xyzx
lt r11.xyz, r11.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
iadd r11.xyz, -r13.xyzx, r11.xyzx
itof r11.xyz, r11.xyzx
mad r10.xyz, r11.xyzx, cb2[75].xyzx, -r10.xyzx
mul r10.xyz, r12.xyzx, r10.xyzx
lt r11.xyz, r10.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
movc r10.xyz, r11.xyzx, l(99999997952.000000,99999997952.000000,99999997952.000000,0), r10.xyzx
min r4.w, r10.z, r10.y
min r4.w, r4.w, r10.x
mad r9.xyz, r9.xyzx, r4.wwww, r2.xyzx
add r9.xyz, r9.xyzx, -cb2[76].xyzx
dp3 r4.w, r9.xyzx, r9.xyzx
rsq r4.w, r4.w
mul r9.xyz, r4.wwww, r9.xyzx
mul r10.yzw, r9.yyzx, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r10.x, l(0.282094806)
dp4 r4.w, r10.xyzw, cb2[68].xyzw
dp4 r5.w, r10.xyzw, cb2[69].xyzw
dp4 r6.w, r10.xyzw, cb2[70].xyzw
rcp r10.x, r4.w
rcp r10.y, r5.w
rcp r10.z, r6.w
iadd r4.w, l(-3), cb2[71].z
utof r4.w, r4.w
mul r4.w, r4.w, r7.x
lt r5.w, r4.w, l(1.000000)
mad_sat r6.w, r4.w, l(2.000000), l(-1.000000)
movc r4.w, r5.w, r6.w, r4.w
sample_l_indexable(texturecube)(float,float,float,float) r9.xyz, r9.xyzx, t21.xyzw, s5, r4.w
mul r9.xyz, r10.xyzx, r9.xyzx
sqrt r7.y, |r3.w|
mad r7.xy, r7.xyxx, l(0.996093750, 0.996093750, 0.000000, 0.000000), l(0.00195312500, 0.00195312500, 0.000000, 0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r7.xy, r7.xyxx, t7.xyzw, s5, l(0.000000)
mad r4.w, r7.x, l(0.042000), r7.y
mul r7.xyz, r4.wwww, r9.xyzx
mul r9.xyz, r2.yyyy, cb2[9].xzyx
mad r9.xyz, cb2[8].xzyx, r2.xxxx, r9.xyzx
mad r9.xyz, cb2[10].xzyx, r2.zzzz, r9.xyzx
add r9.xyz, r9.xyzx, cb2[11].xzyx
lt r10.xyz, |r9.xzyx|, l(0.500000, 0.500000, 0.500000, 0.000000)
and r4.w, r10.y, r10.x
and r4.w, r10.z, r4.w
if_nz r4.w
  add r9.xyz, r9.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
  and r4.w, l(1), cb2[27].x
  if_nz r4.w
    utof r10.xyz, cb2[15].xyzx
    mul r10.xyz, r9.xyzx, r10.xyzx
    ftoi r11.xyz, r10.xyzx
    mov r11.w, l(0)
    ld_indexable(texture3d)(float,float,float,float) r11.xyzw, r11.xyzw, t22.xyzw
    mul r12.xyzw, r11.xyzw, l(1020.000000, 255.000000, 63.750000, 255.000000)
    frc r4.w, r12.z
    mad r12.x, r4.w, l(4.000000), r12.x
    mad r12.z, r11.z, l(63.750000), -r4.w
    frc r10.xyz, r10.xyzx
    mad r10.xyz, r10.xyzx, r12.wwww, r12.xyzx
    add r10.xyz, r10.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
    utof r11.xyz, cb2[17].xyzx
    div r9.xyz, r10.xyzx, r11.xyzx
  endif
  sample_l_indexable(texture3d)(float,float,float,float) r10.xyzw, r9.xyzx, t23.xyzw, s5, l(0.000000)
  mul r10.xyzw, r10.xyzw, cb2[26].xyzw
  sample_l_indexable(texture3d)(float,float,float,float) r11.xyzw, r9.xyzx, t24.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r12.xyzw, r9.xyzx, t25.xyzw, s5, l(0.000000)
  sample_l_indexable(texture3d)(float,float,float,float) r9.xyzw, r9.xyzx, t26.xyzw, s5, l(0.000000)
  mad r11.xyzw, r11.xyzw, cb2[20].xyzw, cb2[19].xyzw
  mad r12.xyzw, r12.xyzw, cb2[22].xyzw, cb2[21].xyzw
  mad r9.xyzw, r9.xyzw, cb2[24].xyzw, cb2[23].xyzw
  mul r11.xyzw, r11.xyzw, cb2[26].xyzw
  mul r12.xyzw, r12.xyzw, cb2[26].xyzw
  mul r9.xyzw, r9.xywz, cb2[26].xywz
  mov r13.x, r9.z
  mov r13.y, r11.w
  mov r13.z, r12.w
  dp3 r14.w, cb2[12].xyzx, r13.xyzx
  dp3 r14.y, cb2[13].xyzx, r13.xyzx
  dp3 r14.z, cb2[14].xyzx, r13.xyzx
  mul r13.xyz, r1.wyzw, cb0[2].yyyy
  mul r15.xyz, r13.yyyy, cb2[13].yzxy
  mad r13.xyw, cb2[12].yzyx, r13.xxxx, r15.xyxz
  mad r13.xyz, cb2[14].yzxy, r13.zzzz, r13.xywx
  mul r13.yzw, r13.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
  mov r13.x, l(0.282094806)
  mov r15.x, r10.x
  mov r15.y, r11.x
  mov r15.z, r12.x
  mov r15.w, r9.x
  dp4 r15.x, r13.xyzw, r15.xyzw
  mov r16.x, r10.y
  mov r16.y, r11.y
  mov r16.z, r12.y
  mov r16.w, r9.y
  dp4 r15.y, r13.xyzw, r16.xyzw
  mov r9.x, r10.z
  mov r9.y, r11.z
  mov r9.z, r12.z
  dp4 r15.z, r13.xyzw, r9.xyzw
  max r9.xyz, r15.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  mov r14.x, r10.w
else
  mov r14.xyzw, cb0[3].xyzw
  mov r9.xyz, l(0,0,0,0)
endif
dp3 r4.w, r9.xyzx, l(0.300000, 0.300000, 0.400000, 0.000000)
add r9.xyz, -r4.wwww, r9.xyzx
mad r9.xyz, cb0[2].zzzz, r9.xyzx, r4.wwww
mul r10.xyz, r1.yzwy, cb0[2].yyyy
mul r10.yzw, r10.xxyz, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r10.x, l(0.282094806)
dp4_sat r4.w, r10.xyzw, r14.xyzw
mul r10.yzw, r1.yyzw, l(0.000000, 0.488602519, 0.488602519, 0.488602519)
mov r10.x, l(0.282094806)
dp4 r11.x, r10.xyzw, cb0[25].xyzw
dp4 r11.y, r10.xyzw, cb0[26].xyzw
dp4 r11.z, r10.xyzw, cb0[27].xyzw
max r1.yzw, r11.xxyz, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r1.yzw, r4.wwww, r1.yyzw, r9.xxyz
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 r3.xy, r3.xyxx
mul r3.xy, r3.xyxx, l(4159.000000, 3169.000000, 0.000000, 0.000000)
add r3.x, r3.y, r3.x
mul r3.x, r3.x, l(0.159154937)
frc r3.x, r3.x
mul r3.x, r3.x, l(39.478420)
sincos r3.x, r9.x, r3.x
mov r10.x, -r3.x
dp4 r11.x, r2.xyzw, cb0[586].xyzw
dp4 r11.y, r2.xyzw, cb0[587].xyzw
dp4 r3.y, r2.xyzw, cb0[588].xyzw
dp4 r4.w, r2.xyzw, cb0[589].xyzw
div r9.yz, r11.xxyx, r4.wwww
lt r11.xy, l(1.000000, 1.000000, 0.000000, 0.000000), |r9.yzyy|
or r5.w, r11.y, r11.x
max r6.w, |r9.z|, |r9.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 r3.w, |r3.w|, l(0.001000)
mad r9.yz, r9.yyzy, l(0.000000, 0.500000, -0.500000, 0.000000), l(0.000000, 0.500000, 0.500000, 0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r11.xyzw, r9.yzyy, t3.xyzw, s5, l(0.000000)
sample_l_indexable(texture2d)(float,float,float,float) r12.xyzw, r9.yzyy, t4.xyzw, s5, l(0.000000)
div r3.y, r3.y, r4.w
max r3.y, r3.y, l(0.000000)
min r3.y, r3.y, l(0.999990)
mul r4.w, r3.y, l(8.000000)
round_ni r4.w, r4.w
ftoi r7.w, r4.w
ilt r8.w, r7.w, l(7)
iadd r9.y, r7.w, l(1)
movc r8.w, r8.w, r9.y, l(7)
mad r3.y, r3.y, l(8.000000), -r4.w
mov r10.y, r9.x
mov r9.z, l(1.000000)
mov r13.z, l(1.000000)
mov r14.z, l(1.000000)
mov r15.z, l(1.000000)
mov r16.z, l(0)
mov r10.z, r3.x
mov r17.xyz, l(0,0,0,0)
mov r3.x, l(0)
loop
  uge r4.w, r3.x, cb2[0].z
  breakc_nz r4.w
  imul null, r9.yw, l(0, 5, 0, 13), cb2[r3.x + 0].xxxx
  ushr r4.w, cb0[r9.y + 58].w, l(30)
  dp4 r18.x, r2.xyzw, cb0[r9.w + 378].xyzw
  dp4 r18.y, r2.xyzw, cb0[r9.w + 379].xyzw
  dp4 r18.z, r2.xyzw, cb0[r9.w + 380].xyzw
  ine r10.w, r4.w, l(2)
  if_nz r10.w
    dp4 r13.y, r2.xyzw, cb0[r9.w + 381].xyzw
    lt r14.yw, r13.yyyy, |r18.xxxy|
    or r13.w, r14.w, r14.y
    lt r14.y, r13.y, l(0.000000)
    or r13.w, r13.w, r14.y
    if_nz r13.w
      mov r19.xyz, l(0,0,0,0)
    else
      div r19.xyz, r18.xyzx, r13.yyyy
      mad r19.xy, r19.xyxx, cb0[r9.w + 385].xyxx, cb0[r9.w + 385].zwzz
    endif
    mov r14.y, l(0)
  else
    lt r14.w, r18.z, l(0.000000)
    lt r15.w, l(1.000000), r18.z
    or r14.y, r14.w, r15.w
    if_z r14.y
      add r14.w, l(1.000000), cb0[r9.w + 390].x
      dp2 r14.w, cb0[0].yyyy, r14.wwww
      add r14.w, -r14.w, l(1.000000)
      mov r9.x, cb0[r9.w + 382].x
      mad r20.xyz, r18.xyzx, r9.xxzx, cb0[r9.w + 382].yzwy
      mov r13.x, cb0[r9.w + 383].x
      mad r21.xyz, r18.xyzx, r13.xxzx, cb0[r9.w + 383].yzwy
      mov r14.x, cb0[r9.w + 384].x
      mad r22.xyz, r18.xyzx, r14.xxzx, cb0[r9.w + 384].yzwy
      lt r23.xy, |r18.xyxx|, r14.wwww
      and r9.x, r23.y, r23.x
      lt r23.xy, |r20.xyxx|, r14.wwww
      and r13.x, r23.y, r23.x
      lt r23.xy, |r21.xyxx|, r14.wwww
      and r14.x, r23.y, r23.x
      lt r23.xy, |r22.xyxx|, r14.wwww
      and r14.w, r23.y, r23.x
      mad r22.xy, r22.xyxx, cb0[r9.w + 388].xyxx, cb0[r9.w + 388].zwzz
      mad r21.xy, r21.xyxx, cb0[r9.w + 387].xyxx, cb0[r9.w + 387].zwzz
      movc r21.xyz, r14.xxxx, r21.xyzx, r22.xyzx
      mad r20.xy, r20.xyxx, cb0[r9.w + 386].xyxx, cb0[r9.w + 386].zwzz
      movc r20.xyz, r13.xxxx, r20.xyzx, r21.xyzx
      mov r15.xy, cb0[r9.w + 385].xyxx
      mov r16.xy, cb0[r9.w + 385].zwzz
      mad r15.xyw, r18.xyxz, r15.xyxz, r16.xyxz
      movc r19.xyz, r9.xxxx, r15.xywx, r20.xyzx
      movc r14.w, r14.w, l(3), l(-1)
      movc r14.x, r14.x, l(2), r14.w
      movc r13.x, r13.x, l(1), r14.x
      movc r13.w, r9.x, l(0), r13.x
    else
      mov r19.xyz, l(0,0,0,0)
      mov r13.w, l(0)
    endif
    mov r13.y, l(-1)
  endif
  movc r9.x, r14.y, r13.y, r13.w
  ige r9.x, r9.x, l(0)
  if_nz r9.x
    mul r9.x, l(0.500000), cb0[r9.w + 390].x
    mul r18.xyzw, r9.xxxx, cb0[1].xyxy
    mul r20.xyzw, r10.yzyz, r18.zwzw
    mad r21.xyzw, r20.zwzw, l(-0.550705791, -0.550705791, 0.924529552, 0.924529552), r19.xyxy
    mul r18.xyzw, r10.xyxy, r18.xyzw
    mad r21.xyzw, r18.zwzw, l(0.495261461, 0.495261461, -0.131719455, -0.131719455), r21.xyzw
    mov_sat r19.z, r19.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r9.x, r21.xyxx, t2.xxxx, s7, r19.z
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r13.x, r21.zwzz, t2.xxxx, s7, r19.z
    add r9.x, r9.x, r13.x
    mad r21.xyzw, r20.zwzw, l(0.389092624, 0.389092624, -0.182296202, -0.182296202), r19.xyxy
    mad r21.xyzw, r18.zwzw, l(0.862155199, 0.862155199, -0.714493573, -0.714493573), r21.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r13.x, r21.xyxx, t2.xxxx, s7, r19.z
    add r9.x, r9.x, r13.x
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r13.x, r21.zwzz, t2.xxxx, s7, r19.z
    add r9.x, r9.x, r13.x
    mad r20.xyzw, r20.xyzw, l(-0.00643500872, -0.00643500872, -0.432008445, -0.432008445), r19.xyxy
    mad r18.xyzw, r18.xyzw, l(0.191590905, 0.191590905, -0.168338627, -0.168338627), r20.xyzw
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r13.x, r18.xyxx, t2.xxxx, s7, r19.z
    add r9.x, r9.x, r13.x
    sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r13.x, r18.zwzz, t2.xxxx, s7, r19.z
    add r9.x, r9.x, r13.x
    mul r9.x, r9.x, l(0.166666672)
  else
    mov r9.x, l(1.000000)
  endif
  add_sat r9.x, r9.x, cb0[r9.w + 390].y
  ieq r4.w, r4.w, l(2)
  if_nz r4.w
    if_nz r5.w
      mov r13.x, l(1.000000)
    endif
    if_z r5.w
      mov x1[0].x, r11.x
      mov x1[1].x, r11.y
      mov x1[2].x, r11.z
      mov x1[3].x, r11.w
      mov x1[4].x, r12.x
      mov x1[5].x, r12.y
      mov x1[6].x, r12.z
      mov x1[7].x, r12.w
      mov r13.y, x1[r7.w + 0].x
      mov r13.w, x1[r8.w + 0].x
      add r13.w, -r13.y, r13.w
      mad r13.y, r3.y, r13.w, r13.y
      exp r13.y, -r13.y
      add r13.y, r6.w, r13.y
      min r13.x, r13.y, l(1.000000)
    endif
  else
    mov r13.x, l(1.000000)
  endif
  ine r13.y, l(-1), cb0[r9.w + 389].x
  and r13.y, r4.w, r13.y
  if_nz r13.y
    imul null, r9.w, l(13), cb0[r9.w + 389].x
    dp4 r13.y, r2.xyzw, cb0[r9.w + 601].xyzw
    lt r13.w, r13.y, l(0.000000)
    lt r14.x, l(1.000000), r13.y
    or r13.w, r13.w, r14.x
    if_z r13.w
      dp4 r14.x, r2.xyzw, cb0[r9.w + 599].xyzw
      dp4 r14.y, r2.xyzw, cb0[r9.w + 600].xyzw
      mad r15.xy, r14.xyxx, cb0[r9.w + 606].xyxx, cb0[r9.w + 606].zwzz
      lt r14.xy, l(1.000000, 1.000000, 0.000000, 0.000000), |r14.xyxx|
      or r14.x, r14.y, r14.x
    else
      mov r15.xy, l(0,0,0,0)
      mov r13.y, l(0)
      mov r14.x, l(0)
    endif
    ige r14.x, r14.x, l(0)
    movc r13.w, r13.w, l(0), r14.x
    if_nz r13.w
      mov_sat r13.y, r13.y
      sample_c_lz_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r13.y, r15.xyxx, t2.xxxx, s7, r13.y
    else
      mov r13.y, l(1.000000)
    endif
    add_sat r9.w, r13.y, cb0[r9.w + 611].y
    mul r9.x, r9.w, r9.x
  endif
  ige r9.w, cb0[r9.y + 62].x, l(0)
  if_nz r9.w
    ishl r9.w, cb0[r9.y + 62].x, l(2)
    mov r18.x, x0[r9.w + 0].x
    mov r19.x, x0[r9.w + 1].x
    mov r20.x, x0[r9.w + 3].x
    mov r18.y, x0[r9.w + 0].y
    mov r19.y, x0[r9.w + 1].y
    mov r20.y, x0[r9.w + 3].y
    mov r18.z, x0[r9.w + 0].z
    mov r19.z, x0[r9.w + 1].z
    mov r20.z, x0[r9.w + 3].z
    mov r18.w, x0[r9.w + 0].w
    mov r19.w, x0[r9.w + 1].w
    mov r20.w, x0[r9.w + 3].w
    dp4 r14.x, r2.xyzw, r18.xyzw
    dp4 r14.y, r2.xyzw, r19.xyzw
    dp4 r9.w, r2.xyzw, r20.xyzw
    div r13.yw, r14.xxxy, r9.wwww
    sample_l_indexable(texture2d)(float,float,float,float) r14.xyw, r13.ywyy, t11.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r15.xyw, r13.ywyy, t12.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r16.xyw, r13.ywyy, t13.xywz, s1, l(0.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r18.xyz, r13.ywyy, t14.xyzw, s1, l(0.000000)
    ieq r19.xyz, l(1, 2, 3, 0), cb0[r9.y + 62].xxxx
    movc r14.xyw, r19.xxxx, r15.xyxw, r14.xyxw
    movc r14.xyw, r19.yyyy, r16.xyxw, r14.xyxw
    movc r14.xyw, r19.zzzz, r18.xyxz, r14.xyxw
  else
    mov r14.xyw, l(1.000000,1.000000,0,1.000000)
  endif
  and r9.w, cb1[0].x, cb0[r9.y + 58].w
  add r15.xyw, -r2.xyxz, cb0[r9.y + 59].xyxz
  dp3 r13.y, r15.xywx, r15.xywx
  rsq r13.w, r13.y
  mul r15.xyw, r13.wwww, r15.xyxw
  add r13.w, r13.y, -cb0[r9.y + 59].w
  max r13.w, r13.w, l(0.001000)
  rcp r13.w, r13.w
  mad r13.w, cb0[r9.y + 59].w, r13.w, l(1.000000)
  rsq r13.w, r13.w
  add r13.w, -r13.w, l(1.000000)
  mul r13.w, r13.w, l(6.28318548)
  mul r13.y, r13.y, r13.y
  mad_sat r13.y, -r13.y, cb0[r9.y + 60].x, l(1.000000)
  mul r13.y, r13.y, r13.y
  mul r13.y, r13.y, r13.w
  dp3_sat r13.w, cb0[r9.y + 61].xyzx, r15.xywx
  add_sat r13.w, r13.w, -cb0[r9.y + 60].z
  mul_sat r13.w, r13.w, cb0[r9.y + 60].y
  mul r16.x, r13.w, r13.w
  mad r13.w, -r13.w, l(2.000000), l(3.000000)
  mul r13.w, r13.w, r16.x
  mul r13.y, r13.w, r13.y
  movc r15.xyw, r4.wwww, cb0[r9.y + 61].xyxz, r15.xyxw
  movc r4.w, r4.w, cb0[r9.y + 61].w, r13.y
  movc r15.xyw, r9.wwww, r15.xyxw, l(0,1.000000,0,0)
  movc r4.w, r9.w, r4.w, l(0)
  mad_sat r9.w, -r4.w, l(0.159154937), l(1.000000)
  mad r13.y, r9.w, l(-0.156583), l(1.57079637)
  add r9.w, -r9.w, l(1.000000)
  sqrt r9.w, r9.w
  mul r9.w, r9.w, r13.y
  movc r9.w, r10.w, r9.w, cb0[r9.y + 60].w
  mad_sat r9.w, r9.w, l(0.318309873), r0.w
  add r10.w, -r0.w, r9.w
  mad r10.w, -r10.w, r10.w, l(1.000000)
  sqrt r10.w, r10.w
  dp3 r13.y, r5.xyzx, r15.xywx
  max r10.w, r10.w, l(0.950000)
  add r13.w, -r10.w, l(1.000000)
  rsq r16.x, r13.w
  mul r13.w, r13.w, r16.x
  mul r16.y, r13.y, l(0.373837)
  mul r13.w, r13.w, l(0.668740)
  mad r16.w, r13.y, l(0.373837), r13.w
  ge r13.w, r13.w, |r16.y|
  mul r16.y, r16.w, r16.w
  mul r16.x, r16.x, r16.y
  mov_sat r13.y, r13.y
  movc r13.y, r13.w, r16.x, r13.y
  mul r10.w, r10.w, r13.y
  min r13.y, r10.w, l(1.000000)
  mul r16.xyw, r13.yyyy, l(0.318309873, 0.318309873, 0.000000, 0.318309873)
  lt r13.y, l(0.000000), r10.w
  if_nz r13.y
    mad r15.xyw, r4.xyxz, r3.zzzz, r15.xyxw
    dp3 r13.y, r15.xywx, r15.xywx
    rsq r13.y, r13.y
    mul r15.xyw, r13.yyyy, r15.xyxw
    dp3 r13.y, r5.xyzx, r15.xywx
    dp3 r13.w, r6.xyzx, r15.xywx
    add r13.w, -r13.w, l(1.000000)
    mul r15.x, r13.w, r13.w
    mul r15.x, r15.x, r15.x
    mul r13.w, r13.w, r15.x
    mad r13.w, r13.w, l(0.958000), l(0.042000)
    mul r15.x, r9.w, r9.w
    mad r15.y, -r10.w, r15.x, r10.w
    mad r15.y, r15.y, r10.w, r15.x
    mad r15.w, -r3.w, r15.x, r3.w
    mad r15.w, r15.w, r3.w, r15.x
    sqrt r15.yw, r15.yyyw
    mul r10.w, r10.w, r15.w
    mad r10.w, r3.w, r15.y, r10.w
    rcp r10.w, r10.w
    mul r10.w, r10.w, l(0.500000)
    mad r9.w, r9.w, r9.w, l(-1.000000)
    mul r13.y, r13.y, r13.y
    mad r9.w, r13.y, r9.w, l(1.000000)
    mul r9.w, r9.w, r9.w
    div r9.w, r15.x, r9.w
    mul r9.w, r10.w, r9.w
    mul r9.w, r13.w, r9.w
    mul r16.xyw, r9.wwww, r16.wwww
  endif
  mul r4.w, r4.w, r13.x
  mul r13.xyw, r4.wwww, cb0[r9.y + 58].xyxz
  mul r13.xyw, r14.xyxw, r13.xyxw
  mul r9.xyw, r9.xxxx, r16.xyxw
  mad r17.xyz, r13.xywx, r9.xywx, r17.xyzx
  iadd r3.x, r3.x, l(1)
endloop
mov r9.xyz, r17.xyzx
mov r10.xyz, l(1.000000,1.000000,1.000000,0)
mov r3.x, l(0)
loop
  uge r3.y, r3.x, cb2[0].w
  breakc_nz r3.y
  imul null, r3.y, l(5), cb2[r3.x + 0].y
  ushr r4.w, cb0[r3.y + 58].w, l(30)
  if_z r4.w
    and r5.w, cb1[0].x, cb0[r3.y + 58].w
    add r11.xyz, -r2.xyzx, cb0[r3.y + 59].xyzx
    dp3 r6.w, r11.xyzx, r11.xyzx
    ishr r6.w, r6.w, l(1)
    iadd r6.w, r6.w, l(0x1fbd22df)
    mul_sat r6.w, r6.w, cb0[r3.y + 60].x
    add r11.xyz, l(1.000000, 1.000000, 1.000000, 0.000000), -cb0[r3.y + 58].xyzx
    mad r11.xyz, r6.wwww, r11.xyzx, cb0[r3.y + 58].xyzx
    movc r11.xyz, r5.wwww, r11.xyzx, l(1.000000,1.000000,1.000000,0)
    mul r10.xyz, r10.xyzx, r11.xyzx
  else
    ige r5.w, cb0[r3.y + 62].x, l(0)
    if_nz r5.w
      ishl r5.w, cb0[r3.y + 62].x, l(2)
      mov r11.x, x0[r5.w + 0].x
      mov r12.x, x0[r5.w + 1].x
      mov r13.x, x0[r5.w + 3].x
      mov r11.y, x0[r5.w + 0].y
      mov r12.y, x0[r5.w + 1].y
      mov r13.y, x0[r5.w + 3].y
      mov r11.z, x0[r5.w + 0].z
      mov r12.z, x0[r5.w + 1].z
      mov r13.z, x0[r5.w + 3].z
      mov r11.w, x0[r5.w + 0].w
      mov r12.w, x0[r5.w + 1].w
      mov r13.w, x0[r5.w + 3].w
      dp4 r11.x, r2.xyzw, r11.xyzw
      dp4 r11.y, r2.xyzw, r12.xyzw
      dp4 r5.w, r2.xyzw, r13.xyzw
      div r11.xy, r11.xyxx, r5.wwww
      sample_l_indexable(texture2d)(float,float,float,float) r12.xyz, r11.xyxx, t11.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r13.xyz, r11.xyxx, t12.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r14.xyz, r11.xyxx, t13.xyzw, s1, l(0.000000)
      sample_l_indexable(texture2d)(float,float,float,float) r11.xyz, r11.xyxx, t14.xyzw, s1, l(0.000000)
      ieq r15.xyz, l(1, 2, 3, 0), cb0[r3.y + 62].xxxx
      movc r12.xyz, r15.xxxx, r13.xyzx, r12.xyzx
      movc r12.xyz, r15.yyyy, r14.xyzx, r12.xyzx
      movc r11.xyz, r15.zzzz, r11.xyzx, r12.xyzx
    else
      mov r11.xyz, l(1.000000,1.000000,1.000000,0)
    endif
    and r5.w, cb1[0].x, cb0[r3.y + 58].w
    ieq r6.w, r4.w, l(2)
    add r12.xyz, -r2.xyzx, cb0[r3.y + 59].xyzx
    dp3 r7.w, r12.xyzx, r12.xyzx
    rsq r8.w, r7.w
    mul r12.xyz, r8.wwww, r12.xyzx
    add r8.w, r7.w, -cb0[r3.y + 59].w
    max r8.w, r8.w, l(0.001000)
    rcp r8.w, r8.w
    mad r8.w, cb0[r3.y + 59].w, r8.w, l(1.000000)
    rsq r8.w, r8.w
    add r8.w, -r8.w, l(1.000000)
    mul r8.w, r8.w, l(6.28318548)
    mul r7.w, r7.w, r7.w
    mad_sat r7.w, -r7.w, cb0[r3.y + 60].x, l(1.000000)
    mul r7.w, r7.w, r7.w
    mul r7.w, r7.w, r8.w
    dp3_sat r8.w, cb0[r3.y + 61].xyzx, r12.xyzx
    add_sat r8.w, r8.w, -cb0[r3.y + 60].z
    mul_sat r8.w, r8.w, cb0[r3.y + 60].y
    mul r9.w, r8.w, r8.w
    mad r8.w, -r8.w, l(2.000000), l(3.000000)
    mul r8.w, r8.w, r9.w
    mul r7.w, r7.w, r8.w
    movc r12.xyz, r6.wwww, cb0[r3.y + 61].xyzx, r12.xyzx
    movc r6.w, r6.w, cb0[r3.y + 61].w, r7.w
    movc r12.xyz, r5.wwww, r12.xyzx, l(0,1.000000,0,0)
    movc r5.w, r5.w, r6.w, l(0)
    ine r4.w, r4.w, l(2)
    mad_sat r6.w, -r5.w, l(0.159154937), l(1.000000)
    mad r7.w, r6.w, l(-0.156583), l(1.57079637)
    add r6.w, -r6.w, l(1.000000)
    sqrt r6.w, r6.w
    mul r6.w, r6.w, r7.w
    movc r4.w, r4.w, r6.w, cb0[r3.y + 60].w
    mad_sat r4.w, r4.w, l(0.318309873), r0.w
    add r6.w, -r0.w, r4.w
    mad r6.w, -r6.w, r6.w, l(1.000000)
    sqrt r6.w, r6.w
    dp3 r7.w, r5.xyzx, r12.xyzx
    max r6.w, r6.w, l(0.950000)
    add r8.w, -r6.w, l(1.000000)
    rsq r9.w, r8.w
    mul r8.w, r8.w, r9.w
    mul r10.w, r7.w, l(0.373837)
    mul r8.w, r8.w, l(0.668740)
    mad r11.w, r7.w, l(0.373837), r8.w
    ge r8.w, r8.w, |r10.w|
    mul r10.w, r11.w, r11.w
    mul r9.w, r9.w, r10.w
    mov_sat r7.w, r7.w
    movc r7.w, r8.w, r9.w, r7.w
    mul r6.w, r6.w, r7.w
    min r7.w, r6.w, l(1.000000)
    mul r13.xyz, r7.wwww, l(0.318309873, 0.318309873, 0.318309873, 0.000000)
    lt r7.w, l(0.000000), r6.w
    if_nz r7.w
      mad r12.xyz, r4.xyzx, r3.zzzz, r12.xyzx
      dp3 r7.w, r12.xyzx, r12.xyzx
      rsq r7.w, r7.w
      mul r12.xyz, r7.wwww, r12.xyzx
      dp3 r7.w, r5.xyzx, r12.xyzx
      dp3 r8.w, r6.xyzx, r12.xyzx
      add r8.w, -r8.w, l(1.000000)
      mul r9.w, r8.w, r8.w
      mul r9.w, r9.w, r9.w
      mul r8.w, r8.w, r9.w
      mad r8.w, r8.w, l(0.958000), l(0.042000)
      mul r9.w, r4.w, r4.w
      mad r10.w, -r6.w, r9.w, r6.w
      mad r10.w, r10.w, r6.w, r9.w
      sqrt r10.w, r10.w
      mad r11.w, -r3.w, r9.w, r3.w
      mad r11.w, r11.w, r3.w, r9.w
      sqrt r11.w, r11.w
      mul r6.w, r6.w, r11.w
      mad r6.w, r3.w, r10.w, r6.w
      rcp r6.w, r6.w
      mul r6.w, r6.w, l(0.500000)
      mad r4.w, r4.w, r4.w, l(-1.000000)
      mul r7.w, r7.w, r7.w
      mad r4.w, r7.w, r4.w, l(1.000000)
      mul r4.w, r4.w, r4.w
      div r4.w, r9.w, r4.w
      mul r4.w, r6.w, r4.w
      mul r4.w, r8.w, r4.w
      mul r13.xyz, r4.wwww, r13.zzzz
    endif
    mul r12.xyz, r5.wwww, cb0[r3.y + 58].xyzx
    mul r11.xyz, r11.xyzx, r12.xyzx
    mad r9.xyz, r11.xyzx, r13.xyzx, r9.xyzx
  endif
  iadd r3.x, r3.x, l(1)
endloop
mad r1.yzw, r7.xxyz, r1.yyzw, r9.xxyz
mul r1.yzw, r1.yyzw, cb0[823].zzzz
mul r1.yzw, r1.yyzw, r10.xxyz
ge r1.yzw, l(0.000000, 0.000000, 0.000000, 0.000000), r1.yyzw
and r0.w, r1.z, r1.y
and r0.w, r1.w, r0.w
and r0.w, r0.w, r1.x
discard_nz r0.w
mad r1.xyz, r8.xyzx, l(-0.200000, -0.200000, -0.200000, 0.000000), r2.xyzx
mov r1.w, l(1.000000)
dp4 r3.x, r1.xyzw, cb3[16].xyzw
dp4 r3.y, r1.xyzw, cb3[17].xyzw
dp4 r0.w, r1.xyzw, cb3[19].xyzw

add r40.w, r0.w, -r40.y
mad r3.x, r40.x, r40.w, r3.x

div r1.xy, r3.xyxx, r0.wwww
add r1.xy, -r0.xyxx, r1.xyxx
mul r0.zw, r0.zzzz, r1.xxxy
mul r0.xy, r0.xyxx, r0.xyxx
mul r0.xy, r0.xyxx, r0.xyxx
mad r0.xy, -r0.xyxx, r0.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
mul r0.xy, r0.xyxx, r0.zwzz
dp2 r0.z, r0.xyxx, r0.xyxx
sqrt r0.z, r0.z
mul r0.z, r0.z, l(0.800000)
dp4 r0.w, r2.xyzw, cb3[2].xyzw
mov o0.w, -r0.w
ftou r1.xy, v0.xyxx
and r1.xy, r1.xyxx, l(1, 1, 0, 0)
ine r0.w, r1.y, r1.x
movc o0.z, r0.w, l(-1.000000), r0.z
mov o0.xy, r0.xyxx
ret
// Approximately 855 instruction slots used
