package defpackage;

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

/* JADX INFO: loaded from: classes3.dex */
@Metadata(k = 3, mv = {2, 1, 0}, xi = NalUnitUtil.H265_NAL_UNIT_TYPE_UNSPECIFIED)
@vx8
public final class ew5<T> implements l43 {
    public final /* synthetic */ l43 a;
    public final /* synthetic */ jw5 b;

    public ew5(l43 l43Var, jw5 jw5Var) {
        this.a = l43Var;
        this.b = jw5Var;
    }

    /* 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) {
        dw5 dw5Var;
        if (continuation instanceof dw5) {
            dw5Var = (dw5) continuation;
            int i = dw5Var.b;
            if ((i & Integer.MIN_VALUE) != 0) {
                dw5Var.b = i - Integer.MIN_VALUE;
            } else {
                dw5Var = new dw5(this, continuation);
            }
        }
        Object obj2 = dw5Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = dw5Var.b;
        if (i2 == 0) {
            s38.b(obj2);
            if (((jl8) obj) instanceof jl8.a) {
                throw null;
            }
            nw5 nw5Var = new nw5(false, false);
            dw5Var.b = 1;
            if (this.a.emit(nw5Var, dw5Var) == ck1Var) {
                return ck1Var;
            }
        } else {
            if (i2 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj2);
        }
        return e6a.a;
    }
}
