//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 23 13:11:46 2021
//
//
// 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_constantbuffer cb0[1], immediateIndexed
dcl_resource_structured t0, 4
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_uav_typed_texture3d (float,float,float,float) u0
dcl_uav_typed_texture3d (float,float,float,float) u1
dcl_input vThreadGroupID.x
dcl_input vThreadIDInGroup.xyz
dcl_temps 6
dcl_thread_group 4, 4, 4
ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r0.x, vThreadGroupID.x, l(0), t0.xxxx
bfi r0.y, l(10), l(2), r0.x, l(0)
iadd r1.x, vThreadIDInGroup.x, r0.y
ushr r0.xyz, r0.xxxx, l(10, 20, 20, 0)
bfi r0.xyz, l(10, 10, 10, 0), l(2, 2, 2, 0), r0.xyzx, l(0, 0, 0, 0)
iadd r1.yzw, vThreadIDInGroup.yyzz, r0.xxyz
ushr r0.xyz, r1.xywx, l(1, 1, 1, 0)
mov r0.w, l(0)
ld_indexable(texture3d)(float,float,float,float) r0.x, r0.xyzw, t1.xyzw
lt r0.x, l(0.000000), r0.x
if_nz r0.x
  ishl r0.xyz, r1.xywx, l(1, 1, 1, 0)
  ftoi r2.xyz, cb0[0].xyzx
  iadd r0.xyz, r0.xyzx, r2.xyzx
  mov r0.w, l(0)
  ld_aoffimmi_indexable(0,0,0)(texture3d)(float,float,float,float) r2.xyzw, r0.xyzw, t2.xyzw
  ld_aoffimmi_indexable(1,0,0)(texture3d)(float,float,float,float) r3.xyzw, r0.xyzw, t2.xyzw
  max r2.xyzw, r2.xyzw, r3.xyzw
  ld_aoffimmi_indexable(0,1,0)(texture3d)(float,float,float,float) r3.xyzw, r0.xyzw, t2.xyzw
  ld_aoffimmi_indexable(1,1,0)(texture3d)(float,float,float,float) r4.xyzw, r0.xyzw, t2.xyzw
  max r3.xyzw, r3.xyzw, r4.xyzw
  max r2.xyzw, r2.xyzw, r3.xyzw
  ld_aoffimmi_indexable(0,0,1)(texture3d)(float,float,float,float) r3.xyzw, r0.xyzw, t2.xyzw
  ld_aoffimmi_indexable(1,0,1)(texture3d)(float,float,float,float) r4.xyzw, r0.xyzw, t2.xyzw
  max r3.xyzw, r3.xyzw, r4.xyzw
  ld_aoffimmi_indexable(0,1,1)(texture3d)(float,float,float,float) r4.xyzw, r0.xyzw, t2.xyzw
  ld_aoffimmi_indexable(1,1,1)(texture3d)(float,float,float,float) r5.xyzw, r0.xyzw, t2.xyzw
  max r4.xyzw, r4.xyzw, r5.xyzw
  max r3.xyzw, r3.xyzw, r4.xyzw
  max r2.xyzw, r2.xyzw, r3.xyzw
  ld_aoffimmi_indexable(0,0,0)(texture3d)(float,float,float,float) r3.xyzw, r0.xyzw, t3.xyzw
  ld_aoffimmi_indexable(1,0,0)(texture3d)(float,float,float,float) r4.xyzw, r0.xyzw, t3.xyzw
  max r3.xyzw, r3.xyzw, r4.xyzw
  ld_aoffimmi_indexable(0,1,0)(texture3d)(float,float,float,float) r4.xyzw, r0.xyzw, t3.xyzw
  ld_aoffimmi_indexable(1,1,0)(texture3d)(float,float,float,float) r5.xyzw, r0.xyzw, t3.xyzw
  max r4.xyzw, r4.xyzw, r5.xyzw
  max r3.xyzw, r3.xyzw, r4.xyzw
  ld_aoffimmi_indexable(0,0,1)(texture3d)(float,float,float,float) r4.xyzw, r0.xyzw, t3.xyzw
  ld_aoffimmi_indexable(1,0,1)(texture3d)(float,float,float,float) r5.xyzw, r0.xyzw, t3.xyzw
  max r4.xyzw, r4.xyzw, r5.xyzw
  ld_aoffimmi_indexable(0,1,1)(texture3d)(float,float,float,float) r5.xyzw, r0.xyzw, t3.xyzw
  ld_aoffimmi_indexable(1,1,1)(texture3d)(float,float,float,float) r0.xyzw, r0.xyzw, t3.xyzw
  max r0.xyzw, r0.xyzw, r5.xyzw
  max r0.xyzw, r0.xyzw, r4.xyzw
  max r0.xyzw, r0.xyzw, r3.xyzw
  sqrt r2.xyzw, r2.xyzw
  sqrt r0.xyzw, r0.xyzw
else
  mov r2.xyzw, l(0,0,0,0)
  mov r0.xyzw, l(0,0,0,0)
endif
mul r2.xyzw, r2.xyzw, r2.xyzw
mad r2.xyzw, r2.xyzw, l(31.000000, 31.000000, 31.000000, 31.000000), l(0.500000, 0.500000, 0.500000, 0.500000)
round_ni r2.xyzw, r2.xyzw
mul r2.xyzw, r2.xyzw, l(0.0322580636, 0.0322580636, 0.0322580636, 0.0322580636)
store_uav_typed u0.xyzw, r1.xyww, r2.xyzw
mul r0.xyzw, r0.xyzw, r0.xyzw
mad r0.xyzw, r0.xyzw, l(31.000000, 31.000000, 31.000000, 31.000000), l(0.500000, 0.500000, 0.500000, 0.500000)
round_ni r0.xyzw, r0.xyzw
mul r0.xyzw, r0.xyzw, l(0.0322580636, 0.0322580636, 0.0322580636, 0.0322580636)
store_uav_typed u1.xyzw, r1.xyzw, r0.xyzw
ret
// Approximately 0 instruction slots used
