#include <metal_stdlib>

using namespace metal;
int4 subgroupMax_a3d5f7() {
  int4 arg_0 = int4(1);
  int4 res = simd_max(arg_0);
  return res;
}

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

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

