#include <metal_stdlib>

using namespace metal;
int4 subgroupBroadcast_f637f9() {
  int4 res = simd_broadcast(int4(1),ushort(1u));
  return res;
}

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

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

