//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:52 2022
//
//
// Buffer Definitions:
//
// 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
//
// }
//
// 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
//   {
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:    0
//           uint swizzle;              // Index:    0.w
//           float3 matV;               // Index:    1
//           uint mode;                 // Index:    1.w
//
//       } diffuse;                     // Index:    0
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:    2
//           uint swizzle;              // Index:    2.w
//           float3 matV;               // Index:    3
//           uint mode;                 // Index:    3.w
//
//       } normal;                      // Index:    2
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:    4
//           uint swizzle;              // Index:    4.w
//           float3 matV;               // Index:    5
//           uint mode;                 // Index:    5.w
//
//       } alpha;                       // Index:    4
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:    6
//           uint swizzle;              // Index:    6.w
//           float3 matV;               // Index:    7
//           uint mode;                 // Index:    7.w
//
//       } flow;                        // Index:    6
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:    8
//           uint swizzle;              // Index:    8.w
//           float3 matV;               // Index:    9
//           uint mode;                 // Index:    9.w
//
//       } alphathreshold;              // Index:    8
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:   10
//           uint swizzle;              // Index:   10.w
//           float3 matV;               // Index:   11
//           uint mode;                 // Index:   11.w
//
//       } distort1;                    // Index:   10
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:   12
//           uint swizzle;              // Index:   12.w
//           float3 matV;               // Index:   13
//           uint mode;                 // Index:   13.w
//
//       } distort2;                    // Index:   12
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:   14
//           uint swizzle;              // Index:   14.w
//           float3 matV;               // Index:   15
//           uint mode;                 // Index:   15.w
//
//       } emissive;                    // Index:   14
//
//       struct MaterialTextureMap
//       {
//
//           float3 matU;               // Index:   16
//           uint swizzle;              // Index:   16.w
//           float3 matV;               // Index:   17
//           uint mode;                 // Index:   17.w
//
//       } beamnoise;                   // Index:   16
//       bool cst_IsBlendedFlipbooks;   // Index:   18
//       float cst_FlowStrength;        // Index:   18.y
//       int cst_Resolution;            // Index:   18.z
//       int cst_LightingType;          // Index:   18.w
//       int cst_LightingModel;         // Index:   19
//       bool cst_CastShadows;          // Index:   19.y
//       bool cst_VoxelLightingSpecular;// Index:   19.z
//       float3 cst_DiffuseTint;        // Index:   20
//       float cst_ExposureAdaptation;  // Index:   20.w
//       float3 cst_SpecularTint;       // Index:   21
//       float cst_Shininess;           // Index:   21.w
//       float cst_Reflectance;         // Index:   22
//       float cst_DiffuseWrap;         // Index:   22.y
//       float cst_DiffuseCompress;     // Index:   22.z
//       float cst_DiffuseBoost;        // Index:   22.w
//       float cst_SpecularBoost;       // Index:   23
//       bool cst_castScreenSpaceShadows;// Index:   23.y
//       bool cst_receiveScreenSpaceShadows;// Index:   23.z
//       bool cst_isMetal;              // Index:   23.w
//       int cst_ColorizeDriver;        // Index:   24
//       float cst_NormalMapIntensity;  // Index:   24.y
//       float cst_SphereizeNormalsAmount;// Index:   24.z
//       int cst_SphereizeNormalsMethod;// Index:   24.w
//       float cst_EmissiveIntensity;   // Index:   25
//       float3 cst_EmissiveTint;       // Index:   25.y
//       float cst_alphaReference;      // Index:   26
//       bool cst_IsAlphaThreshold;     // Index:   26.y
//       float cst_AlphaThresholdExp;   // Index:   26.z
//       bool cst_IsDistortion;         // Index:   26.w
//       bool cst_DistortionDistanceScaled;// Index:   27
//       bool cst_RefractionOnly;       // Index:   27.y
//       bool cst_ViewSpaceRefraction;  // Index:   27.z
//       float cst_DistortionAmount;    // Index:   27.w
//       float cst_BlurAmount;          // Index:   28
//       float cst_DiffuseMapScrollU;   // Index:   28.y
//       float cst_DiffuseMapScrollV;   // Index:   28.z
//       float cst_EmissiveMapScrollU;  // Index:   28.w
//       float cst_EmissiveMapScrollV;  // Index:   29
//       float cst_AlphaThresholdMapScrollU;// Index:   29.y
//       float cst_AlphaThresholdMapScrollV;// Index:   29.z
//       float cst_AlphaMapScrollU;     // Index:   29.w
//       float cst_AlphaMapScrollV;     // Index:   30
//       float cst_NormalMapScrollU;    // Index:   30.y
//       float cst_NormalMapScrollV;    // Index:   30.z
//       bool cst_ClampDiffuseMap;      // Index:   30.w
//       bool cst_ClampAlphaMap;        // Index:   31
//       bool cst_ClampNormalMap;       // Index:   31.y
//       float cst_DistortAmount;       // Index:   31.z
//       bool cst_DistortDiffuseMap;    // Index:   31.w
//       bool cst_DistortEmissiveMap;   // Index:   32
//       bool cst_DistortAlphaGradient; // Index:   32.y
//       bool cst_DistortAlphaMap;      // Index:   32.z
//       bool cst_DistortAlphaThresholdMap;// Index:   32.w
//       bool cst_DistortNormalMap;     // Index:   33
//       float cst_DistortOffsetU;      // Index:   33.y
//       float cst_DistortOffsetV;      // Index:   33.z
//       float cst_Distort1ScrollU;     // Index:   33.w
//       float cst_Distort1ScrollV;     // Index:   34
//       float cst_Distort2ScrollU;     // Index:   34.y
//       float cst_Distort2ScrollV;     // Index:   34.z
//       bool cst_DistortAppend;        // Index:   34.w
//       float cst_BulgeAmount;         // Index:   35
//       float cst_BulgeRadius;         // Index:   35.y
//       int cst_GradientType;          // Index:   35.z
//       float cst_circleRadius;        // Index:   35.w
//       float cst_circleFalloff;       // Index:   36
//       float cst_BoxBrightness;       // Index:   36.y
//       float cst_BoxFalloff;          // Index:   36.z
//       float cst_VerticalBias;        // Index:   36.w
//       float cst_Width_Bottom;        // Index:   37
//       float cst_Width_Top;           // Index:   37.y
//       float cst_SideIntensity;       // Index:   37.z
//       float cst_sideFallOff;         // Index:   37.w
//       float cst_VerticalRampPower;   // Index:   38
//       float cst_InvertVerticalRampPower;// Index:   38.y
//       float cst_time_mult;           // Index:   38.z
//       float cst_BeamNoise_scrollrateU;// Index:   38.w
//       float cst_BeamNoise_scrollrateV;// Index:   39
//       float cst_noiseReduction;      // Index:   39.y
//       float cst_EdgeMaskAmount;      // Index:   39.z
//       float cst_EdgeMaskAmountU;     // Index:   39.w
//       float cst_EdgeMaskAmountV;     // Index:   40
//       bool cst_DiffuseFromAlpha;     // Index:   40.y
//       bool cst_EmissiveFromAlpha;    // Index:   40.z
//
//   } resourceTables__materialData;    // Index:    0-40.z           Components:   163
                                        // Textures:  t58-t63
//
// }
//
// Resource bind info for resourceTables__passData.systemData
// {
//
//   struct ParticleGPUSystemData
//   {
//
//       float4x4 cSystemToWorld;       // Index:    0
//       uint cameraID;                 // Index:    4
//       uint cDrawArgStart;            // Index:    4.y
//       float4 textureFlipbookVecs[10];// Index:    4.z
//       float3 cSpriteCenter;          // Index:   14.z
//       float3 cSpriteSize;            // Index:   15.y
//       float3 cSpriteSizeRandom;      // Index:   16
//       float2 cUVScale;               // Index:   16.w
//       float2 cUVOffset;              // Index:   17.y
//       float2 cUVScroll;              // Index:   17.w
//       uint cRibbonUVMode;            // Index:   18.y
//       float cTimeStep;               // Index:   18.z
//       uint cFlags;                   // Index:   18.w
//       float cLifeTime;               // Index:   19
//       float cLifeTimeRandom;         // Index:   19.y
//       float cFogDensityStrength;     // Index:   19.z
//       float cAge;                    // Index:   19.w
//       uint systemRandom;             // Index:   20
//       uint cAlignMode;               // Index:   20.y
//       uint cSecondaryAlignMode;      // Index:   20.z
//       uint cBlendMode;               // Index:   20.w
//       float cAngleFadeRate;          // Index:   21
//       float cSoftDistance;           // Index:   21.y
//       float cSoftDistanceInverse;    // Index:   21.z
//       float cVelocityScale;          // Index:   21.w
//       float cVelocityScaleClamp;     // Index:   22
//       float cExternalScale;          // Index:   22.y
//       float cSpriteRotation;         // Index:   22.z
//       float cSpriteCameraOffset;     // Index:   22.w
//       float cStaticTwist;            // Index:   23
//       float cTwistSpeed;             // Index:   23.y
//       uint cTwistDirection;          // Index:   23.z
//       float cMaxExtent;              // Index:   23.w
//       float cColorModulate;          // Index:   24
//       float cColorRandom;            // Index:   24.y
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   24.z
//           float end;                 // Index:   24.w
//           uint type;                 // Index:   25
//           float alpha;               // Index:   25.y
//           float jitter;              // Index:   25.z
//
//       } cParticleColorBlend;         // Index:   24.z
//       float4 cColorTintModulate;     // Index:   25.w
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   26.w
//           float end;                 // Index:   27
//           uint type;                 // Index:   27.y
//           float alpha;               // Index:   27.z
//           float jitter;              // Index:   27.w
//
//       } cNormalMapIntensity;         // Index:   26.w
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   28
//           float end;                 // Index:   28.y
//           uint type;                 // Index:   28.z
//           float alpha;               // Index:   28.w
//           float jitter;              // Index:   29
//
//       } cOpacity;                    // Index:   28
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   29.y
//           float end;                 // Index:   29.z
//           uint type;                 // Index:   29.w
//           float alpha;               // Index:   30
//           float jitter;              // Index:   30.y
//
//       } cOpacityTexturesExponent;    // Index:   29.y
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   30.z
//           float end;                 // Index:   30.w
//           uint type;                 // Index:   31
//           float alpha;               // Index:   31.y
//           float jitter;              // Index:   31.z
//
//       } cScale;                      // Index:   30.z
//       float cCameraScaleStartDistance;// Index:   31.w
//       float cCameraScaleStartValue;  // Index:   32
//       float cCameraScaleEndDistance; // Index:   32.y
//       float cCameraScaleEndValue;    // Index:   32.z
//       float cCameraOneOverEndMinusStart;// Index:   32.w
//       uint cFlipbookPageCount;       // Index:   33
//       float cFlipbookPageCycle;      // Index:   33.y
//       float cNearCull;               // Index:   33.z
//       float cFarCull;                // Index:   33.w
//       float cNearFade;               // Index:   34
//       float cFarFade;                // Index:   34.y
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   34.z
//           float end;                 // Index:   34.w
//           uint type;                 // Index:   35
//           float alpha;               // Index:   35.y
//           float jitter;              // Index:   35.z
//
//       } cDrag;                       // Index:   34.z
//       float3 cGravity;               // Index:   35.w
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   36.z
//           float end;                 // Index:   36.w
//           uint type;                 // Index:   37
//           float alpha;               // Index:   37.y
//           float jitter;              // Index:   37.z
//
//       } cGravityIntensity;           // Index:   36.z
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   37.w
//           float end;                 // Index:   38
//           uint type;                 // Index:   38.y
//           float alpha;               // Index:   38.z
//           float jitter;              // Index:   38.w
//
//       } cWindInfluenceOverLifeTime;  // Index:   37.w
//       float cMinDistance;            // Index:   39
//       float cMaxDistance;            // Index:   39.y
//       float3 cTurbulenceFrequency;   // Index:   39.z
//       float3 cTurbulenceAmplitude;   // Index:   40.y
//       float3 cTurbulencePhase;       // Index:   41
//       float3 cTurbulenceScrollSpeed; // Index:   41.w
//
//       struct ParticleGPUAttributeData
//       {
//
//           float start;               // Index:   42.z
//           float end;                 // Index:   42.w
//           uint type;                 // Index:   43
//           float alpha;               // Index:   43.y
//           float jitter;              // Index:   43.z
//
//       } cTurbulenceIntensity;        // Index:   42.z
//       uint cActiveFields;            // Index:   43.w
//
//       struct ParticleGPUFieldData
//       {
//
//           float3 position;           // Index:   44
//           float attenuation;         // Index:   44.w
//           float3 direction;          // Index:   45
//           float maxDistance;         // Index:   45.w
//           float magnitude;           // Index:   46
//           float _pad0;               // Index:   46.y
//           float _pad1;               // Index:   46.z
//           float _pad2;               // Index:   46.w
//
//       } cFields[4];                  // Index:   44
//       float cNewtonMinDistance;      // Index:   56
//       float cCollisionBounciness;    // Index:   56.y
//       float cCollisionBouncinessRandom;// Index:   56.z
//       float cCollisionRadius;        // Index:   56.w
//       float cDepthCollisionAgeThreshold;// Index:   57
//       float cDepthCollisionThreshold;// Index:   57.y
//       float cPlaneCollisionHeight;   // Index:   57.z
//       float3 emitterPosition;        // Index:   57.w
//       float3 emitterVelocity;        // Index:   58.z
//       float3 velocityDirectionWorld; // Index:   59.y
//       float3x3 emitterOrientation;   // Index:   60
//       float emitterDistance;         // Index:   62.y
//       float cMFXEventProbability;    // Index:   62.z
//       uint4 ramp1Indices[2];         // Index:   62.w
//       uint4 ramp3Indices;            // Index:   64.w
//       uint4 ramp1Constants[2];       // Index:   65.w
//       float4 ramp3Constants;         // Index:   67.w
//
//   } $Element;                        // Index:    0-68.z           Components:   275
//
// }
//
// Resource bind info for resourceTables__passData.spriteDecalTransforms
// {
//
//   float4x4 $Element;                 // Index:    0 1 2 3          Components:    16
//
// }
//
// Resource bind info for resourceTables__passData.ramp1Data
// {
//
//   struct ParticleGPURamp1Data
//   {
//
//       float multiplier;              // Index:    0
//       float offset;                  // Index:    0.y
//
//   } $Element;                        // Index:    0.xy             Components:     2
//
// }
//
// Resource bind info for resourceTables__passData.ramp3Data
// {
//
//   struct ParticleGPURamp3Data
//   {
//
//       float3 multiplier;             // Index:    0
//       float3 offset;                 // Index:    0.w
//
//   } $Element;                        // Index:    0-1.y            Components:     6
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// resourceTables__passData__smpLinearClamp    sampler      NA          NA    0        1
// resourceTables__viewData__smpLinear    sampler      NA          NA    2        1
// resourceTables__viewData__smpPointClamp    sampler      NA          NA    5        1
// resourceTables__viewData__smpLinearClamp    sampler      NA          NA    6        1
// resourceTables__passData.systemData    texture  struct         r/o    7        1
// resourceTables__passData.spriteDecalTransforms    texture  struct         r/o    9        1
// resourceTables__passData.ramp1Data    texture  struct         r/o   13        1
// resourceTables__passData.ramp3Data    texture  struct         r/o   14        1
// resourceTables__passData.ramp1Textures    texture   float          2d   15        1
// resourceTables__passData.ramp3Textures    texture  float3          2d   16        1
// resourceTables__passData.linearDepthTexture    texture   float          2d   20        1
// resourceTables__passData.bilateralVectorsTexture    texture  float2          2d   21        1
// resourceTables__passData.depthTexture    texture  float4          2d   22        1
// resourceTables__materialData.alpha.tex    texture  float4          2d   60        1
// resourceTables__materialData.distort1.tex    texture  float4          2d   63        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   xy
// POSITION                 0   xyz         1     NONE   float
// NORMAL                   0   xyz         2     NONE   float   xyz
// TEXCOORD                 0   xy          3     NONE   float
// TEXCOORD                 1   xyz         4     NONE   float     z
// COLOR                    0   xyzw        5     NONE   float   xyz
// COLOR                    1   xyzw        6     NONE   float   xyzw
// TEXCOORD                 2   xyzw        7     NONE   float   xyz
// TEXCOORD                 3   x           8     NONE    uint
// TEXCOORD                 4    y          8     NONE    uint    y
// TEXCOORD                 7   xyz         9     NONE   float
// TEXCOORD                 8   xyz        10     NONE   float
// TEXCOORD                 9   xyz        11     NONE   float
// TEXCOORD                10   xyz        12     NONE   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_Target                1   xyzw        1   TARGET   float   xyzw
// SV_Target                2   xyzw        2   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb2[77], immediateIndexed
dcl_constantbuffer cb3[33], immediateIndexed
dcl_constantbuffer cb4[12], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s2, mode_default
dcl_sampler s5, mode_default
dcl_sampler s6, mode_default
dcl_resource_structured t7, 1100
dcl_resource_structured t9, 64
dcl_resource_structured t13, 8
dcl_resource_structured t14, 24
dcl_resource_texture2d (float,float,float,float) t15
dcl_resource_texture2d (float,float,float,float) t16
dcl_resource_texture2d (float,float,float,float) t20
dcl_resource_texture2d (float,float,float,float) t21
dcl_resource_texture2d (float,float,float,float) t22
dcl_resource_texture2d (float,float,float,float) t60
dcl_resource_texture2d (float,float,float,float) t63
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_input_ps linear v2.xyz
dcl_input_ps linear v4.z
dcl_input_ps constant v5.xyz
dcl_input_ps linear v6.xyzw
dcl_input_ps linear v7.xyz
dcl_input_ps constant v8.y
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.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
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r0.xyzw, v8.y, l(0), t9.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r1.xyzw, v8.y, l(16), t9.xyzw
ld_structured_indexable(structured_buffer, stride=64)(mixed,mixed,mixed,mixed) r2.xyzw, v8.y, l(32), t9.xyzw
mul r3.xy, v0.xyxx, cb3[32].zwzz
mad r4.xy, r3.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r3.z, r3.xyxx, t22.yzxw, s5
mov r4.z, -r4.y
mul r3.xy, r3.zzzz, r4.xzxx
mov r3.w, l(1.000000)

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

dp4 r4.x, r3.xyzw, cb3[12].xyzw
dp4 r4.y, r3.xyzw, cb3[13].xyzw
dp4 r4.z, r3.xyzw, cb3[14].xyzw
mov r4.w, l(1.000000)
dp4 r0.x, r4.xyzw, r0.xyzw
dp4 r0.y, r4.xyzw, r1.xyzw
dp4 r0.z, r4.xyzw, r2.xyzw
add r0.xyz, r0.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
lt r1.xyz, r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
or r0.w, r1.y, r1.x
lt r1.xyw, l(1.000000, 1.000000, 0.000000, 1.000000), r0.xyxz
or r0.y, r0.w, r1.x
or r0.y, r1.y, r0.y
or r0.y, r1.w, r0.y
or r0.y, r1.z, r0.y
discard_nz r0.y
ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r0.y, cb2[76].w, l(300), t7.xxxx
ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r1.xy, cb2[76].w, l(340), t7.xyxx
ftoi r1.zw, v5.xxxy
ine r0.w, l(0x0000ffff), cb4[11].w
if_nz r0.w
  ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r0.w, cb2[76].w, l(1028), t7.xxxx
  ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r2.xyz, cb2[76].w, l(156), t7.xyzx
  ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r2.w, cb2[76].w, l(316), t7.xxxx
  and r3.xy, r0.yyyy, l(4096, 128, 0, 0)
  mad r3.z, v7.z, l(100.000000), v7.x
  movc r2.w, r3.x, r2.w, r3.z
  mad r4.xy, r2.wwww, l(-0.100000, 0.000000, 0.000000, 0.000000), r0.xzxx
  mov r4.z, l(1.000000)
  dp3 r5.x, cb4[10].xyzx, r4.xyzx
  dp3 r5.y, cb4[11].xyzx, r4.xyzx
  utof r4.x, r1.z
  mul r2.w, r2.x, r4.x
  round_ni r4.y, r2.w
  add r3.xz, r4.xxyx, r5.xxyx
  mul r3.xz, r2.yyzy, r3.xxzx
  sample_indexable(texture2d)(float,float,float,float) r3.xz, r3.xzxx, t63.xzyw, s2
  if_nz r3.y
    utof r4.x, r1.w
    mul r2.x, r2.x, r4.x
    round_ni r4.y, r2.x
    add r2.xw, r4.xxxy, r5.xxxy
    mul r2.xy, r2.yzyy, r2.xwxx
    sample_indexable(texture2d)(float,float,float,float) r2.xy, r2.xyxx, t63.xyzw, s2
    add r2.xy, -r3.xzxx, r2.xyxx
    mad r3.xz, v5.zzzz, r2.xxyx, r3.xxzx
  endif
  mad r2.xy, r3.xzxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
  mul r2.xy, r2.xyxx, l(-0.200000, 0.200000, 0.000000, 0.000000)
  ieq r2.zw, r0.wwww, l(0, 0, -2, -3)
  or r2.w, r2.w, r2.z
  if_z r2.w
    ld_structured_indexable(structured_buffer, stride=8)(mixed,mixed,mixed,mixed) r3.xy, r0.w, l(0), t13.xyxx
    utof r0.w, r0.w
    add r0.w, r0.w, l(0.500000)
    mul r4.y, r0.w, l(0.000244140625)
    mov r4.x, v7.y
    sample_l_indexable(texture2d)(float,float,float,float) r0.w, r4.xyxx, t15.yzwx, s0, l(0.000000)
    mad r0.w, r3.x, r0.w, r3.y
  else
    ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r2.w, cb2[76].w, l(1076), t7.xxxx
    f16tof32 r3.x, r2.w
    ushr r2.w, r2.w, l(16)
    f16tof32 r2.w, r2.w
    mov_sat r3.y, v7.y
    add r2.w, -r3.x, r2.w
    mad r2.w, r3.y, r2.w, r3.x
    movc r0.w, r2.z, r3.x, r2.w
  endif
  mul r2.xy, r0.wwww, r2.xyxx
else
  mov r2.xy, l(0,0,0,0)
endif
eq r2.zw, r1.xxxy, l(0.000000, 0.000000, 0.000000, 0.000000)
and r0.w, r2.w, r2.z
if_z r0.w
  ftoi r3.xy, v0.xyxx
  mov r3.zw, l(0,0,0,0)
  ld_indexable(texture2d)(float,float,float,float) r2.zw, r3.xyzw, t21.zwxy
  mad r2.zw, r2.zzzw, l(0.000000, 0.000000, 8.000000, 8.000000), v0.xxxy
  mul r2.zw, r2.zzzw, cb3[32].zzzw
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r2.zwzz, t20.yzwx, s6, l(0.000000)
  add r0.w, r0.w, v4.z
  lt r2.z, l(0.000000), r1.y
  div r1.y, l(1.000000, 1.000000, 1.000000, 1.000000), r1.y
  and r1.y, r1.y, r2.z
  div r1.x, r0.w, r1.x
  min r1.x, |r1.x|, l(1.000000)
  mul r2.z, r1.x, r1.x
  mad r1.x, -r1.x, l(2.000000), l(3.000000)
  mul r1.x, r1.x, r2.z
  mul r0.w, r0.w, r1.y
  min r0.w, |r0.w|, l(1.000000)
  mul r1.y, r0.w, r0.w
  mad r0.w, -r0.w, l(2.000000), l(3.000000)
  mad r0.w, -r1.y, r0.w, l(1.000000)
  mul r0.w, r0.w, r1.x
else
  mov r0.w, l(1.000000)
endif
mov_sat r0.w, r0.w
lt r1.x, r0.w, l(0.040450)
mul r1.y, 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.x, r1.y, r0.w
ge r1.x, l(4.093169975E-021), r0.w
discard_nz r1.x
ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r3.xyz, cb2[76].w, l(108), t7.xyzx
ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r4.xyzw, cb2[76].w, l(412), t7.xyzw
ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r5.xyzw, cb2[76].w, l(468), t7.xyzw
ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r1.x, cb2[76].w, l(484), t7.xxxx
add r0.xz, r0.xxzx, r2.xxyx
mov_sat r4.xyzw, r4.xyzw
and r2.xy, r0.yyyy, l(512, 128, 0, 0)
mov r6.x, l(1.000000)
mov r6.w, v6.w
movc r6.xyzw, r2.xxxx, r6.xxxw, v6.xyzw
mul r6.w, r0.w, r6.w
mul r4.xyzw, r4.xyzw, r6.xyzw
mad r0.y, v7.z, l(2.000000), l(-1.000000)
switch r5.z
  case l(0)
  mov r0.w, l(0)
  break
  case l(1)
  mov r0.w, v7.y
  break
  case l(2)
  lt r1.y, l(0.000010), |r5.w|
  lt r2.z, l(0.000000), r5.w
  lt r2.w, r5.w, l(0.000000)
  iadd r2.z, -r2.z, r2.w
  itof r2.z, r2.z
  mul r2.z, r2.z, l(0.000100)
  movc r1.y, r1.y, r5.w, r2.z
  mul r2.z, r1.y, v7.y
  exp r2.z, r2.z
  add r2.z, r2.z, l(-1.000000)
  exp r1.y, r1.y
  add r1.y, r1.y, l(-1.000000)
  div r1.y, l(1.000000, 1.000000, 1.000000, 1.000000), r1.y
  mul r1.y, r1.y, r2.z
  max r0.w, r1.y, l(0.000000)
  break
  case l(3)
  add r1.y, |r5.w|, l(6.000000)
  add r2.z, -v7.y, l(0.500000)
  mul r1.y, r1.y, r2.z
  exp r1.y, r1.y
  add r1.y, r1.y, l(1.000000)
  div r0.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.y
  break
  default
  mov r0.w, l(0)
  break
endswitch
add r1.y, -r5.x, r5.y
mad r0.w, r0.w, r1.y, r5.x
lt r1.y, l(0.000000), r1.x
mul r1.x, r1.x, r0.w
mad r0.y, r1.x, r0.y, r0.w
movc r0.y, r1.y, r0.y, r0.w
utof r1.x, r1.z
mul r0.w, r3.x, r1.x
round_ni r1.y, r0.w
add r1.xy, r0.xzxx, r1.xyxx
mul r1.xy, r3.yzyy, r1.xyxx
sample_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t60.yzwx, s2
if_nz r2.y
  utof r1.x, r1.w
  mul r1.z, r3.x, r1.x
  round_ni r1.y, r1.z
  add r0.xz, r0.xxzx, r1.xxyx
  mul r0.xz, r3.yyzy, r0.xxzx
  sample_indexable(texture2d)(float,float,float,float) r0.x, r0.xzxx, t60.xyzw, s2
  add r0.x, -r0.w, r0.x
  mad r0.w, v5.z, r0.x, r0.w
endif
ne r0.x, r0.y, l(0.000000)
mul r0.z, r0.y, r0.w
exp r0.z, r0.z
exp r0.y, r0.y
add r0.yz, r0.yyzy, l(0.000000, -1.000000, -1.000000, 0.000000)
div r0.y, l(1.000000, 1.000000, 1.000000, 1.000000), r0.y
mul r0.y, r0.y, r0.z
max r0.y, r0.y, l(0.000000)
movc r0.x, r0.x, r0.y, r0.w
mul r0.x, r0.x, r4.w
ge r0.y, l(4.093169975E-021), r0.x
discard_nz r0.y
mul r0.y, r0.w, r0.w
mul r0.yzw, r0.yyyy, r4.xxyz
if_nz r2.x
  ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r1.x, cb2[76].w, l(1036), t7.xxxx
  ine r1.y, r1.x, l(-2)
  if_nz r1.y
    mov_sat r0.y, r0.y
    ld_structured_indexable(structured_buffer, stride=24)(mixed,mixed,mixed,mixed) r2.xyzw, r1.x, l(0), t14.xyzw
    ld_structured_indexable(structured_buffer, stride=24)(mixed,mixed,mixed,mixed) r3.xy, r1.x, l(16), t14.xyxx
    utof r1.x, r1.x
    add r1.x, r1.x, l(0.500000)
    mul r0.z, r1.x, l(0.000976562500)
    sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r0.yzyy, t16.xyzw, s0, l(0.000000)
    mov r3.z, r2.w
    mad r0.yzw, r2.xxyz, r1.xxyz, r3.zzxy
  else
    ld_structured_indexable(structured_buffer, stride=1100)(mixed,mixed,mixed,mixed) r0.yzw, cb2[76].w, l(1084), t7.xxyz
  endif
endif
ftou r1.xy, v0.xyxx
sqrt r2.xyzw, r0.yzwy
mul r0.yzw, r2.xxyw, l(0.000000, 0.250000, 0.500000, -0.250000)
add r0.yz, r0.zzzz, r0.yywy
mad r3.x, r2.z, l(0.250000), r0.y
dp2 r3.y, r2.wzww, l(0.500000, -0.500000, 0.000000, 0.000000)
mad r3.z, r2.z, l(-0.250000), r0.z
and r0.yz, r1.xxyx, l(0, 1, 1, 0)
ine r0.y, r0.z, r0.y
movc r0.yz, r0.yyyy, r3.xxyx, r3.xxzx
add o0.xy, r0.yzyy, l(0.000000, 0.498039216, 0.000000, 0.000000)
mov o0.z, l(0)
mov o0.w, r0.x
mad o1.xyz, v2.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
mov o1.w, r0.x
mov o2.xyzw, l(1.000000,0,0.353000,0)
ret
// Approximately 239 instruction slots used
