#include <metal_stdlib>

using namespace metal;
int subgroupShuffleDown_d269eb() {
  int arg_0 = 1;
  uint arg_1 = 1u;
  int res = simd_shuffle_down(arg_0,arg_1);
  return res;
}

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

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

