struct SB_RW {
  arg_0 : atomic<u32>,
}

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

fn atomicLoad_fe6cc3() -> u32 {
  var res : u32 = atomicLoad(&(sb_rw.arg_0));
  return res;
}

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

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

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