#include <metal_stdlib>

using namespace metal;
int subgroupBroadcastFirst_9a1bdc() {
  int arg_0 = 1;
  int res = simd_broadcast_first(arg_0);
  return res;
}

fragment void fragment_main(device int* tint_symbol [[buffer(0)]]) {
  *(tint_symbol) = subgroupBroadcastFirst_9a1bdc();
  return;
}

kernel void compute_main(device int* tint_symbol_1 [[buffer(0)]]) {
  *(tint_symbol_1) = subgroupBroadcastFirst_9a1bdc();
  return;
}

