//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sat May 22 09:37:56 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_texture2d (float,float,float,float) t0
dcl_uav_typed_texture2d (float,float,float,float) u0
dcl_input vThreadID.xy
dcl_temps 4
dcl_thread_group 8, 8, 1
mov r0.zw, l(0,0,0,0)
mov r1.xyz, l(1.000000,0,-1,0)
loop
  ilt r1.w, l(1), r1.z
  breakc_nz r1.w
  mov r2.x, r1.z
  mov r2.zw, r1.xxxy
  mov r1.w, l(-1)
  loop
    ilt r3.x, l(1), r1.w
    breakc_nz r3.x
    mov r2.y, r1.w
    iadd r0.xy, r2.xyxx, vThreadID.xyxx
    ult r3.xy, r0.xyxx, cb0[0].xyxx
    and r2.y, r3.y, r3.x
    ld_indexable(texture2d)(float,float,float,float) r0.xy, r0.xyzw, t0.xyzw
    min r0.x, r2.z, r0.x
    movc r2.z, r2.y, r0.x, r2.z
    max r0.x, r2.w, r0.y
    movc r2.w, r2.y, r0.x, r2.w
    iadd r1.w, r1.w, l(1)
  endloop
  mov r1.xy, r2.zwzz
  iadd r1.z, r1.z, l(1)
endloop
mov r0.xyzw, r1.xyxx
add r0.xyzw, r0.xyzw, l(-0.0000610351563, 0.0000610351563, -0.0000610351563, -0.0000610351563)
store_uav_typed u0.xyzw, vThreadID.xyyy, r0.xyzw
ret
// Approximately 0 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v1.3.16 on Sat May 22 09:37:56 2021
// Texture2D<float4> t0 : register(t0);
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0[1];
// }
//
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Texture2D<float4> StereoParams : register(t125);
//
//
// void main)
// {
// // Needs manual fix for instruction:
// // unknown dcl_: dcl_uav_typed_texture2d (float,float,float,float) u0
//   float4 r0,r1,r2,r3;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
// // Needs manual fix for instruction:
// // unknown dcl_: dcl_thread_group 8, 8, 1
//   r0.zw = float2(0,0);
//   r1.xyz = float3(1,0,-1);
//   while (true) {
//     r1.w = cmp(1 < (int)r1.z);
//     if (r1.w != 0) break;
//     r2.x = r1.z;
//     r2.zw = r1.xy;
//     r1.w = -1;
//     while (true) {
//       r3.x = cmp(1 < (int)r1.w);
//       if (r3.x != 0) break;
//       r2.y = r1.w;
//       r0.xy = (int2)r2.xy + (int2)vThreadID.xy;
//       r3.xy = cmp((uint2)r0.xy < asuint(cb0[0].xy));
//       r2.y = r3.y ? r3.x : 0;
//       r0.xy = t0.Load(r0.xyz).xy;
//       r0.x = min(r0.x, r2.z);
//       r2.z = r2.y ? r0.x : r2.z;
//       r0.x = max(r0.y, r2.w);
//       r2.w = r2.y ? r0.x : r2.w;
//       r1.w = (int)r1.w + 1;
//     }
//     r1.xy = r2.zw;
//     r1.z = (int)r1.z + 1;
//   }
//   r0.xyzw = r1.xyxx;
//   r0.xyzw = float4(-6.10351563e-005,6.10351563e-005,-6.10351563e-005,-6.10351563e-005) + r0.xyzw;
// // No code for instruction (needs manual fix):
// store_uav_typed u0.xyzw, vThreadID.xyyy, r0.xyzw
//   return;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// F:\SteamLibrary\steamapps\common\Days Gone\BendGame\Binaries\Win64\ShaderFixes\feddd29bb7f4e407-cs_replace.txt(18,10): error X3000: syntax error: unexpected token ')'
/////////////////////////////////////////////////////////////////////////////
