// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.109 on Sun Feb 22 12:27:12 2026
//
//
// Buffer Definitions:
//
// cbuffer cb4
// {
//
//   float4 cb4[21];                    // Offset:    0 Size:   336
//
// }
//
// cbuffer cb3
// {
//
//   float4 cb3[10];                    // Offset:    0 Size:   160
//
// }
//
// cbuffer cb2
// {
//
//   float4 cb2[46];                    // Offset:    0 Size:   736
//
// }
//
// cbuffer cb1
// {
//
//   float4 cb1[6];                     // Offset:    0 Size:    96
//
// }
//
// cbuffer cb0
// {
//
//   float4 cb0[15];                    // Offset:    0 Size:   240
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// StereoParams                      texture  float4          2d  125        1
// cb0                               cbuffer      NA          NA    0        1
// cb1                               cbuffer      NA          NA    1        1
// cb2                               cbuffer      NA          NA    2        1
// cb3                               cbuffer      NA          NA    3        1
// cb4                               cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// TANGENT                  0   xyzw        1     NONE   float   xyzw
// NORMAL                   0   xyz         2     NONE   float   xyz
// TEXCOORD                 0   xyzw        3     NONE   float   xy
// TEXCOORD                 1   xyzw        4     NONE   float   xy
// TEXCOORD                 2   xyzw        5     NONE   float   xy
// TEXCOORD                 3   xyzw        6     NONE   float
// COLOR                    0   xyzw        7     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xy          2     NONE   float   xy
// TEXCOORD                 8     z         2     NONE   float     z
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
// TEXCOORD                 3   xyzw        4     NONE   float   xyzw
// TEXCOORD                 4   xyzw        5     NONE   float   xyzw
// COLOR                    0   xyzw        6     NONE   float   xyzw
// TEXCOORD                 5   xyzw        7     NONE   float   xyzw
// TEXCOORD                 6   xyzw        8     NONE   float   xyzw
// TEXCOORD                 7   xyzw        9     NONE   float   xyz
// TEXCOORD                10   xyzw       10     NONE   float   xyzw
// P                        0   x          11  RTINDEX    uint   x
//
vs_4_0
dcl_output_siv o11.x, rendertarget_array_index
dcl_constantbuffer CB4[21], immediateIndexed
dcl_constantbuffer CB3[10], immediateIndexed
dcl_constantbuffer CB2[46], immediateIndexed
dcl_constantbuffer CB1[6], immediateIndexed
dcl_constantbuffer CB0[15], immediateIndexed
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_input v2.xyz
dcl_input v3.xy
dcl_input v4.xy
dcl_input v5.xy
dcl_input v7.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_output o2.z
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_output o7.xyzw
dcl_output o8.xyzw
dcl_output o9.xyz
dcl_output o10.xyzw
dcl_temps 10
ld_indexable(buffer)(float,float,float,float) r9.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o11.x, r9.z
mul r0.xyzw, v0.yyyy, cb3[1].xyzw
mad r0.xyzw, cb3[0].xyzw, v0.xxxx, r0.xyzw
mad r0.xyzw, cb3[2].xyzw, v0.zzzz, r0.xyzw
add r1.xyzw, r0.xyzw, cb3[3].xyzw
mad r0.xyz, cb3[3].xyzx, v0.wwww, r0.xyzx
mul r2.xyzw, r1.yyyy, cb4[18].xyzw
mad r2.xyzw, cb4[17].xyzw, r1.xxxx, r2.xyzw
mad r2.xyzw, cb4[19].xyzw, r1.zzzz, r2.xyzw
mad r2.xyzw, cb4[20].xwyz, r1.wwww, r2.xwyz
mov r7.yzw, r2.zzwy
mov o7.zw, r2.wwwy
ld r3.xyzw, l(0, 0, 0, 0), t125.xyzw
add r7.x, r2.x, r3.x
mad r3.zw, cb1[0].xxxx, l(0.000000, 0.000000, 8.000000, 40.000000), v3.xxxy
mul r3.zw, r3.zzzw, cb0[12].xxxy
mad o1.xy, r3.zwzz, l(4.000000, 4.000000, 0.000000, 0.000000), cb0[12].zwzz
mad r3.zw, cb1[0].xxxx, l(0.000000, 0.000000, 4.000000, 20.000000), v4.xxxy
mul r3.zw, r3.zzzw, cb0[13].xxxy
mad o1.zw, r3.zzzw, l(0.000000, 0.000000, 4.000000, 4.000000), cb0[13].zzzw
mad r4.y, cb1[0].x, l(10.000000), v5.y
mad r4.x, cb1[0].x, l(4.000000), v5.x
mul r3.zw, r4.xxxy, cb0[14].xxxy
mad o2.xy, r3.zwzz, l(8.000000, 8.000000, 0.000000, 0.000000), cb0[14].zwzz
mov o2.z, r2.w
mov o3.w, r0.x
mul r4.xyz, v1.yyyy, cb3[1].zxyz
mad r4.xyz, cb3[0].zxyz, v1.xxxx, r4.xyzx
mad r4.xyz, cb3[2].zxyz, v1.zzzz, r4.xyzx
dp3 r0.w, r4.xyzx, r4.xyzx
rsq r0.w, r0.w
mul r4.xyz, r0.wwww, r4.xyzx
mov o3.x, r4.y
mul r0.w, v1.w, cb3[9].w
dp3 r5.x, v2.xyzx, cb3[4].xyzx
dp3 r5.y, v2.xyzx, cb3[5].xyzx
dp3 r5.z, v2.xyzx, cb3[6].xyzx
dp3 r2.w, r5.xyzx, r5.xyzx
rsq r2.w, r2.w
mul r5.xyz, r2.wwww, r5.xyzx
mul r6.xyz, r4.zxyz, r5.zxyz
mad r6.xyz, r5.yzxy, r4.xyzx, -r6.xyzx
mul r6.xyz, r0.wwww, r6.xyzx
mov o3.y, r6.x
mov o3.z, r5.x
mov o4.x, r4.z
mov o5.x, r4.x
mov o4.w, r0.y
mov o4.y, r6.y
mov o5.y, r6.z
mov o4.z, r5.y
mov o5.w, r0.z
mov o8.xyz, r0.xyzx
mov o5.z, r5.z
mov o6.xyzw, v7.xyzw
add r0.x, r2.y, -r3.y
mad r2.x, r3.x, r0.x, r2.x
mul r0.x, r2.z, cb1[5].x
mul r0.z, r0.x, l(0.500000)
mul r0.xy, r2.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
add o7.xy, r0.yyyy, r0.xzxx
mul r0.x, r1.y, cb4[10].z
mad r0.x, cb4[9].z, r1.x, r0.x
mad r0.x, cb4[11].z, r1.z, r0.x
mad r0.x, cb4[12].z, r1.w, r0.x
mov o8.w, -r0.x
mul r0.x, r5.y, r5.y
mad r0.x, r5.x, r5.x, -r0.x
mul r1.xyzw, r5.yzzx, r5.xyzz
dp4 r2.x, cb2[42].xyzw, r1.xyzw
dp4 r2.y, cb2[43].xyzw, r1.xyzw
dp4 r2.z, cb2[44].xyzw, r1.xyzw
mad r0.xyz, cb2[45].xyzx, r0.xxxx, r2.xyzx
mov r5.w, l(1.000000)
dp4 r1.x, cb2[39].xyzw, r5.xyzw
dp4 r1.y, cb2[40].xyzw, r5.xyzw
dp4 r1.z, cb2[41].xyzw, r5.xyzw
add o9.xyz, r0.xyzx, r1.xyzx
mov o10.xyzw, l(0,0,0,0)
add r8.x, -r9.y, r7.w
mul r8.y, r9.x, r9.w
mad r8.x, r8.x, r8.y, r7.x
ne r8.y, l(1.000000), r7.w
movc r7.x, r8.y, r8.x, r7.x
mov o0.xyzw, r7.xyzw
ret
// Approximately 79 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.109 on Sun Feb 22 12:27:12 2026
//
// cbuffer cb4 : register(b4)
// {
//   float4 cb4[21] : packoffset(c0);
// }
//
// cbuffer cb3 : register(b3)
// {
//   float4 cb3[10] : packoffset(c0);
// }
//
// cbuffer cb2 : register(b2)
// {
//   float4 cb2[46] : packoffset(c0);
// }
//
// cbuffer cb1 : register(b1)
// {
//   float4 cb1[6] : packoffset(c0);
// }
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0[15] : packoffset(c0);
// }
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Buffer<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : POSITION0,
//   float4 v1 : TANGENT0,
//   float3 v2 : NORMAL0,
//   float4 v3 : TEXCOORD0,
//   float4 v4 : TEXCOORD1,
//   float4 v5 : TEXCOORD2,
//   float4 v6 : TEXCOORD3,
//   float4 v7 : COLOR0,
//   out float4 o0 : SV_POSITION0,
//   out float4 o1 : TEXCOORD0,
//   out float2 o2 : TEXCOORD1,
//   out float p2 : TEXCOORD8,
//   out float4 o3 : TEXCOORD2,
//   out float4 o4 : TEXCOORD3,
//   out float4 o5 : TEXCOORD4,
//   out float4 o6 : COLOR0,
//   out float4 o7 : TEXCOORD5,
//   out float4 o8 : TEXCOORD6,
//   out float4 o9 : TEXCOORD7,
//   out float4 o10 : TEXCOORD10,
//   out uint o11 : P0)
// {
//   float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r9.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   o11.x = r9.z;
//   r0.xyzw = cb3[1].xyzw * v0.yyyy;
//   r0.xyzw = cb3[0].xyzw * v0.xxxx + r0.xyzw;
//   r0.xyzw = cb3[2].xyzw * v0.zzzz + r0.xyzw;
//   r1.xyzw = cb3[3].xyzw + r0.xyzw;
//   r0.xyz = cb3[3].xyz * v0.www + r0.xyz;
//   r2.xyzw = cb4[18].xyzw * r1.yyyy;
//   r2.xyzw = cb4[17].xyzw * r1.xxxx + r2.xyzw;
//   r2.xyzw = cb4[19].xyzw * r1.zzzz + r2.xyzw;
//   r2.xyzw = cb4[20].xwyz * r1.wwww + r2.xwyz;
//   r7.yzw = r2.zwy;
//   o7.zw = r2.wy;
//   r3.xyzw = StereoParams.Load(float4(0,0,0,0)).xyzw;
//   r7.x = r3.x + r2.x;
//   r3.zw = cb1[0].xx * float2(8,40) + v3.xy;
//   r3.zw = cb0[12].xy * r3.zw;
//   o1.xy = r3.zw * float2(4,4) + cb0[12].zw;
//   r3.zw = cb1[0].xx * float2(4,20) + v4.xy;
//   r3.zw = cb0[13].xy * r3.zw;
//   o1.zw = r3.zw * float2(4,4) + cb0[13].zw;
//   r4.y = cb1[0].x * 10 + v5.y;
//   r4.x = cb1[0].x * 4 + v5.x;
//   r3.zw = cb0[14].xy * r4.xy;
//   o2.xy = r3.zw * float2(8,8) + cb0[14].zw;
//   p2.x = r2.w;
//   o3.w = r0.x;
//   r4.xyz = cb3[1].zxy * v1.yyy;
//   r4.xyz = cb3[0].zxy * v1.xxx + r4.xyz;
//   r4.xyz = cb3[2].zxy * v1.zzz + r4.xyz;
//   r0.w = dot(r4.xyz, r4.xyz);
//   r0.w = rsqrt(r0.w);
//   r4.xyz = r4.xyz * r0.www;
//   o3.x = r4.y;
//   r0.w = cb3[9].w * v1.w;
//   r5.x = dot(v2.xyz, cb3[4].xyz);
//   r5.y = dot(v2.xyz, cb3[5].xyz);
//   r5.z = dot(v2.xyz, cb3[6].xyz);
//   r2.w = dot(r5.xyz, r5.xyz);
//   r2.w = rsqrt(r2.w);
//   r5.xyz = r5.xyz * r2.www;
//   r6.xyz = r5.zxy * r4.zxy;
//   r6.xyz = r5.yzx * r4.xyz + -r6.xyz;
//   r6.xyz = r6.xyz * r0.www;
//   o3.y = r6.x;
//   o3.z = r5.x;
//   o4.x = r4.z;
//   o5.x = r4.x;
//   o4.w = r0.y;
//   o4.y = r6.y;
//   o5.y = r6.z;
//   o4.z = r5.y;
//   o5.w = r0.z;
//   o8.xyz = r0.xyz;
//   o5.z = r5.z;
//   o6.xyzw = v7.xyzw;
//   r0.x = -r3.y + r2.y;
//   r2.x = r3.x * r0.x + r2.x;
//   r0.x = cb1[5].x * r2.z;
//   r0.z = 0.5 * r0.x;
//   r0.xy = float2(0.5,0.5) * r2.xy;
//   o7.xy = r0.xz + r0.yy;
//   r0.x = cb4[10].z * r1.y;
//   r0.x = cb4[9].z * r1.x + r0.x;
//   r0.x = cb4[11].z * r1.z + r0.x;
//   r0.x = cb4[12].z * r1.w + r0.x;
//   o8.w = -r0.x;
//   r0.x = r5.y * r5.y;
//   r0.x = r5.x * r5.x + -r0.x;
//   r1.xyzw = r5.xyzz * r5.yzzx;
//   r2.x = dot(cb2[42].xyzw, r1.xyzw);
//   r2.y = dot(cb2[43].xyzw, r1.xyzw);
//   r2.z = dot(cb2[44].xyzw, r1.xyzw);
//   r0.xyz = cb2[45].xyz * r0.xxx + r2.xyz;
//   r5.w = 1;
//   r1.x = dot(cb2[39].xyzw, r5.xyzw);
//   r1.y = dot(cb2[40].xyzw, r5.xyzw);
//   r1.z = dot(cb2[41].xyzw, r5.xyzw);
//   o9.xyz = r1.xyz + r0.xyz;
//   o10.xyzw = float4(0,0,0,0);
//   r8.x = r7.w + -r9.y;
//   r8.y = r9.w * r9.x;
//   r8.x = r8.x * r8.y + r7.x;
//   r8.y = cmp(1.000000 != r7.w);
//   r7.x = r8.y ? r8.x : r7.x;
//   o0.xyzw = r7.xyzw;
//   return;
// }
/////////////////////////////////////////////////////////////////////////////
