package defpackage;

import kotlin.Metadata;
import kotlin.coroutines.Continuation;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(k = 3, mv = {2, 0, 0}, xi = 176)
@vx8
public final class cd3<T> implements l43 {
    /* 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) {
        bd3 bd3Var;
        if (continuation instanceof bd3) {
            bd3Var = (bd3) continuation;
            int i = bd3Var.b;
            if ((i & Integer.MIN_VALUE) != 0) {
                bd3Var.b = i - Integer.MIN_VALUE;
            } else {
                bd3Var = new bd3(this, continuation);
            }
        }
        Object obj2 = bd3Var.a;
        ck1 ck1Var = ck1.a;
        int i2 = bd3Var.b;
        if (i2 == 0) {
            s38.b(obj2);
            throw null;
        }
        if (i2 == 1) {
            s38.b(obj2);
            if (!((Boolean) obj2).booleanValue()) {
                bd3Var.d = null;
                bd3Var.b = 2;
                throw null;
            }
        } else {
            if (i2 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj2);
        }
        return e6a.a;
    }
}
