struct SB_RW {
  arg_0 : atomic<i32>,
}

@group(0) @binding(1) var<storage, read_write> sb_rw : SB_RW;

fn atomicXor_c1b78c() -> i32 {
  var arg_1 = 1i;
  var res : i32 = atomicXor(&(sb_rw.arg_0), arg_1);
  return res;
}

@group(0) @binding(0) var<storage, read_write> prevent_dce : i32;

@fragment
fn fragment_main() {
  prevent_dce = atomicXor_c1b78c();
}

@compute @workgroup_size(1)
fn compute_main() {
  prevent_dce = atomicXor_c1b78c();
}
