// MANUALLY DUMPED [ShaderRegexDecalsMain_backup] Exception 2. Eyes. Manual specular reflections PS 1.
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.16 on Fri Oct  1 19:54:43 2021
//
//
// Buffer Definitions:
//
// cbuffer fblock
// {
//
//   float4 modelfade;                  // Index:    0.xyzw           Components:     4
//   float4 renderpositiontoviewtexture;// Index:    1.xyzw           Components:     4
//   float4 viewmatrixx;                // Index:    2.xyzw           Components:     4
//   float4 viewmatrixy;                // Index:    3.xyzw           Components:     4
//   float4 viewmatrixz;                // Index:    4.xyzw           Components:     4
//   float4 inverseviewprojectionmatrixx;// Index:    5.xyzw           Components:     4
//   float4 inverseviewprojectionmatrixy;// Index:    6.xyzw           Components:     4
//   float4 inverseviewprojectionmatrixz;// Index:    7.xyzw           Components:     4
//   float4 inverseviewprojectionmatrixw;// Index:    8.xyzw           Components:     4
//   float4 lightprepassinverseparams;  // Index:    9.xyzw           Components:     4
//   float4 eyereflectrate;             // Index:   10.xyzw           Components:     4
//   float4 invaspectratio;             // Index:   11.xyzw           Components:     4
//   float4 pbrparm;                    // Index:   12.xyzw           Components:     4
//   float4 globalvieworigin;           // Index:   13.xyzw           Components:     4
//   float4 forwardparm;                // Index:   14.xyzw           Components:     4
//   float4 materialid;                 // Index:   15.xyzw           Components:     4 [unused]
//   float4 translucentparm;            // Index:   16.xyzw           Components:     4
//   float4 clusteredshadingparm;       // Index:   17.xyzw           Components:     4
//   float4 clusteredshadingparm2;      // Index:   18.xyzw           Components:     4
//   float4 projectionmatrixz;          // Index:   19.xyzw           Components:     4
//   float4 pointspotshadowresolution;  // Index:   20.xyzw           Components:     4
//   float4 pointshadowbias;            // Index:   21.xyzw           Components:     4
//   float4 forwardtransparm;           // Index:   22.xyzw           Components:     4
//   float4 lightprepassparalleldir0;   // Index:   23.xyzw           Components:     4
//   float4 lightprepassparallelcolor0; // Index:   24.xyzw           Components:     4
//   float4 parallelshadowresolution;   // Index:   25.xyzw           Components:     4
//   float4 localtolightparallels1;     // Index:   26.xyzw           Components:     4
//   float4 localtolightparallelt1;     // Index:   27.xyzw           Components:     4
//   float4 localtolightparallelr1;     // Index:   28.xyzw           Components:     4
//   float4 localtolightparallels2;     // Index:   29.xyzw           Components:     4
//   float4 localtolightparallelt2;     // Index:   30.xyzw           Components:     4
//   float4 localtolightparallelr2;     // Index:   31.xyzw           Components:     4
//   float4 localtolightparallels;      // Index:   32.xyzw           Components:     4
//   float4 localtolightparallelt;      // Index:   33.xyzw           Components:     4
//   float4 localtolightparallelr;      // Index:   34.xyzw           Components:     4
//   float4 enlpppiparam0;              // Index:   35.xyzw           Components:     4
//   float4 enlpppiparam1;              // Index:   36.xyzw           Components:     4
//   float4 enlpppiparam2;              // Index:   37.xyzw           Components:     4
//   float4 enlboostparm;               // Index:   38.xyzw           Components:     4
//   float4 enlightenfactor;            // Index:   39.xyzw           Components:     4
//   float4 enlightenlightingtype;      // Index:   40.xyzw           Components:     4
//   float4 eyehighlightintensity;      // Index:   41.xyzw           Components:     4
//
// }
//
// Resource bind info for clusternumlights
// {
//
//   struct clusternumlights_t
//   {
//
//       uint offset;                   // Index:    0
//       uint numItems;                 // Index:    0.y
//       uint offsetRP;                 // Index:    0.z
//       uint numItemsRP;               // Index:    0.w
//
//   } $Element;                        // Index:    0.xyzw           Components:     4
//
// }
//
// Resource bind info for clusterlightsid
// {
//
//   struct clusterlightsid_t
//   {
//
//       uint id;                       // Index:    0
//
//   } $Element;                        // Index:    0.x              Components:     1
//
// }
//
// Resource bind info for lightparmsspot
// {
//
//   struct lightparmsspot_t
//   {
//
//       float4 lightPositions;         // Index:    0
//       float4 lightColors;            // Index:    1
//       float4 lightExtentses;         // Index:    2
//       float4 lightSpotDir;           // Index:    3
//       float4 lightClipBoundingVolumeExtent;// Index:    4
//       float4 lightClipBoundingVolumeOrigin;// Index:    5
//       float4 lightParm;              // Index:    6
//       float4 lightAxisX;             // Index:    7
//       float4 lightAxisY;             // Index:    8
//       float4 lightAxisZ;             // Index:    9
//       float4 localToLightS;          // Index:   10
//       float4 localToLightT;          // Index:   11
//       float4 localToLightR;          // Index:   12
//       float4 localToLightQ;          // Index:   13
//
//   } $Element;                        // Index:    0-13             Components:    56
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// dither256map_samp_state           sampler      NA          NA    0        1
// nv_normalmap_samp_state           sampler      NA          NA    1        1
// viewdepthmap_samp_state           sampler      NA          NA    2        1
// viewcolormap_samp_state           sampler      NA          NA    3        1
// nv_roughnessmap_samp_state        sampler      NA          NA    4        1
// shadowstexarray_samp_state      sampler_c      NA          NA    5        1
// shadowcubestrqmap_samp_state      sampler      NA          NA    6        1
// lightdepthparallelmap_samp_state  sampler_c      NA          NA    7        1
// enlpppi_indirectionsamplerrgb_samp_state    sampler      NA          NA    8        1
// enlpppi_indirectionsampler_samp_state    sampler      NA          NA    9        1
// extracubemap_samp_state           sampler      NA          NA   10        1
// dither256map_samp                 texture  float4          2d    0        1
// nv_normalmap_samp                 texture  float4          2d    1        1
// viewdepthmap_samp                 texture  float4          2d    2        1
// viewcolormap_samp                 texture  float4          2d    3        1
// nv_roughnessmap_samp              texture  float4          2d    4        1
// shadowstexarray_samp              texture  float4     2darray    5        1
// shadowcubestrqmap_samp            texture  float4   cubearray    6        1
// lightdepthparallelmap_samp        texture  float4          2d    7        1
// enlpppi_indirectionsamplerrgb_samp    texture  float4          3d    8        1
// enlpppi_indirectionsampler_samp    texture  float4          3d    9        1
// extracubemap_samp                 texture  float4        cube   10        1
// clusternumlights                  texture  struct         r/o   11        1
// clusterlightsid                   texture  struct         r/o   12        1
// lightparmsspot                    texture  struct         r/o   13        1
// fblock                            cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xyzw        0     NONE   float   xy
// TEXCOORD                 1   xyzw        1     NONE   float   xyz
// TEXCOORD                 2   xyzw        2     NONE   float   xyz
// TEXCOORD                 3   xyzw        3     NONE   float   xyz
// TEXCOORD                 4   xyzw        4     NONE   float   xyzw
// TEXCOORD                 5   xyzw        5     NONE   float   xyz
// SV_Position              0   xyzw        6      POS   float   xyz
//
//
// 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[42], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_comparison
dcl_sampler s6, mode_default
dcl_sampler s7, mode_comparison
dcl_sampler s8, mode_default
dcl_sampler s9, mode_default
dcl_sampler s10, 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_texture2darray (float,float,float,float) t5
dcl_resource_texturecubearray (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture3d (float,float,float,float) t8
dcl_resource_texture3d (float,float,float,float) t9
dcl_resource_texturecube (float,float,float,float) t10
dcl_resource_structured t11, 16
dcl_resource_structured t12, 4
dcl_resource_structured t13, 224
dcl_input_ps linear v0.xy
dcl_input_ps linear v1.xyz
dcl_input_ps linear v2.xyz
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyzw
dcl_input_ps linear v5.xyz
dcl_input_ps_siv linear noperspective v6.xyz, position
dcl_output o0.xyzw
dcl_temps 32
dcl_resource_texture2d (float,float,float,float) t125
mul r0.xy, v6.xyxx, l(0.00390625000, 0.00390625000, 0.000000, 0.000000)
sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.x, r0.xyxx, t0.xyzw, s0
add r0.y, cb0[0].x, l(-0.200000)
mad r0.x, -r0.x, l(0.600000), r0.y
lt r0.x, r0.x, l(0.000000)
discard_nz r0.x
mad r0.xy, v6.xyxx, cb0[1].zwzz, cb0[1].xyxx
sample_l_indexable(texture2d)(float,float,float,float) r1.xy, v0.xyxx, t1.xyzw, s1, l(0.000000)
mad r2.xy, r1.yxyy, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r2.xyxx, r2.xyxx
min r0.w, r0.w, l(1.000000)
add r0.w, -r0.w, l(1.000000)
sqrt r2.z, r0.w
dp3 r3.x, r2.xyzx, v1.xyzx
dp3 r3.y, r2.xyzx, v2.xyzx
dp3 r3.z, r2.xyzx, v3.xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r3.xyzx
dp3 r3.x, r2.xyzx, cb0[2].xyzx
dp3 r3.y, r2.xyzx, cb0[3].xyzx
dp3 r3.z, r2.xyzx, cb0[4].xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r1.zw, r0.wwww, r3.xxxy
mov_sat r0.w, v6.z
sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r2.z, r0.xyxx, t2.yzxw, s2
add r0.z, -r0.y, l(1.000000)
mad r2.xy, r0.xzxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mov r2.w, l(1.000000)


ld_indexable(texture2d)(float,float,float,float) r27.xyzw, l(0, 0, 0, 0), t125.xyzw
mov r29.xyzw, r2.xyzw
//dp4 r28.w, r29.xyzw, cb0[8].xyzw
//mad r28.x, r28.w, r27.y, l(-1.0)
//mad r29.x, r28.x, r27.x, r29.x
dp4 r3.x, r29.xyzw, cb0[5].xyzw
dp4 r3.y, r29.xyzw, cb0[6].xyzw
dp4 r3.z, r29.xyzw, cb0[7].xyzw
dp4 r3.w, r29.xyzw, cb0[8].xyzw
div r3.xyz, r3.xyzx, r3.wwww

add r3.xyz, r3.xyzx, cb0[9].xyzx
mov r2.z, v6.z
dp4 r4.x, r2.xyzw, cb0[5].xyzw
dp4 r4.y, r2.xyzw, cb0[6].xyzw
dp4 r4.z, r2.xyzw, cb0[7].xyzw
dp4 r2.x, r2.xyzw, cb0[8].xyzw
div r2.xyz, r4.xyzx, r2.xxxx
add r2.xyz, r2.xyzx, cb0[9].xyzx
add r2.xyz, -r2.xyzx, r3.xyzx
dp3 r2.x, r2.xyzx, r2.xyzx
sqrt r2.x, r2.x
min r2.x, r2.x, l(3.000000)
mul r0.w, r0.w, r2.x
mul r0.w, r0.w, l(0.150000)
max r2.x, cb0[10].x, l(0.001000)
mul r1.zw, r1.zzzw, cb0[11].xxxy
mul r1.zw, r2.xxxx, r1.zzzw
mad r0.yw, -r1.zzzw, r0.wwww, r0.xxxy
sample_l_indexable(texture2d)(float,float,float,float) r2.xyz, r0.ywyy, t3.xyzw, s3, l(0.000000)
mov r3.x, v1.z
mov r3.y, v2.z
mov r3.z, v3.z
dp3 r0.y, r3.xyzx, r3.xyzx
rsq r0.y, r0.y
mul r3.xyz, r0.yyyy, r3.xyzx
mul r4.xyz, r2.xyzx, l(0.100000, 0.100000, 0.100000, 0.000000)
min r4.xyz, r4.xyzx, l(0.100000, 0.100000, 0.100000, 0.000000)
lt r0.y, l(0.000000), cb0[12].z
if_nz r0.y
  add r1.xy, r1.yxyy, l(-0.500000, -0.500000, 0.000000, 0.000000)
  dp2 r0.y, r1.xyxx, r1.xyxx
  add r0.y, r0.y, l(-0.250000)
  sqrt r1.z, |r0.y|
  dp3 r5.x, r1.xyzx, v1.xyzx
  dp3 r5.y, r1.xyzx, v2.xyzx
  dp3 r5.z, r1.xyzx, v3.xyzx
  dp3 r0.y, r5.xyzx, r5.xyzx
  rsq r0.y, r0.y
  mul r1.xyz, r0.yyyy, r5.xyzx
  sample_l_indexable(texture2d)(float,float,float,float) r0.y, v0.xyxx, t4.yxzw, s4, l(0.000000)
else
  mov r1.xyz, r3.xyzx
  mov r0.y, cb0[12].x
endif

mov r24.xyz, v4.xyzx
mul r28.x, r27.y, cb13[0].x
mul r28.y, r27.y, cb13[1].x
mul r28.z, r27.y, cb13[2].x
mad r24.xyz, -r27.xxxx, r28.xyzx, r24.xyzx

add r5.xyz, -r24.xyzx, cb0[13].xyzx
dp3 r0.w, r5.xyzx, r5.xyzx
rsq r0.w, r0.w
mul r6.xyz, r0.wwww, r5.xyzx
ftou r1.w, cb0[14].x
mul r0.xz, r0.xxzx, cb0[17].xxyx
round_ni r0.xz, r0.xxzx
add r7.xyz, cb0[17].xyzx, l(-1.000000, -1.000000, -1.000000, 0.000000)
min r0.xz, r0.xxzx, r7.xxyx
add r2.w, v6.z, cb0[19].z
div r2.w, cb0[19].w, r2.w
div r2.w, r2.w, cb0[18].z
max r2.w, r2.w, l(1.000000)
log r2.w, r2.w
mul r2.w, r2.w, cb0[18].w
round_ni r2.w, r2.w
min r2.w, r2.w, r7.z
mad r0.x, r0.z, cb0[17].x, r0.x
mul r0.z, r2.w, cb0[17].x
mad r0.x, r0.z, cb0[17].y, r0.x
ftou r0.x, r0.x
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.xz, r0.x, l(0), t11.xxyx
and r2.w, r0.z, l(255)
ubfe r0.z, l(8), l(8), r0.z
ishl r0.x, r0.x, l(5)
iadd r2.w, r2.w, r0.x
and r1.w, r1.w, l(2)
ine r1.w, r1.w, l(2)
add r7.xyz, r4.xyzx, l(-0.040000, -0.040000, -0.040000, 0.000000)
mad r7.xyz, cb0[12].yyyy, r7.xyzx, l(0.040000, 0.040000, 0.040000, 0.000000)
dp3 r3.w, r1.xyzx, r6.xyzx
max r3.w, r3.w, l(0.000000)
add r8.xyz, -r7.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r4.xyz, r4.xyzx, l(0.318309873, 0.318309873, 0.318309873, 0.000000)
add r4.w, -cb0[12].y, l(1.000000)
max r4.w, r4.w, l(0.010000)
mul r4.xyz, r4.wwww, r4.xyzx
lt r4.w, l(0.000000), cb0[16].x
mov r9.w, l(0)
mov r10.w, l(1.000000)
mov r11.w, l(2.000000)
mov r12.w, l(3.000000)
mov r13.xyz, l(0,0,0,0)
mov r14.xyz, l(0,0,0,0)
mov r5.w, r0.x
loop
  uge r6.w, r5.w, r2.w
  breakc_nz r6.w
  ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r6.w, r5.w, l(0), t12.xxxx
  iadd r7.w, r5.w, l(1)
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r15.xyzw, r6.w, l(100), t13.xyzw
  ftou r8.w, r15.y
  and r13.w, r8.w, l(1)
  ieq r13.w, r13.w, l(1)
  and r13.w, r1.w, r13.w
  if_nz r13.w
    mov r5.w, r7.w
    continue
  endif
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r16.xyz, r6.w, l(64), t13.xyzx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r6.w, l(116), t13.wxyz
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r18.xyzw, r6.w, l(132), t13.wxyz
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r19.xyzw, r6.w, l(148), t13.wxyz
  and r13.w, r8.w, l(64)
  ieq r13.w, r13.w, l(64)
  mov r20.x, r15.w
  mov r20.yzw, r17.yyzw
  dp4 r20.x, v4.xyzw, r20.xyzw
  mov r17.yzw, r18.yyzw
  dp4 r20.y, v4.xyzw, r17.xyzw
  mov r18.yzw, r19.yyzw
  dp4 r20.z, v4.xyzw, r18.xyzw
  div r16.xyz, |r20.xyzx|, r16.xyzx
  max r14.w, r16.y, r16.x
  max r14.w, r16.z, r14.w
  ge r14.w, r14.w, l(1.000000)
  and r15.y, r13.w, r14.w
  mov r5.w, r7.w
  continuec_nz r15.y
  movc r14.w, r14.w, l(0), l(1.000000)
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r16.xyzw, r6.w, l(0), t13.xyzw
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r6.w, l(32), t13.xyzw
  movc r13.w, r13.w, r14.w, l(1.000000)
  and r14.w, r8.w, l(128)
  ieq r14.w, r14.w, l(128)
  if_nz r14.w
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r14.w, r6.w, l(92), t13.xxxx
    add r18.xyz, -r16.xyzx, v4.xyzx
    mul r20.xyz, r18.xyzx, l(0.020000, 0.020000, 0.020000, 0.000000)
    dp3 r15.y, |r20.xyzx|, |r20.xyzx|
    mul r18.xyz, r18.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
    dp3 r15.w, |r18.xyzx|, |r18.xyzx|
    add r14.w, r14.w, l(9.999999960E-12)
    div r14.w, r15.w, r14.w
    mad r14.w, -r14.w, r14.w, l(1.000000)
    max r14.w, r14.w, l(0.000000)
    mul r14.w, r14.w, r14.w
    add r15.y, r16.w, r15.y
    div r15.y, l(1.000000, 1.000000, 1.000000, 1.000000), r15.y
    mul r14.w, r14.w, r15.y
    mul r14.w, r13.w, r14.w
    mul r14.w, r14.w, l(0.0795798153)
  else
    add r18.xyz, -r16.xyzx, v4.xyzx
    div_sat r17.xyz, |r18.xyzx|, r17.xyzx
    add r17.xyz, -r17.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
    mul r15.y, r17.y, r17.x
    mul r15.y, r17.z, r15.y
    log r15.y, r15.y
    mul r15.y, r15.y, r16.w
    exp r15.y, r15.y
    mul r14.w, r13.w, r15.y
  endif
  add r13.w, r14.w, l(-1.000000004E-15)
  lt r13.w, r13.w, l(0.000000)
  if_nz r13.w
    mov r5.w, r7.w
    continue
  endif
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r18.xyzw, r6.w, l(16), t13.xyzw
  add r16.xyz, r16.xyzx, -v4.xyzx
  dp3 r13.w, r16.xyzx, r16.xyzx
  rsq r13.w, r13.w
  mul r16.xyz, r13.wwww, r16.xyzx
  dp3 r13.w, r1.xyzx, r16.xyzx
  max r13.w, r13.w, l(0.000000)
  if_nz r4.w
    dp3_sat r15.y, r6.xyzx, -r16.xyzx
    mul r15.y, r15.y, r15.y
    dp3_sat r15.w, -r3.xyzx, r16.xyzx
    mad r15.y, r15.y, r15.y, -r15.w
    mad r15.y, r15.y, l(0.600000), r15.w
    mul r15.y, r15.y, cb0[16].x
    mul r15.y, r15.y, l(3.000000)
  else
    mov r15.y, l(0)
  endif
  and r15.w, r8.w, l(8)
  ieq r15.w, r15.w, l(8)
  if_nz r15.w
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r20.xyzw, r6.w, l(164), t13.wxyz
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r21.xyzw, r6.w, l(180), t13.wxyz
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r22.xyzw, r6.w, l(196), t13.xyzw
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r23.xyz, r6.w, l(212), t13.xyzx
    mov r19.yzw, r20.yyzw
    dp4 r9.x, v4.xyzw, r19.xyzw
    mov r20.yzw, r21.yyzw
    dp4 r9.y, v4.xyzw, r20.xyzw
    mov r21.yzw, r22.xxyz
    dp4 r9.z, v4.xyzw, r21.xyzw
    mov r23.w, r22.w
    dp4 r19.w, v4.yzwx, r23.xyzw
    sample_indexable(texturecubearray)(float,float,float,float) r20.xyzw, r9.xyzw, t6.xyzw, s6
    mov r19.xyz, r9.xyzx
    dp4 r9.x, r20.xyzw, r19.xyzw
    mov r10.xyz, r19.xyzx
    sample_indexable(texturecubearray)(float,float,float,float) r20.xyzw, r10.xyzw, t6.xyzw, s6
    dp4 r9.y, r20.xyzw, r19.xyzw
    mov r11.xyz, r10.xyzx
    sample_indexable(texturecubearray)(float,float,float,float) r20.xyzw, r11.xyzw, t6.xyzw, s6
    dp4 r9.z, r20.xyzw, r19.xyzw
    mov r12.xyz, r11.xyzx
    sample_indexable(texturecubearray)(float,float,float,float) r20.xyzw, r12.xyzw, t6.xyzw, s6
    dp4 r6.w, r20.xyzw, r19.xyzw
    div r19.xyz, r9.xyzx, r6.wwww
    add r19.w, -r19.y, l(1.000000)
    mad r9.xy, r19.xwxx, cb0[20].xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
    round_ni r10.xy, r9.xyxx
    add r9.xy, r9.xyxx, -r10.xyxx
    add r10.xy, r10.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
    mul r11.xy, r10.xyxx, cb0[20].zwzz
    mad r12.xy, -r9.yxyy, l(3.000000, 3.000000, 0.000000, 0.000000), l(4.000000, 4.000000, 0.000000, 0.000000)
    mad r17.xy, r9.xyxx, l(3.000000, 3.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
    mad r19.xy, -r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
    div r19.xy, r19.xyxx, r12.yxyy
    add r20.xy, r9.xyxx, l(3.000000, 3.000000, 0.000000, 0.000000)
    mul r20.yz, r20.yyxy, l(0.000000, 0.142857149, 0.142857149, 0.000000)
    div r9.xy, r9.xyxx, r17.xyxx
    add r21.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000)
    add r20.xw, r19.xxxy, l(-2.000000, 0.000000, 0.000000, -2.000000)
    mul r6.w, r12.x, r12.y
    mul r22.xyzw, r20.xwzw, cb0[20].zwzw
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r22.xyxx
    mov r9.z, r15.x
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.z, r9.xyzx, t5.xxxx, s5, r19.z
    mul r15.xw, r12.xxxy, l(7.000000, 0.000000, 0.000000, 7.000000)
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r22.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r11.z, r9.xyzx, t5.xxxx, s5, r19.z
    mul r11.z, r11.z, r15.x
    mul r12.xy, r12.xyxx, r17.xyxx
    mov r21.zw, r20.wwwy
    mul r22.xyzw, r21.xzxw, cb0[20].zwzw
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r22.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r12.z, r9.xyzx, t5.xxxx, s5, r19.z
    mad r6.w, r6.w, r10.z, r11.z
    mad r6.w, r12.x, r12.z, r6.w
    mul r23.xyzw, r20.xyzy, cb0[20].zwzw
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r23.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.z, r9.xyzx, t5.xxxx, s5, r19.z
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r23.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r11.z, r9.xyzx, t5.xxxx, s5, r19.z
    mul r11.z, r11.z, l(49.000000)
    mul r12.xz, r17.xxyx, l(7.000000, 0.000000, 7.000000, 0.000000)
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r22.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r15.x, r9.xyzx, t5.xxxx, s5, r19.z
    mad r10.z, r15.w, r10.z, r11.z
    mad r10.z, r12.x, r15.x, r10.z
    add r6.w, r6.w, r10.z
    mov r20.y, r21.y
    mul r20.xyzw, r20.xyzy, cb0[20].zwzw
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r20.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.z, r9.xyzx, t5.xxxx, s5, r19.z
    mad r9.xy, r10.xyxx, cb0[20].zwzz, r20.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.x, r9.xyzx, t5.xxxx, s5, r19.z
    mul r10.x, r10.x, r12.z
    mul r10.y, r17.y, r17.x
    mad r9.xy, r21.xyxx, cb0[20].zwzz, r11.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.x, r9.xyzx, t5.xxxx, s5, r19.z
    mad r9.y, r12.y, r10.z, r10.x
    mad r9.x, r10.y, r9.x, r9.y
    add r6.w, r6.w, r9.x
    mul r6.w, r6.w, l(0.00694444450)
    max r6.w, r18.w, r6.w
    mul r14.w, r6.w, r14.w
  endif
  min r6.w, r13.w, l(1.000000)
  mul r9.x, r6.w, r14.w
  mad r6.w, r14.w, r6.w, l(-1.000000004E-15)
  lt r6.w, r6.w, l(0.000000)
  add r9.y, r15.y, l(-1.000000004E-15)
  lt r9.y, r9.y, l(0.000000)
  and r6.w, r6.w, r9.y
  if_nz r6.w
    mov r5.w, r7.w
    continue
  endif
  max r6.w, r0.y, r17.w
  mad r10.xyz, r5.xyzx, r0.wwww, r16.xyzx
  dp3 r9.y, r10.xyzx, r10.xyzx
  rsq r9.y, r9.y
  mul r10.xyz, r9.yyyy, r10.xyzx
  dp3 r9.y, r6.xyzx, r10.xyzx
  dp3 r9.z, r1.xyzx, r10.xyzx
  max r9.yz, r9.yyzy, l(0.000000, 0.000000, 0.000000, 0.000000)
  mul r6.w, r6.w, r6.w
  mul r9.z, r9.z, r9.z
  mad r10.x, r6.w, r6.w, l(-1.000000)
  mad r9.z, r9.z, r10.x, l(1.000000)
  max r9.z, r9.z, l(1.000000012E-07)
  div r9.z, r6.w, r9.z
  mul r9.z, r9.z, r9.z
  mul r9.z, r9.z, l(0.318309873)
  mul r10.x, r6.w, l(0.500000)
  mad r6.w, -r6.w, l(0.500000), l(1.000000)
  mad r10.y, r13.w, r6.w, r10.x
  div r10.y, l(1.000000, 1.000000, 1.000000, 1.000000), r10.y
  mad r6.w, r3.w, r6.w, r10.x
  div r6.w, l(1.000000, 1.000000, 1.000000, 1.000000), r6.w
  mul r6.w, r6.w, r10.y
  mad r10.x, r9.y, l(-5.554730), l(-6.983160)
  mul r9.y, r9.y, r10.x
  exp r9.y, r9.y
  mad r10.xyz, r8.xyzx, r9.yyyy, r7.xyzx
  mul r6.w, r6.w, r9.z
  mul r6.w, r6.w, l(0.250000)
  mul r10.xyz, r6.wwww, r10.xyzx
  mul r9.xyz, r9.xxxx, r18.xyzx
  and r11.xy, r8.wwww, l(32, 16, 0, 0)
  ine r11.xy, r11.xyxx, l(32, 16, 0, 0)
  mul r12.xyz, r4.xyzx, r9.xyzx
  and r12.xyz, r11.xxxx, r12.xyzx
  mul r9.xyz, r10.xyzx, r9.xyzx
  mul r9.xyz, r15.zzzz, r9.xyzx
  and r9.xyz, r9.xyzx, r11.yyyy
  mul r10.xyz, r4.xyzx, r18.xyzx
  mul r6.w, r15.y, r14.w
  mad r10.xyz, r10.xyzx, r6.wwww, r12.xyzx
  add r13.xyz, r10.xyzx, r13.xyzx
  add r14.xyz, r9.xyzx, r14.xyzx
  mov r5.w, r7.w
endloop
iadd r0.x, r0.z, r2.w
mov r9.w, l(0)
mov r10.xyz, r13.xyzx
mov r11.xyz, r14.xyzx
mov r0.z, r2.w
loop
  uge r5.w, r0.z, r0.x
  breakc_nz r5.w
  ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r5.w, r0.z, l(0), t12.xxxx
  iadd r6.w, r0.z, l(1)
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r12.xyzw, r5.w, l(92), t13.xyzw
  ftou r7.w, r12.w
  and r8.w, r7.w, l(1)
  ieq r8.w, r8.w, l(1)
  and r8.w, r1.w, r8.w
  if_nz r8.w
    mov r0.z, r6.w
    continue
  endif
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r15.xyz, r5.w, l(64), t13.xyzx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r16.xyzw, r5.w, l(108), t13.xyzw
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r5.w, l(124), t13.yzwx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r18.xyzw, r5.w, l(140), t13.yzwx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r19.xyzw, r5.w, l(156), t13.yzwx
  and r8.w, r7.w, l(64)
  ieq r8.w, r8.w, l(64)
  mov r20.xyz, r16.yzwy
  mov r20.w, r17.w
  dp4 r20.x, v4.xyzw, r20.xyzw
  mov r17.w, r18.w
  dp4 r20.y, v4.xyzw, r17.xyzw
  mov r18.w, r19.w
  dp4 r20.z, v4.xyzw, r18.xyzw
  div r15.xyz, |r20.xyzx|, r15.xyzx
  max r10.w, r15.y, r15.x
  max r10.w, r15.z, r10.w
  ge r10.w, r10.w, l(1.000000)
  and r11.w, r8.w, r10.w
  mov r0.z, r6.w
  continuec_nz r11.w
  movc r10.w, r10.w, l(0), l(1.000000)
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r15.xyzw, r5.w, l(0), t13.xyzw
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r5.w, l(48), t13.xyzw
  add r16.yzw, r15.xxyz, -v4.xxyz
  dp3 r11.w, r16.yzwy, r16.yzwy
  rsq r11.w, r11.w
  mul r16.yzw, r11.wwww, r16.yyzw
  movc r8.w, r8.w, r10.w, l(1.000000)
  dp3 r10.w, r16.yzwy, -r17.xyzx
  add r10.w, -r16.x, r10.w
  mul_sat r10.w, r17.w, r10.w
  mul r10.w, r10.w, r10.w
  mul r11.w, r8.w, r10.w
  mad r8.w, r8.w, r10.w, l(-1.000000004E-15)
  lt r8.w, r8.w, l(0.000000)
  mov r0.z, r6.w
  continuec_nz r8.w
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r8.w, r5.w, l(80), t13.xxxx
  add r18.xyz, -r15.xyzx, v4.xyzx
  dp3 r10.w, r17.xyzx, r18.xyzx
  add r8.w, -r8.w, r10.w
  lt r8.w, r8.w, l(0.000000)
  mov r0.z, r6.w
  continuec_nz r8.w
  add r8.w, -r12.y, r10.w
  lt r8.w, l(0.000000), r8.w
  mov r0.z, r6.w
  continuec_nz r8.w
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r5.w, l(32), t13.xyzw
  and r8.w, r7.w, l(128)
  ieq r8.w, r8.w, l(128)
  if_nz r8.w
    and r8.w, r7.w, l(256)
    ieq r8.w, r8.w, l(256)
    mul r20.xyz, r18.xyzx, l(0.020000, 0.020000, 0.020000, 0.000000)
    dp3 r12.w, |r20.xyzx|, |r20.xyzx|
    add r12.y, r12.y, l(9.999999717E-10)
    div_sat r10.w, r10.w, r12.y
    mul r10.w, r10.w, r10.w
    mul r10.w, r10.w, r10.w
    and r8.w, r8.w, r10.w
    mad r8.w, -r8.w, r8.w, l(1.000000)
    mul r8.w, r8.w, r8.w
    add r10.w, r15.w, r12.w
    div r10.w, l(1.000000, 1.000000, 1.000000, 1.000000), r10.w
    mul r8.w, r8.w, r10.w
    mul r8.w, r11.w, r8.w
    mul r8.w, r8.w, l(0.0795798153)
  else
    div_sat r17.xyz, |r18.xyzx|, r17.xyzx
    add r17.xyz, -r17.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
    mul r10.w, r17.y, r17.x
    mul r10.w, r17.z, r10.w
    log r10.w, r10.w
    mul r10.w, r10.w, r15.w
    exp r10.w, r10.w
    mul r8.w, r10.w, r11.w
  endif
  add r10.w, r8.w, l(-1.000000004E-15)
  lt r10.w, r10.w, l(0.000000)
  if_nz r10.w
    mov r0.z, r6.w
    continue
  endif
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r18.xyzw, r5.w, l(16), t13.xyzw
  dp3 r10.w, r1.xyzx, r16.yzwy
  max r10.w, r10.w, l(0.000000)
  if_nz r4.w
    dp3_sat r11.w, r6.xyzx, -r16.yzwy
    mul r11.w, r11.w, r11.w
    dp3_sat r12.y, -r3.xyzx, r16.yzwy
    mad r11.w, r11.w, r11.w, -r12.y
    mad r11.w, r11.w, l(0.600000), r12.y
    mul r11.w, r11.w, cb0[16].x
    mul r11.w, r11.w, l(3.000000)
  else
    mov r11.w, l(0)
  endif
  and r12.y, r7.w, l(8)
  ieq r12.y, r12.y, l(8)
  if_nz r12.y
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r20.xyzw, r5.w, l(172), t13.yzwx
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r21.xyzw, r5.w, l(188), t13.yzwx
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r22.xyzw, r5.w, l(204), t13.xyzw
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r23.w, r5.w, l(220), t13.xxxx
    mov r9.xyz, r15.xyzx
    add r15.xyzw, -r9.xyzw, v4.xyzw
    mov r19.w, r20.w
    dp4 r9.x, r15.xyzw, r19.xyzw
    mov r20.w, r21.w
    dp4 r9.y, r15.xyzw, r20.xyzw
    mov r21.w, r22.x
    dp4 r9.z, r15.xyzw, r21.xyzw
    mov r23.xyz, r22.yzwy
    dp4 r5.w, r15.xyzw, r23.xyzw
    div r9.xyz, r9.xyzx, r5.wwww
    mad r15.xy, r9.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
    add r15.z, -r15.y, l(1.000000)
    mad r9.xy, r15.xzxx, cb0[20].xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
    round_ni r12.yw, r9.xxxy
    add r9.xy, r9.xyxx, -r12.ywyy
    add r12.yw, r12.yyyw, l(0.000000, -0.500000, 0.000000, -0.500000)
    mul r15.xy, r12.ywyy, cb0[20].zwzz
    mad r15.zw, -r9.yyyx, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 4.000000, 4.000000)
    mad r17.xy, r9.xyxx, l(3.000000, 3.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
    mad r19.xy, -r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
    div r19.xy, r19.xyxx, r15.wzww
    add r19.zw, r9.xxxy, l(0.000000, 0.000000, 3.000000, 3.000000)
    mul r20.yz, r19.wwzw, l(0.000000, 0.142857149, 0.142857149, 0.000000)
    div r9.xy, r9.xyxx, r17.xyxx
    add r21.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000)
    add r20.xw, r19.xxxy, l(-2.000000, 0.000000, 0.000000, -2.000000)
    mul r5.w, r15.z, r15.w
    mul r19.xyzw, r20.xwzw, cb0[20].zwzw
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r19.xyxx
    mov r22.z, r12.z
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.x, r22.xyzx, t5.xxxx, s5, r9.z
    mul r19.xy, r15.zwzz, l(7.000000, 7.000000, 0.000000, 0.000000)
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r19.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.y, r22.xyzx, t5.xxxx, s5, r9.z
    mul r9.y, r9.y, r19.x
    mul r15.zw, r15.zzzw, r17.xxxy
    mov r21.zw, r20.wwwy
    mul r23.xyzw, r21.xzxw, cb0[20].zwzw
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r23.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r12.z, r22.xyzx, t5.xxxx, s5, r9.z
    mad r5.w, r5.w, r9.x, r9.y
    mad r5.w, r15.z, r12.z, r5.w
    mul r24.xyzw, r20.xyzy, cb0[20].zwzw
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r24.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.x, r22.xyzx, t5.xxxx, s5, r9.z
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r24.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.y, r22.xyzx, t5.xxxx, s5, r9.z
    mul r9.y, r9.y, l(49.000000)
    mul r19.xz, r17.xxyx, l(7.000000, 0.000000, 7.000000, 0.000000)
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r23.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r12.z, r22.xyzx, t5.xxxx, s5, r9.z
    mad r9.x, r19.y, r9.x, r9.y
    mad r9.x, r19.x, r12.z, r9.x
    add r5.w, r5.w, r9.x
    mov r20.y, r21.y
    mul r20.xyzw, r20.xyzy, cb0[20].zwzw
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r20.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.x, r22.xyzx, t5.xxxx, s5, r9.z
    mad r22.xy, r12.ywyy, cb0[20].zwzz, r20.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.y, r22.xyzx, t5.xxxx, s5, r9.z
    mul r9.y, r9.y, r19.z
    mul r12.y, r17.y, r17.x
    mad r22.xy, r21.xyxx, cb0[20].zwzz, r15.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.z, r22.xyzx, t5.xxxx, s5, r9.z
    mad r9.x, r15.w, r9.x, r9.y
    mad r9.x, r12.y, r9.z, r9.x
    add r5.w, r5.w, r9.x
    mul r5.w, r5.w, l(0.00694444450)
    max r5.w, r18.w, r5.w
    mul r8.w, r5.w, r8.w
  endif
  min r5.w, r10.w, l(1.000000)
  mul r9.x, r5.w, r8.w
  mad r5.w, r8.w, r5.w, l(-1.000000004E-15)
  lt r5.w, r5.w, l(0.000000)
  add r9.y, r11.w, l(-1.000000004E-15)
  lt r9.y, r9.y, l(0.000000)
  and r5.w, r5.w, r9.y
  if_nz r5.w
    mov r0.z, r6.w
    continue
  endif
  max r5.w, r0.y, r17.w
  mad r12.yzw, r5.xxyz, r0.wwww, r16.yyzw
  dp3 r9.y, r12.yzwy, r12.yzwy
  rsq r9.y, r9.y
  mul r12.yzw, r9.yyyy, r12.yyzw
  dp3 r9.y, r6.xyzx, r12.yzwy
  dp3 r9.z, r1.xyzx, r12.yzwy
  max r9.yz, r9.yyzy, l(0.000000, 0.000000, 0.000000, 0.000000)
  mul r5.w, r5.w, r5.w
  mul r9.z, r9.z, r9.z
  mad r12.y, r5.w, r5.w, l(-1.000000)
  mad r9.z, r9.z, r12.y, l(1.000000)
  max r9.z, r9.z, l(1.000000012E-07)
  div r9.z, r5.w, r9.z
  mul r9.z, r9.z, r9.z
  mul r9.z, r9.z, l(0.318309873)
  mul r12.y, r5.w, l(0.500000)
  mad r5.w, -r5.w, l(0.500000), l(1.000000)
  mad r10.w, r10.w, r5.w, r12.y
  div r10.w, l(1.000000, 1.000000, 1.000000, 1.000000), r10.w
  mad r5.w, r3.w, r5.w, r12.y
  div r5.w, l(1.000000, 1.000000, 1.000000, 1.000000), r5.w
  mul r5.w, r5.w, r10.w
  mad r10.w, r9.y, l(-5.554730), l(-6.983160)
  mul r9.y, r9.y, r10.w
  exp r9.y, r9.y
  mad r12.yzw, r8.xxyz, r9.yyyy, r7.xxyz
  mul r5.w, r5.w, r9.z
  mul r5.w, r5.w, l(0.250000)
  mul r12.yzw, r5.wwww, r12.yyzw
  mul r9.xyz, r9.xxxx, r18.xyzx
  and r15.xy, r7.wwww, l(32, 16, 0, 0)
  ine r15.xy, r15.xyxx, l(32, 16, 0, 0)
  mul r16.xyz, r4.xyzx, r9.xyzx
  and r15.xzw, r15.xxxx, r16.xxyz
  mul r9.xyz, r12.yzwy, r9.xyzx
  mul r9.xyz, r12.xxxx, r9.xyzx
  and r9.xyz, r9.xyzx, r15.yyyy
  mul r12.xyz, r4.xyzx, r18.xyzx
  mul r5.w, r11.w, r8.w
  mad r12.xyz, r12.xyzx, r5.wwww, r15.xzwx
  add r10.xyz, r10.xyzx, r12.xyzx
  add r11.xyz, r9.xyzx, r11.xyzx
  mov r0.z, r6.w
endloop
ftou r0.xz, cb0[22].yyzy
mov r9.w, l(0)
mov r12.xyz, r10.xyzx
mov r13.xyz, r11.xyzx
mov r2.w, r0.x
loop
  ult r5.w, r0.z, r2.w
  breakc_nz r5.w
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r14.xyzw, r2.w, l(92), t13.xyzw
  ftou r5.w, r14.w
  and r6.w, r5.w, l(1)
  ieq r6.w, r6.w, l(1)
  and r6.w, r1.w, r6.w
  if_nz r6.w
    iadd r6.w, r2.w, l(1)
    mov r2.w, r6.w
    continue
  endif
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r15.xyz, r2.w, l(64), t13.xyzx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r16.xyzw, r2.w, l(108), t13.xyzw
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r2.w, l(124), t13.yzwx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r18.xyzw, r2.w, l(140), t13.yzwx
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r19.xyzw, r2.w, l(156), t13.yzwx
  and r6.w, r5.w, l(64)
  ieq r6.w, r6.w, l(64)
  mov r20.xyz, r16.yzwy
  mov r20.w, r17.w
  dp4 r20.x, v4.xyzw, r20.xyzw
  mov r17.w, r18.w
  dp4 r20.y, v4.xyzw, r17.xyzw
  mov r18.w, r19.w
  dp4 r20.z, v4.xyzw, r18.xyzw
  div r15.xyz, |r20.xyzx|, r15.xyzx
  max r7.w, r15.y, r15.x
  max r7.w, r15.z, r7.w
  ge r7.w, r7.w, l(1.000000)
  and r8.w, r6.w, r7.w
  iadd r10.w, r2.w, -r8.w
  mov r2.w, r10.w
  continuec_nz r8.w
  movc r7.w, r7.w, l(0), l(1.000000)
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r15.xyzw, r2.w, l(0), t13.xyzw
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r2.w, l(48), t13.xyzw
  add r16.yzw, r15.xxyz, -v4.xxyz
  dp3 r8.w, r16.yzwy, r16.yzwy
  rsq r8.w, r8.w
  mul r16.yzw, r8.wwww, r16.yyzw
  movc r6.w, r6.w, r7.w, l(1.000000)
  dp3 r7.w, r16.yzwy, -r17.xyzx
  add r7.w, -r16.x, r7.w
  mul_sat r7.w, r17.w, r7.w
  mul r7.w, r7.w, r7.w
  mul r8.w, r6.w, r7.w
  mad r6.w, r6.w, r7.w, l(-1.000000004E-15)
  lt r6.w, r6.w, l(0.000000)
  iadd r7.w, r2.w, -r6.w
  mov r2.w, r7.w
  continuec_nz r6.w
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r6.w, r2.w, l(80), t13.xxxx
  add r18.xyz, -r15.xyzx, v4.xyzx
  dp3 r7.w, r17.xyzx, r18.xyzx
  add r6.w, -r6.w, r7.w
  lt r6.w, r6.w, l(0.000000)
  iadd r10.w, r2.w, -r6.w
  mov r2.w, r10.w
  continuec_nz r6.w
  add r6.w, -r14.y, r7.w
  lt r6.w, l(0.000000), r6.w
  iadd r10.w, r2.w, -r6.w
  mov r2.w, r10.w
  continuec_nz r6.w
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r17.xyzw, r2.w, l(32), t13.xyzw
  and r6.w, r5.w, l(128)
  ieq r6.w, r6.w, l(128)
  if_nz r6.w
    and r6.w, r5.w, l(256)
    ieq r6.w, r6.w, l(256)
    mul r20.xyz, r18.xyzx, l(0.020000, 0.020000, 0.020000, 0.000000)
    dp3 r10.w, |r20.xyzx|, |r20.xyzx|
    add r11.w, r14.y, l(9.999999717E-10)
    div_sat r7.w, r7.w, r11.w
    mul r7.w, r7.w, r7.w
    mul r7.w, r7.w, r7.w
    and r6.w, r6.w, r7.w
    mad r6.w, -r6.w, r6.w, l(1.000000)
    mul r6.w, r6.w, r6.w
    add r7.w, r15.w, r10.w
    div r7.w, l(1.000000, 1.000000, 1.000000, 1.000000), r7.w
    mul r6.w, r6.w, r7.w
    mul r6.w, r8.w, r6.w
    mul r6.w, r6.w, l(0.0795798153)
  else
    div_sat r17.xyz, |r18.xyzx|, r17.xyzx
    add r17.xyz, -r17.xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
    mul r7.w, r17.y, r17.x
    mul r7.w, r17.z, r7.w
    log r7.w, r7.w
    mul r7.w, r7.w, r15.w
    exp r7.w, r7.w
    mul r6.w, r7.w, r8.w
  endif
  add r7.w, r6.w, l(-1.000000004E-15)
  lt r7.w, r7.w, l(0.000000)
  if_nz r7.w
    iadd r7.w, r2.w, l(1)
    mov r2.w, r7.w
    continue
  endif
  ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r18.xyzw, r2.w, l(16), t13.xyzw
  dp3 r7.w, r1.xyzx, r16.yzwy
  max r7.w, r7.w, l(0.000000)
  if_nz r4.w
    dp3_sat r8.w, r6.xyzx, -r16.yzwy
    mul r8.w, r8.w, r8.w
    dp3_sat r10.w, -r3.xyzx, r16.yzwy
    mad r8.w, r8.w, r8.w, -r10.w
    mad r8.w, r8.w, l(0.600000), r10.w
    mul r8.w, r8.w, cb0[16].x
    mul r8.w, r8.w, l(3.000000)
  else
    mov r8.w, l(0)
  endif
  and r10.w, r5.w, l(8)
  ieq r10.w, r10.w, l(8)
  if_nz r10.w
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r20.xyzw, r2.w, l(172), t13.yzwx
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r21.xyzw, r2.w, l(188), t13.yzwx
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r22.xyzw, r2.w, l(204), t13.xyzw
    ld_structured_indexable(structured_buffer, stride=224)(mixed,mixed,mixed,mixed) r23.w, r2.w, l(220), t13.xxxx
    mov r9.xyz, r15.xyzx
    add r15.xyzw, -r9.xyzw, v4.xyzw
    mov r19.w, r20.w
    dp4 r9.x, r15.xyzw, r19.xyzw
    mov r20.w, r21.w
    dp4 r9.y, r15.xyzw, r20.xyzw
    mov r21.w, r22.x
    dp4 r9.z, r15.xyzw, r21.xyzw
    mov r23.xyz, r22.yzwy
    dp4 r10.w, r15.xyzw, r23.xyzw
    div r9.xyz, r9.xyzx, r10.wwww
    mad r15.xy, r9.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
    add r15.z, -r15.y, l(1.000000)
    mad r9.xy, r15.xzxx, cb0[20].xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
    round_ni r14.yw, r9.xxxy
    add r9.xy, r9.xyxx, -r14.ywyy
    add r14.yw, r14.yyyw, l(0.000000, -0.500000, 0.000000, -0.500000)
    mul r15.xy, r14.ywyy, cb0[20].zwzz
    mad r15.zw, -r9.yyyx, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 4.000000, 4.000000)
    mad r17.xy, r9.xyxx, l(3.000000, 3.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
    mad r19.xy, -r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(3.000000, 3.000000, 0.000000, 0.000000)
    div r19.xy, r19.xyxx, r15.wzww
    add r19.zw, r9.xxxy, l(0.000000, 0.000000, 3.000000, 3.000000)
    mul r20.yz, r19.wwzw, l(0.000000, 0.142857149, 0.142857149, 0.000000)
    div r9.xy, r9.xyxx, r17.xyxx
    add r21.xy, r9.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000)
    add r20.xw, r19.xxxy, l(-2.000000, 0.000000, 0.000000, -2.000000)
    mul r9.x, r15.z, r15.w
    mul r19.xyzw, r20.xwzw, cb0[20].zwzw
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r19.xyxx
    mov r22.z, r14.z
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.y, r22.xyzx, t5.xxxx, s5, r9.z
    mul r19.xy, r15.zwzz, l(7.000000, 7.000000, 0.000000, 0.000000)
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r19.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.w, r22.xyzx, t5.xxxx, s5, r9.z
    mul r10.w, r10.w, r19.x
    mul r15.zw, r15.zzzw, r17.xxxy
    mov r21.zw, r20.wwwy
    mul r23.xyzw, r21.xzxw, cb0[20].zwzw
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r23.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r11.w, r22.xyzx, t5.xxxx, s5, r9.z
    mad r9.x, r9.x, r9.y, r10.w
    mad r9.x, r15.z, r11.w, r9.x
    mul r24.xyzw, r20.xyzy, cb0[20].zwzw
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r24.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.y, r22.xyzx, t5.xxxx, s5, r9.z
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r24.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.w, r22.xyzx, t5.xxxx, s5, r9.z
    mul r10.w, r10.w, l(49.000000)
    mul r19.xz, r17.xxyx, l(7.000000, 0.000000, 7.000000, 0.000000)
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r23.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r11.w, r22.xyzx, t5.xxxx, s5, r9.z
    mad r9.y, r19.y, r9.y, r10.w
    mad r9.y, r19.x, r11.w, r9.y
    add r9.x, r9.y, r9.x
    mov r20.y, r21.y
    mul r20.xyzw, r20.xyzy, cb0[20].zwzw
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r20.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.y, r22.xyzx, t5.xxxx, s5, r9.z
    mad r22.xy, r14.ywyy, cb0[20].zwzz, r20.zwzz
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r10.w, r22.xyzx, t5.xxxx, s5, r9.z
    mul r10.w, r10.w, r19.z
    mul r11.w, r17.y, r17.x
    mad r22.xy, r21.xyxx, cb0[20].zwzz, r15.xyxx
    sample_c_lz_indexable(texture2darray)(float,float,float,float) r9.z, r22.xyzx, t5.xxxx, s5, r9.z
    mad r9.y, r15.w, r9.y, r10.w
    mad r9.y, r11.w, r9.z, r9.y
    add r9.x, r9.y, r9.x
    mul r9.x, r9.x, l(0.00694444450)
    max r9.x, r18.w, r9.x
    mul r6.w, r6.w, r9.x
  endif
  min r9.x, r7.w, l(1.000000)
  mul r9.y, r6.w, r9.x
  mad r9.x, r6.w, r9.x, l(-1.000000004E-15)
  add r9.z, r8.w, l(-1.000000004E-15)
  lt r9.xz, r9.xxzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  and r9.x, r9.z, r9.x
  if_nz r9.x
    iadd r9.x, r2.w, l(1)
    mov r2.w, r9.x
    continue
  endif
  max r9.x, r0.y, r17.w
  mad r14.yzw, r5.xxyz, r0.wwww, r16.yyzw
  dp3 r9.z, r14.yzwy, r14.yzwy
  rsq r9.z, r9.z
  mul r14.yzw, r9.zzzz, r14.yyzw
  dp3 r9.z, r6.xyzx, r14.yzwy
  max r9.z, r9.z, l(0.000000)
  dp3 r10.w, r1.xyzx, r14.yzwy
  max r10.w, r10.w, l(0.000000)
  mul r9.x, r9.x, r9.x
  mul r10.w, r10.w, r10.w
  mad r11.w, r9.x, r9.x, l(-1.000000)
  mad r10.w, r10.w, r11.w, l(1.000000)
  max r10.w, r10.w, l(1.000000012E-07)
  div r10.w, r9.x, r10.w
  mul r10.w, r10.w, r10.w
  mul r10.w, r10.w, l(0.318309873)
  mul r11.w, r9.x, l(0.500000)
  mad r9.x, -r9.x, l(0.500000), l(1.000000)
  mad r7.w, r7.w, r9.x, r11.w
  div r7.w, l(1.000000, 1.000000, 1.000000, 1.000000), r7.w
  mad r9.x, r3.w, r9.x, r11.w
  div r9.x, l(1.000000, 1.000000, 1.000000, 1.000000), r9.x
  mul r7.w, r7.w, r9.x
  mad r9.x, r9.z, l(-5.554730), l(-6.983160)
  mul r9.x, r9.z, r9.x
  exp r9.x, r9.x
  mad r14.yzw, r8.xxyz, r9.xxxx, r7.xxyz
  mul r7.w, r7.w, r10.w
  mul r7.w, r7.w, l(0.250000)
  mul r14.yzw, r7.wwww, r14.yyzw
  mul r9.xyz, r9.yyyy, r18.xyzx
  and r15.xy, r5.wwww, l(32, 16, 0, 0)
  ine r15.xy, r15.xyxx, l(32, 16, 0, 0)
  mul r16.xyz, r4.xyzx, r9.xyzx
  and r15.xzw, r15.xxxx, r16.xxyz
  mul r9.xyz, r14.yzwy, r9.xyzx
  mul r9.xyz, r14.xxxx, r9.xyzx
  and r9.xyz, r9.xyzx, r15.yyyy
  mul r14.xyz, r4.xyzx, r18.xyzx
  mul r5.w, r8.w, r6.w
  mad r14.xyz, r14.xyzx, r5.wwww, r15.xzwx
  add r12.xyz, r12.xyzx, r14.xyzx
  add r13.xyz, r9.xyzx, r13.xyzx
  iadd r2.w, r2.w, l(1)
endloop
dp3 r0.x, cb0[23].xyzx, cb0[23].xyzx
rsq r0.x, r0.x
mul r9.xyz, r0.xxxx, cb0[23].xyzx
max r0.x, r0.y, l(0.040000)
mad r0.yzw, r5.xxyz, r0.wwww, r9.xxyz
dp3 r1.w, r0.yzwy, r0.yzwy
rsq r1.w, r1.w
mul r0.yzw, r0.yyzw, r1.wwww
dp3 r1.w, r6.xyzx, r0.yzwy
max r1.w, r1.w, l(0.000000)
dp3 r0.y, r1.xyzx, r0.yzwy
dp3 r0.z, r1.xyzx, r9.xyzx
max r0.yz, r0.yyzy, l(0.000000, 0.000000, 0.000000, 0.000000)
mul r0.xy, r0.xyxx, r0.xyxx
mad r0.w, r0.x, r0.x, l(-1.000000)
mad r0.y, r0.y, r0.w, l(1.000000)
max r0.y, r0.y, l(1.000000012E-07)
div r0.y, r0.x, r0.y
mul r0.y, r0.y, r0.y
mul r0.yw, r0.yyyx, l(0.000000, 0.318309873, 0.000000, 0.500000)
mad r0.x, -r0.x, l(0.500000), l(1.000000)
mad r2.w, r0.z, r0.x, r0.w
div r2.w, l(1.000000, 1.000000, 1.000000, 1.000000), r2.w
mad r0.x, r3.w, r0.x, r0.w
div r0.x, l(1.000000, 1.000000, 1.000000, 1.000000), r0.x
mul r0.x, r0.x, r2.w
mad r0.w, r1.w, l(-5.554730), l(-6.983160)
mul r0.w, r1.w, r0.w
exp r0.w, r0.w
mad r5.xyz, r8.xyzx, r0.wwww, r7.xyzx
mul r0.x, r0.x, r0.y
mul r0.x, r0.x, l(0.250000)
mul r0.xyw, r0.xxxx, r5.xyxz
if_nz r4.w
  dp3_sat r1.w, r6.xyzx, -r9.xyzx
  mul r1.w, r1.w, r1.w
  dp3_sat r2.w, -r3.xyzx, r9.xyzx
  mad r1.w, r1.w, r1.w, -r2.w
  mad r1.w, r1.w, l(0.600000), r2.w
  mul r1.w, r1.w, cb0[16].x
  mul r1.w, r1.w, l(3.000000)
else
  mov r1.w, l(0)
endif
min r0.z, r0.z, l(1.000000)
mad r3.xyz, r1.xyzx, cb0[21].zzzz, v4.xyzx
mov r3.w, v4.w
dp4 r5.y, r3.xyzw, cb0[32].xyzw
dp4 r5.z, r3.xyzw, cb0[33].xyzw
dp4 r6.w, r3.xyzw, cb0[34].xyzw
add r5.xw, -cb0[25].zzzw, l(1.000000, 0.000000, 0.000000, 1.000000)
mad r5.yz, r5.yyzy, l(0.000000, 0.500000, 0.500000, 0.000000), l(0.000000, 0.500000, 0.500000, 0.000000)
mul r7.xy, cb0[25].zwzz, l(5.000000, 5.000000, 0.000000, 0.000000)
lt r7.xy, r7.xyxx, r5.yzyy
and r2.w, r7.y, r7.x
mad r7.xy, -cb0[25].zwzz, l(5.000000, 5.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
lt r7.xy, r5.yzyy, r7.xyxx
and r2.w, r2.w, r7.x
and r2.w, r7.y, r2.w
mov r6.x, l(0)
mul r6.yz, r5.yyzy, l(0.000000, 0.333333343, 1.000000, 0.000000)
movc r6.xyzw, r2.wwww, r6.xyzw, l(1.000000,0,0,0)
dp4 r5.y, r3.xyzw, cb0[26].xyzw
dp4 r5.z, r3.xyzw, cb0[27].xyzw
dp4 r7.w, r3.xyzw, cb0[28].xyzw
mad r5.yz, r5.yyzy, l(0.000000, 0.500000, 0.500000, 0.000000), l(0.000000, 0.500000, 0.500000, 0.000000)
ieq r4.w, r2.w, l(0)
lt r8.xy, cb0[25].zwzz, r5.yzyy
and r4.w, r4.w, r8.x
and r4.w, r8.y, r4.w
lt r5.xw, r5.yyyz, r5.xxxw
and r4.w, r4.w, r5.x
and r4.w, r5.w, r4.w
mov r7.x, l(0)
mad r7.yz, r5.yyzy, l(0.000000, 0.333333343, 1.000000, 0.000000), l(0.000000, 0.333333343, 0.000000, 0.000000)
movc r5.xyzw, r4.wwww, r7.xyzw, r6.xyzw
or r2.w, r2.w, r4.w
dp4 r6.x, r3.xyzw, cb0[29].xyzw
dp4 r6.y, r3.xyzw, cb0[30].xyzw
dp4 r3.w, r3.xyzw, cb0[31].xyzw
mad r6.zw, r6.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000), l(0.000000, 0.000000, 0.500000, 0.500000)
dp2 r4.w, r6.xyxx, r6.xyxx
add r4.w, r4.w, l(-0.800000)
mul_sat r3.x, r4.w, l(5.000000)
mad r3.yz, r6.zzwz, l(0.000000, 0.333333343, 1.000000, 0.000000), l(0.000000, 0.666666687, 0.000000, 0.000000)
movc r3.xyzw, r2.wwww, r5.xyzw, r3.xyzw
add r2.w, -r3.w, l(1.000000)
mad r3.yz, r3.yyzy, l(0.000000, 1.000000, -1.000000, 0.000000), l(0.000000, 0.000000, 1.000000, 0.000000)
mad r3.yz, r3.yyzy, cb0[25].xxyx, l(0.000000, 0.500000, 0.500000, 0.000000)
round_ni r5.xy, r3.yzyy
add r3.yz, r3.yyzy, -r5.xxyx
add r5.xy, r5.xyxx, l(-0.500000, -0.500000, 0.000000, 0.000000)
mul r5.xy, r5.xyxx, cb0[25].zwzz
mad r5.zw, -r3.zzzy, l(0.000000, 0.000000, 3.000000, 3.000000), l(0.000000, 0.000000, 4.000000, 4.000000)
mad r6.xy, r3.yzyy, l(3.000000, 3.000000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
mad r6.zw, -r3.yyyz, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 3.000000, 3.000000)
div r6.zw, r6.zzzw, r5.wwwz
add r7.xy, r3.yzyy, l(3.000000, 3.000000, 0.000000, 0.000000)
mul r7.yz, r7.yyxy, l(0.000000, 0.142857149, 0.142857149, 0.000000)
div r3.yz, r3.yyzy, r6.xxyx
add r8.xy, r3.yzyy, l(2.000000, 2.000000, 0.000000, 0.000000)
add r7.xw, r6.zzzw, l(-2.000000, 0.000000, 0.000000, -2.000000)
mul r3.y, r5.z, r5.w
mad r9.xyzw, r7.xwzw, cb0[25].zwzw, r5.xyxy
sample_c_lz_indexable(texture2d)(float,float,float,float) r3.z, r9.xyxx, t7.xxxx, s7, r2.w
mul r6.zw, r5.zzzw, l(0.000000, 0.000000, 7.000000, 7.000000)
sample_c_lz_indexable(texture2d)(float,float,float,float) r3.w, r9.zwzz, t7.xxxx, s7, r2.w
mul r3.w, r3.w, r6.z
mul r5.zw, r5.zzzw, r6.xxxy
mov r8.zw, r7.wwwy
mad r9.xyzw, r8.xzxw, cb0[25].zwzw, r5.xyxy
sample_c_lz_indexable(texture2d)(float,float,float,float) r4.w, r9.xyxx, t7.xxxx, s7, r2.w
mad r3.y, r3.y, r3.z, r3.w
mad r3.y, r5.z, r4.w, r3.y
mad r10.xyzw, r7.xyzy, cb0[25].zwzw, r5.xyxy
sample_c_lz_indexable(texture2d)(float,float,float,float) r3.z, r10.xyxx, t7.xxxx, s7, r2.w
sample_c_lz_indexable(texture2d)(float,float,float,float) r3.w, r10.zwzz, t7.xxxx, s7, r2.w
mul r3.w, r3.w, l(49.000000)
mul r8.zw, r6.xxxy, l(0.000000, 0.000000, 7.000000, 7.000000)
sample_c_lz_indexable(texture2d)(float,float,float,float) r4.w, r9.zwzz, t7.xxxx, s7, r2.w
mad r3.z, r6.w, r3.z, r3.w
mad r3.z, r8.z, r4.w, r3.z
add r3.y, r3.z, r3.y
mov r7.y, r8.y
mad r7.xyzw, r7.xyzy, cb0[25].zwzw, r5.xyxy
sample_c_lz_indexable(texture2d)(float,float,float,float) r3.z, r7.xyxx, t7.xxxx, s7, r2.w
sample_c_lz_indexable(texture2d)(float,float,float,float) r3.w, r7.zwzz, t7.xxxx, s7, r2.w
mul r3.w, r3.w, r8.w
mul r4.w, r6.y, r6.x
mad r5.xy, r8.xyxx, cb0[25].zwzz, r5.xyxx
sample_c_lz_indexable(texture2d)(float,float,float,float) r2.w, r5.xyxx, t7.xxxx, s7, r2.w
mad r3.z, r5.w, r3.z, r3.w
mad r2.w, r4.w, r2.w, r3.z
add r2.w, r2.w, r3.y
mul r2.w, r2.w, l(0.00694444450)
max r2.w, r3.x, r2.w
max r2.w, r2.w, cb0[24].w
mul r3.xyz, r2.wwww, cb0[24].xyzx
mul r5.xyz, r0.zzzz, r3.xyzx
mul r3.xyz, r3.xyzx, r4.xyzx
mul r3.xyz, r1.wwww, r3.xyzx
mad r3.xyz, r5.xyzx, r4.xyzx, r3.xyzx
add r3.xyz, r3.xyzx, r12.xyzx
mul r0.xyz, r0.xywx, r5.xyzx
mad r0.xyz, r0.xyzx, cb0[23].wwww, r13.xyzx
add r0.xyz, r0.xyzx, r3.xyzx
add r0.xyz, r2.xyzx, r0.xyzx
dp3 r0.w, v5.xyzx, v5.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, v5.xyzx
dp3 r0.w, r2.xyzx, r1.xyzx
add r0.w, -|r0.w|, l(1.000000)
max r0.w, r0.w, l(0.000000)
add r0.w, -r0.w, l(1.000000)
mul r0.w, r0.w, r0.w
dp3 r1.w, r1.xyzx, r1.xyzx
rsq r1.w, r1.w
mul r3.xyz, r1.wwww, r1.xyzx
dp3 r1.w, r2.xyzx, r3.xyzx
add r1.w, r1.w, r1.w
mad r2.xyz, r3.xyzx, -r1.wwww, r2.xyzx
mul r3.xyz, v4.xyzx, cb0[36].xyzx
mad r4.xyz, v4.xyzx, cb0[36].xyzx, -cb0[35].xyzx
max r1.w, |r4.y|, |r4.x|
max r1.w, |r4.z|, r1.w
mul r1.w, r1.w, l(4.000000)
log r1.w, r1.w
max r1.w, r1.w, l(0.000000)
round_ni r1.w, r1.w
exp r2.w, r1.w
div r4.xyz, r3.xyzx, r2.wwww
frc r4.xyz, r4.xyzx
mul r1.w, r1.w, l(0.142857149)
mad r4.w, r4.z, l(0.142857149), r1.w
mul r5.xyz, cb0[37].xyzx, l(1.000000, 1.000000, 7.000000, 0.000000)
mul r4.xyz, r4.xywx, r5.xyzx
round_ni r4.xyz, r4.xyzx
add r4.xyz, r4.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
div r4.xyz, r4.xyzx, r5.xyzx
sample_l_indexable(texture3d)(float,float,float,float) r4.xyzw, r4.xyzx, t9.xyzw, s9, l(0.000000)
mul r4.xyzw, r4.xyzw, l(255.000000, 255.000000, 255.000000, 255.000000)
div r5.xyz, cb0[37].xyzx, r4.wwww
mul r3.xyz, r3.xyzx, r5.xyzx
frc r3.xyz, r3.xyzx
mad r3.xyz, r3.xyzx, l(0.666666687, 0.666666687, 0.666666687, 0.000000), r4.xyzx
add r3.xyz, r3.xyzx, l(0.166666672, 0.166666672, 0.166666672, 0.000000)
mul r3.xyz, r3.xyzx, cb0[35].wwww
mul r3.w, r3.z, l(0.333333343)
sample_l_indexable(texture3d)(float,float,float,float) r4.xyzw, r3.xywx, t8.xyzw, s8, l(0.000000)
mad r5.xyz, r3.xyzx, l(1.000000, 1.000000, 0.333333343, 0.000000), l(0.000000, 0.000000, 0.333333343, 0.000000)
sample_l_indexable(texture3d)(float,float,float,float) r5.xyzw, r5.xyzx, t8.xyzw, s8, l(0.000000)
mad r3.xyz, r3.xyzx, l(1.000000, 1.000000, 0.333333343, 0.000000), l(0.000000, 0.000000, 0.666666687, 0.000000)
sample_l_indexable(texture3d)(float,float,float,float) r3.xyzw, r3.xyzx, t8.xyzw, s8, l(0.000000)
dp3 r1.w, r4.yzwy, r4.yzwy
sqrt r2.w, r1.w
ne r6.x, r2.w, l(0.000000)
rsq r1.w, r1.w
mul r4.yzw, r1.wwww, r4.yyzw
dp3 r1.w, r1.xyzx, r4.yzwy
mad r1.w, r1.w, l(0.900000), l(0.100000)
div r2.w, r2.w, r4.x
add r4.y, -r2.w, l(1.000000)
add r4.z, r2.w, l(1.000000)
div r4.y, r4.y, r4.z
mad r4.zw, r2.wwww, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 1.000000, 2.000000)
max r1.w, r1.w, l(0.000000)
log r1.w, r1.w
mul r1.w, r1.w, r4.z
exp r1.w, r1.w
mul r2.w, r1.w, r4.w
mad r1.w, -r4.w, r1.w, l(1.000000)
mad r1.w, r4.y, r1.w, r2.w
mul r1.w, r1.w, r4.x
movc r4.x, r6.x, r1.w, r4.x
dp3 r1.w, r5.yzwy, r5.yzwy
sqrt r2.w, r1.w
ne r4.w, r2.w, l(0.000000)
rsq r1.w, r1.w
mul r5.yzw, r1.wwww, r5.yyzw
dp3 r1.w, r1.xyzx, r5.yzwy
mad r1.w, r1.w, l(0.900000), l(0.100000)
div r2.w, r2.w, r5.x
add r5.y, -r2.w, l(1.000000)
add r5.z, r2.w, l(1.000000)
div r5.y, r5.y, r5.z
mad r5.zw, r2.wwww, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 1.000000, 2.000000)
max r1.w, r1.w, l(0.000000)
log r1.w, r1.w
mul r1.w, r1.w, r5.z
exp r1.w, r1.w
mul r2.w, r1.w, r5.w
mad r1.w, -r5.w, r1.w, l(1.000000)
mad r1.w, r5.y, r1.w, r2.w
mul r1.w, r1.w, r5.x
movc r4.y, r4.w, r1.w, r5.x
dp3 r1.w, r3.yzwy, r3.yzwy
sqrt r2.w, r1.w
ne r4.w, r2.w, l(0.000000)
rsq r1.w, r1.w
mul r3.yzw, r1.wwww, r3.yyzw
dp3 r1.x, r1.xyzx, r3.yzwy
mad r1.x, r1.x, l(0.900000), l(0.100000)
div r1.y, r2.w, r3.x
add r1.z, -r1.y, l(1.000000)
add r1.w, r1.y, l(1.000000)
div r1.z, r1.z, r1.w
mad r1.yw, r1.yyyy, l(0.000000, 2.000000, 0.000000, 2.000000), l(0.000000, 1.000000, 0.000000, 2.000000)
max r1.x, r1.x, l(0.000000)
log r1.x, r1.x
mul r1.x, r1.x, r1.y
exp r1.x, r1.x
mul r1.y, r1.x, r1.w
mad r1.x, -r1.w, r1.x, l(1.000000)
mad r1.x, r1.z, r1.x, r1.y
mul r1.x, r1.x, r3.x
movc r4.z, r4.w, r1.x, r3.x
max r1.xyz, r4.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mul r1.w, cb0[38].y, cb0[39].z
mul r1.w, r1.w, cb0[40].y
mul r1.xyz, r1.wwww, r1.xyzx
sample_l_indexable(texturecube)(float,float,float,float) r2.xyz, r2.xyzx, t10.xyzw, s10, l(0.000000)
mul r1.xyz, r1.xyzx, cb0[41].yyyy
mul r1.xyz, r1.xyzx, r2.xyzx
mul r1.xyz, r1.xyzx, cb0[41].xxxx
mad o0.xyz, r1.xyzx, r0.wwww, r0.xyzx
mov o0.w, l(1.000000)
ret
// Approximately 1138 instruction slots used
