package defpackage;

import androidx.media3.container.NalUnitUtil;
import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(k = 3, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@DebugMetadata(c = "kotlinx.coroutines.selects.SelectImplementation", f = "Select.kt", i = {}, l = {729}, m = "processResultAndInvokeBlockRecoveringException", n = {}, s = {})
final class kf8 extends ContinuationImpl {
    public /* synthetic */ Object a;
    public final /* synthetic */ if8 b;
    public int c;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public kf8(if8 if8Var, Continuation continuation) {
        super(continuation);
        this.b = if8Var;
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        kf8 kf8Var;
        this.a = obj;
        int i = this.c | Integer.MIN_VALUE;
        this.c = i;
        AtomicReferenceFieldUpdater atomicReferenceFieldUpdater = if8.f;
        if ((i & Integer.MIN_VALUE) != 0) {
            this.c = i - Integer.MIN_VALUE;
            kf8Var = this;
        } else {
            kf8Var = new kf8(this.b, this);
        }
        Object obj2 = kf8Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = kf8Var.c;
        if (i2 == 0) {
            s38.b(obj2);
            throw null;
        }
        if (i2 != 1) {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        s38.b(obj2);
        return obj2;
    }
}
