package d2;

import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;

/* JADX INFO: compiled from: CompletionState.kt */
/* JADX INFO: loaded from: classes.dex */
public class n {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private static final /* synthetic */ AtomicIntegerFieldUpdater f4507b = AtomicIntegerFieldUpdater.newUpdater(n.class, "_handled");
    private volatile /* synthetic */ int _handled;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final Throwable f4508a;

    public n(Throwable th, boolean z2) {
        this.f4508a = th;
        this._handled = z2 ? 1 : 0;
    }

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

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

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

    public /* synthetic */ n(Throwable th, boolean z2, int i3, w1.e eVar) {
        this(th, (i3 & 2) != 0 ? false : z2);
    }
}
