t3(x0, x1);
}
float4 vec4_ctor(float x0)
{
    return float4(x0, x0, x0, x0);
}
float4 vec4_ctor(float x0, float x1, float x2, float x3)
{
    return float4(x0, x1, x2, x3);
}
float4 vec4_ctor(float3 x0, float x1)
{
    return float4(x0, x1);
}
// Uniforms

uniform float2 _u_skRTFlip : register(c0);
uniform float3x3 _umatrix_S1_c0 : register(c1);
uniform float4 _uthresholds1_7_S1_c1_c0_c0 : register(c4);
uniform float4 _uscale_S1_c1_c0_c0[4] : register(c5);
uniform float4 _ubias_S1_c1_c0_c0[4] : register(c9);
uniform float4 _uleftBorderColor_S1_c1_c0 : register(c13);
uniform float4 _urightBorderColor_S1_c1_c0 : register(c14);
uniform float _urange_S1 : register(c15);
static const uint _uTextureSampler_0_S1 = 0;
uniform Texture2D<float4> textures2D[1] : register(t0);
uniform SamplerState samplers2D[1] : register(s0);
#ifdef ANGLE_ENABLE_LOOP_FLATTEN
#define LOOP [loop]
#define FLATTEN [flatten]
#else
#define LOOP
#define FLATTEN
#endif

#define ATOMIC_COUNTER_ARRAY_STRIDE 4

// Varyings
static  float4 _vinCircleEdge_S0 = {0, 0, 0, 0};
static  float4 _vinColor_S0 = {0, 0, 0, 0};
static  float2 _vTransformedCoords_8_S0 = {0, 0};

static float4 gl_Color[1] =
{
    float4(0, 0, 0, 0)
};
static float4 gl_FragCoord = float4(0, 0, 0, 0);

cbuffer DriverConstants : register(b1)
{
    float4 dx_ViewCoords : packoffset(c1);
    float3 dx_DepthFront : packoffset(c2);
    float2 dx_ViewScale : packoffset(c3);
    struct SamplerMetadata
    {
        int baseLevel;
        int internalFormatBits;
        int wrapModes;
        int padding;
        int4 intBorderColor;
    };
    SamplerMetadata samplerMetadata[1] : packoffset(c4);
};

#define GL_USES_FRAG_COLOR
float4 gl_texture2D(uint samplerIndex, float2 t, float bias)
{
    return textures2D[samplerIndex].SampleBias(samplers2D[samplerIndex], float2(t.x, t.y), bias);
}

#define GL_USES_FRAG_COORD
@@ PIXEL OUTPUT @@

PS_OUTPUT main(PS_INPUT input){
    float rhw = 1.0 / input.gl_FragCoord.w;
    gl_FragCoord.x = input.dx_Position.x;
    gl_FragCoord.y = input.dx_Position.y;
    gl_FragCoord.z = (input.gl_FragCoord.z * rhw) * dx_DepthFront.x + dx_DepthFront.y;
    gl_FragCoord.w = rhw;
    _vinCircleEdge_S0 = input.v0;
    _vinColor_S0 = input.v1;
    _vTransformedCoords_8_S0 = input.v2.xy;

float4 _sk_FragCoord3102 = vec4_ctor(gl_FragCoord.x, (_u_skRTFlip.x + (_u_skRTFlip.y * gl_FragCoord.y)), gl_FragCoord.z, gl_FragCoord.w);
float4 _circleEdge3103 = {0, 0, 0, 0};
(_circleEdge3103 = _vinCircleEdge_S0);
float4 _outputColor_S03104 = {0, 0, 0, 0};
(_outputColor_S03104 = _vinColor_S0);
float _d3105 = length(_circleEdge3103.xy);
float _distanceToOuterEdge3106 = (_circleEdge3103.z * (1.0 - _d3105));
float _edgeAlpha3107 = clamp(_distanceToOuterEdge3106, 0.0, 1.0);
float4 _outputCoverage_S03108 = vec4_ctor(_edgeAlpha3107);
float4 _output_S13109 = {0, 0, 0, 0};
float4 __31_input3110 = _outputColor_S03104;
float4 __32_input3111 = __31_input3110;
float2 __35_tmp_3_coords3112 = _vTransformedCoords_8_S0;
float4 __36_t3113 = vec4_ctor((__35_tmp_3_coords3112.x + 9.9999997e-06), 1.0, 0.0, 0.0);
float4 __37_outColor3114 = {0, 0, 0, 0};
if ((__36_t3113.x < 0.0))
{
(__37_outColor3114 = _uleftBorderColor_S1_c1_c0);
}
else
{
if ((__36_t3113.x > 1.0))
{
(__37_outColor3114 = _urightBorderColor_S1_c1_c0);
}
else
{
float2 __39_tmp_1_coords3115 = vec2_ctor(__36_t3113.x, 0.0);
float __40_t3116 = __39_tmp_1_coords3115.x;
float4 __41_s3117 = {0, 0, 0, 0};
float4 __42_b3118 = {0, 0, 0, 0};
{
if ((__40_t3116 < _uthresholds1_7_S1_c1_c0_c0.y))
{
if ((__40_t3116 < _uthresholds1_7_S1_c1_c0_c0.x))
{
(__41_s3117 = _uscale_S1_c1_c0_c0[0]);
(__42_b3118 = _ubias_S1_c1_c0_c0[0]);
}
else
{
(__41_s3117 = _uscale_S1_c1_c0_c0[1]);
(__42_b3118 = _ubias_S1_c1_c0_c0[1]);
}
}
else
{
if ((__40_t3116 < _uthresholds1_7_S1_c1_c0_c0.z))
{
(__41_s3117 = _uscale_S1_c1_c0_c0[2]);
(__42_b3118 = _ubias_S1_c1_c0_c0[2]);
}
else
{
(__41_s3117 = _uscale_S1_c1_c0_c0[3]);
(__42_b3118 = _ubias_S1_c1_c0_c0[3]);
}
}
}
(__37_outColor3114 = ((__40_t3116 * __41_s3117) + __42_b3118));
}
}
(__32_input3111 = __37_outColor3114);
(__31_input3110 = __32_input3111);
float __45_value3119 = (gl_texture2D(_uTextureSampler_0_S1, mul(transpose(_umatrix_S1_c0), vec3_ctor(_sk_FragCoord3102.xy, 1.0)).xy, -0.5).x - 0.5);
(_output_S13109 = vec4_ctor(clamp((__31_input3110.xyz + (__45_value3119 * _urange_S1)), 0.0, __31_input3110.w), __31_input3110.w));
{
(gl_Color[0] = (_output_S13109 * _outputCoverage_S03108));
}
return generateOutput();
}
