// MANUALLY DUMPED [ShaderRegexHalo2] Nioh 2 sword haloing exception.
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.16 on Sat Feb 06 12:29:39 2021
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   float4 vEye;                       // Index:   29.xyzw           Components:     4
//   row_major float4x4 mW2P;           // Index:    0 1 2 3          Components:    16
//   float4 ksgClipPlane;               // Index:    4.xyzw           Components:     4
//   float4 vSPort;                     // Index:   30.xyzw           Components:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// NORMAL                   0   xyz         1     NONE   float   xyz
// COLOR                    0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 0   xy          3     NONE   float   xy
// TANGENT                  0   xyzw        4     NONE   float   xyzw
// BLENDWEIGHT              0   xyzw        5     NONE   float   xyzw
// BLENDINDICES             0   xyzw        6     NONE   float   xyzw
// BINORMAL                 0   xyzw        7     NONE   float   xyzw
// COLOR                    1   xyzw        8     NONE     int   xyzw
// TEXCOORD                 3   xyzw        9     NONE     int   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_ClipDistance          0   xyzw        0  CLIPDST   float   xyzw
// SV_Position              0   xyzw        1      POS   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 2   xyzw        4     NONE   float   xyzw
// TEXCOORD                 3   xyzw        5     NONE   float   xyzw
// TEXCOORD                 4   xyz         6     NONE   float   xyz
// TEXCOORD                 5   xyz         7     NONE   float   xyz
// TEXCOORD                 6   xyz         8     NONE   float   xyz
// TEXCOORD                 7   xyz         9     NONE   float   xyz
// TEXCOORD                 8   xyz        10     NONE   float   xyz
// TEXCOORD                 9   xy         11     NONE   float   xy
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[31], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xyz
dcl_input v2.xyzw
dcl_input v3.xy
dcl_input v4.xyzw
dcl_input v5.xyzw
dcl_input v6.xyzw
dcl_input v7.xyzw
dcl_input v8.xyzw
dcl_input v9.xyzw
dcl_output_siv o0.xyzw, clip_distance
dcl_output_siv o1.xyzw, position

dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyz
dcl_output o7.xyz
dcl_output o8.xyz
dcl_output o9.xyz
dcl_output o10.xyz
dcl_output o11.xy
dcl_temps 6
dcl_resource_texture2d (float,float,float,float) t125
mov o0.yzw, l(0,0,0,0)
dp4 r0.y, v0.xyzw, v6.xyzw
mul r1.xyzw, r0.yyyy, cb0[1].xyzw
dp4 r0.x, v0.xyzw, v5.xyzw
mad r1.xyzw, r0.xxxx, cb0[0].xyzw, r1.xyzw
dp4 r0.z, v0.xyzw, v7.xyzw
mad r1.xyzw, r0.zzzz, cb0[2].xyzw, r1.xyzw
mad r1.xyzw, v0.wwww, cb0[3].xyzw, r1.xyzw
dp4 o0.x, cb0[4].xyzw, r1.xyzw

mov o1.xyzw, r1.xyzw

//ld_indexable(texture2d)(float,float,float,float) r5.xyzw, l(0, 0, 0, 0), t125.xyzw
//add r5.w, r1.w, -r5.y
//mad r1.x, r5.x, r5.w, r1.x
mov o2.xyzw, r1.xyzw
mov o3.xyz, r0.xyzx
add r0.xyz, -r0.xyzx, cb0[29].xyzx
mov o3.w, v0.w
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r0.xyzx
mul r3.xyz, v6.zxyz, v7.yzxy
mad r3.xyz, v6.yzxy, v7.zxyz, -r3.xyzx
dp3 r3.x, v1.xyzx, r3.xyzx
mul r4.xyz, v5.yzxy, v7.zxyz
mad r4.xyz, v7.yzxy, v5.zxyz, -r4.xyzx
dp3 r3.y, v1.xyzx, r4.xyzx
mul r4.xyz, v5.zxyz, v6.yzxy
mad r4.xyz, v5.yzxy, v6.zxyz, -r4.xyzx
dp3 r3.z, v1.xyzx, r4.xyzx
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
dp3 r0.w, r3.xyzx, r2.xyzx
itof r2.xyzw, v8.xyzw
lt r4.xy, r2.xwxx, l(0.000000, 0.000000, 0.000000, 0.000000)
and r4.xy, r4.xyxx, l(0x43800000, 0x43800000, 0, 0)
mad r4.xy, r2.xwxx, l(0.00390625000, 0.00390625000, 0.000000, 0.000000), r4.xyxx
mul r2.xyzw, r2.xyzw, l(0.00390625000, 0.00390625000, 0.00390625000, 0.00390625000)
frc r2.xyzw, r2.xyzw
add r4.xy, -r2.xwxx, r4.xyxx
mul r2.xyzw, r2.xyzw, v2.xyzw
mul r2.xyzw, r2.xyzw, l(1.00392163, 1.00392163, 1.00392163, 1.00392163)
lt r1.z, l(0.500000), r4.y
movc r0.w, r1.z, |r0.w|, l(1.000000)
mul o4.w, r0.w, r2.w
mov o4.xyz, r2.xyzx
ge r0.w, r4.x, l(128.000000)
add r1.z, r4.x, l(-128.000000)
movc r0.w, r0.w, r1.z, r4.x
add r0.w, r0.w, l(-16.000000)
exp o5.w, r0.w
dp2 o5.x, cb0[30].xyxx, r1.xwxx
dp2 o5.y, cb0[30].zwzz, r1.ywyy
mov o5.z, r1.w
mul r1.xyz, r1.xywx, l(1.49803925, 1.49803925, 1.49803925, 0.000000)
mul r2.xyz, r3.yyyy, cb0[1].xywx
mad r2.xyz, r3.xxxx, cb0[0].xywx, r2.xyzx
mad r2.xyz, r3.zzzz, cb0[2].xywx, r2.xyzx
dp2 o6.x, cb0[30].xyxx, r2.xzxx
dp2 o6.y, cb0[30].zwzz, r2.yzyy
mov o6.z, r2.z
dp3 r2.x, v4.xyzx, v5.xyzx
dp3 r2.y, v4.xyzx, v6.xyzx
dp3 r2.z, v4.xyzx, v7.xyzx
dp3 r0.w, r2.xyzx, r2.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, r2.xyzx
mul r4.xyz, r2.yyyy, cb0[1].xywx
mad r4.xyz, r2.xxxx, cb0[0].xywx, r4.xyzx
mad r4.xyz, r2.zzzz, cb0[2].xywx, r4.xyzx
dp2 o7.x, cb0[30].xyxx, r4.xzxx
dp2 o7.y, cb0[30].zwzz, r4.yzyy
mov o7.z, r4.z
mul r4.xyz, r3.yzxy, r2.zxyz
mad r4.xyz, r2.yzxy, r3.zxyz, -r4.xyzx
dp3 r3.z, r3.xyzx, -r0.xyzx
dp3 r3.y, r2.xyzx, -r0.xyzx
mul r2.xyz, r4.xyzx, v4.wwww
mul r4.xyz, r2.yyyy, cb0[1].xywx
mad r4.xyz, r2.xxxx, cb0[0].xywx, r4.xyzx
mad r4.xyz, r2.zzzz, cb0[2].xywx, r4.xyzx
dp3 r3.x, r2.xyzx, -r0.xyzx
mul o9.xyz, r3.xyzx, l(0.501960814, 0.501960814, 0.501960814, 0.000000)
dp2 o8.x, cb0[30].xyxx, r4.xzxx
dp2 o8.y, cb0[30].zwzz, r4.yzyy
mov o8.z, r4.z
dp2 o10.x, cb0[30].xyxx, r1.xzxx
dp2 o10.y, cb0[30].zwzz, r1.yzyy
mov o10.z, r1.z
itof r0.xyzw, v9.xyzw
mul r0.xyzw, r0.xyzw, l(0.000244140625, 0.000244140625, 0.000244140625, 0.000244140625)
mad o11.xy, v3.xyxx, r0.zwzz, r0.xyxx
ret
// Approximately 90 instruction slots used
