// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Tue Jun  2 01:10:10 2026
//
//
// 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[24], dynamicIndexed
dcl_constantbuffer CB1[68], immediateIndexed
dcl_resource_buffer (float,float,float,float) t0
dcl_resource_buffer (float,float,float,float) t1
dcl_uav_typed_buffer (uint,uint,uint,uint) u0
dcl_uav_structured u1, 16
dcl_uav_structured u2, 16
dcl_input vThreadIDInGroup.x
dcl_input vThreadID.x
dcl_temps 6
dcl_tgsm_raw g0, 4
dcl_tgsm_raw g1, 4
dcl_tgsm_structured g2, 4, 64
dcl_thread_group 64, 1, 1
if_z vThreadID.x
  store_uav_typed u0.xyzw, l(0,0,0,0), cb0[23].xxxx
endif
if_z vThreadIDInGroup.x
  store_raw g0.x, l(0), l(0)
endif
sync_g_t
ult r0.x, vThreadID.x, cb0[0].w
if_nz r0.x
  ishl r0.x, vThreadID.x, l(2)
  ld_indexable(buffer)(float,float,float,float) r0.x, r0.xxxx, t0.xyzw
  imad r1.xyz, vThreadID.xxxx, l(4, 4, 4, 0), l(1, 2, 3, 0)
  ld_indexable(buffer)(float,float,float,float) r0.y, r1.xxxx, t0.yxzw
  ld_indexable(buffer)(float,float,float,float) r0.z, r1.yyyy, t0.yzxw
  ld_indexable(buffer)(float,float,float,float) r0.w, r1.zzzz, t0.yzwx
  add r1.xyz, -r0.xyzx, cb1[67].xyzx
  dp3 r1.x, r1.xyzx, r1.xyzx
  add r1.yz, r0.wwww, cb0[8].wwxw
  mul r0.w, r1.y, r1.y
  lt r0.w, r1.x, r0.w
  mov r1.yw, l(0,0,0,0)
  loop
    uge r2.x, r1.y, cb0[1].x
    mov r1.w, l(0)
    breakc_nz r2.x
    dp3 r2.x, cb0[r1.y + 2].xyzx, r0.xyzx
    add r2.x, r2.x, -cb0[r1.y + 2].w
    lt r2.x, r1.z, r2.x
    if_nz r2.x
      mov r1.w, l(-1)
      break
    endif
    iadd r1.y, r1.y, l(1)
    mov r1.w, r2.x
  endloop
  not r0.x, r1.w
  and r0.x, r0.x, r0.w
  if_nz r0.x
    imad r0.x, vThreadID.x, l(68), l(24)
    iadd r0.y, r0.x, l(2)
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t1.yxzw
    iadd r0.x, r0.x, l(3)
    ld_indexable(buffer)(float,float,float,float) r0.x, r0.xxxx, t1.xyzw
    lt r0.z, r0.y, l(0.000100)
    lt r0.y, r0.y, r1.x
    or r0.y, r0.y, r0.z
    lt r0.z, r0.x, l(0.000100)
    lt r0.x, r1.x, r0.x
    or r0.x, r0.x, r0.z
    and r0.x, r0.x, r0.y
    if_nz r0.x
      imm_atomic_iadd r0.x, g0, l(0), l(1)
      store_structured g2.x, r0.x, l(0), vThreadID.x
    endif
  endif
endif
sync_g_t
if_z vThreadIDInGroup.x
  ld_raw r0.x, l(0), g0.xxxx
  imm_atomic_iadd r0.x, u0, l(1), r0.x
  store_raw g1.x, l(0), r0.x
endif
sync_g_t
ld_raw r0.x, l(0), g0.xxxx
ult r0.x, vThreadIDInGroup.x, r0.x
if_nz r0.x
  ld_structured r0.x, vThreadIDInGroup.x, l(0), g2.xxxx
  ld_raw r0.y, l(0), g1.xxxx
  iadd r0.y, r0.y, vThreadIDInGroup.x
  ishl r0.z, r0.x, l(2)
  ld_indexable(buffer)(float,float,float,float) r1.x, r0.zzzz, t0.xyzw
  bfi r2.xyz, l(30, 30, 30, 0), l(2, 2, 2, 0), r0.xxxx, l(1, 2, 3, 0)
  ld_indexable(buffer)(float,float,float,float) r1.y, r2.xxxx, t0.yxzw
  ld_indexable(buffer)(float,float,float,float) r1.z, r2.yyyy, t0.yzxw
  ld_indexable(buffer)(float,float,float,float) r1.w, r2.zzzz, t0.yzwx
  store_structured u1.xyzw, r0.y, l(0), r1.xyzw
  imul null, r0.x, r0.x, l(17)
  ishl r0.z, r0.x, l(2)
  ld_indexable(buffer)(float,float,float,float) r1.x, r0.zzzz, t1.xyzw
  bfi r2.xyz, l(30, 30, 30, 0), l(2, 2, 2, 0), r0.xxxx, l(1, 2, 3, 0)
  ld_indexable(buffer)(float,float,float,float) r1.y, r2.xxxx, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r1.z, r2.yyyy, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r1.w, r2.zzzz, t1.yzwx
  imul null, r0.x, r0.y, l(17)
  store_structured u2.xyzw, r0.x, l(0), r1.xyzw
  iadd r1.xyzw, r0.zzzz, l(4, 8, 12, 16)
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.xxxx, t1.xyzw
  iadd r3.xyzw, r1.xxyy, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  iadd r4.xyzw, r1.xyzw, l(2, 2, 2, 2)
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.xxxx, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  imad r5.xyzw, r0.yyyy, l(17, 17, 17, 17), l(1, 2, 3, 4)
  store_structured u2.xyzw, r5.x, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.yyyy, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.yyyy, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.y, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.zzzz, t1.xyzw
  iadd r3.xyzw, r1.zzww, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.zzzz, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  store_structured u2.xyzw, r5.z, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.x, r1.wwww, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r1.z, r4.wwww, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r1.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.w, l(0), r1.xyzw
  iadd r1.xyzw, r0.zzzz, l(20, 24, 28, 32)
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.xxxx, t1.xyzw
  iadd r3.xyzw, r1.xxyy, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  iadd r4.xyzw, r1.xyzw, l(2, 2, 2, 2)
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.xxxx, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  imad r5.xyzw, r0.yyyy, l(17, 17, 17, 17), l(5, 6, 7, 8)
  store_structured u2.xyzw, r5.x, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.yyyy, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.yyyy, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.y, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.zzzz, t1.xyzw
  iadd r3.xyzw, r1.zzww, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.zzzz, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  store_structured u2.xyzw, r5.z, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.x, r1.wwww, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r1.z, r4.wwww, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r1.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.w, l(0), r1.xyzw
  iadd r1.xyzw, r0.zzzz, l(36, 40, 44, 48)
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.xxxx, t1.xyzw
  iadd r3.xyzw, r1.xxyy, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  iadd r4.xyzw, r1.xyzw, l(2, 2, 2, 2)
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.xxxx, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  imad r5.xyzw, r0.yyyy, l(17, 17, 17, 17), l(9, 10, 11, 12)
  store_structured u2.xyzw, r5.x, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.yyyy, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.yyyy, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.y, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.zzzz, t1.xyzw
  iadd r3.xyzw, r1.zzww, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.zzzz, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  store_structured u2.xyzw, r5.z, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.x, r1.wwww, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r1.z, r4.wwww, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r1.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.w, l(0), r1.xyzw
  iadd r1.xyzw, r0.zzzz, l(52, 56, 60, 64)
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.xxxx, t1.xyzw
  iadd r3.xyzw, r1.xxyy, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  iadd r4.xyzw, r1.xyzw, l(2, 2, 2, 2)
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.xxxx, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  imad r5.xyzw, r0.yyyy, l(17, 17, 17, 17), l(13, 14, 15, 16)
  store_structured u2.xyzw, r5.x, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.yyyy, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.yyyy, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.y, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r2.x, r1.zzzz, t1.xyzw
  iadd r3.xyzw, r1.zzww, l(1, 3, 1, 3)
  ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r2.z, r4.zzzz, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.yzwx
  store_structured u2.xyzw, r5.z, l(0), r2.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.x, r1.wwww, t1.xyzw
  ld_indexable(buffer)(float,float,float,float) r1.y, r3.zzzz, t1.yxzw
  ld_indexable(buffer)(float,float,float,float) r1.z, r4.wwww, t1.yzxw
  ld_indexable(buffer)(float,float,float,float) r1.w, r3.wwww, t1.yzwx
  store_structured u2.xyzw, r5.w, l(0), r1.xyzw
endif
ret
// Approximately 0 instruction slots used
