//6fb0afbeb2661081-ps.txt
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.17672
//
//   using 3Dmigoto v1.2.27 on Sun Feb 14 00:15:47 2016
//
//
// Buffer Definitions: 
//
// cbuffer cbTiledLighting
// {
//
//   uint g_uNumNonDirectionalLights;   // Offset:    0 Size:     4
//   uint g_uNumDirectionalLights;      // Offset:    4 Size:     4 [unused]
//   uint g_uNumTilesX;                 // Offset:    8 Size:     4
//   uint g_uNumTilesY;                 // Offset:   12 Size:     4
//   row_major float4x4 g_mProjection;  // Offset:   16 Size:    64 [unused]
//   row_major float4x4 g_mInvProjection;// Offset:   80 Size:    64 [unused]
//
// }
//
// cbuffer WorldBuffer
// {
//
//   struct WorldStruct
//   {
//       
//       row_major float4x4 ViewProject;// Offset:    0
//       
//       struct WorldStruct_PerInstanceData
//       {
//           
//           row_major float4x4 World;  // Offset:   64
//           row_major float4x4 WorldViewProject;// Offset:  128
//
//       } PerInstance[256];            // Offset:   64
//
//   } WorldParameters;                 // Offset:    0 Size: 32832
//
// }
//
// cbuffer DrawableBuffer
// {
//
//   float4 FogColor;                   // Offset:    0 Size:    16 [unused]
//   float4 DebugColor;                 // Offset:   16 Size:    16 [unused]
//   float AlphaThreshold;              // Offset:   32 Size:     4
//   float4 __InstancedMaterialOpacity[256];// Offset:   48 Size:  4096
//
// }
//
// cbuffer SceneBuffer
// {
//
//   row_major float4x4 View;           // Offset:    0 Size:    64
//   row_major float4x4 ScreenMatrix;   // Offset:   64 Size:    64 [unused]
//   float2 DepthExportScale;           // Offset:  128 Size:     8 [unused]
//   float2 __padding0;                 // Offset:  136 Size:     8 [unused]
//   float4 FogParams;                  // Offset:  144 Size:    16 [unused]
//   float3 __CameraPosition;           // Offset:  160 Size:    12
//   float __padding12;                 // Offset:  172 Size:     4 [unused]
//   float3 CameraDirection;            // Offset:  176 Size:    12 [unused]
//   float __padding9;                  // Offset:  188 Size:     4 [unused]
//   float3 DepthFactors;               // Offset:  192 Size:    12 [unused]
//   float __padding10;                 // Offset:  204 Size:     4 [unused]
//   float3 ShadowDepthBiasAndLightType;// Offset:  208 Size:    12 [unused]
//   float __padding11;                 // Offset:  220 Size:     4 [unused]
//   float4 SubframeViewport;           // Offset:  224 Size:    16 [unused]
//   row_major float3x4 DepthToWorld;   // Offset:  240 Size:    48
//   float4 DepthToView;                // Offset:  288 Size:    16
//   float4 OneOverDepthToView;         // Offset:  304 Size:    16 [unused]
//   float4 DepthToW;                   // Offset:  320 Size:    16 [unused]
//   float4 ClipPlane;                  // Offset:  336 Size:    16 [unused]
//   float2 ViewportDepthScaleOffset;   // Offset:  352 Size:     8 [unused]
//   float2 __padding1;                 // Offset:  360 Size:     8 [unused]
//   float2 ColorDOFDepthScaleOffset;   // Offset:  368 Size:     8 [unused]
//   float2 __padding2;                 // Offset:  376 Size:     8 [unused]
//   float4 TimeVector;                 // Offset:  384 Size:    16
//   float4 FogParams2;                 // Offset:  400 Size:    16 [unused]
//   float4 FogParams3;                 // Offset:  416 Size:    16 [unused]
//   float3 GlobalAmbient;              // Offset:  432 Size:    12
//   float __padding8;                  // Offset:  444 Size:     4 [unused]
//   float4 GlobalParams[16];           // Offset:  448 Size:   256
//   float4 ViewToFogH;                 // Offset:  704 Size:    16 [unused]
//   float4 ScreenExtents;              // Offset:  720 Size:    16
//   float2 ScreenResolution;           // Offset:  736 Size:     8 [unused]
//   float2 __padding3;                 // Offset:  744 Size:     8 [unused]
//   float4 PSSMToMap1Lin;              // Offset:  752 Size:    16 [unused]
//   float4 PSSMToMap1Const;            // Offset:  768 Size:    16 [unused]
//   float4 PSSMToMap2Lin;              // Offset:  784 Size:    16 [unused]
//   float4 PSSMToMap2Const;            // Offset:  800 Size:    16 [unused]
//   float4 PSSMToMap3Lin;              // Offset:  816 Size:    16 [unused]
//   float4 PSSMToMap3Const;            // Offset:  832 Size:    16 [unused]
//   float4 PSSMDistances;              // Offset:  848 Size:    16 [unused]
//   row_major float4x4 WorldToPSSM0;   // Offset:  864 Size:    64 [unused]
//   row_major float4x4 PrevViewProject;// Offset:  928 Size:    64 [unused]
//   row_major float4x4 PrevWorld;      // Offset:  992 Size:    64 [unused]
//   row_major float4x4 ViewT;          // Offset: 1056 Size:    64 [unused]
//   float4 PSSMExtents;                // Offset: 1120 Size:    16 [unused]
//   float4 ShadowAtlasResolution;      // Offset: 1136 Size:    16 [unused]
//   float4 UnitRimData[3];             // Offset: 1152 Size:    48
//   float3 __CameraPositionForCorrection;// Offset: 1200 Size:    12 [unused]
//   float __padding7;                  // Offset: 1212 Size:     4 [unused]
//   row_major float4x4 CameraViewProject;// Offset: 1216 Size:    64 [unused]
//   float4 BackBufferResolution;       // Offset: 1280 Size:    16 [unused]
//   row_major float4x4 InverseProjection;// Offset: 1296 Size:    64 [unused]
//   float4 StereoOffset;               // Offset: 1360 Size:    16 [unused]
//   row_major float4x4 Projection;     // Offset: 1376 Size:    64 [unused]
//   row_major float4x4 ViewInv;        // Offset: 1440 Size:    64 [unused]
//   float4 ColorSSAO;                  // Offset: 1504 Size:    16
//   float4 GlobalFogColor;             // Offset: 1520 Size:    16 [unused]
//   float4 VolumetricLightGlobalParams;// Offset: 1536 Size:    16 [unused]
//   float4 SnowParams01;               // Offset: 1552 Size:    16 [unused]
//   float4 SnowParams02;               // Offset: 1568 Size:    16 [unused]
//   float4 SnowParams03;               // Offset: 1584 Size:    16 [unused]
//   int SSREnabled;                    // Offset: 1600 Size:     4 [unused]
//   int __padding4;                    // Offset: 1604 Size:     4 [unused]
//   int __padding5;                    // Offset: 1608 Size:     4 [unused]
//   int __padding6;                    // Offset: 1612 Size:     4 [unused]
//
// }
//
// cbuffer MaterialBuffer
// {
//
//   float4 MaterialParams[512];        // Offset:    0 Size:  8192
//
// }
//
// cbuffer InstanceBuffer
// {
//
//   struct InstanceStruct
//   {
//       
//       float4 InstanceParams[8];      // Offset:    0
//
//   } InstanceParameters[256];         // Offset:    0 Size: 32768
//
// }
//
// cbuffer IrradianceBuffer
// {
//
//   float4 IrradianceStateRed0;        // Offset:    0 Size:    16
//   float4 IrradianceStateRed1;        // Offset:   16 Size:    16
//   float4 IrradianceStateGreen0;      // Offset:   32 Size:    16
//   float4 IrradianceStateGreen1;      // Offset:   48 Size:    16
//   float4 IrradianceStateBlue0;       // Offset:   64 Size:    16
//   float4 IrradianceStateBlue1;       // Offset:   80 Size:    16
//   float4 IrradianceStateBase;        // Offset:   96 Size:    16
//   float4 IrradianceConstantData;     // Offset:  112 Size:    16
//
// }
//
// Resource bind info for LightDataBuffer
// {
//
//   struct STiledLightData
//   {
//       
//       float3 vPosition;              // Offset:    0
//       float fSegmentLength;          // Offset:   12
//       float3 vDirection;             // Offset:   16
//       float fMinShadowSpec;          // Offset:   28
//       float4 vAttParams;             // Offset:   32
//       float3 vSpotParams;            // Offset:   48
//       float fIntensity;              // Offset:   60
//       float4 vDiffuseColor;          // Offset:   64
//       float4 vShadowFadeParams;      // Offset:   80
//       uint uRelCen;                  // Offset:   96
//       uint uFxSpecificIdx;           // Offset:  100
//       uint uFxType;                  // Offset:  104
//       float fRadiusSquared;          // Offset:  108
//       float3 vLambertWeights;        // Offset:  112
//       float fSpecularStrength;       // Offset:  124
//       float3 vBoxAxisX;              // Offset:  128
//       uint uLightType;               // Offset:  140
//       float3 vBoxAxisZ;              // Offset:  144
//       uint bShadowEnabled;           // Offset:  156
//       float3 vBoxInnerDistance;      // Offset:  160
//       uint bModulationMapEnabled;    // Offset:  172
//       float3 vBoxInvRange;           // Offset:  176
//       uint uModulationMapIndex;      // Offset:  188
//       row_major float4x4 mViewToShadowMap;// Offset:  192
//       row_major float4x4 mViewToModulationMap;// Offset:  256
//       float3 vRecipOuterColiProxy;   // Offset:  320
//       uint uProbeFlags;              // Offset:  332
//       float3 vColixProxyCen;         // Offset:  336
//       uint bForwardOnly;             // Offset:  348
//       uint uShadowType;              // Offset:  352
//       uint uNumSoftShadowSamples;    // Offset:  356
//       float fSoftShadowRadius;       // Offset:  360
//       float fSoftShadowDepthBias;    // Offset:  364
//       float fSoftShadowExponent;     // Offset:  368
//       float fProbePriority;          // Offset:  372
//       float fUnusedParam[2];         // Offset:  376
//
//   } $Element;                        // Offset:    0 Size:   384
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SamplerGenericPointClamp          sampler      NA          NA   10        1
// SamplerGenericTrilinearWrap       sampler      NA          NA   11        1
// SamplerGenericBilinearClamp       sampler      NA          NA   13        1
// p_default_Material_n207_n228_n238_661830C016465534_cp0_Param_texture    texture  float4          2d    0        1
// p_default_Setup_n1_n65_Texture_texture    texture  float4          2d    1        1
// p_default_Setup_n1_n67_Texture_texture    texture  float4          2d    2        1
// p_default_Material_n211_5423B6201464972_cp8_Param_texture    texture  float4          2d    3        1
// p_default_Setup_n34_n67_Texture_texture    texture  float4          2d    4        1
// p_default_Setup_n34_n65_Texture_texture    texture  float4          2d    5        1
// p_default_Setup_n44_BD8AA44026454365_cp7_Param_texture    texture  float4          2d    6        1
// p_default_Setup_n34_470EB2D06866788_cp8_Param_texture    texture  float4          2d    7        1
// p_default_Setup_n19_n65_Texture_texture    texture  float4          2d    8        1
// p_default_Setup_n33_n67_Texture_texture    texture  float4          2d    9        1
// p_default_Setup_n19_n67_Texture_texture    texture  float4          2d   10        1
// p_default_Setup_n33_n65_Texture_texture    texture  float4          2d   11        1
// p_default_Setup_n38_Texture_texture    texture  float4          2d   12        1
// p_default_Setup_n13_n121_Texture_texture    texture  float4          2d   13        1
// p_default_Setup_n45_Texture_texture    texture  float4          2d   14        1
// p_default_Setup_n13_n127_Texture_texture    texture  float4          2d   15        1
// p_default_Setup_n8_NormalBufferTexture_texture    texture  float4          2d   16        1
// p_default_Material_n213_n215_Texture_texture    texture  float4          2d   17        1
// p_default_Setup_n13_n142_Texture_texture    texture  float4          2d   18        1
// p_default_Setup_n40_n67_Texture_texture    texture  float4          2d   19        1
// p_default_Setup_n13_n129_Texture_texture    texture  float4          2d   20        1
// p_default_Setup_n40_n65_Texture_texture    texture  float4          2d   21        1
// p_default_Setup_n1_470EB2D06866788_cp8_Param_texture    texture  float4          2d   22        1
// AttenuationSampler_texture        texture  float4          2d   44        1
// LightAccumulation_texture         texture  float4          2d   51        1
// SpecularAccumulation_texture      texture  float4          2d   52        1
// AmbientAccumulation_texture       texture  float4          2d   53        1
// LightDataBuffer                   texture  struct         r/o   54        1
// LightIndexBuffer                  texture   uint4         buf   55        1
// ReflCubeMaps                      texture  float4   cubearray   57        1
// WorldBuffer                       cbuffer      NA          NA    0        1
// DrawableBuffer                    cbuffer      NA          NA    1        1
// SceneBuffer                       cbuffer      NA          NA    2        1
// MaterialBuffer                    cbuffer      NA          NA    3        1
// InstanceBuffer                    cbuffer      NA          NA    5        1
// IrradianceBuffer                  cbuffer      NA          NA    6        1
// cbTiledLighting                   cbuffer      NA          NA    7        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy w
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 2   xyz         2     NONE   float   xyz 
// PSIZE                    0   x           3     NONE    uint   x   
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyzw        0   TARGET   float   xyzw
// SV_TARGET                1   x           1   TARGET   float   x   
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb7[1], immediateIndexed
dcl_constantbuffer cb0[2048], dynamicIndexed
dcl_constantbuffer cb1[259], dynamicIndexed
dcl_constantbuffer cb2[95], immediateIndexed
dcl_constantbuffer cb3[32], immediateIndexed
dcl_constantbuffer cb5[2045], dynamicIndexed
dcl_constantbuffer cb6[8], immediateIndexed
dcl_sampler s10, mode_default
dcl_sampler s11, mode_default
dcl_sampler s13, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture2d (float,float,float,float) t8
dcl_resource_texture2d (float,float,float,float) t9
dcl_resource_texture2d (float,float,float,float) t10
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_texture2d (float,float,float,float) t15
dcl_resource_texture2d (float,float,float,float) t16
dcl_resource_texture2d (float,float,float,float) t17
dcl_resource_texture2d (float,float,float,float) t18
dcl_resource_texture2d (float,float,float,float) t19
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) t44
dcl_resource_texture2d (float,float,float,float) t51
dcl_resource_texture2d (float,float,float,float) t52
dcl_resource_texture2d (float,float,float,float) t53
dcl_resource_structured t54, 384 
dcl_resource_buffer (uint,uint,uint,uint) t55
dcl_resource_texturecubearray (float,float,float,float) t57
dcl_input_ps_siv linear noperspective v0.xyw, position
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyz
dcl_input_ps constant v3.x
dcl_output o0.xyzw
dcl_output o1.x
// dcl_temps 32
dcl_temps 34
dcl_resource_texture2d (float,float,float,float) t125
dp3 r0.x, v2.xyzx, v2.xyzx
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v2.xyzx
mad r1.xyzw, v0.xyxy, cb2[45].zwzw, cb2[45].xyxy
mul r2.xy, r1.xyxx, v0.wwww
mov r2.z, v0.w
mov r2.w, l(1.000000)

//Screen space correction, therefore need the '0.5'
ld_indexable(texture2d)(float,float,float,float) r33.xyzw, l(0, 0, 0, 0), t125.xyzw
add r33.w, v0.w, -r33.y
mul r33.w, r33.w, r33.x
mul r33.w, r33.w, l(0.5)
add r2.x, r2.x, -r33.w


dp4 r3.x, cb2[15].xyzw, r2.xyzw
dp4 r3.y, cb2[16].xyzw, r2.xyzw
dp4 r3.z, cb2[17].xyzw, r2.xyzw
mad r1.xy, r1.zwzz, cb2[18].xyxx, cb2[18].zwzz
mul r2.xy, r1.xyxx, v0.wwww
mov r2.z, v0.w

//View space correction, therefore need the InvProj._m00
ld_indexable(texture2d)(float,float,float,float) r33.xyzw, l(0, 0, 0, 0), t125.xyzw
add r33.w, v0.w, -r33.y
mul r33.w, r33.w, r33.x
mul r33.w, r33.w, cb2[81].x
add r2.x, r2.x, -r33.w


dp3 r0.w, -r2.xyzx, -r2.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, -r2.xyzx
dp3 r5.x, r4.xyzx, cb2[0].xyzx
dp3 r5.y, r4.xyzx, cb2[1].xyzx
dp3 r5.z, r4.xyzx, cb2[2].xyzx
ishl r0.w, v3.x, l(3)
sample_indexable(texture2d)(float,float,float,float) r1.x, v1.xyxx, t6.xyzw, s11
add_sat r1.y, -cb3[31].x, l(1.000000)
mad_sat r1.x, cb3[31].x, r1.x, r1.y
mul r4.xyzw, v1.xyxy, cb3[15].xyzw
sample_indexable(texture2d)(float,float,float,float) r6.xyzw, r4.xyxx, t8.xyzw, s11
mul r7.xyzw, v1.xyzw, cb3[16].xyzw
sample_indexable(texture2d)(float,float,float,float) r4.xy, r7.xyxx, t10.xyzw, s11
mul r8.xyzw, r6.xyzw, cb3[1].xyzw
mul r1.y, r4.x, cb3[29].x
add r2.w, cb3[29].w, -cb3[30].w
mad r2.w, r4.y, r2.w, cb3[30].w
mul r9.xyz, r1.yyyy, cb3[7].xyzx
mul r10.xyzw, v1.xyxy, cb3[17].xyzw
sample_indexable(texture2d)(float,float,float,float) r11.xyz, r10.xyxx, t12.xyzw, s11
mul r12.xyzw, v1.xyxy, cb3[19].xyzw
sample_indexable(texture2d)(float,float,float,float) r1.y, r12.xyxx, t14.yxzw, s11
sample_indexable(texture2d)(float,float,float,float) r13.xyz, r1.zwzz, t16.xyzw, s10
mul r14.xyzw, v1.xyxy, cb3[22].zwxy
sample_indexable(texture2d)(float,float,float,float) r15.xyz, r14.xyxx, t21.xyzw, s11
mul r4.xy, v1.xyxx, cb3[21].xyxx
sample_indexable(texture2d)(float,float,float,float) r4.xy, r4.xyxx, t19.xyzw, s11
mul r16.xyz, r15.xyzx, cb3[3].xyzx
mul r3.w, r4.x, cb3[28].y
add r4.x, -cb3[28].w, cb3[28].z
mad r4.x, r4.y, r4.x, cb3[28].w
mad_sat r4.y, r11.x, cb3[27].w, cb3[28].x
mul r17.xyz, r8.xyzx, r16.xyzx
mad r15.xyz, -r15.xyzx, cb3[3].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r18.xyz, -r6.xyzx, cb3[1].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r18.xyz, -r15.xyzx, r18.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r16.xyz, r16.xyzx, r18.xyzx
mad r15.xyz, r15.xyzx, r17.xyzx, r16.xyzx
mad r6.xyz, -r6.xyzx, cb3[1].xyzx, r15.xyzx
mad r6.xyz, r4.yyyy, r6.xyzx, r8.xyzx
add r4.x, -r2.w, r4.x
mad r2.w, r4.y, r4.x, r2.w
mad r8.xyz, cb3[5].xyzx, r3.wwww, -r9.xyzx
mad r8.xyz, r4.yyyy, r8.xyzx, r9.xyzx
sample_indexable(texture2d)(float,float,float,float) r4.xyz, r4.zwzz, t11.xyzw, s11
mul r9.xyzw, v1.xyzw, cb3[14].xyzw
sample_indexable(texture2d)(float,float,float,float) r7.xy, r9.xyxx, t9.xyzw, s11
mul r3.w, r7.x, cb3[27].x
add r4.w, -cb3[27].z, cb3[27].y
mad r4.w, r7.y, r4.w, cb3[27].z
mad_sat r5.w, r11.y, cb3[26].y, cb3[26].w
mad r4.xyz, r4.xyzx, cb3[0].xyzx, -r6.xyzx
mad r4.xyz, r5.wwww, r4.xyzx, r6.xyzx
add r4.w, -r2.w, r4.w
mad r2.w, r5.w, r4.w, r2.w
mad r6.xyz, cb3[8].xyzx, r3.wwww, -r8.xyzx
mad r6.xyz, r5.wwww, r6.xyzx, r8.xyzx
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r12.zwzz, t5.xyzw, s11
mul r12.xyzw, v1.xyzw, cb3[20].zwxy
sample_indexable(texture2d)(float,float,float,float) r7.xy, r12.xyxx, t4.xyzw, s11
mul r15.xyzw, v1.xyzw, cb3[18].xyzw
sample_indexable(texture2d)(float,float,float,float) r11.y, r15.xyxx, t7.yxwz, s11
mul r3.w, r7.x, cb3[12].w
add r4.w, cb3[13].w, -cb3[26].x
mad r4.w, r7.y, r4.w, cb3[26].x
mad_sat r11.x, r11.z, cb3[10].w, cb3[11].w
mov r11.w, l(1.000000)
dp3_sat r5.w, cb3[12].xyzx, r11.xywx
mad r8.xyz, r8.xyzx, cb3[4].xyzx, -r4.xyzx
mad r4.xyz, r5.wwww, r8.xyzx, r4.xyzx
add r4.w, -r2.w, r4.w
mad r2.w, r5.w, r4.w, r2.w
mad r8.xyz, cb3[10].xyzx, r3.wwww, -r6.xyzx
mad r6.xyz, r5.wwww, r8.xyzx, r6.xyzx
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r14.zwzz, t1.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r7.xy, r10.zwzz, t2.xyzw, s11
mul r9.xy, v1.xyxx, cb3[24].zwzz
mul r10.xyz, r8.xyzx, cb3[2].xyzx
sample_indexable(texture2d)(float,float,float,float) r11.y, r9.xyxx, t22.yxzw, s11
mul r3.w, r7.x, cb3[7].w
add r4.w, cb3[8].w, -cb3[9].w
mad r4.w, r7.y, r4.w, cb3[9].w
mad_sat r11.x, r1.y, cb3[5].w, cb3[6].w
mov r11.z, l(1.000000)
dp3_sat r1.y, cb3[9].xyzx, r11.xyzx
mul r11.xyz, r4.xyzx, r10.xyzx
mad r8.xyz, -r8.xyzx, cb3[2].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r14.xyz, -r4.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad r14.xyz, -r8.xyzx, r14.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r10.xyz, r10.xyzx, r14.xyzx
mad r8.xyz, r8.xyzx, r11.xyzx, r10.xyzx
add r8.xyz, -r4.xyzx, r8.xyzx
mad r4.xyz, r1.yyyy, r8.xyzx, r4.xyzx
add r4.w, -r2.w, r4.w
mad r2.w, r1.y, r4.w, r2.w
mad r8.xyz, cb3[6].xyzx, r3.wwww, -r6.xyzx
mad r6.xyz, r1.yyyy, r8.xyzx, r6.xyzx
sample_indexable(texture2d)(float,float,float,float) r10.xyzw, r15.zwzz, t13.xyzw, s11
sample_indexable(texture2d)(float,float,float,float) r1.y, r12.zwzz, t15.yxzw, s11
max r7.xy, cb3[25].zxzz, l(0.010000, 0.010000, 0.000000, 0.000000)
add r3.w, cb3[25].x, cb3[25].z
mad r8.xy, cb2[24].xxxx, cb3[23].zwzz, r9.zwzz
mad r7.zw, cb2[24].xxxx, cb3[24].xxxy, r7.zzzw
sample_indexable(texture2d)(float,float,float,float) r4.w, r8.xyxx, t20.yzwx, s11
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r7.zwzz, t18.xyzw, s11
mul r8.xyz, r8.xyzx, cb3[11].xyzx
add r5.w, r3.w, cb3[26].z
add r5.w, r5.w, cb3[25].y
add r5.w, r5.w, l(1.000000)
mad r9.xyz, cb3[13].xyzx, r4.wwww, -r10.xyzx
mad r9.xyz, r10.wwww, r9.xyzx, r10.xyzx
mul r11.xyz, r4.xyzx, cb3[25].wwww
mad r4.w, -cb5[r0.w + 4].x, r5.w, l(1.000000)
add r5.w, r4.w, cb3[25].z
add r6.w, r5.w, cb3[25].x
add r7.z, r1.y, -r4.w
add r3.w, -r3.w, -r4.w
add r7.w, r1.y, -r5.w
add r11.w, r6.w, cb3[25].y
add r12.x, r6.w, cb3[26].z
div_sat r3.w, r3.w, cb3[26].z
div r7.xy, r7.zwzz, r7.xyxx
add r7.z, -r3.w, l(1.000000)
add r7.xy, -r7.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
lt r7.w, r11.w, r1.y
movc r7.w, r7.w, l(0), l(1.000000)
mul r14.xyz, r7.yyyy, r8.xyzx
mul r8.xyz, r11.xyzx, r7.xxxx
lt r4.w, r4.w, r1.y
movc r4.xyz, r4.wwww, r8.xyzx, r4.xyzx
lt r5.w, r5.w, r1.y
mov r14.w, l(1.000000)
mov r4.w, l(0)
movc r4.xyzw, r5.wwww, r14.xyzw, r4.xyzw
lt r5.w, r6.w, r1.y
mov r9.w, r10.w
mov r11.xyz, r4.xyzx
mov r11.w, l(1.000000)
movc r9.xyzw, r5.wwww, r9.xyzw, r11.xyzw
add r4.xyz, -r9.xyzx, r10.xyzx
mad r4.xyz, r3.wwww, r4.xyzx, r9.xyzx
lt r1.y, r12.x, r1.y
movc r4.xyz, r1.yyyy, r10.xyzx, r4.xyzx
mul r1.y, r4.w, r9.w
mul r1.y, r7.z, r1.y
mad r6.xyz, r1.yyyy, -r6.xyzx, r6.xyzx
mul r1.y, r8.w, r7.w
sample_indexable(texture2d)(float,float,float,float) r7.xyz, r1.zwzz, t51.xyzw, s13
sample_indexable(texture2d)(float,float,float,float) r8.xyz, r1.zwzz, t52.xyzw, s13
max r1.y, r1.y, l(0.000000)
mul r1.zw, v0.xxxy, l(0.000000, 0.000000, 0.250000, 0.250000)
sample_indexable(texture2d)(float,float,float,float) r1.z, r1.zwzz, t17.yzxw, s11
mov r1.w, v3.x
mad r1.z, r1.z, cb1[r1.w + 3].y, cb1[r1.w + 3].z
add r1.w, r2.w, l(2.000000)
mul r1.w, r1.w, l(0.010000)
mul r9.xyz, r1.wwww, r6.xyzx
ftoi r10.xy, v0.xyxx
mov r10.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r1.w, r10.xyww, t0.yzwx
add r3.w, cb3[29].z, cb3[29].y
add_sat r3.w, -r3.w, l(1.000000)
mul r4.w, r1.w, r1.w
mad r1.w, cb3[29].y, r1.w, r3.w
mad_sat r1.w, r4.w, cb3[29].z, r1.w
add r11.xyz, -cb2[94].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mad_sat r11.xyz, r1.wwww, r11.xyzx, cb2[94].xyzx
add r3.xyw, r3.xyxz, -cb2[10].xyxz
dp3 r1.w, r3.xywx, r3.xywx
sqrt r1.w, r1.w
add r3.x, r3.z, -cb0[r0.w + 7].z
add r3.y, -cb2[73].x, cb2[73].y
add r1.w, r1.w, -cb2[73].x
div r3.y, l(1.000000, 1.000000, 1.000000, 1.000000), r3.y
mul_sat r1.w, r1.w, r3.y
mad r3.y, r1.w, l(-2.000000), l(3.000000)
mul r1.w, r1.w, r1.w
mul r1.w, r1.w, r3.y
add r3.x, r3.x, cb3[30].y
max r3.x, r3.x, l(0.000000)
add r3.yz, -cb2[74].zzxz, cb2[74].wwyw
mad r3.yz, r1.wwww, r3.yyzy, cb2[74].zzxz
mul r1.w, r3.x, cb3[30].x
mul r1.w, r1.w, l(0.005000)
mov_sat r3.x, r13.z
dp3 r3.w, r13.xyzx, r5.xyzx
add_sat r4.w, -r3.w, l(1.000000)
log r4.w, r4.w
mul r3.y, r3.y, r4.w
exp r3.y, r3.y
mul r4.w, r3.x, r3.z
mul r1.w, r1.w, r4.w
lt r4.w, r13.z, l(0.000000)
movc r3.y, r4.w, l(0), r3.y
mad r1.w, r3.y, r3.x, r1.w
mul r12.xyz, r1.wwww, cb2[72].xyzx
mul r8.xyz, r8.xyzx, r11.xyzx
ld_indexable(texture2d)(float,float,float,float) r10.xyz, r10.xyzw, t53.xyzw
mad r7.xyz, r1.xxxx, r10.xyzx, r7.xyzx
mul r7.xyz, r7.xyzx, r11.xyzx
mad r3.xyz, r3.zzzz, r12.xyzx, r7.xyzx
mul r1.x, r1.x, r11.x
mul r7.xyz, r13.xyzx, r3.wwww
mad r7.xyz, r7.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), -r5.xyzx
max r1.w, r3.w, l(1.000000012E-007)
add r1.w, -r1.w, l(1.000000)
mul r3.w, r1.w, r1.w
mul r3.w, r3.w, r3.w
mul r1.w, r1.w, r3.w
mad r1.w, r1.w, l(0.960000), l(0.040000)
mul r10.xyzw, r7.yzzz, r7.xxyz
mul r3.w, r7.y, r7.y
mad r7.w, r7.x, r7.x, -r3.w
dp4 r11.x, r10.xyzw, cb6[0].xyzw
dp4 r11.y, r10.xyzw, cb6[2].xyzw
dp4 r11.z, r10.xyzw, cb6[4].xyzw
dp4 r10.x, r7.xyzw, cb6[1].xyzw
dp4 r10.y, r7.xyzw, cb6[3].xyzw
dp4 r10.z, r7.xyzw, cb6[5].xyzw
add r10.xyz, r10.xyzx, r11.xyzx
add r10.xyz, r10.xyzx, cb6[6].xyzx
max r10.xyz, r10.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mad r3.w, r7.z, l(0.500000), l(0.500000)
add r11.xyz, cb2[27].xyzx, -cb2[38].xyzx
mad r11.xyz, r3.wwww, r11.xyzx, cb2[38].xyzx
add r10.xyz, r10.xyzx, r11.xyzx
dp3 r0.x, r7.xyzx, r0.xyzx
mad_sat r0.x, cb3[31].y, r0.x, l(1.000000)
mul r0.x, r0.x, r0.x
dp3 r0.y, -r5.xyzx, r13.xyzx
add r0.y, r0.y, r0.y
mad r5.xyz, r13.xyzx, -r0.yyyy, -r5.xyzx
mul r11.xyz, r5.yyyy, cb5[r0.w + 1].xyzx
mad r5.xyw, r5.xxxx, cb5[r0.w + 0].xyxz, r11.xyxz
mad r0.yzw, r5.zzzz, cb5[r0.w + 2].xxyz, r5.xxyw
div r0.yz, r0.yyzy, r0.wwww
mad r0.yz, cb3[23].xxyx, r0.yyzy, cb3[21].zzwz
sample_indexable(texture2d)(float,float,float,float) r0.yzw, r0.yzyy, t3.wxyz, s13
mul r0.yzw, r0.yyzw, cb3[30].zzzz
ieq r3.w, cb7[0].x, l(0)
ult r4.w, l(1024), cb7[0].x
or r3.w, r3.w, r4.w
if_z r3.w
  mul r2.w, r2.w, l(0.250000)
  log r2.w, r2.w
  mad_sat r2.w, -r2.w, l(0.0909090936), l(1.000000)
  mul r2.w, r2.w, l(4.000000)
  mul r3.w, cb6[7].x, l(3.14159274)
  mul r5.xy, v0.xyxx, l(0.062500, 0.062500, 0.000000, 0.000000)
  round_ni r5.xy, r5.xyxx
  utof r4.w, cb7[0].z
  mad r4.w, r5.y, r4.w, r5.x
  ftou r4.w, r4.w
  imul null, r5.x, cb7[0].w, cb7[0].z
  ishl r5.x, r5.x, l(1)
  ishl r4.w, r4.w, l(1)
  iadd r4.w, r4.w, r5.x
  mov r5.xyz, r7.xyzx
  mov r11.w, l(1.000000)
  mov r12.w, l(1.000000)
  mov r13.xyz, l(0,0,0,0)
  mov r14.xyz, l(0,0,0,0)
  mov r15.xy, l(0,0,0,0)
  mov r6.w, l(0)
  mov r8.w, l(0)
  mov r9.w, l(1.000000)
  mov r10.w, l(0)
  loop 
    uge r13.w, r10.w, l(2)
    breakc_nz r13.w
    iadd r13.w, r4.w, r10.w
    ld_indexable(buffer)(uint,uint,uint,uint) r16.xyzw, r13.wwww, t55.xyzw
    ushr r17.xyzw, r16.xyzw, l(30, 30, 30, 30)
    iadd r13.w, r17.y, r17.x
    iadd r13.w, r17.z, r13.w
    iadd r13.w, r17.w, r13.w
    mov r17.xyz, r13.xyzx
    mov r18.xyz, r14.xyzx
    mov r19.xw, r15.yyyx
    mov r19.y, r6.w
    mov r19.z, r8.w
    mov r14.w, r9.w
    mov r15.z, l(0)
    loop 
      uge r15.w, r15.z, r13.w
      breakc_nz r15.w
      ult r20.xyz, r15.zzzz, l(3, 6, 9, 0)
      iadd r21.xyz, r15.zzzz, l(-3, -6, -9, 0)
      movc r15.w, r20.z, r21.y, r21.z
      movc r15.w, r20.y, r21.x, r15.w
      movc r15.w, r20.x, r15.z, r15.w
      movc r20.z, r20.z, r16.z, r16.w
      movc r20.y, r20.y, r16.y, r20.z
      movc r20.x, r20.x, r16.x, r20.y
      imul null, r15.w, r15.w, l(10)
      ushr r15.w, r20.x, r15.w
      and r15.w, r15.w, l(1023)
      ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r20.x, r15.w, l(140), t54.xxxx
      mov r21.xyz, r17.xyzx
      mov r22.xyz, r18.xyzx
      mov r23.xyzw, r19.xyzw
      mov r20.y, r14.w
      mov r20.z, r15.z
      mov r20.w, r15.w
      mov r24.x, r20.x
      loop 
        ult r24.y, r20.z, r13.w
        ieq r24.zw, r24.xxxx, l(0, 0, 0, 1)
        or r24.z, r24.w, r24.z
        and r24.y, r24.z, r24.y
        breakc_z r24.y
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyzw, r20.w, l(0), t54.xyzw
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.xyz, r20.w, l(16), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.y, r20.w, l(32), t54.xxxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r27.yz, r20.w, l(40), t54.xxyx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r28.xyzw, r20.w, l(60), t54.xyzw
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.xy, r20.w, l(100), t54.xyxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.z, r20.w, l(332), t54.xxxx
        and r24.z, r24.z, l(3)
        add r25.xyz, r2.xyzx, -r25.xyzx
        dp3 r26.w, r25.xyzx, r26.xyzx
        max r26.w, r26.w, l(0.000000)
        min r25.w, r25.w, r26.w
        mad r26.xyz, -r25.wwww, r26.xyzx, r25.xyzx
        movc r25.xyz, r24.wwww, r26.xyzx, r25.xyzx
        dp3 r24.w, r25.xyzx, r25.xyzx
        sqrt r24.w, r24.w
        mad_sat r27.x, r24.w, r24.y, r27.y
        sample_l_indexable(texture2d)(float,float,float,float) r24.y, r27.xzxx, t44.xzyw, s13, l(0.000000)
        ine r24.w, r29.y, l(1)
        movc r24.y, r24.w, l(0), r24.y
        ine r24.w, r24.z, l(2)
        if_nz r24.w
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.w, r20.w, l(372), t54.xxxx
          mul r25.x, r24.y, r24.y
          mul r24.w, r24.w, r25.x
          ieq r25.xy, r24.zzzz, l(1, 3, 0, 0)
          mul r24.z, r3.w, r28.x
          itof r5.w, r29.x
          sample_l_indexable(texturecubearray)(float,float,float,float) r26.xyz, r5.xyzw, t57.xyzw, s11, r2.w
          mul r26.xyz, r24.zzzz, r26.xyzx
          mul r11.xyz, r28.yzwy, r26.xyzx
          mov r22.w, r23.z
          mad r26.xyzw, r24.wwww, r11.wxyz, r22.wxyz
          max r27.w, r23.w, r24.w
          mov r21.w, r23.x
          mad r29.xyzw, r24.wwww, r11.xyzw, r21.xyzw
          max r30.x, r23.y, r24.w
          mov r27.x, r21.w
          mov r27.z, r26.x
          mov r23.x, r29.w
          mov r23.z, r22.w
          movc r31.xzw, r25.xxxx, r27.xxzw, r23.xxzw
          mov r26.x, r23.y
          mov r30.yzw, r22.xxyz
          movc r30.xyzw, r25.xxxx, r26.xyzw, r30.xyzw
          or r5.w, r25.y, r25.x
          movc r21.xyz, r5.wwww, r21.xyzx, r29.xyzx
          movc r22.xyz, r25.yyyy, r22.xyzx, r30.yzwy
          mov r23.x, r27.x
          mov r23.y, r26.x
          mov r31.y, r30.x
          movc r23.xyzw, r25.yyyy, r23.xyzw, r31.xyzw
        else 
          add_sat r5.w, -r24.y, l(1.000000)
          mul r5.w, r5.w, r5.w
          add r11.x, -r28.x, l(1.000000)
          mad r5.w, r5.w, r11.x, r28.x
          mul r20.y, r5.w, r20.y
        endif 
        iadd r5.w, r20.z, l(1)
        ult r11.x, r5.w, r13.w
        if_nz r11.x
          ult r11.xyz, r5.wwww, l(3, 6, 9, 0)
          iadd r24.yzw, r20.zzzz, l(0, -2, -5, -8)
          movc r21.w, r11.z, r24.z, r24.w
          movc r21.w, r11.y, r24.y, r21.w
          movc r21.w, r11.x, r5.w, r21.w
          movc r11.z, r11.z, r16.z, r16.w
          movc r11.y, r11.y, r16.y, r11.z
          movc r11.x, r11.x, r16.x, r11.y
          imul null, r11.y, r21.w, l(10)
          ushr r11.x, r11.x, r11.y
          and r20.w, r11.x, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.x, r20.w, l(140), t54.xxxx
        endif 
        mov r20.z, r5.w
      endloop 
      mov r17.xyz, r21.xyzx
      mov r18.xyz, r22.xyzx
      mov r19.xyzw, r23.xyzw
      mov r14.w, r20.y
      mov r5.w, r20.z
      mov r11.x, r20.w
      mov r11.y, r24.x
      loop 
        ult r11.z, r5.w, r13.w
        ieq r15.w, r11.y, l(4)
        and r11.z, r11.z, r15.w
        breakc_z r11.z
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r24.yzw, r11.x, l(0), t54.xxyz
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r25.xyz, r11.x, l(16), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.y, r11.x, l(44), t54.xxxx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r27.xyzw, r11.x, l(60), t54.xyzw
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r26.zw, r11.x, l(100), t54.xxxy
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r28.xyz, r11.x, l(128), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r29.xyz, r11.x, l(144), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r30.xyz, r11.x, l(160), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r31.xyz, r11.x, l(176), t54.xyzx
        ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.z, r11.x, l(332), t54.xxxx
        and r11.z, r11.z, l(3)
        add r24.yzw, r2.xxyz, -r24.yyzw
        dp3 r28.y, r24.yzwy, r28.xyzx
        dp3 r28.z, r24.yzwy, r25.xyzx
        dp3 r28.w, r24.yzwy, r29.xyzx
        mul r24.yzw, r30.xxyz, r31.xxyz
        mad r25.xyz, r31.xyzx, r30.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
        div r25.xyz, r31.xyzx, r25.xyzx
        mul r25.xyz, r25.xyzx, r28.yzwy
        max r25.xyz, r25.xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
        min r25.xyz, r25.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
        mul r28.yzw, r25.xxyz, r25.xxyz
        mad r15.w, -r25.x, r25.x, l(1.000000)
        mad r15.w, r28.w, r15.w, r28.y
        add r20.x, -r15.w, l(1.000000)
        mad_sat r15.w, r28.z, r20.x, r15.w
        sqrt r15.w, r15.w
        max r28.x, r28.y, l(0.000010)
        dp3 r20.x, r24.yzwy, r28.xzwx
        mad r21.w, r25.y, r25.y, r28.x
        mad r21.w, r25.z, r25.z, r21.w
        div r20.x, r20.x, r21.w
        add r21.w, r20.x, l(1.000000)
        mad_sat r26.x, r15.w, r21.w, -r20.x
        sample_l_indexable(texture2d)(float,float,float,float) r15.w, r26.xyxx, t44.xywz, s13, l(0.000000)
        ine r20.x, r26.w, l(1)
        movc r15.w, r20.x, l(0), r15.w
        ine r20.x, r11.z, l(2)
        if_nz r20.x
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r20.x, r11.x, l(372), t54.xxxx
          mul r21.w, r15.w, r15.w
          mul r20.x, r20.x, r21.w
          ieq r24.yz, r11.zzzz, l(0, 1, 3, 0)
          mul r11.z, r3.w, r27.x
          itof r7.w, r26.z
          sample_l_indexable(texturecubearray)(float,float,float,float) r25.xyz, r7.xyzw, t57.xyzw, s11, r2.w
          mul r25.xyz, r11.zzzz, r25.xyzx
          mul r12.xyz, r27.yzwy, r25.xyzx
          mov r18.w, r19.z
          mad r25.xyzw, r20.xxxx, r12.wxyz, r18.wxyz
          max r26.w, r19.w, r20.x
          mov r17.w, r19.x
          mad r28.xyzw, r20.xxxx, r12.xyzw, r17.xyzw
          max r29.x, r19.y, r20.x
          mov r26.x, r17.w
          mov r26.z, r25.x
          mov r19.x, r28.w
          mov r19.z, r18.w
          movc r30.xzw, r24.yyyy, r26.xxzw, r19.xxzw
          mov r25.x, r19.y
          mov r29.yzw, r18.xxyz
          movc r29.xyzw, r24.yyyy, r25.xyzw, r29.xyzw
          or r7.w, r24.z, r24.y
          movc r17.xyz, r7.wwww, r17.xyzx, r28.xyzx
          movc r18.xyz, r24.zzzz, r18.xyzx, r29.yzwy
          mov r19.x, r26.x
          mov r19.y, r25.x
          mov r30.y, r29.x
          movc r19.xyzw, r24.zzzz, r19.xyzw, r30.xyzw
        else 
          add_sat r7.w, -r15.w, l(1.000000)
          mul r7.w, r7.w, r7.w
          add r11.z, -r27.x, l(1.000000)
          mad r7.w, r7.w, r11.z, r27.x
          mul r14.w, r7.w, r14.w
        endif 
        iadd r7.w, r5.w, l(1)
        ult r11.z, r7.w, r13.w
        if_nz r11.z
          ult r12.xyz, r7.wwww, l(3, 6, 9, 0)
          iadd r24.yzw, r5.wwww, l(0, -2, -5, -8)
          movc r11.z, r12.z, r24.z, r24.w
          movc r11.z, r12.y, r24.y, r11.z
          movc r11.z, r12.x, r7.w, r11.z
          movc r12.z, r12.z, r16.z, r16.w
          movc r12.y, r12.y, r16.y, r12.z
          movc r12.x, r12.x, r16.x, r12.y
          imul null, r11.z, r11.z, l(10)
          ushr r11.z, r12.x, r11.z
          and r11.x, r11.z, l(1023)
          ld_structured_indexable(structured_buffer, stride=384)(mixed,mixed,mixed,mixed) r11.y, r11.x, l(140), t54.xxxx
        endif 
        mov r5.w, r7.w
      endloop 
      ine r12.xyz, r11.yyyy, l(0, 4, 1, 0)
      and r7.w, r12.y, r12.x
      and r7.w, r12.z, r7.w
      iadd r15.z, r5.w, -r7.w
    endloop 
    ult r7.w, r13.w, l(12)
    if_nz r7.w
      mov r13.xyz, r17.xyzx
      mov r14.xyz, r18.xyzx
      mov r15.xy, r19.wxww
      mov r6.w, r19.y
      mov r8.w, r19.z
      mov r9.w, r14.w
      break 
    endif 
    iadd r10.w, r10.w, l(1)
    mov r13.xyz, r17.xyzx
    mov r14.xyz, r18.xyzx
    mov r15.xy, r19.wxww
    mov r6.w, r19.y
    mov r8.w, r19.z
    mov r9.w, r14.w
  endloop 
  max r2.x, r8.w, l(1.192092896E-007)
  div r2.xyz, r14.xyzx, r2.xxxx
  mov_sat r15.x, r15.x
  add r2.xyz, -r10.xyzx, r2.xyzx
  mad r2.xyz, r15.xxxx, r2.xyzx, r10.xyzx
  max r2.w, r15.y, l(1.192092896E-007)
  div r5.xyz, r13.xyzx, r2.wwww
  mov_sat r6.w, r6.w
  add r5.xyz, -r2.xyzx, r5.xyzx
  mad r10.xyz, r6.wwww, r5.xyzx, r2.xyzx
else 
  mov r9.w, l(1.000000)
endif 
mul r2.xyz, r9.wwww, r10.xyzx
mul r1.x, r1.w, r1.x
mul r0.x, r0.x, r1.x
mul r0.x, r0.x, l(0.500000)
mul r2.xyz, r6.xyzx, r2.xyzx
mad r0.yzw, r8.xxyz, r9.xxyz, r0.yyzw
mad r0.xyz, r2.xyzx, r0.xxxx, r0.yzwy
mad r0.xyz, r3.xyzx, r4.xyzx, r0.xyzx
max o0.xyz, r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
add r0.x, r1.y, -cb1[2].x
min r0.x, r1.z, r0.x
lt r0.x, r0.x, l(0.000000)
discard_nz r0.x
mov o0.w, r1.y
mov o1.x, l(0)
ret 
// Approximately 560 instruction slots used
