//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions: 
//
// cbuffer XeTextureLoadConstants
// {
//
//   uint xe_texture_load_guest_base;   // Offset:    0 Size:     4
//   uint xe_texture_load_guest_pitch;  // Offset:    4 Size:     4
//   uint2 xe_texture_load_guest_storage_width_height;// Offset:    8 Size:     8
//   uint3 xe_texture_load_size_blocks; // Offset:   16 Size:    12
//   uint xe_texture_load_is_3d_endian; // Offset:   28 Size:     4
//   uint xe_texture_load_host_base;    // Offset:   32 Size:     4
//   uint xe_texture_load_host_pitch;   // Offset:   36 Size:     4
//   uint xe_texture_load_height_texels;// Offset:   40 Size:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim      ID      HLSL Bind  Count
// ------------------------------ ---------- ------- ----------- ------- -------------- ------
// xe_texture_load_source            texture   uint4         buf      T0             t0      1 
// xe_texture_load_dest                  UAV   uint4         buf      U0             u0      1 
// XeTextureLoadConstants            cbuffer      NA          NA     CB0            cb0      1 
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Input
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Output
cs_5_1
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[0:0][3], immediateIndexed, space=0
dcl_resource_buffer (uint,uint,uint,uint) T0[0:0], space=0
dcl_uav_typed_buffer (uint,uint,uint,uint) U0[0:0], space=0
dcl_input vThreadID.xyz
dcl_temps 19
dcl_thread_group 8, 32, 1
ishl r0.x, vThreadID.x, l(2)
mov r0.yz, vThreadID.yyzy
uge r1.xyz, r0.xyzx, CB0[0][1].xyzx
or r0.z, r1.y, r1.x
or r0.z, r1.z, r0.z
if_nz r0.z
  ret 
endif 
ishl r0.yz, r0.xxyx, l(0, 2, 2, 0)
imad r0.z, vThreadID.z, CB0[0][2].z, r0.z
imad r0.y, r0.z, CB0[0][2].y, r0.y
iadd r0.y, r0.y, CB0[0][2].x
ushr r0.z, CB0[0][2].y, l(4)
ieq r0.w, CB0[0][0].y, l(-1)
if_nz r0.w
  and r1.x, CB0[0][1].w, l(1)
  if_nz r1.x
    iadd r1.xy, CB0[0][0].wzww, l(31, 31, 0, 0)
    ishr r2.xyz, vThreadID.yzyy, l(4, 2, 3, 0)
    ushr r1.xy, r1.xyxx, l(4, 5, 0, 0)
    and r1.x, r1.x, l(0x0ffffffe)
    imad r1.x, r2.y, r1.x, r2.x
    ibfe r1.zw, l(0, 0, 27, 29), l(0, 0, 3, 1), vThreadID.xxxx
    imad r1.x, r1.x, r1.y, r1.z
    ishl r1.y, vThreadID.y, l(11)
    and r1.y, r1.y, l(0x00003000)
    bfi r1.y, l(3), l(9), r0.x, r1.y
    ishr r1.y, r1.y, l(6)
    iadd r1.z, r2.y, r2.z
    bfi r2.x, l(1), l(1), r1.z, l(0)
    iadd r1.w, r1.w, r2.x
    bfi r1.w, l(2), l(1), r1.w, l(0)
    bfi r1.z, l(1), l(0), r1.z, r1.w
    bfi r1.xw, l(19, 0, 0, 19), l(11, 0, 0, 14), r1.xxxx, l(0, 0, 0, 0)
    imad r1.xy, r1.yyyy, l(2, 16, 0, 0), r1.xwxx
    bfi r1.xy, l(2, 2, 0, 0), l(9, 12, 0, 0), vThreadID.zzzz, r1.xyxx
    bfi r1.w, l(1), l(4), vThreadID.y, l(0)
    ubfe r2.x, l(3), l(6), r1.x
    and r2.y, r1.z, l(6)
    bfi r1.z, l(1), l(8), r1.z, l(0)
    imad r1.z, r2.x, l(32), r1.z
    imad r1.z, r2.y, l(4), r1.z
    bfi r1.xy, l(6, 6, 0, 0), l(0, 3, 0, 0), r1.wwww, r1.xyxx
    bfi r1.y, l(9), l(3), r1.z, r1.y
    bfi r1.x, l(6), l(0), r1.x, r1.y
  else 
    ibfe r1.yz, l(0, 27, 29, 0), l(0, 3, 1, 0), vThreadID.xxxx
    ishr r2.xy, vThreadID.yyyy, l(5, 2, 0, 0)
    iadd r1.w, CB0[0][0].z, l(31)
    ushr r1.w, r1.w, l(5)
    imad r1.y, r2.x, r1.w, r1.y
    ishl r2.xz, vThreadID.yyyy, l(6, 0, 7, 0)
    and r2.xz, r2.xxzx, l(896, 0, 2048, 0)
    bfi r1.w, l(3), l(4), r0.x, r2.x
    bfi r1.w, l(22), l(10), r1.y, r1.w
    bfi r2.w, l(1), l(4), vThreadID.y, l(0)
    iadd r1.w, r1.w, r2.w
    ishl r3.xy, r2.xxxx, l(3, 2, 0, 0)
    bfi r3.xy, l(3, 3, 0, 0), l(7, 6, 0, 0), r0.xxxx, r3.xyxx
    bfi r3.xy, l(22, 22, 0, 0), l(13, 12, 0, 0), r1.yyyy, r3.xyxx
    imad r2.xw, r2.wwww, l(8, 0, 0, 4), r3.xxxy
    bfi r1.y, l(12), l(0), r2.z, r2.x
    and r2.x, r2.w, l(1792)
    iadd r1.y, r1.y, r2.x
    and r2.x, r2.y, l(2)
    iadd r1.z, r1.z, r2.x
    bfi r1.z, l(2), l(6), r1.z, l(0)
    iadd r1.y, r1.y, r1.z
    bfi r1.x, l(6), l(0), r1.w, r1.y
  endif 
else 
  ishl r0.x, r0.x, l(3)
  iadd r1.y, CB0[0][1].y, l(31)
  and r1.y, r1.y, l(-32)
  imad r1.y, vThreadID.z, r1.y, vThreadID.y
  imad r1.x, r1.y, CB0[0][0].y, r0.x
endif 
iadd r0.x, r1.x, CB0[0][0].x
ushr r0.xy, r0.xyxx, l(4, 4, 0, 0)
ushr r1.x, CB0[0][1].w, l(1)
ld r2.xyzw, r0.xxxx, T0[0].ywxz
ieq r1.xyz, r1.xxxx, l(1, 2, 3, 0)
or r1.xy, r1.yzyy, r1.xyxx
if_nz r1.x
  ishl r3.xyzw, r2.zxwy, l(8, 8, 8, 8)
  and r3.xyzw, r3.xyzw, l(0xff00ff00, 0xff00ff00, 0xff00ff00, 0xff00ff00)
  ushr r4.xyzw, r2.zxwy, l(8, 8, 8, 8)
  and r4.xyzw, r4.xyzw, l(0x00ff00ff, 0x00ff00ff, 0x00ff00ff, 0x00ff00ff)
  iadd r2.xyzw, r3.ywxz, r4.ywxz
endif 
if_nz r1.y
  ushr r3.xyzw, r2.zxwy, l(16, 16, 16, 16)
  bfi r2.xyzw, l(16, 16, 16, 16), l(16, 16, 16, 16), r2.xyzw, r3.ywxz
  mov r3.xy, r2.zwzz
else 
  mov r3.xy, r2.zwzz
endif 
movc r0.w, r0.w, l(2), l(1)
iadd r0.x, r0.w, r0.x
ld r4.xyzw, r0.xxxx, T0[0].ywxz
if_nz r1.x
  ishl r5.xyzw, r4.zxwy, l(8, 8, 8, 8)
  and r5.xyzw, r5.xyzw, l(0xff00ff00, 0xff00ff00, 0xff00ff00, 0xff00ff00)
  ushr r6.xyzw, r4.zxwy, l(8, 8, 8, 8)
  and r6.xyzw, r6.xyzw, l(0x00ff00ff, 0x00ff00ff, 0x00ff00ff, 0x00ff00ff)
  iadd r4.xyzw, r5.ywxz, r6.ywxz
endif 
if_nz r1.y
  ushr r1.xyzw, r4.zxwy, l(16, 16, 16, 16)
  bfi r4.xyzw, l(16, 16, 16, 16), l(16, 16, 16, 16), r4.xyzw, r1.ywxz
  mov r2.zw, r4.xxxy
else 
  mov r2.zw, r4.xxxy
endif 
ushr r3.zw, r3.xxxy, l(0, 0, 8, 8)
and r1.xyzw, r3.xzyw, l(255, 255, 255, 255)
ushr r4.xy, r4.zwzz, l(8, 8, 0, 0)
and r5.xyzw, r4.zxwy, l(255, 255, 255, 255)
mov r4.xy, r3.xyxx
ushr r3.xyzw, r4.xyzw, l(16, 16, 16, 16)
bfi r4.xyzw, l(8, 8, 8, 8), l(16, 16, 16, 16), r2.xyzw, l(0, 0, 0, 0)
iadd r3.xyzw, r3.xyzw, r4.xyzw
uge r0.xw, r1.yyyw, r1.xxxz
ushr r4.xyzw, r3.xxyy, l(1, 2, 1, 2)
and r6.xy, r3.xyxx, r4.xzxx
and r6.xy, r6.xyxx, l(0x00492492, 0x00492492, 0, 0)
ishl r6.zw, r6.xxxy, l(0, 0, 1, 1)
ushr r7.xy, r6.xyxx, l(1, 1, 0, 0)
iadd r6.xy, r6.xyxx, r6.zwzz
iadd r6.xy, r6.xyxx, r7.xyxx
and r7.xyzw, r3.xyzw, l(0x00249249, 0x00249249, 0x00249249, 0x00249249)
iadd r8.xyzw, r7.xyzw, l(0x00db6db6, 0x00db6db6, 0x00db6db6, 0x00db6db6)
and r6.zw, r6.xxxy, r8.xxxy
or r8.xy, r3.xyxx, r4.xzxx
and r9.xyzw, r4.xyzw, l(0x00249249, 0x00249249, 0x00249249, 0x00249249)
or r4.xy, r4.ywyy, r8.xyxx
and r4.xy, r4.xyxx, l(0x00249249, 0x00249249, 0, 0)
xor r4.xy, r4.xyxx, l(0x00249249, 0x00249249, 0, 0)
not r9.xyzw, r9.xyzw
and r10.xyzw, r7.xxyy, r9.xxzz
and r9.xyzw, r9.yyww, r10.xyzw
or r3.xy, r3.xyxx, r4.xyxx
iadd r3.xy, r3.xyxx, l(0xffdb6db7, 0xffdb6db7, 0, 0)
or r3.xy, r9.xwxx, r3.xyxx
ishl r4.xyzw, r9.xyzw, l(2, 1, 2, 1)
or r7.xy, r3.xyxx, r4.xzxx
not r6.xy, r6.xyxx
and r6.xy, r6.xyxx, r7.xyxx
or r6.xy, r6.zwzz, r6.xyxx
iadd r4.xy, r4.ywyy, r4.xzxx
or r3.xy, r3.xyxx, r4.xyxx
movc r4.xy, r0.xwxx, r6.xyxx, r3.xyxx
uge r3.xy, r5.ywyy, r5.xzxx
ushr r6.xyzw, r3.zzww, l(1, 2, 1, 2)
and r7.xy, r3.zwzz, r6.xzxx
and r7.xy, r7.xyxx, l(0x00492492, 0x00492492, 0, 0)
ishl r8.xy, r7.xyxx, l(1, 1, 0, 0)
ushr r9.xy, r7.xyxx, l(1, 1, 0, 0)
iadd r7.xy, r7.xyxx, r8.xyxx
iadd r7.xy, r7.xyxx, r9.xyxx
and r8.xy, r7.xyxx, r8.zwzz
or r8.zw, r3.zzzw, r6.xxxz
and r9.xyzw, r6.xyzw, l(0x00249249, 0x00249249, 0x00249249, 0x00249249)
or r6.xy, r6.ywyy, r8.zwzz
and r6.xy, r6.xyxx, l(0x00249249, 0x00249249, 0, 0)
xor r6.xy, r6.xyxx, l(0x00249249, 0x00249249, 0, 0)
not r9.xyzw, r9.xyzw
and r10.xyzw, r7.zzww, r9.xxzz
and r9.xyzw, r9.yyww, r10.xyzw
or r3.zw, r3.zzzw, r6.xxxy
iadd r3.zw, r3.zzzw, l(0, 0, 0xffdb6db7, 0xffdb6db7)
or r3.zw, r9.yyyw, r3.zzzw
ishl r6.xyzw, r9.xyzw, l(2, 1, 2, 1)
or r7.zw, r3.zzzw, r6.xxxz
not r7.xy, r7.xyxx
and r7.xy, r7.xyxx, r7.zwzz
or r7.xy, r8.xyxx, r7.xyxx
iadd r6.xy, r6.ywyy, r6.xzxx
or r3.zw, r3.zzzw, r6.xxxy
movc r4.zw, r3.xxxy, r7.xxxy, r3.zzzw
ushr r6.xyzw, r4.xyzw, l(1, 1, 1, 1)
and r6.xyzw, r4.xyzw, r6.xyzw
and r6.xyzw, r6.xyzw, l(1170, 1170, 1170, 1170)
ishl r7.xyzw, r6.xyzw, l(1, 1, 1, 1)
ushr r8.xyzw, r6.xyzw, l(1, 1, 1, 1)
iadd r6.xyzw, r6.xyzw, r7.xyzw
iadd r6.xyzw, r6.xyzw, r8.xyzw
not r7.xyzw, r6.xxxy
and r8.xyzw, r4.xxxy, r7.zzzw
iadd r9.xyzw, -r8.zzzw, l(2925, 2925, 2925, 2925)
and r7.xyzw, r7.xyzw, r9.xyzw
and r3.zw, r7.zzzw, l(0, 0, 7, 7)
and r9.xy, r8.zwzz, l(7, 7, 0, 0)
imul null, r9.xy, r1.ywyy, r9.xyxx
imad r3.zw, r1.xxxz, r3.zzzw, r9.xxxy
udiv r3.zw, null, r3.zzzw, l(0, 0, 5, 5)
ubfe r9.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r7.xyzw
ubfe r10.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r8.xyzw
imul null, r10.xyzw, r1.yyyw, r10.xyzw
imad r9.xyzw, r1.xxxz, r9.xyzw, r10.xyzw
udiv r9.xyzw, null, r9.xyzw, l(5, 5, 5, 5)
ishl r9.xyzw, r9.xyzw, l(8, 16, 24, 8)
or r3.zw, r3.zzzw, r9.xxxw
or r3.z, r9.y, r3.z
or r3.z, r9.z, r3.z
and r9.xyzw, r4.xyzw, r6.xyzw
ishl r10.xyzw, r9.xxxy, l(5, 10, 15, 5)
and r10.xyzw, r10.xyzw, l(256, 0x00010000, 0x01000000, 256)
bfi r6.xy, l(1, 1, 0, 0), l(0, 0, 0, 0), r9.xyxx, r10.xwxx
iadd r6.x, r10.y, r6.x
iadd r6.x, r10.z, r6.x
imad r3.z, r6.x, l(255), r3.z
not r10.xyzw, r4.xxxy
and r7.xy, r10.zwzz, l(7, 7, 0, 0)
and r11.xyzw, r4.xyzw, l(7, 7, 7, 7)
imul null, r8.xy, r1.ywyy, r11.xyxx
imad r7.xy, r1.xzxx, r7.xyxx, r8.xyxx
udiv r7.xy, null, r7.xyxx, l(7, 7, 0, 0)
ubfe r12.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r10.xyzw
ubfe r13.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r4.xxxy
imul null, r13.xyzw, r1.yyyw, r13.xyzw
imad r12.xyzw, r1.xxxz, r12.xyzw, r13.xyzw
udiv r12.xyzw, null, r12.xyzw, l(7, 7, 7, 7)
ishl r12.xyzw, r12.xyzw, l(8, 16, 24, 8)
or r7.xy, r7.xyxx, r12.xwxx
or r6.x, r12.y, r7.x
or r6.x, r12.z, r6.x
movc r12.x, r0.x, r3.z, r6.x
ubfe r7.xz, l(3, 0, 3, 0), l(6, 0, 9, 0), r7.wwww
ubfe r8.xy, l(3, 3, 0, 0), l(6, 9, 0, 0), r8.wwww
imul null, r8.xy, r1.wwww, r8.xyxx
imad r7.xz, r1.zzzz, r7.xxzx, r8.xxyx
udiv r7.xz, null, r7.xxzx, l(5, 0, 5, 0)
ishl r7.xz, r7.xxzx, l(16, 0, 24, 0)
or r3.z, r3.w, r7.x
or r3.z, r7.z, r3.z
ishl r8.xyzw, r9.yyww, l(10, 15, 10, 15)
and r8.xyzw, r8.xyzw, l(0x00010000, 0x01000000, 0x00010000, 0x01000000)
iadd r3.w, r6.y, r8.x
iadd r3.w, r8.y, r3.w
imad r3.z, r3.w, l(255), r3.z
ubfe r6.xy, l(3, 3, 0, 0), l(6, 9, 0, 0), r10.wwww
ubfe r10.xyzw, l(3, 3, 3, 3), l(6, 9, 6, 9), r4.yyww
imul null, r7.xz, r1.wwww, r10.xxyx
imad r6.xy, r1.zzzz, r6.xyxx, r7.xzxx
udiv r6.xy, null, r6.xyxx, l(7, 7, 0, 0)
ishl r6.xy, r6.xyxx, l(16, 24, 0, 0)
or r3.w, r6.x, r7.y
or r3.w, r6.y, r3.w
movc r12.y, r0.w, r3.z, r3.w
not r6.xyzw, r6.zzzw
and r7.xyzw, r4.zzzw, r6.zzzw
iadd r13.xyzw, -r7.zzzw, l(2925, 2925, 2925, 2925)
and r6.xyzw, r6.xyzw, r13.xyzw
and r3.zw, r6.zzzw, l(0, 0, 7, 7)
and r8.xy, r7.zwzz, l(7, 7, 0, 0)
imul null, r8.xy, r5.ywyy, r8.xyxx
imad r3.zw, r5.xxxz, r3.zzzw, r8.xxxy
udiv r3.zw, null, r3.zzzw, l(0, 0, 5, 5)
ubfe r13.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r6.xyzw
ubfe r14.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r7.xyzw
imul null, r14.xyzw, r5.yyyw, r14.xyzw
imad r13.xyzw, r5.xxxz, r13.xyzw, r14.xyzw
udiv r13.xyzw, null, r13.xyzw, l(5, 5, 5, 5)
ishl r13.xyzw, r13.xyzw, l(8, 16, 24, 8)
or r3.zw, r3.zzzw, r13.xxxw
or r3.z, r13.y, r3.z
or r3.z, r13.z, r3.z
ishl r13.xyzw, r9.zzzw, l(5, 10, 15, 5)
and r13.xyzw, r13.xyzw, l(256, 0x00010000, 0x01000000, 256)
bfi r6.xy, l(1, 1, 0, 0), l(0, 0, 0, 0), r9.zwzz, r13.xwxx
iadd r6.x, r13.y, r6.x
iadd r6.x, r13.z, r6.x
imad r3.z, r6.x, l(255), r3.z
not r9.xyzw, r4.zzzw
and r6.xz, r9.zzwz, l(7, 0, 7, 0)
imul null, r7.xy, r5.ywyy, r11.zwzz
imad r6.xz, r5.xxzx, r6.xxzx, r7.xxyx
udiv r6.xz, null, r6.xxzx, l(7, 0, 7, 0)
ubfe r11.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r9.xyzw
ubfe r13.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r4.zzzw
imul null, r13.xyzw, r5.yyyw, r13.xyzw
imad r11.xyzw, r5.xxxz, r11.xyzw, r13.xyzw
udiv r11.xyzw, null, r11.xyzw, l(7, 7, 7, 7)
ishl r11.xyzw, r11.xyzw, l(8, 16, 24, 8)
or r6.xz, r6.xxzx, r11.xxwx
or r6.x, r11.y, r6.x
or r6.x, r11.z, r6.x
movc r12.z, r3.x, r3.z, r6.x
ubfe r6.xw, l(3, 0, 0, 3), l(6, 0, 0, 9), r6.wwww
ubfe r7.xy, l(3, 3, 0, 0), l(6, 9, 0, 0), r7.wwww
imul null, r7.xy, r5.wwww, r7.xyxx
imad r6.xw, r5.zzzz, r6.xxxw, r7.xxxy
udiv r6.xw, null, r6.xxxw, l(5, 0, 0, 5)
ishl r6.xw, r6.xxxw, l(16, 0, 0, 24)
or r3.z, r3.w, r6.x
or r3.z, r6.w, r3.z
iadd r3.w, r8.z, r6.y
iadd r3.w, r8.w, r3.w
imad r3.z, r3.w, l(255), r3.z
ubfe r6.xy, l(3, 3, 0, 0), l(6, 9, 0, 0), r9.wwww
imul null, r7.xy, r5.wwww, r10.zwzz
imad r6.xy, r5.zzzz, r6.xyxx, r7.xyxx
udiv r6.xy, null, r6.xyxx, l(7, 7, 0, 0)
ishl r6.xy, r6.xyxx, l(16, 24, 0, 0)
or r3.w, r6.x, r6.z
or r3.w, r6.y, r3.w
movc r12.w, r3.y, r3.z, r3.w
store_uav_typed U0[0].xyzw, r0.yyyy, r12.xyzw
imad r3.z, vThreadID.y, l(4), l(1)
ilt r3.w, r3.z, CB0[0][2].z
if_nz r3.w
  iadd r0.y, r0.z, r0.y
  ushr r6.xyzw, r4.xyzw, l(12, 12, 12, 12)
  ushr r7.xyzw, r6.xyzw, l(1, 1, 1, 1)
  and r7.xyzw, r6.xyzw, r7.xyzw
  and r7.xyzw, r7.xyzw, l(1170, 1170, 1170, 1170)
  ishl r8.xyzw, r7.xyzw, l(1, 1, 1, 1)
  ushr r9.xyzw, r7.xyzw, l(1, 1, 1, 1)
  iadd r7.xyzw, r7.xyzw, r8.xyzw
  iadd r7.xyzw, r7.xyzw, r9.xyzw
  not r8.xyzw, r7.xyzw
  and r9.xyzw, r6.xyzw, r8.xyzw
  iadd r10.xyzw, -r9.xyzw, l(2925, 2925, 2925, 2925)
  and r8.xyzw, r8.xyzw, r10.xyzw
  and r10.xyzw, r8.xyzw, l(7, 7, 7, 7)
  and r11.xyzw, r9.xyzw, l(7, 7, 7, 7)
  imul null, r11.xy, r1.ywyy, r11.xyxx
  imad r10.xy, r1.xzxx, r10.xyxx, r11.xyxx
  udiv r10.xy, null, r10.xyxx, l(5, 5, 0, 0)
  ubfe r12.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r8.xxxy
  ubfe r13.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r9.xxxy
  imul null, r13.xyzw, r1.yyyw, r13.xyzw
  imad r12.xyzw, r1.xxxz, r12.xyzw, r13.xyzw
  udiv r12.xyzw, null, r12.xyzw, l(5, 5, 5, 5)
  ishl r12.xyzw, r12.xyzw, l(8, 16, 24, 8)
  or r10.xy, r10.xyxx, r12.xwxx
  or r3.w, r12.y, r10.x
  or r3.w, r12.z, r3.w
  and r7.xyzw, r6.xyzw, r7.xyzw
  ishl r12.xyzw, r7.xxxy, l(5, 10, 15, 5)
  and r12.xyzw, r12.xyzw, l(256, 0x00010000, 0x01000000, 256)
  bfi r11.xy, l(1, 1, 0, 0), l(0, 0, 0, 0), r7.xyxx, r12.xwxx
  iadd r7.x, r12.y, r11.x
  iadd r7.x, r12.z, r7.x
  imad r3.w, r7.x, l(255), r3.w
  not r6.xyzw, r6.xyzw
  and r12.xyzw, r6.xyzw, l(7, 7, 7, 7)
  ubfe r13.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.xxxx
  imul null, r13.xyzw, r1.yyyy, r13.xyzw
  imad r4.x, r1.x, r12.x, r13.x
  udiv r4.x, null, r4.x, l(7)
  ubfe r14.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r6.xxxy
  imad r13.xyz, r1.xxxx, r14.xyzx, r13.yzwy
  udiv r13.xyz, null, r13.xyzx, l(7, 7, 7, 0)
  ishl r13.xyz, r13.xyzx, l(8, 16, 24, 0)
  or r4.x, r4.x, r13.x
  or r4.x, r13.y, r4.x
  or r4.x, r13.z, r4.x
  movc r13.x, r0.x, r3.w, r4.x
  ubfe r15.xyzw, l(3, 3, 3, 3), l(6, 9, 3, 6), r8.yyzz
  ubfe r16.xyzw, l(3, 3, 3, 3), l(6, 9, 3, 6), r9.yyzz
  imul null, r8.xy, r1.wwww, r16.xyxx
  imad r8.xy, r1.zzzz, r15.xyxx, r8.xyxx
  udiv r8.xy, null, r8.xyxx, l(5, 5, 0, 0)
  ishl r8.xy, r8.xyxx, l(16, 24, 0, 0)
  or r3.w, r8.x, r10.y
  or r3.w, r8.y, r3.w
  ishl r17.xyzw, r7.yyzz, l(10, 15, 5, 10)
  and r17.xyzw, r17.xyzw, l(0x00010000, 0x01000000, 256, 0x00010000)
  iadd r4.x, r11.y, r17.x
  iadd r4.x, r17.y, r4.x
  imad r3.w, r4.x, l(255), r3.w
  ubfe r18.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.yyyy
  imul null, r18.xyzw, r1.wwww, r18.xyzw
  imad r4.x, r1.z, r12.y, r18.x
  imad r4.y, r1.z, r14.w, r18.y
  udiv r4.xy, null, r4.xyxx, l(7, 7, 0, 0)
  ishl r4.y, r4.y, l(8)
  or r4.x, r4.y, r4.x
  ubfe r14.xyzw, l(3, 3, 3, 3), l(6, 9, 3, 6), r6.yyzz
  imad r6.xy, r1.zzzz, r14.xyxx, r18.zwzz
  udiv r6.xy, null, r6.xyxx, l(7, 7, 0, 0)
  ishl r6.xy, r6.xyxx, l(16, 24, 0, 0)
  or r4.x, r4.x, r6.x
  or r4.x, r6.y, r4.x
  movc r13.y, r0.w, r3.w, r4.x
  imul null, r4.xy, r5.ywyy, r11.zwzz
  imad r4.xy, r5.xzxx, r10.zwzz, r4.xyxx
  udiv r4.xy, null, r4.xyxx, l(5, 5, 0, 0)
  imul null, r6.xy, r5.yyyy, r16.zwzz
  imad r6.xy, r5.xxxx, r15.zwzz, r6.xyxx
  udiv r6.xy, null, r6.xyxx, l(5, 5, 0, 0)
  ishl r6.xy, r6.xyxx, l(8, 16, 0, 0)
  or r3.w, r4.x, r6.x
  or r3.w, r6.y, r3.w
  ubfe r8.xyzw, l(3, 3, 3, 3), l(9, 3, 6, 9), r8.zwww
  ubfe r9.xyzw, l(3, 3, 3, 3), l(9, 3, 6, 9), r9.zwww
  imul null, r9.xyzw, r5.ywww, r9.xyzw
  imad r8.xyzw, r5.xzzz, r8.xyzw, r9.xyzw
  udiv r8.xyzw, null, r8.xyzw, l(5, 5, 5, 5)
  ishl r8.xyzw, r8.xyzw, l(24, 8, 16, 24)
  or r3.w, r3.w, r8.x
  bfi r4.x, l(1), l(0), r7.z, r17.z
  iadd r4.x, r17.w, r4.x
  ishl r9.xyzw, r7.zwww, l(15, 5, 10, 15)
  and r9.xyzw, r9.xyzw, l(0x01000000, 256, 0x00010000, 0x01000000)
  iadd r4.x, r4.x, r9.x
  imad r3.w, r4.x, l(255), r3.w
  ubfe r10.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.zzzz
  imul null, r10.xyzw, r5.yyyy, r10.xyzw
  imad r4.x, r5.x, r12.z, r10.x
  udiv r4.x, null, r4.x, l(7)
  imad r6.xy, r5.xxxx, r14.zwzz, r10.yzyy
  udiv r6.xy, null, r6.xyxx, l(7, 7, 0, 0)
  ishl r6.xy, r6.xyxx, l(8, 16, 0, 0)
  or r4.x, r4.x, r6.x
  or r4.x, r6.y, r4.x
  ubfe r6.xyzw, l(3, 3, 3, 3), l(9, 3, 6, 9), r6.zwww
  imad r4.z, r5.x, r6.x, r10.w
  udiv r4.z, null, r4.z, l(7)
  ishl r4.z, r4.z, l(24)
  or r4.x, r4.z, r4.x
  movc r13.z, r3.x, r3.w, r4.x
  or r3.w, r4.y, r8.y
  or r3.w, r8.z, r3.w
  or r3.w, r8.w, r3.w
  bfi r4.x, l(1), l(0), r7.w, r9.y
  iadd r4.x, r9.z, r4.x
  iadd r4.x, r9.w, r4.x
  imad r3.w, r4.x, l(255), r3.w
  ubfe r4.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.wwww
  imul null, r4.xyzw, r4.xyzw, r5.wwww
  imad r4.x, r5.z, r12.w, r4.x
  imad r4.yzw, r5.zzzz, r6.yyzw, r4.yyzw
  udiv r4.xyzw, null, r4.xyzw, l(7, 7, 7, 7)
  ishl r4.yzw, r4.yyzw, l(0, 8, 16, 24)
  or r4.x, r4.y, r4.x
  or r4.x, r4.z, r4.x
  or r4.x, r4.w, r4.x
  movc r13.w, r3.y, r3.w, r4.x
  store_uav_typed U0[0].xyzw, r0.yyyy, r13.xyzw
  iadd r3.z, r3.z, l(1)
  ilt r3.w, r3.z, CB0[0][2].z
  if_nz r3.w
    iadd r0.y, r0.z, r0.y
    ushr r2.xyzw, r2.xyzw, l(8, 8, 8, 8)
    ushr r4.xyzw, r2.xxyy, l(1, 2, 1, 2)
    and r6.xy, r2.xyxx, r4.xzxx
    and r6.xy, r6.xyxx, l(0x00492492, 0x00492492, 0, 0)
    ishl r6.zw, r6.xxxy, l(0, 0, 1, 1)
    ushr r7.xy, r6.xyxx, l(1, 1, 0, 0)
    iadd r6.xy, r6.xyxx, r6.zwzz
    iadd r6.xy, r6.xyxx, r7.xyxx
    and r7.xyzw, r2.xyzw, l(0x00249249, 0x00249249, 0x00249249, 0x00249249)
    iadd r8.xyzw, r7.xyzw, l(0x00db6db6, 0x00db6db6, 0x00db6db6, 0x00db6db6)
    and r6.zw, r6.xxxy, r8.xxxy
    or r8.xy, r2.xyxx, r4.xzxx
    and r9.xyzw, r4.xyzw, l(0x00249249, 0x00249249, 0x00249249, 0x00249249)
    or r4.xy, r4.ywyy, r8.xyxx
    and r4.xy, r4.xyxx, l(0x00249249, 0x00249249, 0, 0)
    xor r4.xy, r4.xyxx, l(0x00249249, 0x00249249, 0, 0)
    not r9.xyzw, r9.xyzw
    and r10.xyzw, r7.xxyy, r9.xxzz
    and r9.xyzw, r9.yyww, r10.xyzw
    or r2.xy, r2.xyxx, r4.xyxx
    iadd r2.xy, r2.xyxx, l(0xffdb6db7, 0xffdb6db7, 0, 0)
    or r2.xy, r9.xwxx, r2.xyxx
    ishl r4.xyzw, r9.xyzw, l(2, 1, 2, 1)
    or r7.xy, r2.xyxx, r4.xzxx
    not r6.xy, r6.xyxx
    and r6.xy, r6.xyxx, r7.xyxx
    or r6.xy, r6.zwzz, r6.xyxx
    iadd r4.xy, r4.ywyy, r4.xzxx
    or r2.xy, r2.xyxx, r4.xyxx
    movc r4.xy, r0.xwxx, r6.xyxx, r2.xyxx
    ushr r6.xyzw, r2.zzww, l(1, 2, 1, 2)
    and r2.xy, r2.zwzz, r6.xzxx
    and r2.xy, r2.xyxx, l(0x00492492, 0x00492492, 0, 0)
    ishl r7.xy, r2.xyxx, l(1, 1, 0, 0)
    ushr r8.xy, r2.xyxx, l(1, 1, 0, 0)
    iadd r2.xy, r2.xyxx, r7.xyxx
    iadd r2.xy, r2.xyxx, r8.xyxx
    and r7.xy, r2.xyxx, r8.zwzz
    or r8.xy, r2.zwzz, r6.xzxx
    and r9.xyzw, r6.xyzw, l(0x00249249, 0x00249249, 0x00249249, 0x00249249)
    or r6.xy, r6.ywyy, r8.xyxx
    and r6.xy, r6.xyxx, l(0x00249249, 0x00249249, 0, 0)
    xor r6.xy, r6.xyxx, l(0x00249249, 0x00249249, 0, 0)
    not r8.xyzw, r9.xyzw
    and r9.xyzw, r7.zzww, r8.xxzz
    and r8.xyzw, r8.yyww, r9.xyzw
    or r2.zw, r2.zzzw, r6.xxxy
    iadd r2.zw, r2.zzzw, l(0, 0, 0xffdb6db7, 0xffdb6db7)
    or r2.zw, r8.yyyw, r2.zzzw
    ishl r6.xyzw, r8.xyzw, l(2, 1, 2, 1)
    or r7.zw, r2.zzzw, r6.xxxz
    not r2.xy, r2.xyxx
    and r2.xy, r2.xyxx, r7.zwzz
    or r2.xy, r7.xyxx, r2.xyxx
    iadd r6.xy, r6.ywyy, r6.xzxx
    or r2.zw, r2.zzzw, r6.xxxy
    movc r4.zw, r3.xxxy, r2.xxxy, r2.zzzw
    ushr r2.xyzw, r4.xyzw, l(1, 1, 1, 1)
    and r2.xyzw, r4.xyzw, r2.xyzw
    and r2.xyzw, r2.xyzw, l(1170, 1170, 1170, 1170)
    ishl r6.xyzw, r2.xyzw, l(1, 1, 1, 1)
    ushr r7.xyzw, r2.xyzw, l(1, 1, 1, 1)
    iadd r2.xyzw, r2.xyzw, r6.xyzw
    iadd r2.xyzw, r2.xyzw, r7.xyzw
    not r6.xyzw, r2.xxxy
    and r7.xyzw, r4.xxxy, r6.zzzw
    iadd r8.xyzw, -r7.zzzw, l(2925, 2925, 2925, 2925)
    and r6.xyzw, r6.xyzw, r8.xyzw
    and r8.xy, r6.zwzz, l(7, 7, 0, 0)
    and r8.zw, r7.zzzw, l(0, 0, 7, 7)
    imul null, r8.zw, r1.yyyw, r8.zzzw
    imad r8.xy, r1.xzxx, r8.xyxx, r8.zwzz
    udiv r8.xy, null, r8.xyxx, l(5, 5, 0, 0)
    ubfe r9.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r6.xyzw
    ubfe r10.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r7.xyzw
    imul null, r10.xyzw, r1.yyyw, r10.xyzw
    imad r9.xyzw, r1.xxxz, r9.xyzw, r10.xyzw
    udiv r9.xyzw, null, r9.xyzw, l(5, 5, 5, 5)
    ishl r9.xyzw, r9.xyzw, l(8, 16, 24, 8)
    or r6.xy, r8.xyxx, r9.xwxx
    or r3.w, r9.y, r6.x
    or r3.w, r9.z, r3.w
    and r8.xyzw, r2.xyzw, r4.xyzw
    ishl r9.xyzw, r8.xxxy, l(5, 10, 15, 5)
    and r9.xyzw, r9.xyzw, l(256, 0x00010000, 0x01000000, 256)
    bfi r2.xy, l(1, 1, 0, 0), l(0, 0, 0, 0), r8.xyxx, r9.xwxx
    iadd r2.x, r9.y, r2.x
    iadd r2.x, r9.z, r2.x
    imad r2.x, r2.x, l(255), r3.w
    not r9.xyzw, r4.xxxy
    and r6.xz, r9.zzwz, l(7, 0, 7, 0)
    and r10.xyzw, r4.xyzw, l(7, 7, 7, 7)
    imul null, r7.xy, r1.ywyy, r10.xyxx
    imad r6.xz, r1.xxzx, r6.xxzx, r7.xxyx
    udiv r6.xz, null, r6.xxzx, l(7, 0, 7, 0)
    ubfe r11.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r9.xyzw
    ubfe r12.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r4.xxxy
    imul null, r12.xyzw, r1.yyyw, r12.xyzw
    imad r11.xyzw, r1.xxxz, r11.xyzw, r12.xyzw
    udiv r11.xyzw, null, r11.xyzw, l(7, 7, 7, 7)
    ishl r11.xyzw, r11.xyzw, l(8, 16, 24, 8)
    or r6.xz, r6.xxzx, r11.xxwx
    or r3.w, r11.y, r6.x
    or r3.w, r11.z, r3.w
    movc r11.x, r0.x, r2.x, r3.w
    ubfe r6.xw, l(3, 0, 0, 3), l(6, 0, 0, 9), r6.wwww
    ubfe r7.xy, l(3, 3, 0, 0), l(6, 9, 0, 0), r7.wwww
    imul null, r7.xy, r1.wwww, r7.xyxx
    imad r6.xw, r1.zzzz, r6.xxxw, r7.xxxy
    udiv r6.xw, null, r6.xxxw, l(5, 0, 0, 5)
    ishl r6.xw, r6.xxxw, l(16, 0, 0, 24)
    or r2.x, r6.x, r6.y
    or r2.x, r6.w, r2.x
    ishl r7.xyzw, r8.yyww, l(10, 15, 10, 15)
    and r7.xyzw, r7.xyzw, l(0x00010000, 0x01000000, 0x00010000, 0x01000000)
    iadd r2.y, r2.y, r7.x
    iadd r2.y, r7.y, r2.y
    imad r2.x, r2.y, l(255), r2.x
    ubfe r6.xy, l(3, 3, 0, 0), l(6, 9, 0, 0), r9.wwww
    ubfe r9.xyzw, l(3, 3, 3, 3), l(6, 9, 6, 9), r4.yyww
    imul null, r7.xy, r1.wwww, r9.xyxx
    imad r6.xy, r1.zzzz, r6.xyxx, r7.xyxx
    udiv r6.xy, null, r6.xyxx, l(7, 7, 0, 0)
    ishl r6.xy, r6.xyxx, l(16, 24, 0, 0)
    or r2.y, r6.x, r6.z
    or r2.y, r6.y, r2.y
    movc r11.y, r0.w, r2.x, r2.y
    not r2.xyzw, r2.zzzw
    and r6.xyzw, r2.zzzw, r4.zzzw
    iadd r12.xyzw, -r6.zzzw, l(2925, 2925, 2925, 2925)
    and r2.xyzw, r2.xyzw, r12.xyzw
    and r7.xy, r2.zwzz, l(7, 7, 0, 0)
    and r8.xy, r6.zwzz, l(7, 7, 0, 0)
    imul null, r8.xy, r5.ywyy, r8.xyxx
    imad r7.xy, r5.xzxx, r7.xyxx, r8.xyxx
    udiv r7.xy, null, r7.xyxx, l(5, 5, 0, 0)
    ubfe r12.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r2.xyzw
    ubfe r13.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r6.xyzw
    imul null, r13.xyzw, r5.yyyw, r13.xyzw
    imad r12.xyzw, r5.xxxz, r12.xyzw, r13.xyzw
    udiv r12.xyzw, null, r12.xyzw, l(5, 5, 5, 5)
    ishl r12.xyzw, r12.xyzw, l(8, 16, 24, 8)
    or r2.xy, r7.xyxx, r12.xwxx
    or r2.x, r12.y, r2.x
    or r2.x, r12.z, r2.x
    ishl r12.xyzw, r8.zzzw, l(5, 10, 15, 5)
    and r12.xyzw, r12.xyzw, l(256, 0x00010000, 0x01000000, 256)
    bfi r6.xy, l(1, 1, 0, 0), l(0, 0, 0, 0), r8.zwzz, r12.xwxx
    iadd r2.z, r12.y, r6.x
    iadd r2.z, r12.z, r2.z
    imad r2.x, r2.z, l(255), r2.x
    not r8.xyzw, r4.zzzw
    and r6.xz, r8.zzwz, l(7, 0, 7, 0)
    imul null, r7.xy, r5.ywyy, r10.zwzz
    imad r6.xz, r5.xxzx, r6.xxzx, r7.xxyx
    udiv r6.xz, null, r6.xxzx, l(7, 0, 7, 0)
    ubfe r10.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r8.xyzw
    ubfe r12.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r4.zzzw
    imul null, r12.xyzw, r5.yyyw, r12.xyzw
    imad r10.xyzw, r5.xxxz, r10.xyzw, r12.xyzw
    udiv r10.xyzw, null, r10.xyzw, l(7, 7, 7, 7)
    ishl r10.xyzw, r10.xyzw, l(8, 16, 24, 8)
    or r6.xz, r6.xxzx, r10.xxwx
    or r2.z, r10.y, r6.x
    or r2.z, r10.z, r2.z
    movc r11.z, r3.x, r2.x, r2.z
    ubfe r2.xz, l(3, 0, 3, 0), l(6, 0, 9, 0), r2.wwww
    ubfe r6.xw, l(3, 0, 0, 3), l(6, 0, 0, 9), r6.wwww
    imul null, r6.xw, r5.wwww, r6.xxxw
    imad r2.xz, r5.zzzz, r2.xxzx, r6.xxwx
    udiv r2.xz, null, r2.xxzx, l(5, 0, 5, 0)
    ishl r2.xz, r2.xxzx, l(16, 0, 24, 0)
    or r2.x, r2.x, r2.y
    or r2.x, r2.z, r2.x
    iadd r2.y, r7.z, r6.y
    iadd r2.y, r7.w, r2.y
    imad r2.x, r2.y, l(255), r2.x
    ubfe r2.yz, l(0, 3, 3, 0), l(0, 6, 9, 0), r8.wwww
    imul null, r6.xy, r5.wwww, r9.zwzz
    imad r2.yz, r5.zzzz, r2.yyzy, r6.xxyx
    udiv r2.yz, null, r2.yyzy, l(0, 7, 7, 0)
    ishl r2.yz, r2.yyzy, l(0, 16, 24, 0)
    or r2.y, r2.y, r6.z
    or r2.y, r2.z, r2.y
    movc r11.w, r3.y, r2.x, r2.y
    store_uav_typed U0[0].xyzw, r0.yyyy, r11.xyzw
    or r2.x, r3.z, l(3)
    ilt r2.x, r2.x, CB0[0][2].z
    if_nz r2.x
      iadd r0.y, r0.z, r0.y
      ushr r2.xyzw, r4.xyzw, l(12, 12, 12, 12)
      ushr r6.xyzw, r2.xyzw, l(1, 1, 1, 1)
      and r6.xyzw, r2.xyzw, r6.xyzw
      and r6.xyzw, r6.xyzw, l(1170, 1170, 1170, 1170)
      ishl r7.xyzw, r6.xyzw, l(1, 1, 1, 1)
      ushr r8.xyzw, r6.xyzw, l(1, 1, 1, 1)
      iadd r6.xyzw, r6.xyzw, r7.xyzw
      iadd r6.xyzw, r6.xyzw, r8.xyzw
      not r7.xyzw, r6.xyzw
      and r8.xyzw, r2.xyzw, r7.xyzw
      iadd r9.xyzw, -r8.xyzw, l(2925, 2925, 2925, 2925)
      and r7.xyzw, r7.xyzw, r9.xyzw
      and r9.xyzw, r7.xyzw, l(7, 7, 7, 7)
      and r10.xyzw, r8.xyzw, l(7, 7, 7, 7)
      imul null, r3.zw, r1.yyyw, r10.xxxy
      imad r3.zw, r1.xxxz, r9.xxxy, r3.zzzw
      udiv r3.zw, null, r3.zzzw, l(0, 0, 5, 5)
      ubfe r11.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r7.xxxy
      ubfe r12.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r8.xxxy
      imul null, r12.xyzw, r1.yyyw, r12.xyzw
      imad r11.xyzw, r1.xxxz, r11.xyzw, r12.xyzw
      udiv r11.xyzw, null, r11.xyzw, l(5, 5, 5, 5)
      ishl r11.xyzw, r11.xyzw, l(8, 16, 24, 8)
      or r3.zw, r3.zzzw, r11.xxxw
      or r0.z, r11.y, r3.z
      or r0.z, r11.z, r0.z
      and r6.xyzw, r2.xyzw, r6.xyzw
      ishl r11.xyzw, r6.xxxy, l(5, 10, 15, 5)
      and r11.xyzw, r11.xyzw, l(256, 0x00010000, 0x01000000, 256)
      bfi r9.xy, l(1, 1, 0, 0), l(0, 0, 0, 0), r6.xyxx, r11.xwxx
      iadd r3.z, r11.y, r9.x
      iadd r3.z, r11.z, r3.z
      imad r0.z, r3.z, l(255), r0.z
      not r2.xyzw, r2.xyzw
      and r11.xyzw, r2.xyzw, l(7, 7, 7, 7)
      ubfe r12.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.xxxx
      imul null, r12.xyzw, r1.yyyy, r12.xyzw
      imad r1.y, r1.x, r11.x, r12.x
      udiv r1.y, null, r1.y, l(7)
      ubfe r13.xyzw, l(3, 3, 3, 3), l(3, 6, 9, 3), r2.xxxy
      imad r12.xyz, r1.xxxx, r13.xyzx, r12.yzwy
      udiv r12.xyz, null, r12.xyzx, l(7, 7, 7, 0)
      ishl r12.xyz, r12.xyzx, l(8, 16, 24, 0)
      or r1.x, r1.y, r12.x
      or r1.x, r12.y, r1.x
      or r1.x, r12.z, r1.x
      movc r12.x, r0.x, r0.z, r1.x
      ubfe r14.xyzw, l(3, 3, 3, 3), l(6, 9, 3, 6), r7.yyzz
      ubfe r15.xyzw, l(3, 3, 3, 3), l(6, 9, 3, 6), r8.yyzz
      imul null, r0.xz, r1.wwww, r15.xxyx
      imad r0.xz, r1.zzzz, r14.xxyx, r0.xxzx
      udiv r0.xz, null, r0.xxzx, l(5, 0, 5, 0)
      ishl r0.xz, r0.xxzx, l(16, 0, 24, 0)
      or r0.x, r0.x, r3.w
      or r0.x, r0.z, r0.x
      ishl r16.xyzw, r6.yyzz, l(10, 15, 5, 10)
      and r16.xyzw, r16.xyzw, l(0x00010000, 0x01000000, 256, 0x00010000)
      iadd r0.z, r9.y, r16.x
      iadd r0.z, r16.y, r0.z
      imad r0.x, r0.z, l(255), r0.x
      ubfe r17.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.yyyy
      imul null, r17.xyzw, r1.wwww, r17.xyzw
      imad r0.z, r1.z, r11.y, r17.x
      udiv r0.z, null, r0.z, l(7)
      imad r1.x, r1.z, r13.w, r17.y
      udiv r1.x, null, r1.x, l(7)
      ishl r1.x, r1.x, l(8)
      or r0.z, r0.z, r1.x
      ubfe r13.xyzw, l(3, 3, 3, 3), l(6, 9, 3, 6), r2.yyzz
      imad r1.xy, r1.zzzz, r13.xyxx, r17.zwzz
      udiv r1.xy, null, r1.xyxx, l(7, 7, 0, 0)
      ishl r1.xy, r1.xyxx, l(16, 24, 0, 0)
      or r0.z, r0.z, r1.x
      or r0.z, r1.y, r0.z
      movc r12.y, r0.w, r0.x, r0.z
      imul null, r0.xz, r5.yywy, r10.zzwz
      imad r0.xz, r5.xxzx, r9.zzwz, r0.xxzx
      udiv r0.xz, null, r0.xxzx, l(5, 0, 5, 0)
      imul null, r1.xy, r5.yyyy, r15.zwzz
      imad r1.xy, r5.xxxx, r14.zwzz, r1.xyxx
      udiv r1.xy, null, r1.xyxx, l(5, 5, 0, 0)
      ishl r1.xy, r1.xyxx, l(8, 16, 0, 0)
      or r0.x, r0.x, r1.x
      or r0.x, r1.y, r0.x
      ubfe r1.xyzw, l(3, 3, 3, 3), l(9, 3, 6, 9), r7.zwww
      ubfe r7.xyzw, l(3, 3, 3, 3), l(9, 3, 6, 9), r8.zwww
      imul null, r7.xyzw, r5.ywww, r7.xyzw
      imad r1.xyzw, r5.xzzz, r1.xyzw, r7.xyzw
      udiv r1.xyzw, null, r1.xyzw, l(5, 5, 5, 5)
      ishl r1.xyzw, r1.xyzw, l(24, 8, 16, 24)
      or r0.x, r0.x, r1.x
      bfi r0.w, l(1), l(0), r6.z, r16.z
      iadd r0.w, r16.w, r0.w
      ishl r7.xyzw, r6.zwww, l(15, 5, 10, 15)
      and r7.xyzw, r7.xyzw, l(0x01000000, 256, 0x00010000, 0x01000000)
      iadd r0.w, r0.w, r7.x
      imad r0.x, r0.w, l(255), r0.x
      ubfe r8.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.zzzz
      imul null, r8.xyzw, r5.yyyy, r8.xyzw
      imad r0.w, r5.x, r11.z, r8.x
      udiv r0.w, null, r0.w, l(7)
      imad r2.xy, r5.xxxx, r13.zwzz, r8.yzyy
      udiv r2.xy, null, r2.xyxx, l(7, 7, 0, 0)
      ishl r2.xy, r2.xyxx, l(8, 16, 0, 0)
      or r0.w, r0.w, r2.x
      or r0.w, r2.y, r0.w
      ubfe r2.xyzw, l(3, 3, 3, 3), l(9, 3, 6, 9), r2.zwww
      imad r1.x, r5.x, r2.x, r8.w
      udiv r1.x, null, r1.x, l(7)
      ishl r1.x, r1.x, l(24)
      or r0.w, r0.w, r1.x
      movc r12.z, r3.x, r0.x, r0.w
      or r0.x, r0.z, r1.y
      or r0.x, r1.z, r0.x
      or r0.x, r1.w, r0.x
      bfi r0.z, l(1), l(0), r6.w, r7.y
      iadd r0.z, r7.z, r0.z
      iadd r0.z, r7.w, r0.z
      imad r0.x, r0.z, l(255), r0.x
      ubfe r1.xyzw, l(3, 3, 3, 3), l(12, 15, 18, 21), r4.wwww
      imul null, r1.xyzw, r1.xyzw, r5.wwww
      imad r0.z, r5.z, r11.w, r1.x
      udiv r0.z, null, r0.z, l(7)
      imad r1.xyz, r5.zzzz, r2.yzwy, r1.yzwy
      udiv r1.xyz, null, r1.xyzx, l(7, 7, 7, 0)
      ishl r1.xyz, r1.xyzx, l(8, 16, 24, 0)
      or r0.z, r0.z, r1.x
      or r0.z, r1.y, r0.z
      or r0.z, r1.z, r0.z
      movc r12.w, r3.y, r0.x, r0.z
      store_uav_typed U0[0].xyzw, r0.yyyy, r12.xyzw
    endif 
  endif 
endif 
ret 
// Approximately 771 instruction slots used
