// MANUALLY DUMPED [ShaderRegex\ShaderFixes\UE5_masterotaku.ini\_113_TAA_2] FFR tree leaves that interfere with convergence. Paladia memories.
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.198 on Sun Nov  8 17:06:25 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 7   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xy
// COLOR                    0   xyzw        3     NONE   float      w
// COLOR                    1   xyzw        4     NONE   float      w
// COLOR                    2   xyzw        5     NONE   float   xy
// PRIMITIVE_ID             0   x           6     NONE    uint   x
// SV_IsFrontFace           0   x           7    FFACE    uint
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_DepthLessEqual        0    N/A oDepthLE  DEPTHLE   float    YES
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[165], immediateIndexed
dcl_constantbuffer CB1[26], immediateIndexed
dcl_constantbuffer CB2[4], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_structured t0, 16
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps_siv linear noperspective centroid v0.xyzw, position
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.w
dcl_input_ps constant v4.w
dcl_input_ps constant v5.xy
dcl_input_ps constant v6.x
dcl_output o0.xyzw
dcl_output oDepthLE
dcl_temps 17
dcl_resource_texture2d (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture1d)(float,float,float,float) r9.xyzw, l(10, 0, 0, 0), t120.xyzw

lt r10.x, v0.w, l(1600.0)
eq r10.y, r9.y, l(1.0)
and r10.x, r10.x, r10.y
//if_nz r11.x
discard_nz r10.x
//endif

add r0.xy, v0.xyxx, -cb0[148].xyxx
mad r0.xy, r0.xyxx, cb0[149].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
mul r0.xy, r0.xyxx, l(2.000000, -2.000000, 0.000000, 0.000000)
mov [precise(z)] r0.z, v0.z
mov [precise(w)] r0.w, l(1.000000)
mul [precise(zw)] r0.xyzw, r0.xyzw, v0.wwww
and r1.xy, cb1[25].zzzz, l(1, 2, 0, 0)
movc r1.xy, r1.xyxx, v5.xyxx, l(0,0,0,0)
mad r1.xy, v2.xyxx, cb2[0].yzyy, r1.xyxx
sample_b_indexable(texture2d)(float,float,float,float) r1.x, r1.xyxx, t1.xyzw, s0, cb0[164].y
mul r1.x, r1.x, cb2[1].x
mul r1.x, r1.x, v4.w
mul_sat r1.x, r1.x, v3.w
ge [precise(y)] r1.y, cb0[31].w, l(1.000000)
if_nz r1.y
  mul [precise(yz)] r1.yz, v0.zzzz, cb0[78].xxzx
  add [precise(y)] r1.y, r1.y, cb0[78].y
  add [precise(z)] r1.z, r1.z, -cb0[78].w
  div [precise(z)] r1.z, l(1.000000, 1.000000, 1.000000, 1.000000), r1.z
  add [precise(y)] r1.y, r1.z, r1.y
  add [precise(z)] r1.z, r1.y, cb2[3].y
  max [precise(y)] r1.y, r1.y, r1.z
  mul [precise(y)] r1.y, r1.y, cb0[30].z
  add [precise(x)] oDepthLE, r1.y, cb0[31].z
else
  add [precise(y)] r1.y, r0.w, cb2[3].y
  div [precise(y)] r1.y, r0.z, r1.y
  min [precise(x)] oDepthLE, r1.y, v0.z
endif
add r1.x, r1.x, l(-0.333300)
lt r1.x, r1.x, l(0.000000)
discard_nz r1.x

ld_indexable(texture2d)(float,float,float,float) r3.xyzw, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture2d)(float,float,float,float) r2.xyzw, l(2, 0, 0, 0), t125.xyzw
mov r4.xyzw, r0.xyzw
mov r5.xyzw, v1.xyzw
//add r6.y, r0.w, -r3.y
//mad r4.x, r3.x, r6.y, r4.x
div r0.xyz, r4.xyzx, r0.wwww
add r0.xy, r0.xyxx, -cb0[144].xyxx

//add r6.y, v1.w, -r2.y
add r6.y, r5.w, -r2.y
mad r5.x, r2.x, r6.y, r5.x
div r1.xyz, r5.xyzx, v1.wwww
add r1.xy, r1.xyxx, -cb0[144].zwzz

add r0.xyz, r0.xyzx, -r1.xyzx
imul [precise(w)] null, r0.w, v6.x, l(44)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r0.w, r0.w, l(0), t0.xxxx
lt r1.xy, l(0.000000, 0.000000, 0.000000, 0.000000), r0.xyxx
lt r1.zw, r0.xxxy, l(0.000000, 0.000000, 0.000000, 0.000000)
iadd r1.xy, -r1.xyxx, r1.zwzz
itof r1.xy, r1.xyxx
sqrt r0.xy, |r0.xyxx|
mul r0.xy, r0.xyxx, r1.xyxx
mad o0.xy, r0.xyxx, l(0.352846295, 0.352846295, 0.000000, 0.000000), l(0.499992371, 0.499992371, 0.000000, 0.000000)
ushr r0.x, r0.z, l(16)
utof r0.x, r0.x
mad r0.x, r0.x, l(0.0000152590219), l(0.00000152590223)
min o0.z, r0.x, l(1.000000)
and r0.xw, r0.zzzw, l(0x0000fffe, 0, 0, 0x04000000)
movc r0.y, r0.w, l(1), l(0)
iadd r0.x, r0.x, r0.y
utof r0.x, r0.x
mad r0.x, r0.x, l(0.0000152590219), l(0.00000152590223)
min o0.w, r0.x, l(1.000000)
ret
// Approximately 0 instruction slots used
