//HUD VS 1. Lock on.
// ---- Created with geo-11 v0.6.198 on Fri Apr 24 23:32:58 2026
cbuffer cb3 : register(b3)
{
  float4 cb3[3];
}

cbuffer cb2 : register(b2)
{
  float4 cb2[12];
}

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

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




// 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,
  uint v3 : SV_InstanceID0,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : COLOR0,
  out float2 o2 : TEXCOORD0,
  out uint o3 : SV_InstanceID0)
{
// Needs manual fix for instruction:
// unknown dcl_: dcl_input_sgv v3.x, instance_id
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  float4 iniparams11 = IniParams.Load(int2(11,0));
  
  r0.x = (int)v3.x + asint(cb1[0].x);
  r0.y = (uint)r0.x << 3;
  r0.x = (uint)r0.x << 1;
  o1.xyzw = cb3[r0.x+0].xyzw * v1.xyzw;
  r1.xyzw = cb2[r0.y+1].xyzw * v0.yyyy;
  r1.xyzw = cb2[r0.y+0].xyzw * v0.xxxx + r1.xyzw;
  r1.xyzw = cb2[r0.y+2].xyzw * v0.zzzz + r1.xyzw;
  r0.xyzw = cb2[r0.y+3].xyzw + r1.xyzw;
  r1.xyzw = cb0[18].xyzw * r0.yyyy;
  r1.xyzw = cb0[17].xyzw * r0.xxxx + r1.xyzw;
  r1.xyzw = cb0[19].xyzw * r0.zzzz + r1.xyzw;
  o0.xyzw = cb0[20].xyzw * r0.wwww + r1.xyzw;
  
  if (o0.w==1.0) {
    o0.x+=stereo.x*(o0.w-stereo.y*iniparams11.z);
  }
  
  o2.xy = v2.xy;
  o3.x = v3.x;
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.198 on Fri Apr 24 23:32:58 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyz
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xy          2     NONE   float   xy
// SV_InstanceID            0   x           3   INSTID    uint   x
//
//
// 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
// SV_InstanceID            0   x           3     NONE    uint   x
//
vs_4_0
dcl_constantbuffer CB0[21], immediateIndexed
dcl_constantbuffer CB1[1], immediateIndexed
dcl_constantbuffer CB2[12], dynamicIndexed
dcl_constantbuffer CB3[3], dynamicIndexed
dcl_input v0.xyz
dcl_input v1.xyzw
dcl_input v2.xy
dcl_input_sgv v3.x, instance_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_output o3.x
dcl_temps 2
iadd r0.x, v3.x, cb1[0].x
ishl r0.y, r0.x, l(3)
ishl r0.x, r0.x, l(1)
mul o1.xyzw, v1.xyzw, cb3[r0.x + 0].xyzw
mul r1.xyzw, v0.yyyy, cb2[r0.y + 1].xyzw
mad r1.xyzw, cb2[r0.y + 0].xyzw, v0.xxxx, r1.xyzw
mad r1.xyzw, cb2[r0.y + 2].xyzw, v0.zzzz, r1.xyzw
add r0.xyzw, r1.xyzw, cb2[r0.y + 3].xyzw
mul r1.xyzw, r0.yyyy, cb0[18].xyzw
mad r1.xyzw, cb0[17].xyzw, r0.xxxx, r1.xyzw
mad r1.xyzw, cb0[19].xyzw, r0.zzzz, r1.xyzw
mad o0.xyzw, cb0[20].xyzw, r0.wwww, r1.xyzw
mov o2.xy, v2.xyxx
mov o3.x, v3.x
ret
// Approximately 0 instruction slots used

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