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

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


Texture2D<float4> StereoParams : register(t125);
Texture1D<float4> IniParams : register(t120);

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;
  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;
  o0.xyzw = cb1[3].xyzw * v0.wwww + r0.xyzw;
  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[9].xy * r0.yy;
  r0.xy = cb0[8].xy * r0.xx + r1.xy;
  r0.xy = cb0[10].xy * r0.zz + r0.xy;
  p2.xy = cb0[11].xy * r0.ww + r0.xy;
  o2.xy = v2.xy * cb0[6].xy + cb0[6].zw;
  return;
}