//TAA objects PS from cache.
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384
//
//   using 3Dmigoto v1.3.16 on Fri Jan 14 20:07:35 2022
//
//
// Buffer Definitions:
//
// cbuffer ConstBuf__modelData
// {
//
//   struct ModelData
//   {
//
//       uint lightGroupID;             // Index:    0
//       uint modelFlags;               // Index:    0.y
//       float lodFade;                 // Index:    0.z
//       float displacementBlend;       // Index:    0.w
//       int turbulenceDataIdx;         // Index:    1
//       int instanceOffset;            // Index:    1.y
//       int characterFxIdx;            // Index:    1.z
//       uint debugRenderChannel;       // Index:    1.w
//       uint decayWriteOffset;         // Index:    2
//       uint decayWriteMaxCount;       // Index:    2.y
//       uint decayAtomicCounterIndex;  // Index:    2.z
//       float modelAlpha;              // Index:    2.w
//       float emissiveScale;           // Index:    3
//       float desaturationScale;       // Index:    3.y
//       float decayCoverageEstimation; // Index:    3.z
//       float3 quantScale;             // Index:    4
//       float3 quantBias;              // Index:    5
//
//   } resourceTables__modelData;       // Index:    0-5.z            Components:    23
//
// }
//
// cbuffer ConstBuf__viewData
// {
//
//   struct ViewData
//   {
//
//       float4x4 view;                 // Index:    0
//       float4x4 invView;              // Index:    4
//       float4x4 proj;                 // Index:    8
//       float4x4 invViewProjNoZReproj; // Index:   12
//       float4x4 viewProj;             // Index:   16
//       float4x4 invViewProj;          // Index:   20
//       float4x4 previousViewProj;     // Index:   24
//       float4 prevLodEyePos;          // Index:   28
//       float4 lodEyePos;              // Index:   29
//       float4 viewDirDepthBias;       // Index:   30
//       float3 eyePos;                 // Index:   31
//       float2 viewportSize;           // Index:   32
//       float2 invViewportSize;        // Index:   32.z
//       float4 mirrorPlaneWS;          // Index:   33
//       float2 mirrorViewportSize;     // Index:   34
//       float2 opaqueRefractionViewportSize;// Index:   34.z
//       float windTime;                // Index:   35
//       float deltaTime;               // Index:   35.y
//       float depthReprojectScale;     // Index:   35.z
//       float depthReprojectBias;      // Index:   35.w
//       uint shadowViewType;           // Index:   36
//       float normalDepthBias;         // Index:   36.y
//       float noNormalAA;              // Index:   36.z
//       float noNormalFromAlpha;       // Index:   36.w
//       float noOpaqueTransparency;    // Index:   37
//       float translucentAmount;       // Index:   37.y
//       uint framePhase;               // Index:   37.z
//       float cameraAmbientExposure;   // Index:   37.w
//       float fxExposure;              // Index:   38
//       float fxAmbientExposure;       // Index:   38.y
//       uint checkerboardPhase;        // Index:   38.z
//       float sparkleIntensityScale;   // Index:   38.w
//
//   } resourceTables__viewData;        // Index:    0-38             Components:   156
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// resourceTables__viewData__smpLinear    sampler      NA          NA    1        1
// resourceTables__viewData__smpLowAniso    sampler      NA          NA    2        1
// resourceTables__materialData.layer_0_4__diffuse    texture  float4          2d   11        1
// resourceTables__materialData.layer_0_4__normal    texture  float4          2d   12        1
// resourceTables__materialData.layer_0_4__gloss    texture  float4          2d   13        1
// resourceTables__materialData.layer_0_4__ao    texture  float4          2d   14        1
// resourceTables__materialData.layer_0_4__scatter    texture  float4          2d   16        1
// resourceTables__materialData.layer_5__diffuse    texture  float4          2d   17        1
// resourceTables__materialData.layer_5__normal    texture  float4          2d   18        1
// resourceTables__materialData.layer_5__gloss    texture  float4          2d   19        1
// resourceTables__materialData.layer_5__alpha    texture  float4          2d   20        1
// ConstBuf__modelData               cbuffer      NA          NA    1        1
// ConstBuf__viewData                cbuffer      NA          NA    3        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy
// VERT_ID                  0   x           1     NONE    uint
// TEXCOORD                 0   xy          2     NONE   float   xy
// NORMAL                   0   xyz         3     NONE   float   xyz
// TANGENT                  0   xyz         4     NONE   float   xyz
// BINORMAL                 0   xyz         5     NONE   float   xyz
// TEXCOORD                 8   xyz         6     NONE   float   xyz
// SV_IsFrontFace           0   x           7    FFACE    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_Target                1   xyzw        1   TARGET   float   xyzw
// SV_Target                2   xyzw        2   TARGET   float   xyzw
// SV_Target                3   xyzw        3   TARGET   float   xyzw
// SV_Target                4   xy          4   TARGET   float   xy
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb1[1], immediateIndexed
dcl_constantbuffer cb3[37], immediateIndexed
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_resource_texture2d (float,float,float,float) t11
dcl_resource_texture2d (float,float,float,float) t12
dcl_resource_texture2d (float,float,float,float) t13
dcl_resource_texture2d (float,float,float,float) t14
dcl_resource_texture2d (float,float,float,float) t16
dcl_resource_texture2d (float,float,float,float) t17
dcl_resource_texture2d (float,float,float,float) t18
dcl_resource_texture2d (float,float,float,float) t19
dcl_resource_texture2d (float,float,float,float) t20
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_input_ps linear v2.xy
dcl_input_ps linear v3.xyz
dcl_input_ps linear v4.xyz
dcl_input_ps linear v5.xyz
dcl_input_ps linear v6.xyz
dcl_input_ps_sgv v7.x, is_front_face
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xy
dcl_temps 50
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r40.xyzw, l(0, 0, 0, 0), t125.xyzw

mul r0.xy, v0.xyxx, cb3[32].zwzz
mad r0.xy, r0.xyxx, l(2.000000, -2.000000, 0.000000, 0.000000), l(-1.000000, 1.000000, 0.000000, 0.000000)
movc r1.xyz, v7.xxxx, v3.xyzx, -v3.xyzx
dp3 r0.z, r1.xyzx, r1.xyzx
rsq r0.z, r0.z
mul r1.xyz, r0.zzzz, r1.xyzx
sample_indexable(texture2d)(float,float,float,float) r2.xyz, v2.xyxx, t11.xyzw, s2
lt r3.xyz, r2.xyzx, l(0.00313080009, 0.00313080009, 0.00313080009, 0.000000)
mul r4.xyz, r2.xyzx, l(12.920000, 12.920000, 12.920000, 0.000000)
log r2.xyz, r2.xyzx
mul r2.xyz, r2.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000)
exp r2.xyz, r2.xyzx
mad r2.xyz, r2.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000)
movc r2.xyz, r3.xyzx, r4.xyzx, r2.xyzx
sample_indexable(texture2d)(float,float,float,float) r3.xyz, v2.xyxx, t12.xyzw, s2
mad r3.xyz, r3.xyzx, l(2.007874, 2.007874, 2.007874, 0.000000), l(-1.007874, -1.007874, -1.007874, 0.000000)
sample_indexable(texture2d)(float,float,float,float) r4.xyzw, v2.xyxx, t13.xyzw, s2
sample_indexable(texture2d)(float,float,float,float) r5.y, v2.xyxx, t14.xwyz, s2
sample_indexable(texture2d)(float,float,float,float) r6.xyz, v2.xyxx, t16.xyzw, s1
dp3 r0.z, r3.xyzx, r3.xyzx
sqrt r0.z, r0.z
max r7.x, r0.z, l(0.000010)
rcp r0.z, r7.x
mul r3.xyz, r0.zzzz, r3.xyzx
mul r0.z, r4.w, r4.w
mul r0.z, r0.z, l(0.160000)
mul r8.xyz, r2.xyzx, r4.yyyy
mul r8.xyz, r8.xyzx, l(5.960464478E-008, 5.960464478E-008, 5.960464478E-008, 0.000000)
mad r2.xyz, r2.xyzx, l(0.999999940, 0.999999940, 0.999999940, 0.000000), r8.xyzx
mul r6.xyz, r4.zzzz, r6.xyzx
sample_indexable(texture2d)(float,float,float,float) r8.xyzw, v2.xyxx, t17.xyzw, s2
sample_indexable(texture2d)(float,float,float,float) r0.w, v2.xyxx, t20.xyzw, s2
add_sat r1.w, r8.w, l(-0.609375)
mad r0.w, r0.w, r1.w, l(0.019043)
mul_sat r0.w, r0.w, l(2.240088)
lt r1.w, l(0.000000), r0.w
if_nz r1.w
  lt r9.xyz, r8.xyzx, l(0.00313080009, 0.00313080009, 0.00313080009, 0.000000)
  mul r10.xyz, r8.xyzx, l(12.920000, 12.920000, 12.920000, 0.000000)
  log r8.xyz, r8.xyzx
  mul r8.xyz, r8.xyzx, l(0.416666657, 0.416666657, 0.416666657, 0.000000)
  exp r8.xyz, r8.xyzx
  mad r8.xyz, r8.xyzx, l(1.055000, 1.055000, 1.055000, 0.000000), l(-0.055000, -0.055000, -0.055000, 0.000000)
  movc r8.xyz, r9.xyzx, r10.xyzx, r8.xyzx
  sample_indexable(texture2d)(float,float,float,float) r9.xyz, v2.xyxx, t18.xyzw, s2
  mad r9.xyz, r9.xyzx, l(2.007874, 2.007874, 2.007874, 0.000000), l(-1.007874, -1.007874, -1.007874, 0.000000)
  sample_indexable(texture2d)(float,float,float,float) r7.zw, v2.xyxx, t19.yzxw, s2
  dp3 r1.w, r9.xyzx, r9.xyzx
  sqrt r1.w, r1.w
  max r1.w, r1.w, l(0.000010)
  rcp r2.w, r1.w
  mul r3.w, r7.w, r7.w
  add r1.w, -r7.x, r1.w
  mad r7.x, r0.w, r1.w, r7.x
  mad r9.xyz, r9.xyzx, r2.wwww, -r3.xyzx
  mad r3.xyz, r0.wwww, r9.xyzx, r3.xyzx
  mad r6.xyz, r0.wwww, -r6.xyzx, r6.xyzx
  mad r8.xyz, r8.xyzx, l(0.456298947, 0.456298947, 0.456298947, 0.000000), -r2.xyzx
  mad r2.xyz, r0.wwww, r8.xyzx, r2.xyzx
  add r1.w, -r4.x, r7.z
  mad r4.x, r0.w, r1.w, r4.x
  add r1.w, -r5.y, l(1.000000)
  mad r5.y, r0.w, r1.w, r5.y
  mad r1.w, r3.w, l(0.160000), -r0.z
  mad r0.z, r0.w, r1.w, r0.z
  mad r5.xz, r0.wwww, -r4.zzyz, r4.zzyz
  mov r4.y, r5.z
else
  mov r5.x, r4.z
endif
dp3 r0.w, v4.xyzx, v4.xyzx
rsq r0.w, r0.w
mul r8.xyz, r0.wwww, v4.xyzx
dp3 r0.w, v5.xyzx, v5.xyzx
rsq r0.w, r0.w
mul r9.xyz, r0.wwww, v5.xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
mul r9.xyz, r9.xyzx, r3.yyyy
mad r3.xyw, r3.xxxx, r8.xyxz, r9.xyxz
mad r3.xyz, r3.zzzz, r1.xyzx, r3.xywx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
ne r0.w, l(0.000000, 0.000000, 0.000000, 0.000000), cb3[36].z
deriv_rtx_fine r8.xyz, r1.xyzx
deriv_rty_fine r1.xyz, r1.xyzx
dp3 r1.w, r8.xyzx, r8.xyzx
dp3 r1.x, r1.xyzx, r1.xyzx
add r1.x, r1.x, r1.w
min r7.y, r1.x, l(0.300000)
movc r1.xy, r0.wwww, l(1.000000,0,0,0), r7.xyxx
add r0.w, -r4.x, l(1.000000)
mul r0.w, r0.w, r0.w
max r1.z, r1.x, l(0.600000)
mad r1.z, r1.z, l(-0.527635), l(0.520718)
max r1.z, r1.z, l(0.000000)
mad r0.w, r0.w, r0.w, r1.z
add r0.w, r1.y, r0.w
sqrt r0.w, r0.w
min r0.w, r0.w, l(1.000000)
max r0.w, r0.w, l(0.001000)
sqrt r0.w, r0.w
add r5.z, -r0.w, l(1.000000)
lt r0.w, r2.x, l(0.040450)
mul r1.y, r2.x, l(0.0773993805)
add r1.zw, r2.xxxy, l(0.000000, 0.000000, 0.055000, 0.055000)
mul r1.zw, r1.zzzw, l(0.000000, 0.000000, 0.947867334, 0.947867334)
log r1.z, r1.z
mul r1.z, r1.z, l(2.400000)
exp r1.z, r1.z
movc r0.w, r0.w, r1.y, r1.z
lt r1.y, r2.y, l(0.040450)
mul r1.z, r2.y, l(0.0773993805)
log r1.w, r1.w
mul r1.w, r1.w, l(2.400000)
exp r1.w, r1.w
movc r1.y, r1.y, r1.z, r1.w
lt r1.z, r2.z, l(0.040450)
mul r1.w, r2.z, l(0.0773993805)
add r2.x, r2.z, l(0.055000)
mul r2.x, r2.x, l(0.947867334)
log r2.x, r2.x
mul r2.x, r2.x, l(2.400000)
exp r2.x, r2.x
movc r1.z, r1.z, r1.w, r2.x
and r1.w, l(8), cb1[0].y
max r2.x, r6.z, r6.y
max r2.x, r2.x, r6.x
mul r2.x, r5.x, r2.x
lt r2.x, l(0.010000), r2.x
add r1.x, r1.x, l(-0.950000)
mul o1.w, r1.x, l(20.000000)
ftou r2.yz, v0.xxyx
sqrt r7.xw, r0.wwww
sqrt r7.yz, r1.yyzy
mul r1.xyz, r7.xywx, l(0.250000, 0.500000, -0.250000, 0.000000)
add r1.xy, r1.yyyy, r1.xzxx
mad r8.x, r7.z, l(0.250000), r1.x
dp2 r8.y, r7.wzww, l(0.500000, -0.500000, 0.000000, 0.000000)
mad r8.z, r7.z, l(-0.250000), r1.y
and r1.xy, r2.yzyy, l(1, 1, 0, 0)
ine r0.w, r1.y, r1.x
movc r1.xy, r0.wwww, r8.xyxx, r8.xzxx
add r4.xz, r1.xxyx, l(0.000000, 0.000000, 0.498039216, 0.000000)
mul r0.z, r0.z, l(6.250000)
sqrt r4.w, r0.z
mad o1.xyz, r3.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
movc r0.z, r1.w, l(25), l(24)
bfi r0.z, l(3), l(5), r2.x, r0.z
utof r0.z, r0.z
mul r5.w, r0.z, l(0.00392156886)
and o3.xyz, r6.xyzx, r2.xxxx
max r0.z, |v6.z|, l(0.000001)

mov r37.xyz, v6.xyzx
ld_indexable(texture2d)(float,float,float,float) r41.xyzw, l(2, 0, 0, 0), t125.xyzw
ge r42.x, r41.x, l(5.0)
if_z r42.x
add r40.w, r37.z, -r41.y
mad r37.x, r41.x, r40.w, r37.x
else
add r40.w, r37.z, -r40.y
mad r37.x, r40.x, r40.w, r37.x
endif

div r0.zw, r37.xxxy, r0.zzzz
add o4.xy, -r0.zwzz, r0.xyxx
mov o0.xyzw, r4.xzyw
mov o2.xyzw, r5.yxzw
mov o3.w, l(0)
ret
// Approximately 161 instruction slots used
