// Skip Regex
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.11 on Sun Aug 12 08:45:31 2018
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Input
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Output
cs_5_0
dcl_globalFlags refactoringAllowed
dcl_immediateConstantBuffer { { 1.000000, 0, 0, 0},
                              { 0, 1.000000, 0, 0},
                              { 0, 0, 1.000000, 0},
                              { 0, 0, 0, 1.000000} }
dcl_constantbuffer cb0[104], dynamicIndexed
dcl_constantbuffer cb1[178], immediateIndexed
dcl_constantbuffer cb2[35], dynamicIndexed
dcl_constantbuffer cb3[7], 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_default
dcl_resource_texture3d (uint,uint,uint,uint) t0
dcl_resource_texture3d (float,float,float,float) t1
dcl_resource_texture3d (float,float,float,float) t2
dcl_resource_texture3d (float,float,float,float) t3
dcl_resource_texture3d (float,float,float,float) t4
dcl_resource_texture3d (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_buffer (uint,uint,uint,uint) t8
dcl_resource_buffer (uint,uint,uint,uint) t9
dcl_resource_buffer (uint,uint,uint,uint) t10
dcl_resource_texturecube (float,float,float,float) t11
dcl_resource_texture3d (float,float,float,float) t12
dcl_resource_texture3d (float,float,float,float) t13
dcl_resource_texture3d (float,float,float,float) t14
dcl_resource_texture3d (float,float,float,float) t15
dcl_resource_texture2d (float,float,float,float) t16
dcl_uav_typed_texture3d (float,float,float,float) u0
dcl_input vThreadID.xyz
dcl_temps 23
dcl_thread_group 4, 4, 4
utof r0.xyz, vThreadID.xyzx
add r1.xyz, r0.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
div r1.xy, r1.xyxx, cb3[1].xyxx
mad r1.xy, r1.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r1.xy, r1.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000)
div r0.w, r1.z, cb3[2].z
exp r0.w, r0.w
add r0.w, r0.w, -cb3[2].y
div r0.w, r0.w, cb3[2].x
lt r1.z, cb1[27].w, l(1.000000)
add r1.w, r0.w, cb1[53].w
mul r1.w, r1.w, cb1[53].z
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.w
mad r0.w, r0.w, cb1[26].z, cb1[27].z
movc r0.w, r1.z, r1.w, r0.w
mul r2.xyzw, r1.yyyy, cb0[62].xyzw
mad r2.xyzw, r1.xxxx, cb0[61].xyzw, r2.xyzw
mad r2.xyzw, r0.wwww, cb0[63].xyzw, r2.xyzw
add r2.xyzw, r2.xyzw, cb0[64].xyzw
div r1.xyw, r2.xyxz, r2.wwww
add r1.xyw, r1.xyxw, -cb1[58].xyxz
mul r2.xyz, r1.yyyy, cb0[66].xywx
mad r2.xyz, r1.xxxx, cb0[65].xywx, r2.xyzx
mad r1.xyw, r1.wwww, cb0[67].xyxw, r2.xyxz
add r1.xyw, r1.xyxw, cb0[68].xyxw
div r1.xy, r1.xyxx, r1.wwww
mad r2.xy, r1.xyxx, l(0.500000, -0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
mad r0.w, r1.w, cb1[172].x, cb1[172].y
log r0.w, r0.w
mul r0.w, r0.w, cb1[172].z
mul r2.z, r0.w, cb1[171].z
lt r1.xyw, r2.xyxz, l(0.000000, 0.000000, 0.000000, 0.000000)
or r0.w, r1.y, r1.x
or r0.w, r1.w, r0.w
lt r1.xyw, l(1.000000, 1.000000, 0.000000, 1.000000), r2.xyxz
or r1.x, r1.y, r1.x
or r1.x, r1.w, r1.x
or r0.w, r0.w, r1.x
movc r0.w, r0.w, l(0), cb0[77].x
lt r1.x, r0.w, l(0.001000)
ult r3.xyz, vThreadID.xyzx, cb3[0].xyzx
and r1.y, r3.y, r3.x
and r1.y, r3.z, r1.y
and r1.x, r1.y, r1.x
movc r1.x, r1.x, cb0[94].x, l(1)
lt r1.w, l(0.000000), cb0[99].x
lt r3.xyz, l(0.000000, 0.000000, 0.000000, 0.000000), cb0[103].yxzy
dp3 r2.w, cb2[5].xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mul r4.xyz, r2.wwww, cb3[6].xyzx
movc r4.xyz, r3.yyyy, r4.xyzx, cb2[5].xyzx
mad r2.w, -cb0[94].y, cb0[94].y, l(1.000000)
mad r3.w, cb0[94].y, cb0[94].y, l(1.000000)
mul r4.w, cb0[94].y, l(-2.000000)
or r5.x, r1.w, r3.z
imul null, r5.yz, vThreadID.xxyx, cb3[3].zzwz
add r5.w, cb1[176].w, l(1.000000)
lt r6.x, l(0.000000), cb0[94].w
lt r6.y, l(0.000000), cb0[2].z
mul r6.z, cb0[103].z, l(0.318309873)
iadd r6.w, cb2[1].z, l(-1)
ushr r5.yz, r5.yyzy, cb2[2].xxxx
iadd r7.xyz, vThreadID.xyzx, l(1, 1, 1, 0)
utof r7.xyz, r7.xyzx
mov r8.w, l(0)
mov r9.x, l(1.000000)
mov r10.x, l(1.000000)
mul r11.xy, cb0[3].yxyy, l(1.000000, -1.000000, 0.000000, 0.000000)
mov r12.x, l(1.000000)
mov r13.xyz, l(0,0,0,0)
mov r7.w, cb2[0].z
mov r11.z, cb2[7].x
mov r11.w, cb2[29].y
mov r12.z, l(0)
loop
  uge r12.w, r12.z, r1.x
  breakc_nz r12.w
  add r14.xyz, r0.xyzx, cb0[r12.z + 78].xyzx
  div r14.xy, r14.xyxx, cb3[1].xyxx
  mad r14.xy, r14.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
  mul r14.xy, r14.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000)
  div r12.w, r14.z, cb3[2].z
  exp r12.w, r12.w
  add r12.w, r12.w, -cb3[2].y
  div r12.w, r12.w, cb3[2].x
  add r14.z, r12.w, cb1[53].w
  mul r14.z, r14.z, cb1[53].z
  div r14.z, l(1.000000, 1.000000, 1.000000, 1.000000), r14.z
  mad r14.w, r12.w, cb1[26].z, cb1[27].z
  movc r14.z, r1.z, r14.z, r14.w
  mul r15.xyzw, r14.yyyy, cb0[62].xyzw
  mad r15.xyzw, r14.xxxx, cb0[61].xyzw, r15.xyzw
  mad r14.xyzw, r14.zzzz, cb0[63].xyzw, r15.xyzw
  add r14.xyzw, r14.xyzw, cb0[64].xyzw
  div r14.xyz, r14.xyzx, r14.wwww
  add r14.xyz, r14.xyzx, -cb1[58].xyzx
  add r15.xyz, r14.xyzx, -cb1[55].xyzx
  dp3 r14.w, r15.xyzx, r15.xyzx
  sqrt r14.w, r14.w
  div r15.xyz, r15.xyzx, r14.wwww
  if_nz r7.w
    if_nz r11.w
      mul r16.xyzw, r14.yyyy, cb2[32].xyzw
      mad r16.xyzw, r14.xxxx, cb2[31].xyzw, r16.xyzw
      mad r16.xyzw, r14.zzzz, cb2[33].xyzw, r16.xyzw
      add r16.xyzw, r16.xyzw, cb2[34].xyzw
      div r17.xyzw, r16.xyxy, r16.wwww
      ge r16.xy, r17.zwzz, l(0.000000, 0.000000, 0.000000, 0.000000)
      ge r18.xy, l(1.000000, 1.000000, 0.000000, 0.000000), r17.zwzz
      and r16.xy, r16.xyxx, r18.xyxx
      and r15.w, r16.y, r16.x
      if_nz r15.w
        mad r17.xyzw, r17.xyzw, cb2[30].xyxy, l(-0.500000, -0.500000, -0.500000, -0.500000)
        frc r16.xy, r17.zwzz
        round_ni r17.xyzw, r17.xyzw
        add r18.xyzw, r17.zwzw, l(0.500000, 1.500000, 0.500000, 0.500000)
        mul r18.xyzw, r18.xyzw, cb2[30].zwzw
        sample_l_indexable(texture2d)(float,float,float,float) r19.x, r18.xyxx, t7.xyzw, s2, l(0.000000)
        add r17.xyzw, r17.xyzw, l(1.500000, 1.500000, 1.500000, 0.500000)
        mul r17.xyzw, r17.xyzw, cb2[30].zwzw
        sample_l_indexable(texture2d)(float,float,float,float) r19.y, r17.xyxx, t7.yxzw, s2, l(0.000000)
        sample_l_indexable(texture2d)(float,float,float,float) r19.z, r17.zwzz, t7.yzxw, s2, l(0.000000)
        sample_l_indexable(texture2d)(float,float,float,float) r19.w, r18.zwzz, t7.yzwx, s2, l(0.000000)
        add r17.xyzw, -r16.zzzz, r19.xyzw
        mad_sat r17.xyzw, r17.xyzw, l(40.000000, 40.000000, 40.000000, 40.000000), l(1.000000, 1.000000, 1.000000, 1.000000)
        lt r18.xyzw, l(0.990000, 0.990000, 0.990000, 0.990000), r19.xyzw
        and r18.xyzw, r18.xyzw, l(0x3f800000, 0x3f800000, 0x3f800000, 0x3f800000)
        add r17.xyzw, r17.xyzw, r18.xyzw
        min r17.xyzw, r17.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
        add r16.zw, -r17.wwwx, r17.zzzy
        mad r16.xz, r16.xxxx, r16.zzwz, r17.wwxw
        add r15.w, -r16.x, r16.z
        mad r15.w, r16.y, r15.w, r16.x
      else
        mov r15.w, l(1.000000)
      endif
    else
      mov r15.w, l(1.000000)
    endif
    ult r16.x, l(0), r11.z
    and r16.x, r3.x, r16.x
    if_nz r16.x
      mov r16.x, r11.z
      mov r16.y, l(0)
      loop
        uge r16.z, r16.y, r11.z
        breakc_nz r16.z
        dp4 r16.z, cb2[8].xyzw, icb[r16.y + 0].xyzw
        lt r16.z, r12.w, r16.z
        if_nz r16.z
          mov r16.x, r16.y
          break
        endif
        iadd r16.y, r16.y, l(1)
      endloop
      ult r16.y, r16.x, r11.z
      if_nz r16.y
        ishl r16.y, r16.x, l(2)
        mul r17.xyzw, r14.yyyy, cb2[r16.y + 10].xyzw
        mad r17.xyzw, r14.xxxx, cb2[r16.y + 9].xyzw, r17.xyzw
        mad r17.xyzw, r14.zzzz, cb2[r16.y + 11].xyzw, r17.xyzw
        add r17.xyzw, r17.xyzw, cb2[r16.y + 12].xyzw
        div r16.yz, r17.xxyx, r17.wwww
        ge r17.xy, r16.yzyy, cb2[r16.x + 25].xyxx
        ge r18.xy, cb2[r16.x + 25].zwzz, r16.yzyy
        and r17.xy, r17.xyxx, r18.xyxx
        and r16.w, r17.y, r17.x
        if_nz r16.w
          sample_l_indexable(texture2d)(float,float,float,float) r16.y, r16.yzyy, t6.yxzw, s1, l(0.000000)
          add r16.y, r16.y, -cb2[29].x
          lt r16.y, r17.z, r16.y
          and r15.w, r16.y, l(0x3f800000)
        endif
      endif
    endif
    mul r16.yz, r14.yyyy, cb0[96].xxyx
    mad r16.yz, r14.xxxx, cb0[95].xxyx, r16.yyzy
    mad r16.yz, r14.zzzz, cb0[97].xxyx, r16.yyzy
    add r16.yz, r16.yyzy, cb0[98].xxyx
    mad r17.xy, r16.yzyy, l(0.500000, 0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
    add r17.z, -r17.y, l(1.000000)
    sample_l_indexable(texture2d)(float,float,float,float) r16.y, r17.xzxx, t16.yxzw, s5, l(0.000000)
    mul r15.w, r15.w, r16.y
    mul r15.w, r15.w, cb2[5].w
    dp3 r16.y, cb2[4].xyzx, -r15.xyzx
    mad r16.y, -r4.w, r16.y, r3.w
    log r16.y, r16.y
    mul r16.y, r16.y, l(1.500000)
    exp r16.y, r16.y
    mul r16.y, r16.y, l(12.566371)
    div r16.y, r2.w, r16.y
    mul r15.w, r15.w, r16.y
    mad r16.yzw, r4.xxyz, r15.wwww, r13.xxyz
  else
    mov r16.yzw, r13.xxyz
  endif
  mul r10.yzw, r15.yyzx, cb0[94].yyyy
  if_nz r5.x
    mad r17.xyz, r14.xyzx, cb1[174].xyzx, cb1[175].xyzx
    max r17.xyz, r17.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    min r17.xyz, r17.xyzx, l(0.990000, 0.990000, 0.990000, 0.000000)
    mul r17.xyz, r17.xyzx, cb1[176].xyzx
    ftoi r8.xyz, r17.xyzx
    ld_indexable(texture3d)(uint,uint,uint,uint) r18.xyzw, r8.xyzw, t0.xyzw
    utof r18.xyzw, r18.xyzw
    div r8.xyz, r17.xyzx, r18.wwww
    frc r8.xyz, r8.xyzx
    mul r8.xyz, r8.xyzx, cb1[176].wwww
    mad r8.xyz, r18.xyzx, r5.wwww, r8.xyzx
    add r8.xyz, r8.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
    mul r8.xyz, r8.xyzx, cb1[177].xyzx
  else
    mov r8.xyz, l(0,0,0,0)
  endif
  if_nz r1.w
    if_nz r3.y
      if_nz r6.y
        mad_sat r14.w, r14.w, cb0[6].y, cb0[6].z
        dp2 r17.x, r15.xyxx, r11.xyxx
        dp2 r17.y, r15.xyxx, cb0[3].xyxx
        mov r17.z, r15.z
        sample_l_indexable(texturecube)(float,float,float,float) r18.xyz, r17.xyzx, t11.xyzw, s3, l(0.000000)
        sample_l_indexable(texturecube)(float,float,float,float) r17.xyz, r17.xyzx, t11.xyzw, s3, cb0[6].w
        add r18.xyz, -r17.xyzx, r18.xyzx
        mad r17.xyz, r14.wwww, r18.xyzx, r17.xyzx
        mul r17.xyz, r17.xyzx, cb0[1].xyzx
      else
        mov r17.xyz, cb0[1].xyzx
      endif
      mul r17.xyz, r17.xyzx, l(0.282094806, 0.282094806, 0.282094806, 0.000000)
      max r17.xyz, r17.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    else
      dp4 r18.x, cb0[100].xyzw, r10.xyzw
      dp4 r18.y, cb0[101].xyzw, r10.xyzw
      dp4 r18.z, cb0[102].xyzw, r10.xyzw
      max r18.xyz, r18.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
      mul r18.xyz, r18.xyzx, cb1[151].xyzx
      mul r17.xyz, r18.xyzx, l(0.318309873, 0.318309873, 0.318309873, 0.000000)
    endif
    if_nz r6.x
      sample_l_indexable(texture3d)(float,float,float,float) r18.xyz, r8.xyzx, t5.xyzw, s0, l(0.000000)
      mad r18.xyz, r18.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
      dp3 r14.w, r18.xyzx, r18.xyzx
      sqrt r14.w, r14.w
    else
      mov r14.w, l(1.000000)
    endif
    mul r14.w, r14.w, cb0[99].x
    mad r16.yzw, r14.wwww, r17.xxyz, r16.yyzw
  endif
  if_nz r3.z
    sample_l_indexable(texture3d)(float,float,float,float) r17.xyz, r8.xyzx, t1.xyzw, s0, l(0.000000)
    sample_l_indexable(texture3d)(float,float,float,float) r18.xyz, r8.xyzx, t2.xyzw, s0, l(0.000000)
    mad r18.xyz, r18.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
    sample_l_indexable(texture3d)(float,float,float,float) r19.xyz, r8.xyzx, t3.xyzw, s0, l(0.000000)
    mad r19.xyz, r19.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
    sample_l_indexable(texture3d)(float,float,float,float) r8.xyz, r8.xyzx, t4.xyzw, s0, l(0.000000)
    mad r8.xyz, r8.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
    mul r18.xyz, r17.xxxx, r18.xyzx
    mul r18.yzw, r18.xxyz, l(0.000000, 1.73205125, 1.73205125, 1.73205125)
    mul r19.xyz, r17.yyyy, r19.xyzx
    mul r19.yzw, r19.xxyz, l(0.000000, 1.73205125, 1.73205125, 1.73205125)
    mul r8.xyz, r17.zzzz, r8.xyzx
    mul r20.yzw, r8.xxyz, l(0.000000, 1.73205125, 1.73205125, 1.73205125)
    mov r18.x, r17.x
    mov r9.yzw, r10.yyzw
    dp4 r8.x, r18.xyzw, r9.xyzw
    mov r19.x, r17.y
    dp4 r8.y, r19.xyzw, r9.xyzw
    mov r20.x, r17.z
    dp4 r8.z, r20.xyzw, r9.xyzw
    max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    mad r16.yzw, r6.zzzz, r8.xxyz, r16.yyzw
  endif
  mad r8.x, r12.w, cb2[3].x, cb2[3].y
  log r8.x, r8.x
  mul r8.x, r8.x, cb2[3].z
  max r8.x, r8.x, l(0.000000)
  ftou r8.x, r8.x
  umin r8.x, r6.w, r8.x
  imad r8.x, r8.x, cb2[1].y, r5.z
  imad r8.x, r8.x, cb2[1].x, r5.y
  ishl r8.y, r8.x, l(1)
  ld_indexable(buffer)(uint,uint,uint,uint) r8.y, r8.yyyy, t8.yxzw
  bfi r8.x, l(31), l(1), r8.x, l(1)
  ld_indexable(buffer)(uint,uint,uint,uint) r8.x, r8.xxxx, t8.xyzw
  add r9.yzw, r7.xxyz, cb0[r12.z + 78].xxyz
  div r9.yz, r9.yyzy, cb3[1].xxyx
  mad r9.yz, r9.yyzy, l(0.000000, 2.000000, 2.000000, 0.000000), l(0.000000, -1.000000, -1.000000, 0.000000)
  mul r9.yz, r9.yyzy, l(0.000000, 1.000000, -1.000000, 0.000000)
  div r8.z, r9.w, cb3[2].z
  exp r8.z, r8.z
  add r8.z, r8.z, -cb3[2].y
  div r8.z, r8.z, cb3[2].x
  add r9.w, r8.z, cb1[53].w
  mul r9.w, r9.w, cb1[53].z
  div r9.w, l(1.000000, 1.000000, 1.000000, 1.000000), r9.w
  mad r8.z, r8.z, cb1[26].z, cb1[27].z
  movc r8.z, r1.z, r9.w, r8.z
  mul r17.xyzw, r9.zzzz, cb0[62].xyzw
  mad r17.xyzw, r9.yyyy, cb0[61].xyzw, r17.xyzw
  mad r17.xyzw, r8.zzzz, cb0[63].xyzw, r17.xyzw
  add r17.xyzw, r17.xyzw, cb0[64].xyzw
  div r9.yzw, r17.xxyz, r17.wwww
  add r9.yzw, r9.yyzw, -cb1[58].xxyz
  add r9.yzw, -r9.yyzw, r14.xxyz
  dp3 r8.z, r9.yzwy, r9.yzwy
  sqrt r8.z, r8.z
  mul r8.z, r8.z, cb0[94].z
  max r8.z, r8.z, l(1.000000)
  mul r9.y, r8.z, r8.z
  mov r13.xyz, r16.yzwy
  mov r13.w, l(0)
  loop
    uge r9.z, r13.w, r8.y
    breakc_nz r9.z
    iadd r9.z, r8.x, r13.w
    ld_indexable(buffer)(uint,uint,uint,uint) r9.z, r9.zzzz, t9.yzxw
    imul null, r9.w, r9.z, l(5)
    imad r10.y, r9.z, l(5), l(3)
    ld_indexable(buffer)(uint,uint,uint,uint) r10.yzw, r10.yyyy, t10.zxyw
    ushr r12.w, r10.w, l(16)
    f16tof32 r12.w, r12.w
    lt r14.w, l(0.000000), r12.w
    if_nz r14.w
      ld_indexable(buffer)(uint,uint,uint,uint) r17.xyzw, r9.wwww, t10.xyzw
      imad r18.xy, r9.zzzz, l(5, 5, 0, 0), l(1, 2, 0, 0)
      ld_indexable(buffer)(uint,uint,uint,uint) r19.xyzw, r18.xxxx, t10.xyzw
      ld_indexable(buffer)(uint,uint,uint,uint) r18.xyz, r18.yyyy, t10.xyzw
      eq r9.w, r19.w, l(0.000000)
      lt r14.w, l(-2.000000), r10.y
      add r17.xyz, -r14.xyzx, r17.xyzx
      dp3 r15.w, r17.xyzx, r17.xyzx
      rsq r18.w, r15.w
      mul r20.xyz, r17.xyzx, r18.wwww
      if_nz r9.w
        f16tof32 r9.w, r10.w
        lt r10.w, l(0.000000), r9.w
        if_nz r10.w
          imad r9.z, r9.z, l(5), l(4)
          ld_indexable(buffer)(uint,uint,uint,uint) r21.xyz, r9.zzzz, t10.xyzw
          mul r21.xyz, r9.wwww, r21.xyzx
          mad r22.xyz, -r21.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), r17.xyzx
          mad r21.xyz, r21.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), r17.xyzx
          dp3 r9.z, r22.xyzx, r22.xyzx
          dp3 r9.w, r21.xyzx, r21.xyzx
          rsq r10.w, r9.z
          rsq r18.w, r9.w
          mul r9.z, r9.z, r10.w
          mul r9.w, r9.w, r18.w
          dp3 r10.w, r22.xyzx, r21.xyzx
          mad r9.z, r9.z, r9.w, r10.w
          mad r9.z, r9.z, l(0.500000), r9.y
          rcp r21.x, r9.z
        else
          mad r9.z, r8.z, r8.z, r15.w
          rcp r21.x, r9.z
        endif
        mul r9.z, r17.w, r17.w
        mul r9.z, r9.z, r15.w
        mad r9.z, -r9.z, r9.z, l(1.000000)
        max r9.z, r9.z, l(0.000000)
        mul r21.y, r9.z, r9.z
      else
        mul r17.xyz, r17.wwww, r17.xyzx
        dp3 r9.z, r17.xyzx, r17.xyzx
        min r9.z, r9.z, l(1.000000)
        add r9.z, -r9.z, l(1.000000)
        log r9.z, r9.z
        mul r9.z, r9.z, r19.w
        exp r12.y, r9.z
        mov r21.xy, r12.xyxx
      endif
      dp3 r9.z, r20.xyzx, r18.xyzx
      add r9.z, -r10.y, r9.z
      mul_sat r9.z, r10.z, r9.z
      mul r9.z, r9.z, r9.z
      movc r9.z, r14.w, r9.z, l(1.000000)
      mul r9.w, r21.y, r21.x
      mul r9.z, r9.z, r9.w
      dp3 r9.w, r20.xyzx, -r15.xyzx
      mad r9.w, -r4.w, r9.w, r3.w
      log r9.w, r9.w
      mul r9.w, r9.w, l(1.500000)
      exp r9.w, r9.w
      mul r9.w, r9.w, l(12.566371)
      div r9.w, r2.w, r9.w
      mul r9.z, r9.z, r9.w
      mul r9.z, r12.w, r9.z
      mad r13.xyz, r19.xyzx, r9.zzzz, r13.xyzx
    endif
    iadd r13.w, r13.w, l(1)
  endloop
  iadd r12.z, r12.z, l(1)
endloop
utof r0.x, r1.x
div r0.xyz, r13.xyzx, r0.xxxx
mov r3.xyz, vThreadID.xyzx
mov r3.w, l(0)
ld_indexable(texture3d)(float,float,float,float) r1.xzw, r3.xyzw, t15.xwyz
add r0.xyz, r0.xyzx, r1.xzwx
ld_indexable(texture3d)(float,float,float,float) r4.xyzw, r3.xyzw, t12.xyzw
dp3 r1.x, r4.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
add r5.w, r1.x, r4.w
ld_indexable(texture3d)(float,float,float,float) r1.xzw, r3.xyzw, t13.xwyz
mad r5.xyz, r0.xyzx, r4.xyzx, r1.xzwx
lt r0.x, l(0.000000), r0.w
if_nz r0.x
  sample_l_indexable(texture3d)(float,float,float,float) r2.xyzw, r2.xyzx, t14.xyzw, s4, l(0.000000)
  add r2.xyzw, -r5.xyzw, r2.xyzw
  mad r5.xyzw, r0.wwww, r2.xyzw, r5.xyzw
endif
if_nz r1.y
  and r0.xyzw, r5.xyzw, l(0x7fffffff, 0x7fffffff, 0x7fffffff, 0x7fffffff)
  ieq r0.xyzw, r0.xyzw, l(0x7f800000, 0x7f800000, 0x7f800000, 0x7f800000)
  movc r0.xyzw, r0.xyzw, l(0,0,0,0), r5.xyzw
  store_uav_typed u0.xyzw, vThreadID.xyzz, r0.xyzw
endif
ret
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
