package defpackage;

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

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

    public d83(yi7 yi7Var) {
        this.a = yi7Var;
    }

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