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

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