//mouse cursor
// ---- Created with 3Dmigoto v1.2.67 on Fri Jan 05 16:33:10 2018
cbuffer cb1 : register(b1)
{
  float4 cb1[8];
}

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




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


void main(
  float4 v0 : POSITION0,
  float4 v1 : COLOR0,
  float2 v2 : TEXCOORD0,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : COLOR0,
  out float2 o2 : TEXCOORD0,
  out float2 p2 : TEXCOORD1)
{
  float4 r0,r1,r9,r10,r11;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyzw = cb1[1].xyzw * v0.yyyy;
  r0.xyzw = cb1[0].xyzw * v0.xxxx + r0.xyzw;
  r0.xyzw = cb1[2].xyzw * v0.zzzz + r0.xyzw;
  r10.xyzw = cb1[3].xyzw * v0.wwww + 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;
  o1.xyzw = v1.xyzw;
  r0.xyzw = cb1[5].xyzw * v0.yyyy;
  r0.xyzw = cb1[4].xyzw * v0.xxxx + r0.xyzw;
  r0.xyzw = cb1[6].xyzw * v0.zzzz + r0.xyzw;
  r0.xyzw = cb1[7].xyzw * v0.wwww + r0.xyzw;
  r1.xy = cb0[4].xy * r0.yy;
  r0.xy = cb0[3].xy * r0.xx + r1.xy;
  r0.xy = cb0[5].xy * r0.zz + r0.xy;
  p2.xy = cb0[6].xy * r0.ww + r0.xy;
  o2.xy = v2.xy * cb0[1].xy + cb0[1].zw;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.67 on Fri Jan 05 16:33:10 2018
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy  
// TEXCOORD                 1     zw        2     NONE   float     zw
//
vs_4_0
dcl_constantbuffer cb0[7], immediateIndexed
dcl_constantbuffer cb1[8], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_input v2.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_output o2.zw
dcl_temps 2
mul r0.xyzw, v0.yyyy, cb1[1].xyzw
mad r0.xyzw, cb1[0].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb1[2].xyzw, v0.zzzz, r0.xyzw
mad o0.xyzw, cb1[3].xyzw, v0.wwww, r0.xyzw
mov o1.xyzw, v1.xyzw
mul r0.xyzw, v0.yyyy, cb1[5].xyzw
mad r0.xyzw, cb1[4].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb1[6].xyzw, v0.zzzz, r0.xyzw
mad r0.xyzw, cb1[7].xyzw, v0.wwww, r0.xyzw
mul r1.xy, r0.yyyy, cb0[4].xyxx
mad r0.xy, cb0[3].xyxx, r0.xxxx, r1.xyxx
mad r0.xy, cb0[5].xyxx, r0.zzzz, r0.xyxx
mad o2.zw, cb0[6].xxxy, r0.wwww, r0.xxxy
mad o2.xy, v2.xyxx, cb0[1].xyxx, cb0[1].zwzz
ret 
// Approximately 0 instruction slots used

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