// ---- Created with 3Dmigoto v1.3.7 on Wed Nov 06 10:32:47 2019
Texture2D<float4> t5 : register(t5);

Texture2D<float4> t4 : register(t4);

Texture2D<float4> t3 : register(t3);

Texture2D<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s5_s : register(s5);

SamplerState s4_s : register(s4);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

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




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


void main(
  float4 v0 : SV_Position0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD1,
  nointerpolation uint4 v3 : TEXCOORD2,
  float4 v4 : TEXCOORD3,
  out float4 o0 : SV_Target0)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;
    float4 params = IniParams.Load(0);
  if (params.x == 0)
  {
    o0 = 0;                                   
    return;
  } else {

  switch (v3.x) {
    case 0 :    r0.xyzw = t0.Sample(s0_s, v1.xy, int2(0, 0)).xyzw;
    break;
    case 1 :    r0.xyzw = t1.Sample(s1_s, v1.xy, int2(0, 0)).xyzw;
    break;
    case 2 :    r0.xyzw = t2.Sample(s2_s, v1.xy, int2(0, 0)).xyzw;
    break;
    case 3 :    r0.xyzw = t3.Sample(s3_s, v1.xy, int2(0, 0)).xyzw;
    break;
    case 4 :    r0.xyzw = t4.Sample(s4_s, v1.xy, int2(0, 0)).xyzw;
    break;
    case 5 :    r0.xyzw = t5.Sample(s5_s, v1.xy, int2(0, 0)).xyzw;
    break;
    default :
    r0.xyzw = float4(1,0,1,1);
    break;
  }
  r1.x = r0.w * v2.w + -cb0[19].x;
  r1.x = -0.00300000003 + r1.x;
  r1.x = cmp(r1.x < 0);
  if (r1.x != 0) discard;
  r1.x = v3.x;
  r1.x = cb0[r1.x+6].x + r0.w;
  r1.x = min(1, r1.x);
  r1.xyz = r1.xxx * r0.xyz;
  r0.xyz = v2.xyz * r1.xyz;
  o0.xyzw = v2.wwww * r0.xyzw;
  return;
  }
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.7 on Wed Nov 06 10:32:47 2019
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   x           3     NONE    uint   x
// TEXCOORD                 3   xyzw        4     NONE   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[20], dynamicIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.xyzw
dcl_input_ps constant v3.x
dcl_output o0.xyzw
dcl_temps 2
switch v3.x
  case l(0)
  sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t0.xyzw, s0
  break
  case l(1)
  sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t1.xyzw, s1
  break
  case l(2)
  sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t2.xyzw, s2
  break
  case l(3)
  sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t3.xyzw, s3
  break
  case l(4)
  sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t4.xyzw, s4
  break
  case l(5)
  sample_aoffimmi_indexable(0,0,0)(texture2d)(float,float,float,float) r0.xyzw, v1.xyxx, t5.xyzw, s5
  break
  default
  mov r0.xyzw, l(1.000000,0,1.000000,1.000000)
  break
endswitch
mad r1.x, r0.w, v2.w, -cb0[19].x
add r1.x, r1.x, l(-0.003000)
lt r1.x, r1.x, l(0.000000)
discard_nz r1.x
mov r1.x, v3.x
add r1.x, r0.w, cb0[r1.x + 6].x
min r1.x, r1.x, l(1.000000)
mul r1.xyz, r0.xyzx, r1.xxxx
mul r0.xyz, r1.xyzx, v2.xyzx
mul o0.xyzw, r0.xyzw, v2.wwww
ret
// Approximately 0 instruction slots used

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