package kotlinx.coroutines;

import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;

/* JADX INFO: compiled from: CompletionState.kt */
/* JADX INFO: loaded from: classes.dex */
public class b0 {
    private static final /* synthetic */ AtomicIntegerFieldUpdater b = AtomicIntegerFieldUpdater.newUpdater(b0.class, "_handled");
    private volatile /* synthetic */ int _handled;
    public final Throwable a;

    public b0(Throwable th, boolean z) {
        this.a = th;
        this._handled = z ? 1 : 0;
    }

    /* JADX WARN: Type inference failed for: r0v0, types: [boolean, int] */
    public final boolean a() {
        return this._handled;
    }

    public final boolean b() {
        return b.compareAndSet(this, 0, 1);
    }

    public String toString() {
        return s0.a(this) + '[' + this.a + ']';
    }

    public /* synthetic */ b0(Throwable th, boolean z, int i2, h.x.d.h hVar) {
        this(th, (i2 & 2) != 0 ? false : z);
    }
}
