//KH3 HUD VS. MP bar clipping.
// ---- Created with geo-11 v0.6.198 on Mon Apr 27 00:44:35 2026
cbuffer cb0 : register(b0)
{
  float4 cb0[48];
}




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


void main(
  float4 v0 : ATTRIBUTE0,
  uint v1 : ATTRIBUTE1,
  out float4 o0 : SV_Position0)
{
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;
  
  float4 stereo = StereoParams.Load(0);
  float4 iniparams3 = IniParams.Load(int2(3,0));
  float4 iniparams10 = IniParams.Load(int2(10,0));
  float4 iniparams11 = IniParams.Load(int2(11,0));
  float4 iniparams12 = IniParams.Load(int2(12,0));
  
  r0.x = (uint)v1.x << 1;
  r0.x = (uint)r0.x;
  r0.xy = float2(0.100000001,1.10000002) + r0.xx;
  r0.xy = (int2)r0.xy;
  o0.x = dot(v0.xyzw, cb0[r0.x+0].xyzw);
  o0.y = dot(v0.xyzw, cb0[r0.y+0].xyzw);
  o0.zw = float2(0,1);
  if (iniparams11.x==0) {
   o0.x+=stereo.x*iniparams10.x;
  }
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.198 on Mon Apr 27 00:44:35 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xyzw        0     NONE   float   xyzw
// ATTRIBUTE                1   x           1     NONE    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[48], dynamicIndexed
dcl_input v0.xyzw
dcl_input v1.x
dcl_output_siv o0.xyzw, position
dcl_temps 1
ishl r0.x, v1.x, l(1)
utof r0.x, r0.x
add r0.xy, r0.xxxx, l(0.100000, 1.100000, 0.000000, 0.000000)
ftoi r0.xy, r0.xyxx
dp4 o0.x, v0.xyzw, cb0[r0.x + 0].xyzw
dp4 o0.y, v0.xyzw, cb0[r0.y + 0].xyzw
mov o0.zw, l(0,0,0,1.000000)
ret
// Approximately 0 instruction slots used

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