//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Wed Dec 17 15:36:12 2025
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xy          1     NONE   float
// TEXCOORD                 4     zw        1     NONE   float     zw
// TEXCOORD                 1   xyzw        2     NONE   float   xy w
// TEXCOORD                 2   xyz         3     NONE   float   xyz
// TEXCOORD                 3   xyz         4     NONE   float
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[21], immediateIndexed
dcl_constantbuffer CB1[8], immediateIndexed
dcl_constantbuffer CB2[22], immediateIndexed
dcl_constantbuffer CB3[8], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v1.zw
dcl_input_ps linear v2.xyw
dcl_input_ps linear v3.xyz
dcl_output o0.xyzw
dcl_temps 2
div r0.xy, v2.xyxx, v2.wwww
sample_indexable(texture2d)(float,float,float,float) r0.x, r0.xyxx, t0.xyzw, s1
mad r0.x, cb1[7].x, r0.x, cb1[7].y
div r0.x, l(1.000000, 1.000000, 1.000000, 1.000000), r0.x
div r0.y, cb1[5].z, v3.z
mul r0.yzw, r0.yyyy, v3.xxyz
mul r0.xyz, r0.xxxx, r0.yzwy
mul r1.xyz, r0.yyyy, cb2[19].xyzx
mad r0.xyw, cb2[18].xyxz, r0.xxxx, r1.xyxz
mad r0.xyz, cb2[20].xyzx, r0.zzzz, r0.xywx
add r0.xyz, r0.xyzx, cb2[21].xyzx
mul r1.xyz, r0.yyyy, cb3[5].xyzx
mad r0.xyw, cb3[4].xyxz, r0.xxxx, r1.xyxz
mad r0.xyz, cb3[6].xyzx, r0.zzzz, r0.xywx
add r0.xyz, r0.xyzx, cb3[7].xyzx
add r1.xyz, -|r0.xyzx|, l(0.500000, 0.500000, 0.500000, 0.000000)
add r0.xy, r0.xzxx, l(0.500000, 0.500000, 0.000000, 0.000000)
mul r0.xy, r0.xyxx, cb0[20].xyxx
sample_indexable(texture2d)(float,float,float,float) r0.xyzw, r0.xyxx, t1.xyzw, s0
mul r0.xyzw, r0.xyzw, cb0[18].xyzw
mul_sat r0.xyzw, r0.xyzw, cb0[19].xxxx
lt r1.xyz, r1.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
or r1.x, r1.y, r1.x
or r1.x, r1.z, r1.x
discard_nz r1.x
add r1.xyz, cb0[4].xyzx, -cb0[5].xyzx
mad r1.xyz, v1.wwww, r1.xyzx, cb0[5].xyzx
add r1.xyz, -r0.xyzx, r1.xyzx
mad r1.xyz, cb0[7].xxxx, r1.xyzx, r0.xyzx
add r0.xyz, r0.xyzx, -r1.xyzx
mad o0.xyz, v1.zzzz, r0.xyzx, r1.xyzx
mov o0.w, r0.w
ret
// Approximately 0 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.164 on Wed Dec 17 15:36:12 2025
// Texture2D<float4> t1 : register(t1);
//
// Texture2D<float4> t0 : register(t0);
//
// SamplerState s1_s : register(s1);
//
// SamplerState s0_s : register(s0);
//
// cbuffer cb3 : register(b3)
// {
//   float4 cb3[8];
// }
//
// cbuffer cb2 : register(b2)
// {
//   float4 cb2[22];
// }
//
// cbuffer cb1 : register(b1)
// {
//   float4 cb1[8];
// }
//
// 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 : SV_POSITION0,
//   float2 v1 : TEXCOORD0,
//   float2 w1 : TEXCOORD4,
//   float4 v2 : TEXCOORD1,
//   float4 v3 : TEXCOORD2,
//   float3 v4 : TEXCOORD3,
//   out float4 o0 : SV_Target0)
// {
//   float4 r0,r1;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r0.xy = v2.xy / v2.ww;
//   r0.x = t0.Sample(s1_s, r0.xy).x;
//   r0.x = cb1[7].x * r0.x + cb1[7].y;
//   r0.x = 1 / r0.x;
//   r0.y = cb1[5].z / v3.z;
//   r0.yzw = v3.xyz * r0.yyy;
//   r0.xyz = r0.yzw * r0.xxx;
//   r1.xyz = cb2[19].xyz * r0.yyy;
//   r0.xyw = cb2[18].xyz * r0.xxx + r1.xyz;
//   r0.xyz = cb2[20].xyz * r0.zzz + r0.xyw;
//   r0.xyz = cb2[21].xyz + r0.xyz;
//   r1.xyz = cb3[5].xyz * r0.yyy;
//   r0.xyw = cb3[4].xyz * r0.xxx + r1.xyz;
//   r0.xyz = cb3[6].xyz * r0.zzz + r0.xyw;
//   r0.xyz = cb3[7].xyz + r0.xyz;
//   r1.xyz = float3(0.5,0.5,0.5) + -abs(r0.xyz);
//   r0.xy = float2(0.5,0.5) + r0.xz;
//   r0.xy = cb0[20].xy * r0.xy;
//   r0.xyzw = t1.Sample(s0_s, r0.xy).xyzw;
//   r0.xyzw = cb0[18].xyzw * r0.xyzw;
//   r0.xyzw = saturate(cb0[19].xxxx * r0.xyzw);
//   r1.xyz = cmp(r1.xyz < float3(0,0,0));
//   r1.x = (int)r1.y | (int)r1.x;
//   r1.x = (int)r1.z | (int)r1.x;
//   if (r1.x != 0) discard;
//   r1.xyz = -cb0[5].xyz + cb0[4].xyz;
//   r1.xyz = w1.yww * r1.xyz + cb0[5].xyz;
//   r1.xyz = r1.xyz + -r0.xyz;
//   r1.xyz = cb0[7].xxx * r1.xyz + r0.xyz;
//   r0.xyz = -r1.xyz + r0.xyz;
//   o0.xyz = w1.xzz * r0.xyz + r1.xyz;
//   o0.w = r0.w;
//   return;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// C:\Program Files (x86)\Steam\steamapps\common\Planet of Lana\ShaderFixes\fce6efe3426df959-ps_replace.txt(78,12-17): error X3018: invalid subscript 'yww'
/////////////////////////////////////////////////////////////////////////////
