#include <metal_stdlib>

using namespace metal;
float subgroupShuffleDown_7f8886() {
  float arg_0 = 1.0f;
  uint arg_1 = 1u;
  float res = simd_shuffle_down(arg_0,arg_1);
  return res;
}

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

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

