//Tears VS. Also blood.
// ---- Created with 3Dmigoto v1.3.16 on Wed May 22 18:47:39 2019
cbuffer cb9 : register(b9)
{
  float4 cb9[1];
}

cbuffer cb12 : register(b12)
{
  float4 cb12[31];
}




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


void main(
  float4 v0 : POSITION0,
  float3 v1 : NORMAL0,
  float3 v2 : TANGENT0,
  float4 v3 : COLOR0,
  float4 v4 : TEXCOORD0,
  float4 v5 : TEXCOORD1,
  float2 v6 : TEXCOORD2,
  out float4 o0 : TEXCOORD0,
  out float4 o1 : TEXCOORD1,
  out float4 o2 : TEXCOORD2,
  out float4 o3 : TEXCOORD3,
  out float4 o4 : TEXCOORD4,
  out float4 o5 : TEXCOORD5,
  out float4 o6 : TEXCOORD6,
  out float4 o7 : TEXCOORD7,
  out float4 o8 : TEXCOORD8,
  out float4 o9 : TEXCOORD9,
  out float4 o10 : TEXCOORD10,
  out uint o11 : TEXCOORD11,
  out float4 o12 : SV_POSITION0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;

  float4 stereo = StereoParams.Load(0);
  
  o0.xyzw = v3.xyzw;
  o1.xyzw = v4.xyxy;
  o2.xyzw = v4.xyxy;
  o3.x = v0.z / v0.w;
  o3.yzw = float3(0,0,0);
  o4.xy = v5.xy;
  o4.zw = v6.xy;
  o5.xyzw = float4(0,0,0,0);
  o6.xyzw = float4(0,0,0,0);
  o7.xyzw = float4(0,0,0,0);
  r0.xyz = -cb12[30].xyz + v0.xyz;
  r0.w = dot(r0.xyz, r0.xyz);
  r0.w = rsqrt(r0.w);
  o8.xyz = r0.xyz * r0.www;
  o9.xyz = v1.xyz;
  o10.xyz = v2.xyz;
  o11.x = cb9[0].x;
  o12.xy = v0.xy * cb12[28].xy + cb12[28].zw;
  o12.zw = v0.zw;
  o12.x+=stereo.x*o12.w;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Wed May 22 18:47:39 2019
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// NORMAL                   0   xyz         1     NONE   float   xyz
// TANGENT                  0   xyz         2     NONE   float   xyz
// COLOR                    0   xyzw        3     NONE   float   xyzw
// TEXCOORD                 0   xy          4     NONE   float   xy
// TEXCOORD                 1   xy          5     NONE   float   xy
// TEXCOORD                 2   xy          6     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 1   xyzw        1     NONE   float   xyzw
// TEXCOORD                 2   xyzw        2     NONE   float   xyzw
// TEXCOORD                 3   xyzw        3     NONE   float   xyzw
// TEXCOORD                 4   xyzw        4     NONE   float   xyzw
// TEXCOORD                 5   xyzw        5     NONE   float   xyzw
// TEXCOORD                 6   xyzw        6     NONE   float   xyzw
// TEXCOORD                 7   xyzw        7     NONE   float   xyzw
// TEXCOORD                 8   xyz         8     NONE   float   xyz
// TEXCOORD                 9   xyz         9     NONE   float   xyz
// TEXCOORD                10   xyz        10     NONE   float   xyz
// TEXCOORD                11   x          11     NONE    uint   x
// SV_POSITION              0   xyzw       12      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb12[31], immediateIndexed
dcl_constantbuffer cb9[1], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xyz
dcl_input v2.xyz
dcl_input v3.xyzw
dcl_input v4.xy
dcl_input v5.xy
dcl_input v6.xy
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_output o7.xyzw
dcl_output o8.xyz
dcl_output o9.xyz
dcl_output o10.xyz
dcl_output o11.x
dcl_output_siv o12.xyzw, position
dcl_temps 1
mov o0.xyzw, v3.xyzw
mov o1.xyzw, v4.xyxy
mov o2.xyzw, v4.xyxy
div o3.x, v0.z, v0.w
mov o3.yzw, l(0,0,0,0)
mov o4.xy, v5.xyxx
mov o4.zw, v6.xxxy
mov o5.xyzw, l(0,0,0,0)
mov o6.xyzw, l(0,0,0,0)
mov o7.xyzw, l(0,0,0,0)
add r0.xyz, v0.xyzx, -cb12[30].xyzx
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul o8.xyz, r0.wwww, r0.xyzx
mov o9.xyz, v1.xyzx
mov o10.xyz, v2.xyzx
mov o11.x, cb9[0].x
mad o12.xy, v0.xyxx, cb12[28].xyxx, cb12[28].zwzz
mov o12.zw, v0.zzzw
ret
// Approximately 0 instruction slots used

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