t4 v2 : TEXCOORD2;
    nointerpolation float4 v3 : TEXCOORD3;
    nointerpolation float4 v4 : TEXCOORD4;
    nointerpolation float4 v5 : TEXCOORD5;
    nointerpolation float3 v6 : TEXCOORD6;
    nointerpolation float3 v7 : TEXCOORD7;
    nointerpolation float3 v8 : TEXCOORD8;
    nointerpolation float3 v9 : TEXCOORD9;
    nointerpolation float2 v10 : TEXCOORD10;
};
#pragma warning( disable: 3556 3571 )
int int_ctor_uint(uint x0)
{
    return int(x0);
}
uint uint_ctor_int(int x0)
{
    return uint(x0);
}
// Uniforms

uniform float4x4 _uTransform : register(c0);
static const uint _sTransformPalette = 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

// Attributes
static float2 _aPosition = {0, 0};
static float4 _aClipDeviceArea = {0, 0, 0, 0};
static float4 _aClipOrigins = {0, 0, 0, 0};
static float _aDevicePixelScale = {0};
static int2 _aTransformIds = {0, 0};
static float2 _aClipLocalPos = {0, 0};
static float4 _aClipLocalRect = {0, 0, 0, 0};
static float _aClipMode = {0};
static float4 _aClipRadii_TL = {0, 0, 0, 0};
static float4 _aClipRadii_TR = {0, 0, 0, 0};
static float4 _aClipRadii_BL = {0, 0, 0, 0};
static float4 _aClipRadii_BR = {0, 0, 0, 0};

static float4 gl_Position = float4(0, 0, 0, 0);

// Varyings
static nointerpolation float4 _vTransformBounds = {0, 0, 0, 0};
static  float4 _vLocalPos = {0, 0, 0, 0};
static nointerpolation float4 _vClipCenter_Radius_TL = {0, 0, 0, 0};
static nointerpolation float4 _vClipCenter_Radius_TR = {0, 0, 0, 0};
static nointerpolation float4 _vClipCenter_Radius_BL = {0, 0, 0, 0};
static nointerpolation float4 _vClipCenter_Radius_BR = {0, 0, 0, 0};
static nointerpolation float3 _vClipPlane_TL = {0, 0, 0};
static nointerpolation float3 _vClipPlane_TR = {0, 0, 0};
static nointerpolation float3 _vClipPlane_BL = {0, 0, 0};
static nointerpolation float3 _vClipPlane_BR = {0, 0, 0};
static nointerpolation float2 _vClipMode = {0, 0};

cbuffer DriverConstants : register(b1)
{
    float4 dx_ViewAdjust : packoffset(c1);
    float2 dx_ViewCoords : packoffset(c2);
    float2 dx_ViewScale  : packoffset(c3);
    float clipControlOrigin : packoffset(c3.w);
    float clipControlZeroToOne : packoffset(c4);
    struct SamplerMetadata
    {
        int baseLevel;
        int internalFormatBits;
        int wrapModes;
        int padding;
        int4 intBorderColor;
    };
    SamplerMetadata samplerMetadata[1] : packoffset(c5);
};

float4 gl_texture2DFetch(uint samplerIndex, int2 t, int mip)
{
    return textures2D[samplerIndex].Load(int3(t.x, t.y, mip));
}

@@ VERTEX ATTRIBUTES @@

VS_OUTPUT generateOutput(VS_INPUT input)
{
    VS_OUTPUT output;
    output.gl_Position = gl_Position;
    output.dx_Position.x = gl_Position.x;
    output.dx_Position.y = clipControlOrigin * gl_Position.y;
    if (clipControlZeroToOne)
    {
        output.dx_Position.z = gl_Position.z;
    } else {
        output.dx_Position.z = (gl_Position.z + gl_Position.w) * 0.5;
    }
    output.dx_Position.w = gl_Position.w;
    output.v0 = _vTransformBounds;
    output.v1 = _vLocalPos;
    output.v2 = _vClipCenter_Radius_TL;
    output.v3 = _vClipCenter_Radius_TR;
    output.v4 = _vClipCenter_Radius_BL;
    output.v5 = _vClipCenter_Radius_BR;
    output.v6 = _vClipPlane_TL;
    output.v7 = _vClipPlane_TR;
    output.v8 = _vClipPlane_BL;
    output.v9 = _vClipPlane_BR;
    output.v10 = _vClipMode;

    return output;
}

VS_OUTPUT main(VS_INPUT input){
    initAttributes(input);

float2 _local_rect_p1_15631 = {0, 0};
float4x4 _transform_m_25632 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
float4x4 _transform_inv_m_35633 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int _tmpvar_45634 = {0};
(_tmpvar_45634 = (_aTransformIds.x & 8388607));
int2 _tmpvar_55635 = {0, 0};
(_tmpvar_55635.x = int_ctor_uint((8 * (uint_ctor_int(_tmpvar_45634) % 128))));
(_tmpvar_55635.y = int_ctor_uint((uint_ctor_int(_tmpvar_45634) / 128)));
(_transform_m_25632[0] = gl_texture2DFetch(_sTransformPalette, _tmpvar_55635, 0));
(_transform_m_25632[1] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(1, 0)), 0));
(_transform_m_25632[2] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(2, 0)), 0));
(_transform_m_25632[3] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(3, 0)), 0));
(_transform_inv_m_35633[0] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(4, 0)), 0));
(_transform_inv_m_35633[1] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(5, 0)), 0));
(_transform_inv_m_35633[2] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(6, 0)), 0));
(_transform_inv_m_35633[3] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_55635 + int2(7, 0)), 0));
float4x4 _transform_m_65636 = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int _tmpvar_75637 = {0};
(_tmpvar_75637 = (_aTransformIds.y & 8388607));
int2 _tmpvar_85638 = {0, 0};
(_tmpvar_85638.x = int_ctor_uint((8 * (uint_ctor_int(_tmpvar_75637) % 128))));
(_tmpvar_85638.y = int_ctor_uint((uint_ctor_int(_tmpvar_75637) / 128)));
(_transform_m_65636[0] = gl_texture2DFetch(_sTransformPalette, _tmpvar_85638, 0));
(_transform_m_65636[1] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_85638 + int2(1, 0)), 0));
(_transform_m_65636[2] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_85638 + int2(2, 0)), 0));
(_transform_m_65636[3] = gl_texture2DFetch(_sTransformPalette, (_tmpvar_85638 + int2(3, 0)), 0));
(_local_rect_p1_15631 = (_aClipLocalRect.zw + (_aClipLocalPos - _aClipLocalRect.xy)));
float4 _pos_95639 = {0, 0, 0, 0};
float4 _tmpvar_105640 = {0, 0, 0, 0};
(_tmpvar_105640.zw = float2(0.0, 1.0));
(_tmpvar_105640.xy = ((_aClipOrigins.zw + lerp(_aClipDeviceArea.xy, _aClipDeviceArea.zw, _aPosition)) / _aDevicePixelScale));
float4 _tmpvar_115641 = {0, 0, 0, 0};
(_tmpvar_115641 = mul(transpose(_transform_m_65636), _tmpvar_105640));
(_pos_95639.w = _tmpvar_115641.w);
(_pos_95639.xyz = (_tmpvar_115641.xyz / _tmpvar_115641.w));
float2 _tmpvar_125642 = {0, 0};
(_tmpvar_125642 = _pos_95639.xy);
float4 _tmpvar_135643 = {0, 0, 0, 0};
(_tmpvar_135643 = mul(transpose(_transform_m_25632), float4(0.0, 0.0, 0.0, 1.0)));
float3 _tmpvar_145644 = {0, 0, 0};
float3 _tmpvar_155645 = {0, 0, 0};
float3 _tmpvar_165646 = {0, 0, 0};
(_tmpvar_145644 = _transform_inv_m_35633[0].xyz);
(_tmpvar_155645 = _transform_inv_m_35633[1].xyz);
(_tmpvar_165646 = _transform_inv_m_35633[2].xyz);
float3x3 _tmpvar_175647 = {0, 0, 0, 0, 0, 0, 0, 0, 0};
(_tmpvar_175647[0].x = _tmpvar_145644.x);
(_tmpvar_175647[1].x = _tmpvar_145644.y);
(_tmpvar_175647[2].x = _tmpvar_145644.z);
(_tmpvar_175647[0].y = _tmpvar_155645.x);
(_tmpvar_175647[1].y = _tmpvar_155645.y);
(_tmpvar_175647[2].y = _tmpvar_155645.z);
(_tmpvar_175647[0].z = _tmpvar_165646.x);
(_tmpvar_175647[1].z = _tmpvar_165646.y);
(_tmpvar_175647[2].z = _tmpvar_165646.z);
float3 _tmpvar_185648 = {0, 0, 0};
(_tmpvar_185648.z = -10000.0);
(_tmpvar_185648.xy = _tmpvar_125642);
float3 _tmpvar_195649 = {0, 0, 0};
(_tmpvar_195649 = mul(transpose(_tmpvar_175647), float3(0.0, 0.0, 1.0)));
float3 _tmpvar_205650 = {0, 0, 0};
(_tmpvar_205650 = (_tmpvar_135643.xyz / _tmpvar_135643.w));
float _tmpvar_215651 = {0};
float _tmpvar_225652 = {0};
(_tmpvar_225652 = dot(_tmpvar_195649, float3(0.0, 0.0, 1.0)));
float _tmpvar_235653 = {0};
(_tmpvar_235653 = abs(_tmpvar_225652));
if ((1e-06 < _tmpvar_235653))
{
(_tmpvar_215651 = (dot((_tmpvar_205650 - _tmpvar_185648), _tmpvar_195649) / _tmpvar_225652));
}
float4 _tmpvar_245654 = {0, 0, 0, 0};
(_tmpvar_245654.w = 1.0);
(_tmpvar_245654.xy = _tmpvar_125642);
(_tmpvar_245654.z = (-10000.0 + _tmpvar_215651));
float4 _tmpvar_255655 = {0, 0, 0, 0};
(_tmpvar_255655.zw = float2(0.0, 1.0));
(_tmpvar_255655.xy = (_aClipOrigins.xy + lerp(_aClipDeviceArea.xy, _aClipDeviceArea.zw, _aPosition)));
(gl_Position = mul(transpose(_uTransform), _tmpvar_255655));
float4 _tmpvar_265656 = {0, 0, 0, 0};
(_tmpvar_265656.xy = _aClipLocalPos);
(_tmpvar_265656.zw = _local_rect_p1_15631);
(_vTransformBounds = _tmpvar_265656);
(_vClipMode.x = _aClipMode);
(_vLocalPos = (mul(transpose(_transform_inv_m_35633), _tmpvar_245654) * _tmpvar_115641.w));
float4 _tmpvar_275657 = {0, 0, 0, 0};
(_tmpvar_275657.xy = (_aClipLocalPos + _aClipRadii_TL.xy));
(_tmpvar_275657.zw = (1.0 / max((_aClipRadii_TL.xy * _aClipRadii_TL.xy), 1e-06)));
(_vClipCenter_Radius_TL = _tmpvar_275657);
float4 _tmpvar_285658 = {0, 0, 0, 0};
(_tmpvar_285658.x = (_local_rect_p1_15631.x - _aClipRadii_TR.x));
(_tmpvar_285658.y = (_aClipLocalPos.y + _aClipRadii_TR.y));
(_tmpvar_285658.zw = (1.0 / max((_aClipRadii_TR.xy * _aClipRadii_TR.xy), 1e-06)));
(_vClipCenter_Radius_TR = _tmpvar_285658);
float4 _tmpvar_295659 = {0, 0, 0, 0};
(_tmpvar_295659.xy = (_local_rect_p1_15631 - _aClipRadii_BR.xy));
(_tmpvar_295659.zw = (1.0 / max((_aClipRadii_BR.xy * _aClipRadii_BR.xy), 1e-06)));
(_vClipCenter_Radius_BR = _tmpvar_295659);
float4 _tmpvar_305660 = {0, 0, 0, 0};
(_tmpvar_305660.x = (_aClipLocalPos.x + _aClipRadii_BL.x));
(_tmpvar_305660.y = (_local_rect_p1_15631.y - _aClipRadii_BL.y));
(_tmpvar_305660.zw = (1.0 / max((_aClipRadii_BL.xy * _aClipRadii_BL.xy), 1e-06)));
(_vClipCenter_Radius_BL = _tmpvar_305660);
float2 _tmpvar_315661 = {0, 0};
(_tmpvar_315661 = (-_aClipRadii_TL.yx));
float2 _tmpvar_325662 = {0, 0};
(_tmpvar_325662.x = _aClipRadii_TR.y);
(_tmpvar_325662.y = (-_aClipRadii_TR.x));
float2 _tmpvar_335663 = {0, 0};
(_tmpvar_335663.x = (-_aClipRadii_BL.y));
(_tmpvar_335663.y = _aClipRadii_BL.x);
float2 _tmpvar_345664 = {0, 0};
(_tmpvar_345664.x = _aClipLocalPos.x);
(_tmpvar_345664.y = (_aClipLocalPos.y + _aClipRadii_TL.y));
float3 _tmpvar_355665 = {0, 0, 0};
(_tmpvar_355665.xy = _tmpvar_315661);
(_tmpvar_355665.z = dot(_tmpvar_315661, _tmpvar_345664));
(_vClipPlane_TL = _tmpvar_355665);
float2 _tmpvar_365666 = {0, 0};
(_tmpvar_365666.x = (_local_rect_p1_15631.x - _aClipRadii_TR.x));
(_tmpvar_365666.y = _aClipLocalPos.y);
float3 _tmpvar_375667 = {0, 0, 0};
(_tmpvar_375667.xy = _tmpvar_325662);
(_tmpvar_375667.z = dot(_tmpvar_325662, _tmpvar_365666));
(_vClipPlane_TR = _tmpvar_375667);
float2 _tmpvar_385668 = {0, 0};
(_tmpvar_385668.x = _local_rect_p1_15631.x);
(_tmpvar_385668.y = (_local_rect_p1_15631.y - _aClipRadii_BR.y));
float3 _tmpvar_395669 = {0, 0, 0};
(_tmpvar_395669.xy = _aClipRadii_BR.yx);
(_tmpvar_395669.z = dot(_aClipRadii_BR.yx, _tmpvar_385668));
(_vClipPlane_BR = _tmpvar_395669);
float2 _tmpvar_405670 = {0, 0};
(_tmpvar_405670.x = (_aClipLocalPos.x + _aClipRadii_BL.x));
(_tmpvar_405670.y = _local_rect_p1_15631.y);
float3 _tmpvar_415671 = {0, 0, 0};
(_tmpvar_415671.xy = _tmpvar_335663);
(_tmpvar_415671.z = dot(_tmpvar_335663, _tmpvar_405670));
(_vClipPlane_BL = _tmpvar_415671);
return generateOutput(input);
}
