package kotlinx.coroutines; import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; import kotlin.jvm.internal.DefaultConstructorMarker; /* loaded from: classes5.dex */ public class CompletedExceptionally { public static final AtomicIntegerFieldUpdater _handled$FU = AtomicIntegerFieldUpdater.newUpdater(CompletedExceptionally.class, "_handled"); private volatile int _handled; public final Throwable cause; public CompletedExceptionally(Throwable th, boolean z) { this.cause = th; this._handled = z ? 1 : 0; } public /* synthetic */ CompletedExceptionally(Throwable th, boolean z, int i, DefaultConstructorMarker defaultConstructorMarker) { this(th, (i & 2) != 0 ? false : z); } public final boolean getHandled() { return _handled$FU.get(this) != 0; } public final boolean makeHandled() { return _handled$FU.compareAndSet(this, 0, 1); } public String toString() { return DebugStringsKt.getClassSimpleName(this) + '[' + this.cause + ']'; } }