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

void select_43741e() {
  bool4 arg_2 = bool4(true);
  float4 res = select(float4(1.0f), float4(1.0f), arg_2);
}
float4 vertex_main_inner() {
  select_43741e();
  return float4(0.0f);
}
fragment void fragment_main() {
  select_43741e();
}
kernel void compute_main() {
  select_43741e();
}
vertex vertex_main_outputs vertex_main() {
  return vertex_main_outputs{.tint_symbol=vertex_main_inner()};
}
