package defpackage;

import androidx.media3.container.NalUnitUtil;
import defpackage.dw7;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001¨\u0006\u0002¸\u0006\u0000"}, d2 = {"v93", "Ll43;", "kotlinx-coroutines-core"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class ib3 implements l43<Object> {
    public final /* synthetic */ gr3 a;
    public final /* synthetic */ dw7.h b;

    public ib3(gr3 gr3Var, dw7.h hVar) {
        this.a = gr3Var;
        this.b = hVar;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    @Override // defpackage.l43
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object emit(Object obj, Continuation continuation) {
        hb3 hb3Var;
        ib3 ib3Var;
        if (continuation instanceof hb3) {
            hb3Var = (hb3) continuation;
            int i = hb3Var.c;
            if ((i & Integer.MIN_VALUE) != 0) {
                hb3Var.c = i - Integer.MIN_VALUE;
            } else {
                hb3Var = new hb3(this, continuation);
            }
        }
        Object objInvoke = hb3Var.b;
        ck1 ck1Var = ck1.a;
        int i2 = hb3Var.c;
        if (i2 == 0) {
            s38.b(objInvoke);
            hb3Var.a = this;
            hb3Var.e = obj;
            hb3Var.c = 1;
            objInvoke = this.a.invoke(obj, hb3Var);
            if (objInvoke == ck1Var) {
                return ck1Var;
            }
            ib3Var = this;
        } else {
            if (i2 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            obj = hb3Var.e;
            ib3Var = hb3Var.a;
            s38.b(objInvoke);
        }
        if (!((Boolean) objInvoke).booleanValue()) {
            return e6a.a;
        }
        ib3Var.b.a = obj;
        throw new af(ib3Var);
    }
}
