//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 23 11:21:18 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_resource_structured t0, 4
dcl_resource_texture3d (float,float,float,float) t1
dcl_resource_structured t2, 4
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 4
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
eq r0.x, r0.x, l(0.000000)
if_nz r0.x
  store_uav_typed u0.xyzw, r1.xyww, l(0,0,0,0)
  store_uav_typed u1.xyzw, r1.xyww, l(0,0,0,0)
  ret
endif
ishl r0.xyz, r1.xywx, l(1, 1, 1, 0)
ubfe r2.xyz, l(30, 30, 30, 0), l(1, 1, 1, 0), r1.xywx
ishl r2.yz, r2.yyzy, l(0, 6, 12, 0)
iadd r0.w, r2.x, r2.y
iadd r0.w, r0.w, r2.z
bfi r0.yz, l(0, 2, 2, 0), l(0, 2, 4, 0), r0.yyzy, l(0, 0, 0, 0)
bfi r0.x, l(2), l(0), r0.x, r0.y
iadd r0.x, r0.x, r0.z
imad r0.x, r0.w, l(64), r0.x
mov r0.yz, l(0,0,0,0)
loop
  uge r0.w, r0.z, l(8)
  breakc_nz r0.w
  ushr r2.xy, r0.zzzz, l(1, 2, 0, 0)
  bfi r2.xy, l(1, 1, 0, 0), l(2, 4, 0, 0), r2.xyxx, l(0, 0, 0, 0)
  bfi r0.w, l(1), l(0), r0.z, r2.x
  iadd r0.w, r0.w, r2.y
  iadd r0.w, r0.x, r0.w
  ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r0.w, r0.w, l(0), t2.xxxx
  or r0.y, r0.w, r0.y
  iadd r0.z, r0.z, l(1)
endloop
and r0.x, r0.y, l(15)
utof r0.x, r0.x
mul r2.x, r0.x, l(0.0666666701)
ubfe r3.xyzw, l(4, 4, 4, 4), l(4, 8, 12, 16), r0.yyyy
utof r3.xyzw, r3.xyzw
mul r3.xyzw, r3.wxyz, l(0.0666666701, 0.0666666701, 0.0666666701, 0.0666666701)
mov r2.yzw, r3.yyzw
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
ubfe r0.xz, l(4, 0, 4, 0), l(20, 0, 24, 0), r0.yyyy
utof r0.xz, r0.xxzx
mul r3.yz, r0.xxzx, l(0.000000, 0.0666666701, 0.0666666701, 0.000000)
ushr r0.x, r0.y, l(28)
utof r0.x, r0.x
mul r3.w, r0.x, l(0.0666666701)
mul r0.xyzw, r3.xyzw, r3.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
