// ---- Created with 3Dmigoto v1.2.67 on Sat Jan 06 00:40:44 2018
cbuffer cb2 : register(b2)
{
  float4 cb2[4];
}

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

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




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


void main(
  float4 v0 : POSITION0,
  float3 v1 : NORMAL0,
  float4 v2 : TEXCOORD0,
  out float4 o0 : SV_POSITION0,
  out float2 o1 : TEXCOORD0,
  out float2 p1 : TEXCOORD1)
{
  float4 r0,r1,r2,r3,r9,r10,r11;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyzw = cb2[1].xyzw * v0.yyyy;
  r0.xyzw = cb2[0].xyzw * v0.xxxx + r0.xyzw;
  r0.xyzw = cb2[2].xyzw * v0.zzzz + r0.xyzw;
  r0.xyzw = cb2[3].xyzw * v0.wwww + r0.xyzw;
  r1.x = 0.0149999997 * cb0[5].x;
  sincos(cb0[5].y, r2.x, r3.x);
  r0.x = r2.x * r1.x + r0.x;
  r0.y = r3.x * r1.x + r0.y;
  r10.xyzw = r0.xyzw;
r9 = r10;
float4 stereo = StereoParams.Load(0);
float4 iniParams = IniParams.Load(0);

if(r9.w == 1){
r11.x = 1 + abs(iniParams.x * 0.117);
if(r9.x < -0.997){r10.x = r10.x * r11.x;}
if(r9.x > 0.997){r10.x = r10.x * r11.x;}
r10.x += stereo.x * iniParams.x;
}
o0 = r10;

  r0.xyz = float3(0.5,0.5,0.5) * r0.xyw;
  r0.w = cb1[5].x * r0.y;
  p1.xy = r0.xw + r0.zz;
  o1.xy = v2.xy * cb0[2].xy + cb0[2].zw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.67 on Sat Jan 06 00:40:44 2018
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// NORMAL                   0   xyz         1     NONE   float       
// TEXCOORD                 0   xyzw        2     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 1     zw        1     NONE   float     zw
//
vs_4_0
dcl_constantbuffer cb0[6], immediateIndexed
dcl_constantbuffer cb1[6], immediateIndexed
dcl_constantbuffer cb2[4], immediateIndexed
dcl_input v0.xyzw
dcl_input v2.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o1.zw
dcl_temps 4
mul r0.xyzw, v0.yyyy, cb2[1].xyzw
mad r0.xyzw, cb2[0].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb2[2].xyzw, v0.zzzz, r0.xyzw
mad r0.xyzw, cb2[3].xyzw, v0.wwww, r0.xyzw
mul r1.x, cb0[5].x, l(0.015000)
sincos r2.x, r3.x, cb0[5].y
mad r0.x, r2.x, r1.x, r0.x
mad r0.y, r3.x, r1.x, r0.y
mov o0.xyzw, r0.xyzw
mul r0.xyz, r0.xywx, l(0.500000, 0.500000, 0.500000, 0.000000)
mul r0.w, r0.y, cb1[5].x
add o1.zw, r0.zzzz, r0.xxxw
mad o1.xy, v2.xyxx, cb0[2].xyxx, cb0[2].zwzz
ret 
// Approximately 0 instruction slots used

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