#include <metal_stdlib>
#include <simd/simd.h>

using namespace metal;

struct SSBO
{
    float4 data;
    int index;
};

constant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(1u);

kernel void main0(device SSBO& _13 [[buffer(0)]])
{
    float4 _17 = _13.data;
    float2 _28 = _17.yz + float2(10.0);
    _13.data = float4(_17.x, _28, _17.w);
    _13.data = (_17 + _17) + _17;
    _13.data = _28.xxyy;
    _13.data = float4(_28.y);
    _13.data = float4((_17.zw + float2(10.0))[_13.index]);
}

