package defpackage;

import androidx.media3.container.NalUnitUtil;
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 = {"u98", "Lj43;", "kotlinx-coroutines-core"}, k = 1, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class ia3 implements j43<Object> {
    /* JADX WARN: Removed duplicated region for block: B:28:0x004c  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    @Override // defpackage.j43
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object collect(l43 l43Var, Continuation continuation) {
        ha3 ha3Var;
        af e;
        ka3 ka3Var;
        if (continuation instanceof ha3) {
            ha3Var = (ha3) continuation;
            int i = ha3Var.b;
            if ((i & Integer.MIN_VALUE) != 0) {
                ha3Var.b = i - Integer.MIN_VALUE;
            } else {
                ha3Var = new ha3(this, continuation);
            }
        }
        Object obj = ha3Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = ha3Var.b;
        if (i2 != 0) {
            if (i2 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            ka3Var = ha3Var.d;
            try {
                s38.b(obj);
            } catch (af e2) {
                e = e2;
                if (e.a != ka3Var) {
                }
            }
            return e6a.a;
        }
        s38.b(obj);
        ka3 ka3Var2 = new ka3(l43Var);
        try {
            ha3Var.d = ka3Var2;
            ha3Var.b = 1;
            throw null;
        } catch (af e3) {
            e = e3;
            ka3Var = ka3Var2;
        }
        if (e.a != ka3Var) {
            throw e;
        }
        return e6a.a;
    }
}
