//DOF?-- disabled
// ---- Created with 3Dmigoto v1.3.2 on Sat Feb 20 21:06:37 2021
Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb1 : register(b1)
{
  float4 cb1[41];
}

cbuffer cb0 : register(b0)
{
  float4 cb0[7];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main(
  float2 v0 : TEXCOORD0,
  float4 v1 : SV_Position0,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1,r2,r3;
  uint4 bitmask, uiDest;
  float4 fDest;

discard;
  r0.xy = t1.Sample(s1_s, v0.xy).zw;
  r0.xy = r0.xy * float2(2,2) + float2(-1,-1);
  r1.x = cb1[40].x * r0.x;
  r1.y = cb1[40].x * -r0.y;
  r0.xyz = t0.Sample(s0_s, v0.xy).xyz;
  r0.xyz = cb0[6].zzz * r0.xyz;
  r2.xyz = r0.xyz;
  r0.w = 1;
  r1.z = 0;
  while (true) {
    r1.w = cmp(r1.z >= 16);
    if (r1.w != 0) break;
    r3.xy = r1.xy * r1.zz;
    r3.xy = r3.xy * float2(0.0625,0.0625) + v0.xy;
    r3.zw = t1.SampleLevel(s1_s, r3.xy, 0, int2(0, 0)).zw;
    r3.zw = r3.zw * float2(2,2) + float2(-1,-1);
    r1.w = dot(r3.zw, r3.zw);
    r1.w = cmp(0.00250000018 < r1.w);
    if (r1.w != 0) {
      r3.xyz = t0.SampleLevel(s0_s, r3.xy, 0, int2(0, 0)).xyz;
      r2.xyz = r3.xyz * cb0[6].zzz + r2.xyz;
      r0.w = 1 + r0.w;
    }
    r1.z = 1 + r1.z;
  }
  r0.xyz = r2.xyz / r0.www;
  o0.xyz = cb0[6].yyy * r0.xyz;
  o0.w = 1;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.2 on Sat Feb 20 21:06:37 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xy          0     NONE   float   xy
// SV_Position              0   xyzw        1      POS   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[7], immediateIndexed
dcl_constantbuffer cb1[41], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v0.xy
dcl_output o0.xyzw
dcl_temps 4
sample_indexable(texture2d)(float,float,float,float) r0.xy, v0.xyxx, t1.zwxy, s1
mad r0.xy, r0.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r1.x, r0.x, cb1[40].x
mul r1.y, -r0.y, cb1[40].x
sample_indexable(texture2d)(float,float,float,float) r0.xyz, v0.xyxx, t0.xyzw, s0
mul r0.xyz, r0.xyzx, cb0[6].zzzz
mov r2.xyz, r0.xyzx
mov r0.w, l(1.000000)
mov r1.z, l(0)
loop
  ge r1.w, r1.z, l(16.000000)
  breakc_nz r1.w
  mul r3.xy, r1.zzzz, r1.xyxx
  mad r3.xy, r3.xyxx, l(0.062500, 0.062500, 0.000000, 0.000000), v0.xyxx
  sample_l_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r3.zw, r3.xyxx, t1.xyzw, s1, l(0.000000)
  mad r3.zw, r3.zzzw, l(0.000000, 0.000000, 2.000000, 2.000000), l(0.000000, 0.000000, -1.000000, -1.000000)
  dp2 r1.w, r3.zwzz, r3.zwzz
  lt r1.w, l(0.00250000018), r1.w
  if_nz r1.w
    sample_l_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r3.xyz, r3.xyxx, t0.xyzw, s0, l(0.000000)
    mad r2.xyz, r3.xyzx, cb0[6].zzzz, r2.xyzx
    add r0.w, r0.w, l(1.000000)
  endif
  add r1.z, r1.z, l(1.000000)
endloop
div r0.xyz, r2.xyzx, r0.wwww
mul o0.xyz, r0.xyzx, cb0[6].yyyy
mov o0.w, l(1.000000)
ret
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
