// ---- Created with 3Dmigoto v1.3.16 on Mon Feb  9 00:50:34 2026
Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb5 : register(b5)
{
  float4 cb5[40];
}

cbuffer cb4 : register(b4)
{
  float4 cb4[4];
}

cbuffer cb3 : register(b3)
{
  float4 cb3[54];
}

cbuffer cb2 : register(b2)
{
  float4 cb2[5];
}

cbuffer cb1 : register(b1)
{
  float4 cb1[27];
}

cbuffer cb0 : register(b0)
{
  float4 cb0[288];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
#define pCensor IniParams[219].x


void main(
  float4 v0 : TEXCOORD10,
  float4 v1 : TEXCOORD11,
  float4 v2 : TEXCOORD0,
  float4 v3 : COLOR0,
  nointerpolation float4 v4 : COLOR1,
  nointerpolation float4 v5 : COLOR2,
  float4 v6 : PARTICLE_VELOCITY0,
  nointerpolation float v7 : NIAGARA_LOCAL_TIME0,
  nointerpolation uint w7 : NIAGARA_EFFECT_TYPE0,
  float4 v8 : VELOCITY_PREV_POS0,
  float4 v9 : SV_Position0,
  uint v10 : SV_IsFrontFace0,
  out float4 o0 : SV_Target0,
  out float4 o1 : SV_Target1,
  out float4 o2 : SV_Target2,
  out float4 o3 : SV_Target3,
  out float4 o4 : SV_Target4,
  out float4 o5 : SV_Target5,
  out float4 o6 : SV_Target6)
{
  float4 r0,r1,r2,r3,r4,r5,r6;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xy = -cb0[134].xy + v9.xy;
  r1.xyzw = cb0[45].xyzw * v9.yyyy;
  r1.xyzw = v9.xxxx * cb0[44].xyzw + r1.xyzw;
  r1.xyzw = v9.zzzz * cb0[46].xyzw + r1.xyzw;
  r1.xyzw = cb0[47].xyzw + r1.xyzw;
  r1.xyz = r1.xyz / r1.www;
  r1.xyz = -cb0[70].xyz + r1.xyz;
  r0.zw = v2.wz + -v2.xy;
  r0.zw = cb5[30].zz * r0.zw + v2.xy;
  r2.xy = r0.xy * cb0[135].zw + -r0.zw;
  r0.zw = cb5[30].ww * r2.xy + r0.zw;
  r0.zw = float2(-0.5,-0.5) + r0.zw;
  r2.x = dot(r0.zw, cb5[6].xy);
  r2.y = dot(r0.zw, cb5[7].xy);
  r0.zw = float2(0.5,0.5) + r2.xy;
  r1.w = 0.000277777785 * v7.x;
  r2.x = cmp(r1.w >= -r1.w);
  r1.w = frac(abs(r1.w));
  r1.w = r2.x ? r1.w : -r1.w;
  r2.x = 3600 * r1.w;
  r1.w = -r1.w * 3600 + cb5[34].z;
  r1.w = cb5[34].y * r1.w + r2.x;
  r2.x = asint(cb2[4].y) & 1;
  r2.x = r2.x ? v5.x : 0;
  r1.w = cb5[34].w * r1.w + r2.x;
  r2.x = r2.x + -r1.w;
  r1.w = cb5[35].x * r2.x + r1.w;
  r2.xy = cb5[13].xy * r1.ww;
  r0.zw = r0.zw * cb5[12].xy + r2.xy;
  r0.zw = cb5[14].xy + r0.zw;
  r0.zw = cb5[16].xy + r0.zw;
  r2.xy = saturate(r0.zw);
  r2.xy = r2.xy + -r0.zw;
  r0.zw = cb5[35].xx * r2.xy + r0.zw;
  r0.zw = cb5[17].xy + r0.zw;
  r2.xyzw = t0.SampleBias(s0_s, r0.zw, cb0[149].y).xyzw;
  r0.z = dot(r2.xyzw, cb5[19].xyzw);
  r3.xyz = r0.zzz + -r2.xyz;
  r3.xyz = cb5[36].xxx * r3.xyz + r2.xyz;
  r4.xyz = cmp(float3(2.98023295e-08,2.98023295e-08,2.98023295e-08) >= r3.xyz);
  r5.xyz = log2(r3.xyz);
  r5.xyz = cb5[36].yyy * r5.xyz;
  r5.xyz = exp2(r5.xyz);
  r4.xyz = r4.xyz ? float3(0,0,0) : r5.xyz;
  r4.xyz = cb5[36].zzz * r4.xyz;
  r3.xyz = r3.xyz * cb5[36].www + -r4.xyz;
  r3.xyz = cb5[37].xxx * r3.xyz + r4.xyz;
  r3.xyz = cb5[37].yyy + r3.xyz;
  r3.xyz = cb5[37].zzz + r3.xyz;
  r3.xyz = cb5[22].xyz * r3.xyz;
  r3.xyz = v4.xyz * r3.xyz;
  r4.xyz = -cb0[287].xyz + cb0[193].xyz;
  r4.xyz = r4.xyz * float3(0.5,0.5,0.5) + cb0[287].xyz;
  r4.xyz = r3.xyz * r4.xyz + -r3.xyz;
  r3.xyz = cb5[37].www * r4.xyz + r3.xyz;
  r0.z = dot(r3.xyz, float3(0.109999999,0.589999974,0.300000012));
  r0.w = saturate(r0.z);
  r4.xyz = -cb5[26].xyz + cb5[25].xyz;
  r4.xyz = r0.www * r4.xyz + cb5[26].xyz;
  r4.xyz = r4.xyz * r0.zzz + -r3.xyz;
  r3.xyz = cb5[38].xxx * r4.xyz + r3.xyz;
  r0.z = dot(r3.xyz, float3(0.298999995,0.587000012,0.114));
  r4.xyz = r0.zzz + -r3.xyz;
  r3.xyz = r4.xyz * cb3[16].yyy + r3.xyz;
  r3.xyz = cb3[53].xyz * r3.xyz;
  r4.xyz = cb4[2].xxx * r3.xyz;
  r0.z = dot(r4.xyz, float3(0.300000012,0.589999974,0.109999999));
  r5.xyz = -r3.xyz * cb4[2].xxx + r0.zzz;
  r4.xyz = cb4[2].yyy * r5.xyz + r4.xyz;
  r5.xyz = cb4[2].zzz * r3.xyz;
  r0.z = dot(r5.xyz, float3(0.300000012,0.589999974,0.109999999));
  r6.xyz = -r3.xyz * cb4[2].zzz + r0.zzz;
  r5.xyz = cb4[2].www * r6.xyz + r5.xyz;
  r0.z = cmp(0 >= cb4[0].x);
  r0.z = r0.z ? 1.000000 : 0;
  r6.xyz = -cb4[1].xyz + r1.xyz;
  r6.xyz = r0.zzz * r6.xyz + cb4[1].xyz;
  r6.xyz = -r6.xyz + r1.xyz;
  r0.z = dot(r6.xyz, r6.xyz);
  r0.z = sqrt(r0.z);
  r0.w = max(9.99999975e-06, cb4[0].x);
  r0.w = 1 / r0.w;
  r0.z = -r0.z * r0.w + 1;
  r0.z = max(0, r0.z);
  r5.xyz = r5.xyz + -r4.xyz;
  r4.xyz = r0.zzz * r5.xyz + r4.xyz;
  r5.xyz = cb4[3].xxx * r3.xyz;
  r0.w = dot(r5.xyz, float3(0.300000012,0.589999974,0.109999999));
  r6.xyz = -r3.xyz * cb4[3].xxx + r0.www;
  r5.xyz = cb4[3].yyy * r6.xyz + r5.xyz;
  r6.xyz = cb4[3].zzz * r3.xyz;
  r0.w = dot(r6.xyz, float3(0.300000012,0.589999974,0.109999999));
  r3.xyz = -r3.xyz * cb4[3].zzz + r0.www;
  r3.xyz = cb4[3].www * r3.xyz + r6.xyz;
  r3.xyz = r3.xyz + -r5.xyz;
  r3.xyz = r0.zzz * r3.xyz + r5.xyz;
  r0.z = cmp((int)w7.x != 1);
  r0.z = r0.z ? 0 : 1;
  r3.xyz = r3.xyz + -r4.xyz;
  r3.xyz = r0.zzz * r3.xyz + r4.xyz;
  r4.xyz = cb5[27].xyz + -r3.xyz;
  r3.xyz = cb5[38].yyy * r4.xyz + r3.xyz;
  r0.z = dot(r2.xyzw, cb5[29].xyzw);
  r0.z = cb5[38].z * r0.z;
  r0.w = r0.z * v3.w + -r0.z;
  r0.z = cb5[38].w * r0.w + r0.z;
  r0.z = v4.w * r0.z + -0.333332986;
  r2.xy = cb0[158].xx + r0.xy;
  r2.xy = (uint2)r2.xy;
  r0.w = (uint)r2.y << 1;
  r0.w = (int)r0.w + (int)r2.x;
  r0.w = (uint)r0.w % 5;
  r0.w = (uint)r0.w;
  r2.xy = float2(0.015625,0.015625) * r0.xy;
  r1.w = t1.SampleBias(s1_s, r2.xy, cb0[149].y).x;
  r0.w = r1.w + r0.w;
  r0.w = r0.w * 0.166666672 + r0.z;
  r0.w = -0.5 + r0.w;
  r0.w = r0.w + -r0.z;
  r0.z = cb5[39].x * r0.w + r0.z;
  r0.z = -0.333299994 + r0.z;
  r0.z = cmp(r0.z < 0);
  if (r0.z != 0 && pCensor == 0) discard;
  r0.z = asint(cb1[26].w) & 1;
  r0.z = cmp(0 < (uint)r0.z);
  r0.w = cmp(asint(cb0[160].x) != 0);
  r0.z = (int)r0.w | (int)r0.z;
  if (r0.z != 0) {
    r0.xy = r0.xy * cb0[135].zw + float2(-0.5,-0.5);
    r0.xy = v9.ww * r0.xy;
    r0.zw = v9.zw;
    r2.xyw = float3(2,-2,1);
    r2.z = v9.w;
    r0.xyzw = r2.xyzw * r0.xyzw;
    r0.xyz = r0.zxy / r0.www;
    r0.yz = -cb0[131].xy + r0.yz;
    r2.xyz = v8.zxy / v8.www;
    r2.yz = -cb0[131].zw + r2.yz;
    r0.xyz = -r2.xyz + r0.xyz;
    r2.xy = r0.yz * float2(0.249500006,0.249500006) + float2(0.499992371,0.499992371);
    r0.y = (uint)r0.x >> 16;
    r0.y = (uint)r0.y;
    r0.y = r0.y * 1.52590219e-05 + 1.52590223e-06;
    r0.x = (int)r0.x & 0x0000ffff;
    r0.x = (uint)r0.x;
    r0.x = r0.x * 1.52590219e-05 + 1.52590223e-06;
    r2.zw = min(float2(1,1), r0.yx);
    r0.x = cmp(cb1[20].w == 0.000000);
    r0.y = cmp(asint(cb0[160].x) == 0);
    r0.x = r0.y ? r0.x : 0;
    o4.xyzw = r0.xxxx ? float4(0,0,0,0) : r2.xyzw;
  } else {
    o4.xyzw = float4(0,0,0,0);
  }
  r0.xyz = max(float3(0,0,0), r3.xyz);
  r0.w = cmp(0 < cb0[146].x);
  if (r0.w != 0) {
    r2.xyz = -cb1[5].xyz + r1.xyz;
    r3.xyz = float3(1,1,1) + cb1[19].xyz;
    r2.xyz = cmp(r3.xyz < abs(r2.xyz));
    r0.w = (int)r2.y | (int)r2.x;
    r0.w = (int)r2.z | (int)r0.w;
    r1.x = dot(r1.xyz, float3(0.577000022,0.577000022,0.577000022));
    r1.x = 0.00200000009 * r1.x;
    r1.x = frac(r1.x);
    r1.x = cmp(0.5 < r1.x);
    r1.xyz = r1.xxx ? float3(0,1,1) : float3(1,1,0);
    r0.xyz = r0.www ? r1.xyz : r0.xyz;
  }
  r0.w = cmp(asint(cb0[275].x) == 1);
  if (r0.w != 0) {
    o4.xyzw = float4(0,0,0,0);
  }
  r0.w = dot(r0.xyz, float3(0.298999995,0.587000012,0.114));
  r1.xyz = r0.www + -r0.xyz;
  r0.xyz = cb0[278].zzz * r1.xyz + r0.xyz;
  r0.xyz = cb0[276].xyz * r0.xyz;
  r0.xyz = min(float3(0,0,0), -r0.xyz);
  o0.xyz = -r0.xyz;
  o0.w = 0;
  o1.xyzw = float4(0,0,0,0);
  o2.xyzw = float4(0,0,0,0);
  o3.xyzw = float4(0,0,0,0);
  o5.xyzw = float4(0,0,0,0);
  o6.xyzw = float4(0,0,0,0);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Mon Feb  9 00:50:34 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                10   xyzw        0     NONE   float
// TEXCOORD                11   xyzw        1     NONE   float
// TEXCOORD                 0   xyzw        2     NONE   float   xyzw
// COLOR                    0   xyzw        3     NONE   float      w
// COLOR                    1   xyzw        4     NONE   float   xyzw
// COLOR                    2   xyzw        5     NONE   float   x
// PARTICLE_VELOCITY        0   xyzw        6     NONE   float
// NIAGARA_LOCAL_TIME       0   x           7     NONE   float   x
// NIAGARA_EFFECT_TYPE      0    y          7     NONE    uint    y
// VELOCITY_PREV_POS        0   xyzw        8     NONE   float   xyzw
// SV_Position              0   xyzw        9      POS   float   xyzw
// SV_IsFrontFace           0   x          10    FFACE    uint
//
//
// 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   xyzw        4   TARGET   float   xyzw
// SV_Target                5   xyzw        5   TARGET   float   xyzw
// SV_Target                6   xyzw        6   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[288], immediateIndexed
dcl_constantbuffer CB1[27], immediateIndexed
dcl_constantbuffer CB2[5], immediateIndexed
dcl_constantbuffer CB3[54], immediateIndexed
dcl_constantbuffer CB4[4], immediateIndexed
dcl_constantbuffer CB5[40], 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 v2.xyzw
dcl_input_ps linear v3.w
dcl_input_ps constant v4.xyzw
dcl_input_ps constant v5.x
dcl_input_ps constant v7.x
dcl_input_ps constant v7.y
dcl_input_ps linear v8.xyzw
dcl_input_ps_siv linear noperspective v9.xyzw, position
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_temps 7
add r0.xy, v9.xyxx, -cb0[134].xyxx
mul r1.xyzw, v9.yyyy, cb0[45].xyzw
mad r1.xyzw, v9.xxxx, cb0[44].xyzw, r1.xyzw
mad r1.xyzw, v9.zzzz, cb0[46].xyzw, r1.xyzw
add r1.xyzw, r1.xyzw, cb0[47].xyzw
div r1.xyz, r1.xyzx, r1.wwww
add r1.xyz, r1.xyzx, -cb0[70].xyzx
add r0.zw, -v2.xxxy, v2.wwwz
mad r0.zw, cb5[30].zzzz, r0.zzzw, v2.xxxy
mad r2.xy, r0.xyxx, cb0[135].zwzz, -r0.zwzz
mad r0.zw, cb5[30].wwww, r2.xxxy, r0.zzzw
add r0.zw, r0.zzzw, l(0.000000, 0.000000, -0.500000, -0.500000)
dp2 r2.x, r0.zwzz, cb5[6].xyxx
dp2 r2.y, r0.zwzz, cb5[7].xyxx
add r0.zw, r2.xxxy, l(0.000000, 0.000000, 0.500000, 0.500000)
mul r1.w, v7.x, l(0.000277777785)
ge r2.x, r1.w, -r1.w
frc r1.w, |r1.w|
movc r1.w, r2.x, r1.w, -r1.w
mul r2.x, r1.w, l(3600.000000)
mad r1.w, -r1.w, l(3600.000000), cb5[34].z
mad r1.w, cb5[34].y, r1.w, r2.x
and r2.x, cb2[4].y, l(1)
movc r2.x, r2.x, v5.x, l(0)
mad r1.w, cb5[34].w, r1.w, r2.x
add r2.x, -r1.w, r2.x
mad r1.w, cb5[35].x, r2.x, r1.w
mul r2.xy, r1.wwww, cb5[13].xyxx
mad r0.zw, r0.zzzw, cb5[12].xxxy, r2.xxxy
add r0.zw, r0.zzzw, cb5[14].xxxy
add r0.zw, r0.zzzw, cb5[16].xxxy
mov_sat r2.xy, r0.zwzz
add r2.xy, -r0.zwzz, r2.xyxx
mad r0.zw, cb5[35].xxxx, r2.xxxy, r0.zzzw
add r0.zw, r0.zzzw, cb5[17].xxxy
sample_b_indexable(texture2d)(float,float,float,float) r2.xyzw, r0.zwzz, t0.xyzw, s0, cb0[149].y
dp4 r0.z, r2.xyzw, cb5[19].xyzw
add r3.xyz, -r2.xyzx, r0.zzzz
mad r3.xyz, cb5[36].xxxx, r3.xyzx, r2.xyzx
ge r4.xyz, l(2.980232949E-08, 2.980232949E-08, 2.980232949E-08, 0.000000), r3.xyzx
log r5.xyz, r3.xyzx
mul r5.xyz, r5.xyzx, cb5[36].yyyy
exp r5.xyz, r5.xyzx
movc r4.xyz, r4.xyzx, l(0,0,0,0), r5.xyzx
mul r4.xyz, r4.xyzx, cb5[36].zzzz
mad r3.xyz, r3.xyzx, cb5[36].wwww, -r4.xyzx
mad r3.xyz, cb5[37].xxxx, r3.xyzx, r4.xyzx
add r3.xyz, r3.xyzx, cb5[37].yyyy
add r3.xyz, r3.xyzx, cb5[37].zzzz
mul r3.xyz, r3.xyzx, cb5[22].xyzx
mul r3.xyz, r3.xyzx, v4.xyzx
add r4.xyz, cb0[193].xyzx, -cb0[287].xyzx
mad r4.xyz, r4.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), cb0[287].xyzx
mad r4.xyz, r3.xyzx, r4.xyzx, -r3.xyzx
mad r3.xyz, cb5[37].wwww, r4.xyzx, r3.xyzx
dp3 r0.z, r3.xyzx, l(0.110000, 0.590000, 0.300000, 0.000000)
mov_sat r0.w, r0.z
add r4.xyz, cb5[25].xyzx, -cb5[26].xyzx
mad r4.xyz, r0.wwww, r4.xyzx, cb5[26].xyzx
mad r4.xyz, r4.xyzx, r0.zzzz, -r3.xyzx
mad r3.xyz, cb5[38].xxxx, r4.xyzx, r3.xyzx
dp3 r0.z, r3.xyzx, l(0.299000, 0.587000, 0.114000, 0.000000)
add r4.xyz, -r3.xyzx, r0.zzzz
mad r3.xyz, r4.xyzx, cb3[16].yyyy, r3.xyzx
mul r3.xyz, r3.xyzx, cb3[53].xyzx
mul r4.xyz, r3.xyzx, cb4[2].xxxx
dp3 r0.z, r4.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mad r5.xyz, -r3.xyzx, cb4[2].xxxx, r0.zzzz
mad r4.xyz, cb4[2].yyyy, r5.xyzx, r4.xyzx
mul r5.xyz, r3.xyzx, cb4[2].zzzz
dp3 r0.z, r5.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mad r6.xyz, -r3.xyzx, cb4[2].zzzz, r0.zzzz
mad r5.xyz, cb4[2].wwww, r6.xyzx, r5.xyzx
ge r0.z, l(0.000000), cb4[0].x
and r0.z, r0.z, l(0x3f800000)
add r6.xyz, r1.xyzx, -cb4[1].xyzx
mad r6.xyz, r0.zzzz, r6.xyzx, cb4[1].xyzx
add r6.xyz, r1.xyzx, -r6.xyzx
dp3 r0.z, r6.xyzx, r6.xyzx
sqrt r0.z, r0.z
max r0.w, cb4[0].x, l(0.000010)
div r0.w, l(1.000000, 1.000000, 1.000000, 1.000000), r0.w
mad r0.z, -r0.z, r0.w, l(1.000000)
max r0.z, r0.z, l(0.000000)
add r5.xyz, -r4.xyzx, r5.xyzx
mad r4.xyz, r0.zzzz, r5.xyzx, r4.xyzx
mul r5.xyz, r3.xyzx, cb4[3].xxxx
dp3 r0.w, r5.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mad r6.xyz, -r3.xyzx, cb4[3].xxxx, r0.wwww
mad r5.xyz, cb4[3].yyyy, r6.xyzx, r5.xyzx
mul r6.xyz, r3.xyzx, cb4[3].zzzz
dp3 r0.w, r6.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
mad r3.xyz, -r3.xyzx, cb4[3].zzzz, r0.wwww
mad r3.xyz, cb4[3].wwww, r3.xyzx, r6.xyzx
add r3.xyz, -r5.xyzx, r3.xyzx
mad r3.xyz, r0.zzzz, r3.xyzx, r5.xyzx
ine r0.z, v7.y, l(1)
movc r0.z, r0.z, l(0), l(1.000000)
add r3.xyz, -r4.xyzx, r3.xyzx
mad r3.xyz, r0.zzzz, r3.xyzx, r4.xyzx
add r4.xyz, -r3.xyzx, cb5[27].xyzx
mad r3.xyz, cb5[38].yyyy, r4.xyzx, r3.xyzx
dp4 r0.z, r2.xyzw, cb5[29].xyzw
mul r0.z, r0.z, cb5[38].z
mad r0.w, r0.z, v3.w, -r0.z
mad r0.z, cb5[38].w, r0.w, r0.z
mad r0.z, v4.w, r0.z, l(-0.333333)
add r2.xy, r0.xyxx, cb0[158].xxxx
ftou r2.xy, r2.xyxx
ishl r0.w, r2.y, l(1)
iadd r0.w, r0.w, r2.x
udiv null, r0.w, r0.w, l(5)
utof r0.w, r0.w
mul r2.xy, r0.xyxx, l(0.015625, 0.015625, 0.000000, 0.000000)
sample_b_indexable(texture2d)(float,float,float,float) r1.w, r2.xyxx, t1.yzwx, s1, cb0[149].y
add r0.w, r0.w, r1.w
mad r0.w, r0.w, l(0.166666672), r0.z
add r0.w, r0.w, l(-0.500000)
add r0.w, -r0.z, r0.w
mad r0.z, cb5[39].x, r0.w, r0.z
add r0.z, r0.z, l(-0.333300)
lt r0.z, r0.z, l(0.000000)
discard_nz r0.z
and r0.z, cb1[26].w, l(1)
ult r0.z, l(0), r0.z
ine r0.w, cb0[160].x, l(0)
or r0.z, r0.w, r0.z
if_nz r0.z
  mad r0.xy, r0.xyxx, cb0[135].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
  mul r0.xy, r0.xyxx, v9.wwww
  mov r0.zw, v9.zzzw
  mov r2.xyw, l(2.000000,-2.000000,0,1.000000)
  mov r2.z, v9.w
  mul r0.xyzw, r0.xyzw, r2.xyzw
  div r0.xyz, r0.zxyz, r0.wwww
  add r0.yz, r0.yyzy, -cb0[131].xxyx
  div r2.xyz, v8.zxyz, v8.wwww
  add r2.yz, r2.yyzy, -cb0[131].zzwz
  add r0.xyz, r0.xyzx, -r2.xyzx
  mad r2.xy, r0.yzyy, l(0.249500, 0.249500, 0.000000, 0.000000), l(0.499992371, 0.499992371, 0.000000, 0.000000)
  ushr r0.y, r0.x, l(16)
  utof r0.y, r0.y
  mad r0.y, r0.y, l(0.0000152590219), l(0.00000152590223)
  and r0.x, r0.x, l(0x0000ffff)
  utof r0.x, r0.x
  mad r0.x, r0.x, l(0.0000152590219), l(0.00000152590223)
  min r2.zw, r0.yyyx, l(0.000000, 0.000000, 1.000000, 1.000000)
  eq r0.x, cb1[20].w, l(0.000000)
  ieq r0.y, cb0[160].x, l(0)
  and r0.x, r0.y, r0.x
  movc o4.xyzw, r0.xxxx, l(0,0,0,0), r2.xyzw
else
  mov o4.xyzw, l(0,0,0,0)
endif
max r0.xyz, r3.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r0.w, l(0.000000), cb0[146].x
if_nz r0.w
  add r2.xyz, r1.xyzx, -cb1[5].xyzx
  add r3.xyz, cb1[19].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  lt r2.xyz, r3.xyzx, |r2.xyzx|
  or r0.w, r2.y, r2.x
  or r0.w, r2.z, r0.w
  dp3 r1.x, r1.xyzx, l(0.577000, 0.577000, 0.577000, 0.000000)
  mul r1.x, r1.x, l(0.002000)
  frc r1.x, r1.x
  lt r1.x, l(0.500000), r1.x
  movc r1.xyz, r1.xxxx, l(0,1.000000,1.000000,0), l(1.000000,1.000000,0,0)
  movc r0.xyz, r0.wwww, r1.xyzx, r0.xyzx
endif
ieq r0.w, cb0[275].x, l(1)
if_nz r0.w
  mov o4.xyzw, l(0,0,0,0)
endif
dp3 r0.w, r0.xyzx, l(0.299000, 0.587000, 0.114000, 0.000000)
add r1.xyz, -r0.xyzx, r0.wwww
mad r0.xyz, cb0[278].zzzz, r1.xyzx, r0.xyzx
mul r0.xyz, r0.xyzx, cb0[276].xyzx
min r0.xyz, -r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mov o0.xyz, -r0.xyzx
mov o0.w, l(0)
mov o1.xyzw, l(0,0,0,0)
mov o2.xyzw, l(0,0,0,0)
mov o3.xyzw, l(0,0,0,0)
mov o5.xyzw, l(0,0,0,0)
mov o6.xyzw, l(0,0,0,0)
ret
// Approximately 0 instruction slots used

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
