#include <metal_stdlib>
using namespace metal;
struct SB_RW {
  atomic_uint arg_0;
};
struct tint_module_vars_struct {
  device SB_RW* sb_rw;
  device uint* prevent_dce;
};

void atomicMax_51b9be(tint_module_vars_struct tint_module_vars) {
  uint res = atomic_fetch_max_explicit((&(*tint_module_vars.sb_rw).arg_0), 1u, memory_order_relaxed);
  (*tint_module_vars.prevent_dce) = res;
}
fragment void fragment_main(device SB_RW* sb_rw [[buffer(0)]], device uint* prevent_dce [[buffer(1)]]) {
  tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.sb_rw=sb_rw, .prevent_dce=prevent_dce};
  atomicMax_51b9be(tint_module_vars);
}
kernel void compute_main(device SB_RW* sb_rw [[buffer(0)]], device uint* prevent_dce [[buffer(1)]]) {
  tint_module_vars_struct const tint_module_vars = tint_module_vars_struct{.sb_rw=sb_rw, .prevent_dce=prevent_dce};
  atomicMax_51b9be(tint_module_vars);
}
