#include <metal_stdlib>

using namespace metal;
uint2 quadBroadcast_641316() {
  uint2 res = quad_broadcast(uint2(1u),1);
  return res;
}

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

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

