// MANUALLY DUMPED [ShaderRegex_LightingPS1] Lighting with haloing. More crystals.
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.16 on Sat Feb 06 17:02:21 2021
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 litDir[4];                  // Index:    0 1 2 3          Components:    16
//   float4 litCol[4];                  // Index:    4 5 6 7          Components:    16
//   int nDirLit;                       // Index:    8.x              Components:     1
//   float4 vEye;                       // Index:    9.xyzw           Components:     4
//   int3 vSplsNumSS;                   // Index:   10.xyz            Components:     3
//   float4 vSubCbW2S[16];              // Index:   11-26             Components:    64
//   int3 vSslsNumSS;                   // Index:   27.xyz            Components:     3
//   row_major float4x4 mSubSptW2S[8];  // Index:   28-59             Components:   128
//   float4 vClstZPrm;                  // Index:   60.xyzw           Components:     4
//   int nClstPtch[2];                  // Index:   61-62.x           Components:     5
//   float fClstScl;                    // Index:   62.y              Components:     1 [unused]
//   float2 vFadeDist;                  // Index:   62.zw             Components:     2
//   row_major float4x4 mW2S[3];        // Index:   63-74             Components:    48
//   float4 vSMOf[3];                   // Index:   75 76 77          Components:    12
//   float4 vS2VZ;                      // Index:   78.xyzw           Components:     4
//   float4 vSMDF;                      // Index:   79.xyzw           Components:     4
//   float4 scSM;                       // Index:   80.xyzw           Components:     4
//   float4 scSM2;                      // Index:   81.xyzw           Components:     4
//   float4 sdplane;                    // Index:   82.xyzw           Components:     4
//   float3 vCameraPos;                 // Index:   83.xyz            Components:     3
//   float3 vCameraDir;                 // Index:   84.xyz            Components:     3
//   float3 vCameraViewY;               // Index:   85.xyz            Components:     3
//   float2 vD2Z;                       // Index:   86.xy             Components:     2
//   float4 mRrW2T[3];                  // Index:   87 88 89          Components:    12
//   row_major float4x4 mV2W;           // Index:   90 91 92 93       Components:    16
//   row_major float4x4 mP2W;           // Index:   94 95 96 97       Components:    16
//   float fAmbMapsDORate;              // Index:   98.x              Components:     1
//      = 0x00000000
//   float4 vAmbDifScl;                 // Index:   99.xyzw           Components:     4
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000
//   row_major float4x4 mP2V;           // Index:  100 101 102 103    Components:    16
//   float4 vAmbSpcScl;                 // Index:  104.xyzw           Components:     4
//      = 0x3f800000 0x3f800000 0x3f800000 0x3f800000
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// __smpsShadow                      sampler      NA          NA    0        1
// __smpsIES                         sampler      NA          NA    1        1
// __smpsDepthMap                    sampler      NA          NA    2        1
// __smpsSplShadow                 sampler_c      NA          NA    3        1
// __smpsSslShadow                 sampler_c      NA          NA    4        1
// __smpsAmbSpc                      sampler      NA          NA    5        1
// __smpsTrnsSpc                     sampler      NA          NA    6        1
// __smpsTrnsDpt                     sampler      NA          NA    7        1
// sShadow                           texture  float4          2d    0        1
// sIES                              texture  float4     2darray    1        1
// sDepthMap                         texture  float4          2d    2        1
// sSplShadow                        texture  float4   cubearray    3        1
// sSslShadow                        texture  float4     2darray    4        1
// sAmbSpc                           texture  float4        cube    5        1
// sTrnsSpc                          texture  float4          2d    6        1
// sTrnsDpt                          texture  float4          2d    7        1
// sDepth                            texture  float4          2d    8        1
// sGBuf0                            texture  float4          2d    9        1
// sGBuf1                            texture  float4          2d   10        1
// sGBuf2                            texture  float4          2d   11        1
// sGBuf3                            texture  float4          2d   12        1
// sGBuf4                            texture  float4          2d   13        1
// sGBuf5                            texture  float4          2d   14        1
// tCllLightIndices                  texture    uint         buf   16        1
// tCllLightPositions                texture  float4         buf   17        1
// tCllLightAttributes               texture  float3         buf   18        1
// tCllLightExAttributes             texture    uint         buf   19        1
// tCllSptLightAttributes            texture  float3         buf   20        1
// tCllSptLightExAttributes          texture    uint         buf   21        1
// tMaterialTable                    texture    uint         buf   30        1
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xy
// TEXCOORD                 0   xyzw        1     NONE   float   xy w
//
//
// 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[105], dynamicIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_comparison
dcl_sampler s4, mode_comparison
dcl_sampler s5, mode_default
dcl_sampler s6, mode_default
dcl_sampler s7, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2darray (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texturecubearray (float,float,float,float) t3
dcl_resource_texture2darray (float,float,float,float) t4
dcl_resource_texturecube (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_buffer (uint,uint,uint,uint) t16
dcl_resource_buffer (float,float,float,float) t17
dcl_resource_buffer (float,float,float,float) t18
dcl_resource_buffer (uint,uint,uint,uint) t19
dcl_resource_buffer (float,float,float,float) t20
dcl_resource_buffer (uint,uint,uint,uint) t21
dcl_resource_buffer (uint,uint,uint,uint) t30
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_input_ps linear v1.xyw
dcl_output o0.xyzw
dcl_temps 47
dcl_resource_texture2d (float,float,float,float) t125
ftoi r0.xy, v0.xyxx
mov r0.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r1.xyzw, r0.xyww, t10.xyzw
mul r1.xyz, r1.zxyz, l(255.000000, 0.996337, 0.996337, 0.000000)
mad r1.w, r1.w, l(255.000000), l(0.500000)
ftoi r1.w, r1.w
ld_indexable(buffer)(uint,uint,uint,uint) r1.w, r1.wwww, t30.yzwx
ld_indexable(texture2d)(float,float,float,float) r2.xyzw, r0.xyww, t9.xyzw
ld_indexable(texture2d)(float,float,float,float) r3.xyzw, r0.xyww, t11.xyzw
ld_indexable(texture2d)(float,float,float,float) r4.xy, r0.xyww, t12.xwyz
ld_indexable(texture2d)(float,float,float,float) r5.xyz, r0.xyww, t13.xyzw
ld_indexable(texture2d)(float,float,float,float) r6.xyz, r0.xyww, t14.xyzw
ld_indexable(texture2d)(float,float,float,float) r0.x, r0.xyzw, t8.xyzw
ld_indexable(texture2d)(float,float,float,float) r32.xyzw, l(0, 0, 0, 0), t125.xyzw
mov r33.x, v1.x
mul r34.xyzw, v1.yyyy, cb0[95].xyzw
mad r34.xyzw, r33.xxxx, cb0[94].xyzw, r34.xyzw
mad r34.xyzw, r0.xxxx, cb0[96].xyzw, r34.xyzw
add r34.xyzw, r34.xyzw, cb0[97].xyzw
add r33.x, -r32.x, r33.x
mul r35.xyzw, v1.yyyy, cb0[95].xyzw
mad r35.xyzw, r33.xxxx, cb0[94].xyzw, r35.xyzw
mad r35.xyzw, r0.xxxx, cb0[96].xyzw, r35.xyzw
add r35.xyzw, r35.xyzw, cb0[97].xyzw
div r35.xyzw, r35.xyzw, r35.wwww
mul r36.w, r32.y, r34.w
mad r33.x, r32.x, r36.w, r33.x
mul r7.xyzw, v1.yyyy, cb0[95].xyzw
mad r7.xyzw, r33.xxxx, cb0[94].xyzw, r7.xyzw
mad r7.xyzw, r0.xxxx, cb0[96].xyzw, r7.xyzw
add r7.xyzw, r7.xyzw, cb0[97].xyzw
div r7.xyzw, r7.xyzw, r7.wwww

div r34.xyzw, r34.xyzw, r34.wwww

add r0.yzw, -r35.xxyz, cb0[9].xxyz
dp3 r4.z, r0.yzwy, r0.yzwy
rsq r4.w, r4.z
mul r8.xyz, r0.yzwy, r4.wwww
add r3.w, r3.w, r3.w
ftou r1.x, r1.x
and r5.w, r1.x, l(15)
utof r5.w, r5.w
mad r9.x, r5.w, l(0.000244200259), r1.y
ushr r1.x, r1.x, l(4)
utof r1.x, r1.x
mad r9.y, r1.x, l(0.000244200259), r1.z
mad r1.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
add r9.xyz, -|r1.xyxx|, l(1.000000, 1.000000, 1.000000, 0.000000)
add r10.z, -|r1.y|, r9.x
ge r1.z, r10.z, l(0.000000)
ge r9.xw, r1.xxxy, l(0.000000, 0.000000, 0.000000, 0.000000)
movc r9.xw, r9.xxxw, l(1.000000,0,0,1.000000), l(-1.000000,0,0,-1.000000)
mul r9.xy, r9.xwxx, r9.yzyy
movc r10.xy, r1.zzzz, r1.xyxx, r9.xyxx
dp3 r1.x, r10.xyzx, r10.xyzx
rsq r1.x, r1.x
mul r1.xyz, r1.xxxx, r10.xyzx
mul r9.xyz, r1.yyyy, cb0[91].xyzx
mad r9.xyz, r1.xxxx, cb0[90].xyzx, r9.xyzx
mad r1.xyz, r1.zzzz, cb0[92].xyzx, r9.xyzx
add r5.w, r4.x, l(1.000000)
and r9.xy, r1.wwww, l(1, 2, 0, 0)
movc r6.xyz, r9.xxxx, r6.xyzx, l(0,0,0,0)

mov r41.xyw, v1.xyxw
mad r41.x, -r32.x, r41.w, r41.x

div r39.xz, r41.xxyx, v1.wwww

div r9.xz, v1.xxyx, v1.wwww

add r10.xyz, -r35.xyzx, cb0[83].xyzx

add r40.xyz, -r34.xyzx, cb0[83].xyzx

max r11.xyz, r2.xyzx, l(0.000100, 0.000100, 0.000100, 0.000000)
min r11.xyz, r11.xyzx, l(0.999900, 0.999900, 0.999900, 0.000000)
log r11.xyz, r11.xyzx
mul r11.xyz, r11.xyzx, l(0.693147182, 0.693147182, 0.693147182, 0.000000)
max r12.xy, r5.yzyy, l(0.000100, 0.000000, 0.000000, 0.000000)
div r11.xyz, -r11.xyzx, r12.xxxx
mul r11.xyz, r12.yyyy, -r11.xyzx
mul r11.xyz, r11.xyzx, l(1.442695, 1.442695, 1.442695, 0.000000)
exp r11.xyz, r11.xyzx
dp3_sat r1.w, r1.xyzx, r8.xyzx
add r5.y, r2.w, r1.w
mad r5.y, r5.y, r5.y, r2.w
add_sat r5.y, r5.y, l(-1.000000)
mul r12.xyzw, r7.yyyy, cb0[64].xyzw
mad r12.xyzw, r7.xxxx, cb0[63].xyzw, r12.xyzw
mad r12.xyzw, r7.zzzz, cb0[65].xyzw, r12.xyzw
mad r12.xyzw, r7.wwww, cb0[66].xyzw, r12.xyzw
mul r13.xyz, r7.yyyy, cb0[68].xyzx
mad r13.xyz, r7.xxxx, cb0[67].xyzx, r13.xyzx
mad r13.xyz, r7.zzzz, cb0[69].xyzx, r13.xyzx
mad r13.xyz, r7.wwww, cb0[70].xyzx, r13.xyzx
mul r14.xyz, r7.yyyy, cb0[72].xyzx
mad r14.xyz, r7.xxxx, cb0[71].xyzx, r14.xyzx
mad r14.xyz, r7.zzzz, cb0[73].xyzx, r14.xyzx
mad r14.xyz, r7.wwww, cb0[74].xyzx, r14.xyzx
dp4 r6.w, r12.xyzw, cb0[78].xyzw
lt r8.w, l(0.000000), r6.w
movc r13.xyz, r8.wwww, r13.xyzx, r12.xyzx
movc r15.xyzw, r8.wwww, cb0[76].xyzw, cb0[75].xyzw
add r6.w, r6.w, -cb0[79].x
lt r6.w, l(0.000000), r6.w
movc r13.xyz, r6.wwww, r14.zxyz, r13.zxyz
movc r14.xyzw, r6.wwww, cb0[77].xyzw, r15.xyzw
add r15.xz, r13.zzyz, cb0[81].yyxy
mov_sat r13.x, r13.x
mov_sat r13.yz, r15.zzxz
mad r13.yz, r13.yyzy, r14.xxyx, r14.zzwz
mad r16.xy, r13.yzyy, cb0[80].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
frc r16.xy, r16.xyxx
add r16.zw, -r16.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
mad r13.yz, r16.zzwz, cb0[80].xxyx, r13.yyzy
gather4_indexable(texture2d)(float,float,float,float) r17.xyzw, r13.yzyy, t0.xyzw, s0.x
lt r17.xyzw, r17.wxyz, r13.xxxx
and r18.xyzw, r17.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r17.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r18.wwzw
mad r13.yz, r16.xxxx, r13.yyzy, r18.xxyx
add r6.w, -r13.y, r13.z
mad r6.w, r16.y, r6.w, r13.y
add r15.yw, r15.xxxz, cb0[80].yyyx
mov_sat r16.xyzw, r15.wxzy
mad r16.xyzw, r16.xyzw, r14.xyxy, r14.zwzw
mad r17.xyzw, r16.xyzw, cb0[80].zwzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
frc r17.xyzw, r17.xyzw
add r18.xyzw, -r17.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
mad r16.xyzw, r18.xyzw, cb0[80].xyxy, r16.xyzw
gather4_indexable(texture2d)(float,float,float,float) r18.xyzw, r16.xyxx, t0.xyzw, s0.x
lt r18.xyzw, r18.wxyz, r13.xxxx
and r19.xyzw, r18.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r18.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r19.wwzw
mad r13.yz, r17.xxxx, r13.yyzy, r19.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r17.y, r8.w, r13.y
add r6.w, r6.w, r8.w
add r18.xz, r15.wwyw, cb0[80].xxyx
mov r18.yw, r15.xxxy
mov_sat r19.xyzw, r18.xyxw
mad r19.xyzw, r19.xyzw, r14.xyxy, r14.zwzw
mad r20.xyzw, r19.xyzw, cb0[80].zwzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
frc r20.xyzw, r20.xyzw
add r21.xyzw, -r20.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
mad r19.xyzw, r21.xyzw, cb0[80].xyxy, r19.xyzw
gather4_indexable(texture2d)(float,float,float,float) r21.xyzw, r19.xyxx, t0.xyzw, s0.x
lt r21.xyzw, r21.wxyz, r13.xxxx
and r22.xyzw, r21.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r21.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r22.wwzw
mad r13.yz, r20.xxxx, r13.yyzy, r22.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r20.y, r8.w, r13.y
add r6.w, r6.w, r8.w
add r21.xy, r18.xzxx, cb0[80].xyxx
mov r21.zw, r18.yyyw
mov_sat r22.xyzw, r21.xzxw
mad r22.xyzw, r22.xyzw, r14.xyxy, r14.zwzw
mad r23.xyzw, r22.xyzw, cb0[80].zwzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
frc r23.xyzw, r23.xyzw
add r24.xyzw, -r23.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
mad r22.xyzw, r24.xyzw, cb0[80].xyxy, r22.xyzw
gather4_indexable(texture2d)(float,float,float,float) r24.xyzw, r22.xyxx, t0.xyzw, s0.x
lt r24.xyzw, r24.wxyz, r13.xxxx
and r25.xyzw, r24.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r24.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r25.wwzw
mad r13.yz, r23.xxxx, r13.yyzy, r25.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r23.y, r8.w, r13.y
add r6.w, r6.w, r8.w
gather4_indexable(texture2d)(float,float,float,float) r16.xyzw, r16.zwzz, t0.xyzw, s0.x
lt r16.xyzw, r16.wxyz, r13.xxxx
and r24.xyzw, r16.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r16.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r24.wwzw
mad r13.yz, r17.zzzz, r13.yyzy, r24.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r17.w, r8.w, r13.y
add r6.w, r6.w, r8.w
mov_sat r13.yz, r15.wwyw
mad r13.yz, r13.yyzy, r14.xxyx, r14.zzwz
mad r16.xy, r13.yzyy, cb0[80].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
frc r16.xy, r16.xyxx
add r16.zw, -r16.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
mad r13.yz, r16.zzwz, cb0[80].xxyx, r13.yyzy
gather4_indexable(texture2d)(float,float,float,float) r17.xyzw, r13.yzyy, t0.xyzw, s0.x
lt r17.xyzw, r17.wxyz, r13.xxxx
and r24.xyzw, r17.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r17.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r24.wwzw
mad r13.yz, r16.xxxx, r13.yyzy, r24.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r16.y, r8.w, r13.y
add r6.w, r6.w, r8.w
gather4_indexable(texture2d)(float,float,float,float) r16.xyzw, r19.zwzz, t0.xyzw, s0.x
lt r16.xyzw, r16.wxyz, r13.xxxx
and r17.xyzw, r16.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r16.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r17.wwzw
mad r13.yz, r20.zzzz, r13.yyzy, r17.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r20.w, r8.w, r13.y
add r6.w, r6.w, r8.w
gather4_indexable(texture2d)(float,float,float,float) r16.xyzw, r22.zwzz, t0.xyzw, s0.x
lt r16.xyzw, r16.wxyz, r13.xxxx
and r17.xyzw, r16.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r16.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r17.wwzw
mad r13.yz, r23.zzzz, r13.yyzy, r17.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r23.w, r8.w, r13.y
add r6.w, r6.w, r8.w
mov r15.y, r18.z
mov_sat r16.xyzw, r15.zywy
mad r16.xyzw, r16.xyzw, r14.xyxy, r14.zwzw
mad r17.xyzw, r16.xyzw, cb0[80].zwzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
frc r17.xyzw, r17.xyzw
add r19.xyzw, -r17.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
mad r16.xyzw, r19.xyzw, cb0[80].xyxy, r16.xyzw
gather4_indexable(texture2d)(float,float,float,float) r19.xyzw, r16.xyxx, t0.xyzw, s0.x
lt r19.xyzw, r19.wxyz, r13.xxxx
and r20.xyzw, r19.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r19.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r20.wwzw
mad r13.yz, r17.xxxx, r13.yyzy, r20.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r17.y, r8.w, r13.y
add r6.w, r6.w, r8.w
gather4_indexable(texture2d)(float,float,float,float) r16.xyzw, r16.zwzz, t0.xyzw, s0.x
lt r16.xyzw, r16.wxyz, r13.xxxx
and r19.xyzw, r16.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r16.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r19.wwzw
mad r13.yz, r17.zzzz, r13.yyzy, r19.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r17.w, r8.w, r13.y
add r6.w, r6.w, r8.w
mov_sat r13.yz, r18.xxzx
mad r13.yz, r13.yyzy, r14.xxyx, r14.zzwz
mad r16.xy, r13.yzyy, cb0[80].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
frc r16.xy, r16.xyxx
add r16.zw, -r16.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
mad r13.yz, r16.zzwz, cb0[80].xxyx, r13.yyzy
gather4_indexable(texture2d)(float,float,float,float) r17.xyzw, r13.yzyy, t0.xyzw, s0.x
lt r17.xyzw, r17.wxyz, r13.xxxx
and r19.xyzw, r17.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r17.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r19.wwzw
mad r13.yz, r16.xxxx, r13.yyzy, r19.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r16.y, r8.w, r13.y
add r6.w, r6.w, r8.w
mov r15.x, r21.x
mov_sat r15.xy, r15.xyxx
mad r13.yz, r15.xxyx, r14.xxyx, r14.zzwz
mad r15.xy, r13.yzyy, cb0[80].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
frc r15.xy, r15.xyxx
add r16.xy, -r15.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
mad r13.yz, r16.xxyx, cb0[80].xxyx, r13.yyzy
gather4_indexable(texture2d)(float,float,float,float) r16.xyzw, r13.yzyy, t0.xyzw, s0.x
lt r16.xyzw, r16.wxyz, r13.xxxx
and r17.xyzw, r16.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r16.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r17.wwzw
mad r13.yz, r15.xxxx, r13.yyzy, r17.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r15.y, r8.w, r13.y
add r6.w, r6.w, r8.w
mov r18.zw, r15.zzzw
mov r18.y, r21.y
mov_sat r15.xyzw, r18.zywy
mad r15.xyzw, r15.xyzw, r14.xyxy, r14.zwzw
mad r16.xyzw, r15.xyzw, cb0[80].zwzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
frc r16.xyzw, r16.xyzw
add r17.xyzw, -r16.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000)
mad r15.xyzw, r17.xyzw, cb0[80].xyxy, r15.xyzw
gather4_indexable(texture2d)(float,float,float,float) r17.xyzw, r15.xyxx, t0.xyzw, s0.x
lt r17.xyzw, r17.wxyz, r13.xxxx
and r19.xyzw, r17.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r17.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r19.wwzw
mad r13.yz, r16.xxxx, r13.yyzy, r19.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r16.y, r8.w, r13.y
add r6.w, r6.w, r8.w
gather4_indexable(texture2d)(float,float,float,float) r15.xyzw, r15.zwzz, t0.xyzw, s0.x
lt r15.xyzw, r15.wxyz, r13.xxxx
and r17.xyzw, r15.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r15.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r17.wwzw
mad r13.yz, r16.zzzz, r13.yyzy, r17.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r16.w, r8.w, r13.y
add r6.w, r6.w, r8.w
mov_sat r18.xy, r18.xyxx
mad r13.yz, r18.xxyx, r14.xxyx, r14.zzwz
mad r15.xy, r13.yzyy, cb0[80].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
frc r15.xy, r15.xyxx
add r15.zw, -r15.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
mad r13.yz, r15.zzwz, cb0[80].xxyx, r13.yyzy
gather4_indexable(texture2d)(float,float,float,float) r16.xyzw, r13.yzyy, t0.xyzw, s0.x
lt r16.xyzw, r16.wxyz, r13.xxxx
and r17.xyzw, r16.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.yz, r16.xxyx, l(0,-1.000000,-1.000000,0), l(0,-0.000000,-0.000000,0)
add r13.yz, r13.yyzy, r17.wwzw
mad r13.yz, r15.xxxx, r13.yyzy, r17.xxyx
add r8.w, -r13.y, r13.z
mad r8.w, r15.y, r8.w, r13.y
add r6.w, r6.w, r8.w
mov_sat r21.xy, r21.xyxx
mad r13.yz, r21.xxyx, r14.xxyx, r14.zzwz
mad r14.xy, r13.yzyy, cb0[80].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
frc r14.xy, r14.xyxx
add r14.zw, -r14.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
mad r13.yz, r14.zzwz, cb0[80].xxyx, r13.yyzy
gather4_indexable(texture2d)(float,float,float,float) r15.xyzw, r13.yzyy, t0.xyzw, s0.x
lt r13.xyzw, r15.wxyz, r13.xxxx
and r15.xyzw, r13.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
movc r13.xy, r13.xyxx, l(-1.000000,-1.000000,0,0), l(-0.000000,-0.000000,0,0)
add r13.xy, r13.xyxx, r15.wzww
mad r13.xy, r14.xxxx, r13.xyxx, r15.xyxx
add r8.w, -r13.x, r13.y
mad r8.w, r14.y, r8.w, r13.x
add r6.w, r6.w, r8.w
mul r6.w, r6.w, l(0.062500)
dp4_sat r8.w, cb0[82].xyzw, r12.xyzw
mad r6.w, -r6.w, r8.w, l(1.000000)
min r4.y, r4.y, r6.w
dp3 r12.x, r1.xyzx, -cb0[0].xyzx
lt r6.w, r12.x, l(0.000000)
lt r8.w, l(1.000000), r5.w
and r6.w, r6.w, r8.w
add r9.w, r12.x, r12.x
mad r13.yzw, r1.xxyz, r9.wwww, cb0[0].xxyz
mov r13.x, -r12.x
mul r14.xyz, r11.xyzx, cb0[4].xyzx
mad r15.xyz, r0.yzwy, r4.wwww, -r13.yzwy
dp3 r9.w, r15.xyzx, r15.xyzx
rsq r9.w, r9.w
mul r15.xyz, r9.wwww, r15.xyzx
dp3_sat r9.w, r8.xyzx, r15.xyzx
add r15.xyz, -r3.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r9.w, -r9.w, l(1.000000)
mul r10.w, r9.w, r9.w
mul r10.w, r10.w, r10.w
mul r9.w, r9.w, r10.w
mad r16.xyz, r15.xyzx, r9.wwww, r3.xyzx
add r17.xyz, -r16.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
add r5.w, -r5.w, l(2.000000)
mul r18.xyz, r5.wwww, r17.xyzx
mad r16.xyz, r17.xyzx, r5.wwww, r16.xyzx
add r16.xyz, -r16.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r17.xyz, r4.xxxx, r18.xyzx
movc r16.xyz, r6.wwww, r16.yzxy, l(-1.000000,-1.000000,-1.000000,0)
movc r17.xyz, r6.wwww, r17.xyzx, l(-1.000000,-1.000000,-1.000000,0)
movc r14.xyz, r6.wwww, r14.xyzx, cb0[4].xyzx
mov r12.yzw, cb0[0].xxyz
movc r13.xyzw, r6.wwww, r13.xyzw, r12.xyzw
mad r12.yzw, r0.yyzw, r4.wwww, -r13.yyzw
dp3 r6.w, r12.yzwy, r12.yzwy
rsq r6.w, r6.w
mul r12.yzw, r6.wwww, r12.yyzw
dp3 r6.w, r8.xyzx, r12.yzwy
ge r9.w, r16.z, l(0.000000)
mov_sat r10.w, r6.w
add r10.w, -r10.w, l(1.000000)
mul r11.w, r10.w, r10.w
mul r11.w, r11.w, r11.w
mul r10.w, r10.w, r11.w
mad r13.yzw, r15.xxyz, r10.wwww, r3.xxyz
movc r13.yzw, r9.wwww, r16.zzxy, r13.yyzw
mul r3.w, r3.w, r3.w
mul r3.w, r3.w, r3.w
dp3 r10.w, r1.xyzx, r12.yzwy
mul r11.w, r3.w, r3.w
mul r10.w, r10.w, r10.w
mad r12.y, r3.w, r3.w, l(-1.000000)
mad r10.w, r10.w, r12.y, l(1.000000)
max r10.w, r10.w, l(0.000100)
mul r10.w, r10.w, r10.w
mul r10.w, r10.w, l(4.000000)
div r10.w, r11.w, r10.w
mul r12.z, r3.w, l(0.500000)
mad r12.w, -r3.w, l(0.500000), l(1.000000)
mad r6.w, r6.w, r12.w, r12.z
mul r6.w, r6.w, r6.w
div r6.w, l(1.000000, 1.000000, 1.000000, 1.000000), r6.w
mul r6.w, r6.w, r10.w
mul r13.yzw, r6.wwww, r13.yyzw
mul r13.yzw, r14.xxyz, r13.yyzw
mov_sat r13.x, r13.x
mul r6.w, r5.y, r13.x
mul r13.yzw, r6.wwww, r13.yyzw
mul r14.xyz, r13.xxxx, r14.xyzx
mul r18.xyz, r5.wwww, r15.xyzx
movc r19.xyz, r9.wwww, r17.xyzx, r18.xyzx
mul r14.xyz, r14.xyzx, r19.xyzx
mul r14.xyz, r2.wwww, r14.xyzx
mul r14.xyz, r4.yyyy, r14.xyzx
mul r13.xyz, r4.yyyy, r13.yzwy
ilt r6.w, l(0), cb0[8].x
if_nz r6.w
  dp3 r19.x, r1.xyzx, -cb0[1].xyzx
  lt r6.w, r19.x, l(0.000000)
  and r6.w, r8.w, r6.w
  add r9.w, r19.x, r19.x
  mad r20.yzw, r1.xxyz, r9.wwww, cb0[1].xxyz
  mov r20.x, -r19.x
  mul r21.xyz, r11.xyzx, cb0[5].xyzx
  mad r22.xyz, r0.yzwy, r4.wwww, -r20.yzwy
  dp3 r9.w, r22.xyzx, r22.xyzx
  rsq r9.w, r9.w
  mul r22.xyz, r9.wwww, r22.xyzx
  dp3_sat r9.w, r8.xyzx, r22.xyzx
  add r9.w, -r9.w, l(1.000000)
  mul r10.w, r9.w, r9.w
  mul r10.w, r10.w, r10.w
  mul r9.w, r9.w, r10.w
  mad r22.xyz, r15.xyzx, r9.wwww, r3.xyzx
  add r23.xyz, -r22.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  mul r24.xyz, r5.wwww, r23.xyzx
  mad r22.xyz, r23.xyzx, r5.wwww, r22.xyzx
  add r22.xyz, -r22.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  mul r23.xyz, r4.xxxx, r24.xyzx
  mov r16.w, l(-1.000000)
  movc r16.xyz, r6.wwww, r22.yzxy, r16.xywx
  movc r17.xyz, r6.wwww, r23.xyzx, r17.xyzx
  movc r21.xyz, r6.wwww, r21.xyzx, cb0[5].xyzx
  mov r19.yzw, cb0[1].xxyz
  movc r19.xyzw, r6.wwww, r20.xyzw, r19.xyzw
  mad r19.yzw, r0.yyzw, r4.wwww, -r19.yyzw
  dp3 r6.w, r19.yzwy, r19.yzwy
  rsq r6.w, r6.w
  mul r19.yzw, r6.wwww, r19.yyzw
  dp3 r6.w, r8.xyzx, r19.yzwy
  ge r9.w, r16.z, l(0.000000)
  mov_sat r10.w, r6.w
  add r10.w, -r10.w, l(1.000000)
  mul r13.w, r10.w, r10.w
  mul r13.w, r13.w, r13.w
  mul r10.w, r10.w, r13.w
  mad r20.xyz, r15.xyzx, r10.wwww, r3.xyzx
  movc r20.xyz, r9.wwww, r16.zxyz, r20.xyzx
  dp3 r10.w, r1.xyzx, r19.yzwy
  mul r10.w, r10.w, r10.w
  mad r10.w, r10.w, r12.y, l(1.000000)
  max r10.w, r10.w, l(0.000100)
  mul r10.w, r10.w, r10.w
  mul r10.w, r10.w, l(4.000000)
  div r10.w, r11.w, r10.w
  mad r6.w, r6.w, r12.w, r12.z
  mul r6.w, r6.w, r6.w
  div r6.w, l(1.000000, 1.000000, 1.000000, 1.000000), r6.w
  mul r6.w, r6.w, r10.w
  mul r19.yzw, r6.wwww, r20.xxyz
  mul r19.yzw, r21.xxyz, r19.yyzw
  mov_sat r19.x, r19.x
  mul r6.w, r5.y, r19.x
  mad r13.xyz, r19.yzwy, r6.wwww, r13.xyzx
  mul r19.xyz, r19.xxxx, r21.xyzx
  movc r20.xyz, r9.wwww, r17.xyzx, r18.xyzx
  mul r19.xyz, r19.xyzx, r20.xyzx
  mad r14.xyz, r19.xyzx, r2.wwww, r14.xyzx
  ilt r6.w, l(1), cb0[8].x
  if_nz r6.w
    dp3 r19.x, r1.xyzx, -cb0[2].xyzx
    lt r6.w, r19.x, l(0.000000)
    and r6.w, r8.w, r6.w
    add r9.w, r19.x, r19.x
    mad r20.yzw, r1.xxyz, r9.wwww, cb0[2].xxyz
    mov r20.x, -r19.x
    mul r21.xyz, r11.xyzx, cb0[6].xyzx
    mad r22.xyz, r0.yzwy, r4.wwww, -r20.yzwy
    dp3 r9.w, r22.xyzx, r22.xyzx
    rsq r9.w, r9.w
    mul r22.xyz, r9.wwww, r22.xyzx
    dp3_sat r9.w, r8.xyzx, r22.xyzx
    add r9.w, -r9.w, l(1.000000)
    mul r10.w, r9.w, r9.w
    mul r10.w, r10.w, r10.w
    mul r9.w, r9.w, r10.w
    mad r22.xyz, r15.xyzx, r9.wwww, r3.xyzx
    add r23.xyz, -r22.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
    mul r24.xyz, r5.wwww, r23.xyzx
    mad r22.xyz, r23.xyzx, r5.wwww, r22.xyzx
    add r22.xyz, -r22.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
    mul r23.xyz, r4.xxxx, r24.xyzx
    mov r16.w, l(-1.000000)
    movc r16.xyz, r6.wwww, r22.yzxy, r16.xywx
    movc r17.xyz, r6.wwww, r23.xyzx, r17.xyzx
    movc r21.xyz, r6.wwww, r21.xyzx, cb0[6].xyzx
    mov r19.yzw, cb0[2].xxyz
    movc r19.xyzw, r6.wwww, r20.xyzw, r19.xyzw
    mad r19.yzw, r0.yyzw, r4.wwww, -r19.yyzw
    dp3 r6.w, r19.yzwy, r19.yzwy
    rsq r6.w, r6.w
    mul r19.yzw, r6.wwww, r19.yyzw
    dp3 r6.w, r8.xyzx, r19.yzwy
    ge r9.w, r16.z, l(0.000000)
    mov_sat r10.w, r6.w
    add r10.w, -r10.w, l(1.000000)
    mul r13.w, r10.w, r10.w
    mul r13.w, r13.w, r13.w
    mul r10.w, r10.w, r13.w
    mad r20.xyz, r15.xyzx, r10.wwww, r3.xyzx
    movc r20.xyz, r9.wwww, r16.zxyz, r20.xyzx
    dp3 r10.w, r1.xyzx, r19.yzwy
    mul r10.w, r10.w, r10.w
    mad r10.w, r10.w, r12.y, l(1.000000)
    max r10.w, r10.w, l(0.000100)
    mul r10.w, r10.w, r10.w
    mul r10.w, r10.w, l(4.000000)
    div r10.w, r11.w, r10.w
    mad r6.w, r6.w, r12.w, r12.z
    mul r6.w, r6.w, r6.w
    div r6.w, l(1.000000, 1.000000, 1.000000, 1.000000), r6.w
    mul r6.w, r6.w, r10.w
    mul r19.yzw, r6.wwww, r20.xxyz
    mul r19.yzw, r21.xxyz, r19.yyzw
    mov_sat r19.x, r19.x
    mul r6.w, r5.y, r19.x
    mad r13.xyz, r19.yzwy, r6.wwww, r13.xyzx
    mul r19.xyz, r19.xxxx, r21.xyzx
    movc r20.xyz, r9.wwww, r17.xyzx, r18.xyzx
    mul r19.xyz, r19.xyzx, r20.xyzx
    mad r14.xyz, r19.xyzx, r2.wwww, r14.xyzx
    ilt r6.w, l(2), cb0[8].x
    if_nz r6.w
      dp3 r19.x, r1.xyzx, -cb0[3].xyzx
      lt r6.w, r19.x, l(0.000000)
      and r6.w, r8.w, r6.w
      add r9.w, r19.x, r19.x
      mad r20.yzw, r1.xxyz, r9.wwww, cb0[3].xxyz
      mov r20.x, -r19.x
      mul r21.xyz, r11.xyzx, cb0[7].xyzx
      mad r22.xyz, r0.yzwy, r4.wwww, -r20.yzwy
      dp3 r9.w, r22.xyzx, r22.xyzx
      rsq r9.w, r9.w
      mul r22.xyz, r9.wwww, r22.xyzx
      dp3_sat r9.w, r8.xyzx, r22.xyzx
      add r9.w, -r9.w, l(1.000000)
      mul r10.w, r9.w, r9.w
      mul r10.w, r10.w, r10.w
      mul r9.w, r9.w, r10.w
      mad r22.xyz, r15.xyzx, r9.wwww, r3.xyzx
      add r23.xyz, -r22.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
      mul r24.xyz, r5.wwww, r23.xyzx
      mad r22.xyz, r23.xyzx, r5.wwww, r22.xyzx
      add r22.xyz, -r22.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
      mul r23.xyz, r4.xxxx, r24.xyzx
      mov r16.w, l(-1.000000)
      movc r16.xyz, r6.wwww, r22.yzxy, r16.xywx
      movc r17.xyz, r6.wwww, r23.xyzx, r17.xyzx
      movc r21.xyz, r6.wwww, r21.xyzx, cb0[7].xyzx
      mov r19.yzw, cb0[3].xxyz
      movc r19.xyzw, r6.wwww, r20.xyzw, r19.xyzw
      mad r19.yzw, r0.yyzw, r4.wwww, -r19.yyzw
      dp3 r6.w, r19.yzwy, r19.yzwy
      rsq r6.w, r6.w
      mul r19.yzw, r6.wwww, r19.yyzw
      dp3 r6.w, r8.xyzx, r19.yzwy
      ge r9.w, r16.z, l(0.000000)
      mov_sat r10.w, r6.w
      add r10.w, -r10.w, l(1.000000)
      mul r13.w, r10.w, r10.w
      mul r13.w, r13.w, r13.w
      mul r10.w, r10.w, r13.w
      mad r20.xyz, r15.xyzx, r10.wwww, r3.xyzx
      movc r20.xyz, r9.wwww, r16.zxyz, r20.xyzx
      dp3 r10.w, r1.xyzx, r19.yzwy
      mul r10.w, r10.w, r10.w
      mad r10.w, r10.w, r12.y, l(1.000000)
      max r10.w, r10.w, l(0.000100)
      mul r10.w, r10.w, r10.w
      mul r10.w, r10.w, l(4.000000)
      div r10.w, r11.w, r10.w
      mad r6.w, r6.w, r12.w, r12.z
      mul r6.w, r6.w, r6.w
      div r6.w, l(1.000000, 1.000000, 1.000000, 1.000000), r6.w
      mul r6.w, r6.w, r10.w
      mul r19.yzw, r6.wwww, r20.xxyz
      mul r19.yzw, r21.xxyz, r19.yyzw
      mov_sat r19.x, r19.x
      mul r6.w, r5.y, r19.x
      mad r13.xyz, r19.yzwy, r6.wwww, r13.xyzx
      mul r19.xyz, r19.xxxx, r21.xyzx
      movc r20.xyz, r9.wwww, r17.xyzx, r18.xyzx
      mul r19.xyz, r19.xyzx, r20.xyzx
      mad r14.xyz, r19.xyzx, r2.wwww, r14.xyzx
    endif
  endif
endif
mad r0.x, r0.x, cb0[60].x, cb0[60].y
log r6.w, r0.x
mad r6.w, r6.w, cb0[60].z, cb0[60].w
max r6.w, r6.w, l(0.000000)
ftou r6.w, r6.w
ult r9.w, r6.w, l(16)
if_nz r9.w
  mul r16.zw, v0.xxxy, l(0.000000, 0.000000, 0.015625, 0.015625)
  ftou r16.zw, r16.zzzw
  imul null, r9.w, r16.w, cb0[61].x
  imad r6.w, cb0[62].x, r6.w, r9.w
  iadd r6.w, r16.z, r6.w
  div r0.x, l(-1.000000), r0.x
  add r9.w, -cb0[62].w, cb0[62].z
  add r0.x, r0.x, -cb0[62].w
  div r9.w, l(1.000000, 1.000000, 1.000000, 1.000000), r9.w
  mul_sat r0.x, r0.x, r9.w
  mad r9.w, r0.x, l(-2.000000), l(3.000000)
  mul r0.x, r0.x, r0.x
  mul r0.x, r0.x, r9.w
  ishl r9.w, r6.w, l(2)
  ld_indexable(buffer)(uint,uint,uint,uint) r9.w, r9.wwww, t16.yzwx
  bfi r19.xyz, l(30, 30, 30, 0), l(2, 2, 2, 0), r6.wwww, l(1, 2, 3, 0)
  ld_indexable(buffer)(uint,uint,uint,uint) r6.w, r19.xxxx, t16.yzwx
  ishl r6.w, r6.w, l(16)
  or r6.w, r6.w, r9.w
  ld_indexable(buffer)(uint,uint,uint,uint) r9.w, r19.yyyy, t16.yzwx
  ld_indexable(buffer)(uint,uint,uint,uint) r10.w, r19.zzzz, t16.yzwx
  mov r19.x, l(1.000000)
  mov r20.x, l(-1.000000)
  mov r21.xyz, r14.xyzx
  mov r22.xyz, r17.xyzx
  mov r23.xyz, r13.xyzx
  mov r24.xy, r16.xyxx
  mov r13.w, cb0[10].x
  mov r14.w, l(0)
  loop
    uge r15.w, r14.w, r9.w
    breakc_nz r15.w
    iadd r15.w, r6.w, r14.w
    ld_indexable(buffer)(uint,uint,uint,uint) r15.w, r15.wwww, t16.yzwx
    ld_indexable(buffer)(float,float,float,float) r25.xyzw, r15.wwww, t17.xyzw
    mul r16.z, r25.w, r25.w
    add r25.xyz, -r7.xyzx, r25.xyzx
    dp3 r19.z, r25.xyzx, r25.xyzx
    div r16.w, r19.z, r16.z
    mad_sat r17.w, r16.w, l(-16.000000), l(16.000000)
    lt r18.w, l(0.000000), r17.w
    if_nz r18.w
      imul null, r18.w, r15.w, l(3)
      ld_indexable(buffer)(float,float,float,float) r26.xyz, r18.wwww, t18.xyzw
      mul r26.xyz, r0.xxxx, r26.xyzx
      ult r19.w, r15.w, r13.w
      if_nz r19.w
        ishl r19.w, r15.w, l(1)
        bfi r20.w, l(31), l(1), r15.w, l(1)
        add r27.xyz, r7.xyzx, cb0[r19.w + 11].xyzx
        mul r27.xyw, r27.xyxz, cb0[r19.w + 11].wwww
        mov r27.z, -r27.w
        dp3 r19.w, r27.xyzx, r27.xyzx
        sqrt r19.w, r19.w
        add_sat r19.w, r19.w, cb0[r20.w + 11].x
        utof r27.w, r15.w
        sample_c_lz_indexable(texturecubearray)(float,float,float,float) r19.w, r27.xyzw, t3.xxxx, s3, r19.w
        ne r20.w, r19.w, l(0.000000)
        not r21.w, r20.w
        mul r27.xyz, r19.wwww, r26.xyzx
        movc r26.xyz, r20.wwww, r27.xyzx, r26.xyzx
      else
        mov r21.w, l(0)
      endif
      if_z r21.w
        imad r19.w, l(3), r15.w, l(1)
        ld_indexable(buffer)(float,float,float,float) r27.xyz, r19.wwww, t18.xyzw
        uge r19.w, r15.w, r13.w
        and r20.w, r19.w, l(0x3f800000)
        ld_indexable(buffer)(uint,uint,uint,uint) r18.w, r18.wwww, t19.yzwx
        rsq r21.w, r19.z
        mul r28.xyz, r21.wwww, -r25.xyzx
        ieq r22.w, r18.w, l(3)
        if_nz r22.w
          imad r15.w, l(3), r15.w, l(2)
          ld_indexable(buffer)(uint,uint,uint,uint) r22.w, r15.wwww, t19.yzwx
          ld_indexable(buffer)(float,float,float,float) r29.xyz, r15.wwww, t18.xyzw
          dp3 r15.w, -r25.xyzx, -r25.xyzx
          rsq r15.w, r15.w
          mul r25.xyz, r15.wwww, -r25.xyzx
          dp3 r15.w, r25.xyzx, r29.xyzx
          mad r30.x, r15.w, l(-0.500000), l(0.500000)
          dp3 r23.w, r25.xyzx, r27.xyzx
          mad r15.w, -r15.w, r15.w, l(1.000000)
          rsq r15.w, r15.w
          mul r15.w, r15.w, r23.w
          mul r31.xyz, r27.zxyz, r29.yzxy
          mad r29.xyz, r27.yzxy, r29.zxyz, -r31.xyzx
          dp3 r23.w, r29.xyzx, r25.xyzx
          ge r23.w, r23.w, l(0.000000)
          mad r25.xy, r15.wwww, l(-0.250000, 0.250000, 0.000000, 0.000000), l(0.250000, 0.750000, 0.000000, 0.000000)
          movc r30.y, r23.w, r25.x, r25.y
          utof r30.z, r22.w
          sample_l_indexable(texture2darray)(float,float,float,float) r15.w, r30.xyzx, t1.yzwx, s1, l(0.000000)
          mul r15.w, r16.z, r15.w
          div r15.w, r15.w, r19.z
          add r16.z, -r16.w, l(1.000000)
          max r16.z, r16.z, l(0.000000)
          mul r15.w, r15.w, r16.z
        else
          ieq r16.z, r18.w, l(2)
          mul r16.w, -r19.z, r27.x
          mul r16.w, r16.w, l(1.442695)
          exp r16.w, r16.w
          mul_sat r16.w, r16.w, r27.y
          mul r19.y, r19.z, r21.w
          dp3 r18.w, r27.xyzx, r19.xyzx
          div r18.w, l(1.000000, 1.000000, 1.000000, 1.000000), r18.w
          movc r15.w, r16.z, r16.w, r18.w
        endif
        mul r15.w, r17.w, r15.w
        mul r25.xyz, r26.xyzx, r15.wwww
        dp3 r15.w, r1.xyzx, -r28.xyzx
        lt r16.z, r15.w, l(0.000000)
        and r16.z, r8.w, r16.z
        if_nz r16.z
          add r16.z, r15.w, r15.w
          mad r28.xyz, r1.xyzx, r16.zzzz, r28.xyzx
          mul r25.xyz, r11.xyzx, r25.xyzx
          mad r26.xyz, r0.yzwy, r4.wwww, -r28.xyzx
          dp3 r16.z, r26.xyzx, r26.xyzx
          rsq r16.z, r16.z
          mul r26.xyz, r16.zzzz, r26.xyzx
          dp3_sat r16.z, r8.xyzx, r26.xyzx
          add r16.z, -r16.z, l(1.000000)
          mul r16.w, r16.z, r16.z
          mul r16.w, r16.w, r16.w
          mul r16.z, r16.w, r16.z
          mad r26.xyz, r15.xyzx, r16.zzzz, r3.xyzx
          add r27.xyz, -r26.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
          mul r29.xyz, r5.wwww, r27.xyzx
          mad r26.xyz, r27.xyzx, r5.wwww, r26.xyzx
          add r24.xyz, -r26.yzxy, l(1.000000, 1.000000, 1.000000, 0.000000)
          mul r22.xyz, r4.xxxx, r29.xyzx
          mov r15.w, -r15.w
        else
          mov r20.yz, r24.xxyx
          mov r24.xyz, r20.yzxy
        endif
        mad r26.xyz, r0.yzwy, r4.wwww, -r28.xyzx
        dp3 r16.z, r26.xyzx, r26.xyzx
        rsq r16.z, r16.z
        mul r26.xyz, r16.zzzz, r26.xyzx
        dp3 r16.z, r8.xyzx, r26.xyzx
        ge r16.w, r24.z, l(0.000000)
        mov_sat r17.w, r16.z
        add r17.w, -r17.w, l(1.000000)
        mul r18.w, r17.w, r17.w
        mul r18.w, r18.w, r18.w
        mul r17.w, r17.w, r18.w
        mad r27.xyz, r15.xyzx, r17.wwww, r3.xyzx
        movc r27.xyz, r16.wwww, r24.zxyz, r27.xyzx
        dp3 r17.w, r1.xyzx, r26.xyzx
        mul r17.w, r17.w, r17.w
        mad r17.w, r17.w, r12.y, l(1.000000)
        max r17.w, r17.w, l(0.000100)
        mul r17.w, r17.w, r17.w
        mul r17.w, r17.w, l(4.000000)
        div r17.w, r11.w, r17.w
        mad r16.z, r16.z, r12.w, r12.z
        mul r16.z, r16.z, r16.z
        div r16.z, l(1.000000, 1.000000, 1.000000, 1.000000), r16.z
        mul r16.z, r16.z, r17.w
        mul r26.xyz, r16.zzzz, r27.xyzx
        mul r26.xyz, r25.xyzx, r26.xyzx
        mov_sat r15.w, r15.w
        movc r16.z, r19.w, l(0), l(1.000000)
        mad r17.w, r5.y, r20.w, r16.z
        mul r17.w, r15.w, r17.w
        mad r23.xyz, r26.xyzx, r17.wwww, r23.xyzx
        mul r19.yzw, r15.wwww, r25.xxyz
        movc r25.xyz, r16.wwww, r22.xyzx, r18.xyzx
        mul r19.yzw, r19.yyzw, r25.xxyz
        mad r15.w, r2.w, r20.w, r16.z
        mad r21.xyz, r19.yzwy, r15.wwww, r21.xyzx
      endif
    endif
    iadd r14.w, r14.w, l(1)
  endloop
  iadd r6.w, r6.w, r9.w
  mov r16.x, l(1.000000)
  mov r17.x, l(-1.000000)
  mov r14.xyz, r21.xyzx
  mov r19.xyz, r22.xyzx
  mov r13.xyz, r23.xyzx
  mov r20.xy, r24.xyxx
  mov r9.w, cb0[27].x
  mov r13.w, l(0)
  loop
    uge r14.w, r13.w, r10.w
    breakc_nz r14.w
    iadd r14.w, r6.w, r13.w
    ld_indexable(buffer)(uint,uint,uint,uint) r14.w, r14.wwww, t16.yzwx
    imul null, r15.w, r14.w, l(5)
    ld_indexable(buffer)(float,float,float,float) r25.xyz, r15.wwww, t20.xyzw
    imad r15.w, l(5), r14.w, l(4)
    ld_indexable(buffer)(float,float,float,float) r26.xyz, r15.wwww, t20.xyzw
    add r25.xyz, -r7.xyzx, r25.xyzx
    dp3 r16.z, r25.xyzx, r25.xyzx
    div r15.w, r16.z, r26.x
    mad_sat r16.w, r15.w, l(-16.000000), l(16.000000)
    lt r17.w, l(0.000000), r16.w
    if_nz r17.w
      imad r17.w, l(5), r14.w, l(2)
      ld_indexable(buffer)(float,float,float,float) r27.xyz, r17.wwww, t20.xyzw
      mul r27.xyz, r0.xxxx, r27.xyzx
      ult r17.w, r14.w, r9.w
      if_nz r17.w
        ishl r17.w, r14.w, l(2)
        mul r28.xyzw, r7.yyyy, cb0[r17.w + 29].xyzw
        mad r28.xyzw, r7.xxxx, cb0[r17.w + 28].xyzw, r28.xyzw
        mad r28.xyzw, r7.zzzz, cb0[r17.w + 30].xyzw, r28.xyzw
        mad r28.xyzw, r7.wwww, cb0[r17.w + 31].xyzw, r28.xyzw
        div r28.xyz, r28.xyzx, r28.wwww
        utof r28.w, r14.w
        sample_c_lz_indexable(texture2darray)(float,float,float,float) r17.w, r28.xywx, t4.xxxx, s4, r28.z
        ne r18.w, r17.w, l(0.000000)
        not r19.w, r18.w
        mul r28.xyz, r17.wwww, r27.xyzx
        movc r27.xyz, r18.wwww, r28.xyzx, r27.xyzx
      else
        mov r19.w, l(0)
      endif
      if_z r19.w
        imad r24.zw, l(0, 0, 5, 5), r14.wwww, l(0, 0, 1, 3)
        ld_indexable(buffer)(float,float,float,float) r28.xyz, r24.zzzz, t20.xyzw
        ld_indexable(buffer)(float,float,float,float) r29.xyz, r24.wwww, t20.xyzw
        uge r17.w, r14.w, r9.w
        and r18.w, r17.w, l(0x3f800000)
        imul null, r19.w, r14.w, l(3)
        ld_indexable(buffer)(uint,uint,uint,uint) r19.w, r19.wwww, t21.yzwx
        rsq r20.w, r16.z
        mul r30.xyz, r20.wwww, -r25.xyzx
        dp3 r21.w, -r30.xyzx, r28.xyzx
        mad_sat r21.w, r21.w, r26.z, r26.y
        ieq r22.w, r19.w, l(3)
        if_nz r22.w
          imad r14.w, l(3), r14.w, l(2)
          ld_indexable(buffer)(uint,uint,uint,uint) r14.w, r14.wwww, t21.yzwx
          dp3 r22.w, -r25.xyzx, -r25.xyzx
          rsq r22.w, r22.w
          mul r25.xyz, r22.wwww, -r25.xyzx
          dp3 r22.w, r25.xyzx, r28.xyzx
          mad r31.x, r22.w, l(-0.500000), l(0.500000)
          dp3 r23.w, r25.xyzx, r29.xyzx
          mad r22.w, -r22.w, r22.w, l(1.000000)
          rsq r22.w, r22.w
          mul r22.w, r22.w, r23.w
          mul r26.yzw, r28.yyzx, r29.zzxy
          mad r26.yzw, r29.yyzx, r28.zzxy, -r26.yyzw
          dp3 r23.w, r26.yzwy, r25.xyzx
          ge r23.w, r23.w, l(0.000000)
          mad r24.zw, r22.wwww, l(0.000000, 0.000000, -0.250000, 0.250000), l(0.000000, 0.000000, 0.250000, 0.750000)
          movc r31.y, r23.w, r24.z, r24.w
          utof r31.z, r14.w
          sample_l_indexable(texture2darray)(float,float,float,float) r14.w, r31.xyzx, t1.yzwx, s1, l(0.000000)
          mul r14.w, r26.x, r14.w
          div r14.w, r14.w, r16.z
          add_sat r15.w, -r15.w, l(1.000000)
          mul r14.w, r14.w, r15.w
          mul r14.w, r21.w, r14.w
        else
          ieq r15.w, r19.w, l(2)
          mul r19.w, -r16.z, r29.x
          mul r19.w, r19.w, l(1.442695)
          exp r19.w, r19.w
          mul_sat r19.w, r19.w, r29.y
          mul r19.w, r19.w, r21.w
          mul r16.y, r16.z, r20.w
          dp3 r16.y, r16.xyzx, r29.xyzx
          div r16.y, r21.w, r16.y
          movc r14.w, r15.w, r19.w, r16.y
        endif
        mul r14.w, r16.w, r14.w
        mul r16.yzw, r27.xxyz, r14.wwww
        dp3 r14.w, r1.xyzx, -r30.xyzx
        lt r15.w, r14.w, l(0.000000)
        and r15.w, r8.w, r15.w
        if_nz r15.w
          add r15.w, r14.w, r14.w
          mad r30.xyz, r1.xyzx, r15.wwww, r30.xyzx
          mul r16.yzw, r11.xxyz, r16.yyzw
          mad r25.xyz, r0.yzwy, r4.wwww, -r30.xyzx
          dp3 r15.w, r25.xyzx, r25.xyzx
          rsq r15.w, r15.w
          mul r25.xyz, r15.wwww, r25.xyzx
          dp3_sat r15.w, r8.xyzx, r25.xyzx
          add r15.w, -r15.w, l(1.000000)
          mul r19.w, r15.w, r15.w
          mul r19.w, r19.w, r19.w
          mul r15.w, r15.w, r19.w
          mad r25.xyz, r15.xyzx, r15.wwww, r3.xyzx
          add r26.xyz, -r25.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
          mul r27.xyz, r5.wwww, r26.xyzx
          mad r25.xyz, r26.xyzx, r5.wwww, r25.xyzx
          add r20.xyz, -r25.yzxy, l(1.000000, 1.000000, 1.000000, 0.000000)
          mul r19.xyz, r4.xxxx, r27.xyzx
          mov r14.w, -r14.w
        else
          mov r17.yz, r20.xxyx
          mov r20.xyz, r17.yzxy
        endif
        mad r25.xyz, r0.yzwy, r4.wwww, -r30.xyzx
        dp3 r15.w, r25.xyzx, r25.xyzx
        rsq r15.w, r15.w
        mul r25.xyz, r15.wwww, r25.xyzx
        dp3 r15.w, r8.xyzx, r25.xyzx
        ge r17.y, r20.z, l(0.000000)
        mov_sat r17.z, r15.w
        add r17.z, -r17.z, l(1.000000)
        mul r19.w, r17.z, r17.z
        mul r19.w, r19.w, r19.w
        mul r17.z, r17.z, r19.w
        mad r26.xyz, r15.xyzx, r17.zzzz, r3.xyzx
        movc r26.xyz, r17.yyyy, r20.zxyz, r26.xyzx
        dp3 r17.z, r1.xyzx, r25.xyzx
        mul r17.z, r17.z, r17.z
        mad r17.z, r17.z, r12.y, l(1.000000)
        max r17.z, r17.z, l(0.000100)
        mul r17.z, r17.z, r17.z
        mul r17.z, r17.z, l(4.000000)
        div r17.z, r11.w, r17.z
        mad r15.w, r15.w, r12.w, r12.z
        mul r15.w, r15.w, r15.w
        div r15.w, l(1.000000, 1.000000, 1.000000, 1.000000), r15.w
        mul r15.w, r15.w, r17.z
        mul r25.xyz, r15.wwww, r26.xyzx
        mul r25.xyz, r16.yzwy, r25.xyzx
        mov_sat r14.w, r14.w
        movc r15.w, r17.w, l(0), l(1.000000)
        mad r17.z, r5.y, r18.w, r15.w
        mul r17.z, r14.w, r17.z
        mad r13.xyz, r25.xyzx, r17.zzzz, r13.xyzx
        mul r16.yzw, r14.wwww, r16.yyzw
        movc r17.yzw, r17.yyyy, r19.xxyz, r18.xxyz
        mul r16.yzw, r16.yyzw, r17.yyzw
        mad r14.w, r2.w, r18.w, r15.w
        mad r14.xyz, r16.yzwy, r14.wwww, r14.xyzx
      endif
    endif
    iadd r13.w, r13.w, l(1)
  endloop
endif
ne r0.x, cb0[98].x, l(0.000000)
mov_sat r0.y, -r1.y
mov_sat r12.x, r12.x
add r0.y, r0.y, r12.x
mul_sat r0.y, r0.y, cb0[98].x
add r0.z, r4.y, l(-1.000000)
mad r0.y, r0.y, r0.z, l(1.000000)
movc r0.x, r0.x, r0.y, l(1.000000)
sample_l_indexable(texturecube)(float,float,float,float) r0.yzw, r1.xyzx, t5.wxyz, s5, l(6.000000)
mul r0.xyz, r0.xxxx, r0.yzwy
mul r0.xyz, r0.xyzx, cb0[99].xyzx
add r0.w, -cb0[99].w, l(1.000000)
mad r0.w, r2.w, cb0[99].w, r0.w
add r0.w, r0.w, l(-1.000000)
add r0.w, r0.w, l(1.000000)
mul r0.xyz, r0.wwww, r0.xyzx
mad r0.xyz, r0.xyzx, r18.xyzx, r14.xyzx
div r4.x, l(1.000000, 1.000000, 1.000000, 1.000000), r5.x
dp3 r4.y, r10.xyzx, r10.xyzx
rsq r4.y, r4.y
mul r8.xyz, r4.yyyy, r10.xyzx
dp3_sat r4.w, r1.xyzx, r8.xyzx
mad r4.w, -r4.w, r4.w, l(1.000000)
sqrt r4.w, r4.w
mad r4.w, r4.w, r4.x, -r4.w
add r12.xyz, r1.xyzx, l(-0.000000, -1.000000, -0.000000, 0.000000)
mul r14.xyz, r4.xxxx, r8.xyzx
mad r12.xyz, r4.wwww, r12.xyzx, -r14.xyzx
dp3 r4.w, -r8.xyzx, r1.xyzx
mul r5.x, r4.x, r4.x
mad r6.w, -r4.w, r4.w, l(1.000000)
mad r5.x, -r5.x, r6.w, l(1.000000)
sqrt r6.w, r5.x
mad r6.w, r4.x, r4.w, r6.w
ge r5.x, r5.x, l(0.000000)
mul r14.xyz, r1.xyzx, r6.wwww
mad r14.xyz, r4.xxxx, -r8.xyzx, -r14.xyzx
and r14.xyz, r5.xxxx, r14.xyzx
dp3 r4.x, r14.xyzx, r14.xyzx
eq r4.x, r4.x, l(0.000000)
add r4.w, r4.w, r4.w
mad r1.xyz, r1.xyzx, -r4.wwww, -r8.xyzx
movc r1.xyz, r4.xxxx, r1.xyzx, r14.xyzx
movc r1.xyz, r9.yyyy, r12.xyzx, r1.xyzx
dp3 r4.x, r1.xyzx, r1.xyzx
rsq r4.x, r4.x
mul r12.xyz, r1.xyzx, r4.xxxx
mad r1.xyz, r1.xyzx, r4.xxxx, r8.xyzx
mul r14.xyz, -r8.zxyz, cb0[85].yzxy
mad r14.xyz, -r8.yzxy, cb0[85].zxyz, -r14.xyzx
dp3 r4.x, r14.xyzx, r14.xyzx
rsq r4.x, r4.x
mul r14.xyz, r4.xxxx, r14.xyzx
mul r16.xyz, -r8.yzxy, r14.zxyz
mad r8.xyz, r14.yzxy, -r8.zxyz, -r16.xyzx
dp3 r4.x, r8.xyzx, r8.xyzx
rsq r4.x, r4.x
mul r8.xyz, r4.xxxx, r8.xyzx
lt r4.xw, l(0.000000, 0.000000, 0.000000, 0.000000), r39.xxxz
movc r14.xyz, r4.xxxx, r14.xyzx, -r14.xyzx
movc r8.xyz, r4.wwww, r8.xyzx, -r8.xyzx
dp3_sat r4.x, r1.xyzx, r14.xyzx
mul r4.x, |r39.x|, r4.x
mad r1.xyz, -r14.xyzx, r4.xxxx, r1.xyzx
dp3_sat r4.x, r1.xyzx, r8.xyzx
mul r4.x, |r9.z|, r4.x
mad r1.xyz, -r8.xyzx, r4.xxxx, r1.xyzx
mad r1.xyz, -r10.xyzx, r4.yyyy, r1.xyzx
dp3 r4.x, r1.xyzx, r1.xyzx
rsq r4.x, r4.x
mul r1.xyz, r1.xyzx, r4.xxxx
movc r1.xyz, r9.yyyy, r12.xyzx, r1.xyzx
mad r7.xyz, r1.xyzx, r5.zzzz, r7.xyzx
mov r7.w, l(1.000000)
dp4 r1.x, r7.xyzw, cb0[87].xyzw
dp4 r1.y, r7.xyzw, cb0[88].xyzw
dp4 r1.z, r7.xyzw, cb0[89].xyzw

mov r31.xyz, r1.xyzx
add r32.w, r31.z, -r32.y
mul r32.w, r32.w, l(0.5)
mad r31.x, r32.x, r32.w, r31.x

div r31.xy, r31.xyxx, r31.zzzz

div r1.xy, r1.xyxx, r1.zzzz
sample_indexable(texture2d)(float,float,float,float) r1.z, r1.xyxx, t2.yzxw, s2
sample_indexable(texture2d)(float,float,float,float) r31.z, r31.xyxx, t2.yzxw, s2
if_nz r8.w
  mad r4.xy, r9.xzxx, l(0.500000, -0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
  dp3 r4.w, -r10.xyzx, cb0[84].xyzx
  add r1.w, -r1.w, l(1.000000)
  mul r5.x, r1.w, r1.w
  mul r5.x, r5.x, r5.x
  mul r1.w, r1.w, r5.x
  mad r3.xyz, r15.xyzx, r1.wwww, r3.xyzx
  add r7.xyz, -r3.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  mad r3.xyz, r7.xyzx, r5.wwww, r3.xyzx
  add r3.xyz, -r3.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  mul r5.xzw, r5.wwww, r3.xxyz
  mad_sat r1.z, cb0[86].y, r1.z, cb0[86].x
  mad_sat r31.z, cb0[86].y, r31.z, cb0[86].x
  div r1.z, l(1.000000, 1.000000, 1.000000, 1.000000), r1.z
  div r31.z, l(1.000000, 1.000000, 1.000000, 1.000000), r31.z
  lt r1.z, r1.z, r4.w
  lt r31.z, r31.z, r4.w
  
  movc r31.xy, r31.zzzz, r4.xyxx, r31.xyxx
  
  movc r1.xy, r1.zzzz, r4.xyxx, r1.xyxx
  sample_l_indexable(texture2d)(float,float,float,float) r4.xyw, r31.xyxx, t6.xywz, s6, l(16.000000)
  mul r4.xyw, r4.xyxw, cb0[99].xyxz
  mul r4.xyw, r0.wwww, r4.xyxw
  mul r4.xyw, r5.xzxw, r4.xyxw
  mad r0.xyz, r4.xywx, r11.xyzx, r0.xyzx
  sample_l_indexable(texture2d)(float,float,float,float) r0.w, r31.xyxx, t7.yzwx, s7, l(0.000000)
  
  mul r7.xyzw, r9.zzzz, cb0[101].xyzw
  mad r7.xyzw, r39.xxxx, cb0[100].xyzw, r7.xyzw
  mad r7.xyzw, r0.wwww, cb0[102].xyzw, r7.xyzw
  add r7.xyzw, r7.xyzw, cb0[103].xyzw
  div r4.xyw, r7.xyxz, r7.wwww
  dp3 r0.w, r4.xywx, r4.xywx
  sqrt r0.w, r0.w
  sqrt r1.z, r4.z
  add r1.z, r0.w, -r1.z
  div r0.w, r1.z, r0.w
  mul r0.w, r3.w, r0.w
  max r0.w, r0.w, l(0.000000)
  min r0.w, r3.w, r0.w
  sqrt r0.w, r0.w
  mul r0.w, r0.w, l(6.000000)
  sample_l_indexable(texture2d)(float,float,float,float) r1.xyz, r31.xyxx, t6.xyzw, s6, r0.w
  mul r1.xyz, r1.xyzx, cb0[104].xyzx
  add r0.w, -cb0[104].w, l(1.000000)
  mad r0.w, r2.w, cb0[104].w, r0.w
  add r1.w, -r0.w, l(1.000000)
  mad r1.w, r5.y, r1.w, r0.w
  mad r0.w, r0.w, r1.w, l(-1.000000)
  add r0.w, r0.w, l(1.000000)
  mul r1.xyz, r0.wwww, r1.xyzx
  mul r1.xyz, r3.xyzx, r1.xyzx
  mad r13.xyz, r1.xyzx, r11.xyzx, r13.xyzx
endif
mad r0.xyz, r0.xyzx, r2.xyzx, r6.xyzx
add o0.xyz, r13.xyzx, r0.xyzx
mov o0.w, l(1.000000)
ret
// Approximately 1052 instruction slots used
