#include <metal_stdlib>
using namespace metal;
struct vertex_main_outputs {
  float4 tint_symbol [[position]];
};

void transpose_7eb2c5() {
  float2x2 res = float2x2(float2(1.0f), float2(1.0f));
}
float4 vertex_main_inner() {
  transpose_7eb2c5();
  return float4(0.0f);
}
fragment void fragment_main() {
  transpose_7eb2c5();
}
kernel void compute_main() {
  transpose_7eb2c5();
}
vertex vertex_main_outputs vertex_main() {
  return vertex_main_outputs{.tint_symbol=vertex_main_inner()};
}
