package g.a;

import java.util.concurrent.atomic.AtomicIntegerFieldUpdater;

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

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

    public t(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 f4148b.compareAndSet(this, 0, 1);
    }

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

    public /* synthetic */ t(Throwable th, boolean z, int i2, f.z.d.g gVar) {
        this(th, (i2 & 2) != 0 ? false : z);
    }
}
