#include <metal_stdlib>

using namespace metal;
float subgroupBroadcast_08beca() {
  float res = simd_broadcast(1.0f,ushort(1u));
  return res;
}

kernel void compute_main(device float* tint_symbol [[buffer(0)]]) {
  *(tint_symbol) = subgroupBroadcast_08beca();
  return;
}

