// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.58 on Sat Apr 18 21:23:56 2026
//
//
// Buffer Definitions:
//
// cbuffer cb4
// {
//
//   float4 cb4[236];                   // Index:    0-235            Components:   944
//
// }
//
// cbuffer cb3
// {
//
//   float4 cb3[77];                    // Index:    0-76             Components:   308
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// s0_s                              sampler      NA          NA    0        1
// s3_s                              sampler      NA          NA    3        1
// s5_s                              sampler      NA          NA    5        1
// s8_s                              sampler      NA          NA    8        1
// t0                                texture  float4          2d    0        1
// t3                                texture  float4          2d    3        1
// t5                                texture  float4          2d    5        1
// t8                                texture  float4          2d    8        1
// StereoParams                      texture  float4          2d  125        1
// cb3                               cbuffer      NA          NA    3        1
// cb4                               cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 8   xyzw        1     NONE   float
// COLOR                    0   xyzw        2     NONE   float
// COLOR                    1   xyzw        3     NONE   float
// TEXCOORD                 9   xyzw        4     NONE   float   x
// TEXCOORD                 0   xyzw        5     NONE   float   xy
// TEXCOORD                 1   xyzw        6     NONE   float   xyzw
// TEXCOORD                 2   xyzw        7     NONE   float   xyz
// TEXCOORD                 3   xyzw        8     NONE   float   xyz
// TEXCOORD                 4   xyzw        9     NONE   float   xy w
// TEXCOORD                 5   xyzw       10     NONE   float   xy w
// TEXCOORD                 6   xyzw       11     NONE   float   x
// TEXCOORD                 7   xyzw       12     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 CB4[11], immediateIndexed
dcl_constantbuffer CB3[62], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s3, mode_default
dcl_sampler s5, mode_default
dcl_sampler s8, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t8
dcl_resource_buffer (float,float,float,float) t125
dcl_input_ps linear v4.x
dcl_input_ps linear v5.xy
dcl_input_ps linear v6.xyzw
dcl_input_ps linear v7.xyz
dcl_input_ps linear v8.xyz
dcl_input_ps linear v9.xyw
dcl_input_ps linear v10.xyw
dcl_input_ps linear v11.x
dcl_output o0.xyzw
dcl_temps 4
ld_indexable(buffer)(float,float,float,float) r0.xy, l(0, 0, 0, 0), t125.xyzw
div r0.y, r0.y, v9.w
add r0.y, -r0.y, l(1.000000)
mul r0.x, r0.y, r0.x
lt r0.y, l(0.000000), |v9.w|
rcp r0.z, v9.w
movc r0.y, r0.y, r0.z, l(9999999933815812510711506376257961984.000000)
mul r0.yz, r0.yyyy, v9.xxyx
sample_indexable(texture2d)(float,float,float,float) r1.xy, v5.xyxx, t3.ywxz, s3
and r1.xy, r1.yxyy, cb3[50].wyww
or r1.xy, r1.xyxx, cb3[51].wyww
mad r1.xy, r1.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r2.xy, r1.xyxx, l(0.250000, 0.250000, 0.000000, 0.000000)
mad r0.yz, r0.yyzy, l(0.000000, 0.500000, -0.500000, 0.000000), r2.xxyx
add r2.yz, r0.yyzy, l(0.000000, 0.500000, 0.500000, 0.000000)
mad r2.x, r0.x, l(0.500000), r2.y
sample_indexable(texture2d)(float,float,float,float) r0.xyz, r2.xzxx, t0.xyzw, s0
and r0.xyz, r0.xyzx, cb3[44].xyzx
or r0.xyz, r0.xyzx, cb3[45].xyzx
log r0.xyz, |r0.xyzx|
ieq r2.xyz, r0.xyzx, l(0xff800000, 0xff800000, 0xff800000, 0)
movc r0.xyz, r2.xyzx, l(-9999999933815812510711506376257961984.000000,-9999999933815812510711506376257961984.000000,-9999999933815812510711506376257961984.000000,0), r0.xyzx
mul r0.xyz, r0.xyzx, cb4[9].xxxx
exp r0.xyz, r0.xyzx
dp3 r0.w, v8.xyzx, v8.xyzx
rsq r0.w, r0.w
ine r1.w, r0.w, l(0x7f800000)
and r0.w, r0.w, r1.w
mul r2.xyz, r0.wwww, v8.xyzx
dp2 r0.w, r1.xyxx, -r1.xyxx
add r0.w, r0.w, l(1.000000)
rsq r0.w, |r0.w|
ieq r1.w, r0.w, l(0x7f800000)
movc r0.w, r1.w, l(9999999933815812510711506376257961984.000000), r0.w
lt r1.w, l(0.000000), r0.w
rcp r0.w, r0.w
movc r1.z, r1.w, r0.w, l(9999999933815812510711506376257961984.000000)
dp3_sat r0.w, r2.xyzx, r1.xyzx
add r1.w, -r0.w, l(1.000000)
mad r2.xyz, r0.wwww, l(0.000000, -0.00392156886, -0.0156862754, 0.000000), l(0.00392156886, 0.0196078438, 0.0392156877, 0.000000)
mul r0.w, r1.w, r1.w
mul r0.w, r0.w, r0.w
mul r0.w, r1.w, r0.w
mad r0.w, r0.w, l(0.979600), l(0.020400)
mul r0.xyz, r0.wwww, r0.xyzx
dp3_sat r0.w, r1.xyzx, v6.xyzx
dp3_sat r1.z, v8.xyzx, r1.xyzx
mul r1.z, r1.z, r1.z
mul r1.z, r1.z, r1.z
mul r0.w, r0.w, l(0.010000)
mad r0.xyz, r0.wwww, v7.xyzx, r0.xyzx
mad r0.xyz, r2.xyzx, r1.zzzz, r0.xyzx
div r1.zw, v10.xxxy, v10.wwww
sample_indexable(texture2d)(float,float,float,float) r2.x, r1.zwzz, t5.xyzw, s5
sample_indexable(texture2d)(float,float,float,float) r2.yzw, r1.zwzz, t8.wxyz, s8
and r2.yzw, r2.yyzw, cb3[60].xxyz
or r2.yzw, r2.yyzw, cb3[61].xxyz
and r1.z, r2.x, cb3[54].x
or r1.z, r1.z, cb3[55].x
add r1.w, r1.z, l(0.000500)
add r1.w, r1.w, -v11.x
ge r1.w, r1.w, l(0.000000)
add r2.x, r1.z, -v11.x
mul_sat r3.xy, r2.xxxx, l(2048.000000, 32.000000, 0.000000, 0.000000)
movc r1.w, r1.w, r3.x, l(1.000000)
mad r2.x, v8.z, l(-0.300000), l(1.000000)
mul r0.w, r2.x, v6.w
mad r1.w, r0.w, r1.w, r3.y
mov_sat r2.x, r1.w
mul r1.xy, r1.xyxx, r2.xxxx
mad r1.xy, r1.xyxx, l(0.100000, 0.100000, 0.000000, 0.000000), v10.xyxx
sample_indexable(texture2d)(float,float,float,float) r2.x, r1.xyxx, t5.xyzw, s5
div r1.xy, r1.xyxx, v10.wwww
sample_indexable(texture2d)(float,float,float,float) r3.xyz, r1.xyxx, t8.xyzw, s8
and r3.xyz, r3.xyzx, cb3[60].xyzx
or r3.xyz, r3.xyzx, cb3[61].xyzx
and r1.x, r2.x, cb3[54].x
or r1.x, r1.x, cb3[55].x
add r1.x, -r1.z, r1.x
ge r1.x, r1.x, l(0.000000)
movc r1.xyz, r1.xxxx, r2.yzwy, r3.xyzx
log r1.xyz, |r1.xyzx|
ieq r2.xyz, r1.xyzx, l(0xff800000, 0xff800000, 0xff800000, 0)
movc r1.xyz, r2.xyzx, l(-9999999933815812510711506376257961984.000000,-9999999933815812510711506376257961984.000000,-9999999933815812510711506376257961984.000000,0), r1.xyzx
mul r1.xyz, r1.xyzx, cb4[9].xxxx
exp r1.xyz, r1.xyzx
add r1.xyz, -r0.xyzx, r1.xyzx
add r2.xy, -r1.wwww, l(1.000000, 0.100000, 0.000000, 0.000000)
mov_sat r2.x, r2.x
ge r2.y, r2.y, l(0.000000)
mul r2.x, r2.x, l(0.550000)
mad r3.xyz, r2.xxxx, r1.xyzx, r0.xyzx
mul r1.x, r1.w, l(1.750000)
movc r3.w, r2.y, r1.w, r1.x
ge r1.x, -cb4[8].x, l(0.000000)
movc r0.xyzw, r1.xxxx, r0.xyzw, r3.xyzw
log r0.xyz, |r0.xyzx|
mov_sat o0.w, r0.w
ieq r1.xyz, r0.xyzx, l(0xff800000, 0xff800000, 0xff800000, 0)
movc r0.xyz, r1.xyzx, l(-9999999933815812510711506376257961984.000000,-9999999933815812510711506376257961984.000000,-9999999933815812510711506376257961984.000000,0), r0.xyzx
mul r0.xyz, r0.xyzx, cb4[10].xxxx
exp r0.xyz, r0.xyzx
add r0.xyz, r0.xyzx, -cb3[0].xyzx
mov_sat r0.w, v4.x
mad o0.xyz, r0.wwww, r0.xyzx, cb3[0].xyzx
ret
// Approximately 106 instruction slots used
