#include <metal_stdlib>

using namespace metal;
half subgroupShuffleUp_bbf7f4() {
  half arg_0 = 1.0h;
  uint arg_1 = 1u;
  half res = simd_shuffle_up(arg_0,arg_1);
  return res;
}

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

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

