package p025.p026;

import p025.p026.C1368;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6549;
import p402.InterfaceC6540;
import p402.p405.InterfaceC6575;
import p402.p405.InterfaceC6578;
import p402.p405.p406.EnumC6586;
import p402.p405.p407.p408.AbstractC6591;
import p402.p405.p407.p408.InterfaceC6593;
import p402.p411.p412.InterfaceC6614;

/* JADX WARN: Unexpected interfaces in signature: [java.lang.Object<T>] */
/* JADX INFO: renamed from: އ.֏.ޜ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
@InterfaceC6540
public class C1333<T> extends AbstractC1301<T> implements InterfaceC1332<T> {

    /* JADX INFO: renamed from: އ.֏.ޜ$֏, reason: contains not printable characters */
    @InterfaceC6593(c = "kotlinx.coroutines.DeferredCoroutine", f = "Builders.common.kt", l = {101}, m = "await$suspendImpl")
    public static final class C1334 extends AbstractC6591 {

        /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
        public /* synthetic */ Object f4473;

        /* JADX INFO: renamed from: އ, reason: contains not printable characters */
        public int f4474;

        /* JADX INFO: renamed from: މ, reason: contains not printable characters */
        public Object f4476;

        public C1334(InterfaceC6575 interfaceC6575) {
            super(interfaceC6575);
        }

        @Override // p402.p405.p407.p408.AbstractC6589
        /* JADX INFO: renamed from: ށ */
        public final Object mo839(Object obj) {
            this.f4473 = obj;
            this.f4474 |= Integer.MIN_VALUE;
            return C1333.m2661(C1333.this, this);
        }
    }

    public C1333(InterfaceC6578 interfaceC6578, boolean z) {
        super(interfaceC6578, z);
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static /* synthetic */ Object m2661(C1333 c1333, InterfaceC6575 interfaceC6575) throws Throwable {
        C1334 c1334;
        Object objM2724;
        if (interfaceC6575 instanceof C1334) {
            c1334 = (C1334) interfaceC6575;
            int i = c1334.f4474;
            if ((i & Integer.MIN_VALUE) != 0) {
                c1334.f4474 = i - Integer.MIN_VALUE;
            } else {
                c1334 = new C1334(interfaceC6575);
            }
        }
        Object obj = c1334.f4473;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i2 = c1334.f4474;
        if (i2 == 0) {
            C4303.m7198(obj);
            c1334.f4476 = c1333;
            c1334.f4474 = 1;
            while (true) {
                Object objM2717 = c1333.m2717();
                if (objM2717 instanceof InterfaceC1358) {
                    if (c1333.m2715(objM2717) >= 0) {
                        C1368.C1369 c1369 = new C1368.C1369(C4303.m7066((InterfaceC6575) c1334), c1333);
                        c1369.mo2624((InterfaceC6614<? super Throwable, C6549>) new C1342(c1333.mo2684(false, true, (InterfaceC6614<? super Throwable, C6549>) new C1381(c1333, c1369))));
                        objM2724 = c1369.m2636();
                        EnumC6586 enumC65862 = EnumC6586.COROUTINE_SUSPENDED;
                        break;
                    }
                } else {
                    if (objM2717 instanceof C1318) {
                        throw ((C1318) objM2717).f4456;
                    }
                    objM2724 = C1373.m2724(objM2717);
                }
            }
            obj = objM2724;
            if (obj == enumC6586) {
                return enumC6586;
            }
        } else {
            if (i2 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C4303.m7198(obj);
        }
        return obj;
    }

    @Override // p025.p026.InterfaceC1332
    /* JADX INFO: renamed from: ހ */
    public Object mo2660(InterfaceC6575<? super T> interfaceC6575) {
        return m2661(this, interfaceC6575);
    }
}
