#include <metal_stdlib>

using namespace metal;
half4 subgroupBroadcast_02f329() {
  half4 arg_0 = half4(1.0h);
  half4 res = simd_broadcast(arg_0,ushort(1));
  return res;
}

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

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

