#include <metal_stdlib>

using namespace metal;
struct tint_symbol {
  float4 value [[position]];
};

void countOneBits_0f7980() {
  int4 res = popcount(int4());
}

float4 vertex_main_inner() {
  countOneBits_0f7980();
  return float4();
}

vertex tint_symbol vertex_main() {
  float4 const inner_result = vertex_main_inner();
  tint_symbol wrapper_result = {};
  wrapper_result.value = inner_result;
  return wrapper_result;
}

fragment void fragment_main() {
  countOneBits_0f7980();
  return;
}

kernel void compute_main() {
  countOneBits_0f7980();
  return;
}

