package defpackage;

import androidx.media3.container.NalUnitUtil;
import kotlin.Metadata;
import kotlin.coroutines.jvm.internal.ContinuationImpl;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0002\n\u0000¨\u0006\u0000"}, d2 = {"kotlinx-coroutines-core"}, k = 5, mv = {2, 0, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED, xs = "kotlinx/coroutines/flow/FlowKt")
@vx8
final /* synthetic */ class i93 {
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final Object a(wm9 wm9Var, ir3 ir3Var, Throwable th, ContinuationImpl continuationImpl) {
        s83 s83Var;
        if (continuationImpl instanceof s83) {
            s83Var = (s83) continuationImpl;
            int i = s83Var.c;
            if ((i & Integer.MIN_VALUE) != 0) {
                s83Var.c = i - Integer.MIN_VALUE;
            } else {
                s83Var = new s83(continuationImpl);
            }
        }
        Object obj = s83Var.b;
        Object obj2 = ck1.a;
        int i2 = s83Var.c;
        try {
            if (i2 == 0) {
                s38.b(obj);
                s83Var.a = th;
                s83Var.c = 1;
                if (ir3Var.invoke(wm9Var, th, s83Var) == obj2) {
                    return obj2;
                }
            } else {
                if (i2 != 1) {
                    throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
                }
                th = s83Var.a;
                s38.b(obj);
            }
            return e6a.a;
        } catch (Throwable th2) {
            if (th != null && th != th2) {
                cr2.a(th2, th);
            }
            throw th2;
        }
    }
}
