package p025.p026;

import kotlin.NoWhenBranchMatchedException;
import kotlin.TypeCastException;
import kotlin.jvm.internal.DefaultConstructorMarker;
import p025.p026.p027.C1273;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6542;
import p402.C6549;
import p402.p405.InterfaceC6575;
import p402.p405.InterfaceC6578;
import p402.p405.p406.EnumC6586;
import p402.p411.p412.InterfaceC6618;
import p402.p411.p413.C6635;
import p402.p411.p413.C6649;

/* JADX INFO: renamed from: އ.֏.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC1301<T> extends C1368 implements InterfaceC1363, InterfaceC6575<T>, InterfaceC1327 {

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final InterfaceC6578 f4439;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final InterfaceC6578 f4440;

    public AbstractC1301(InterfaceC6578 interfaceC6578, boolean z) {
        super(z);
        this.f4440 = interfaceC6578;
        this.f4439 = interfaceC6578.plus(this);
    }

    public /* synthetic */ AbstractC1301(InterfaceC6578 interfaceC6578, boolean z, int i, DefaultConstructorMarker defaultConstructorMarker) {
        super((i & 2) != 0 ? true : z);
        this.f4440 = interfaceC6578;
        this.f4439 = interfaceC6578.plus(this);
    }

    @Override // p402.p405.InterfaceC6575
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final InterfaceC6578 mo2607() {
        return this.f4439;
    }

    @Override // p402.p405.InterfaceC6575
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void mo2608(Object obj) {
        Object objM2713 = m2713(C4303.m7201(obj));
        if (objM2713 == C1373.f4528) {
            return;
        }
        mo2591(objM2713);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final <R> void m2609(EnumC1328 enumC1328, R r, InterfaceC6618<? super R, ? super InterfaceC6575<? super T>, ? extends Object> interfaceC6618) {
        m2616();
        int iOrdinal = enumC1328.ordinal();
        if (iOrdinal == 0) {
            C4303.m7165(interfaceC6618, r, this);
            return;
        }
        if (iOrdinal != 1) {
            if (iOrdinal == 2) {
                if (interfaceC6618 == null) {
                    C6635.m9824("$this$startCoroutine");
                    throw null;
                }
                InterfaceC6575 interfaceC6575M7066 = C4303.m7066((InterfaceC6575) C4303.m7067(interfaceC6618, r, this));
                C6549 c6549 = C6549.f19328;
                C6542.C6543 c6543 = C6542.f19318;
                interfaceC6575M7066.mo2608(c6549);
                return;
            }
            if (iOrdinal != 3) {
                throw new NoWhenBranchMatchedException();
            }
            try {
                InterfaceC6578 interfaceC6578Mo2607 = mo2607();
                Object objM2563 = C1273.m2563(interfaceC6578Mo2607, null);
                try {
                    if (interfaceC6618 == null) {
                        throw new TypeCastException("null cannot be cast to non-null type (R, kotlin.coroutines.Continuation<T>) -> kotlin.Any?");
                    }
                    C6649.m9833(interfaceC6618, 2);
                    Object objMo838 = interfaceC6618.mo838(r, this);
                    if (objMo838 != EnumC6586.COROUTINE_SUSPENDED) {
                        C6542.C6543 c65432 = C6542.f19318;
                        mo2608(objMo838);
                    }
                } finally {
                    C1273.m2562(interfaceC6578Mo2607, objM2563);
                }
            } catch (Throwable th) {
                C6542.C6543 c65433 = C6542.f19318;
                mo2608(C4303.m7010(th));
            }
        }
    }

    @Override // p025.p026.InterfaceC1327
    /* JADX INFO: renamed from: ؠ */
    public InterfaceC6578 mo337() {
        return this.f4439;
    }

    @Override // p025.p026.C1368, p025.p026.InterfaceC1363
    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public boolean mo2610() {
        return super.mo2610();
    }

    @Override // p025.p026.C1368
    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public String mo2611() {
        return getClass().getSimpleName() + " was cancelled";
    }

    @Override // p025.p026.C1368
    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final void mo2612(Throwable th) {
        C4303.m7111(this.f4439, th);
    }

    @Override // p025.p026.C1368
    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final void mo2613(Object obj) {
        if (obj instanceof C1318) {
            C1318 c1318 = (C1318) obj;
            Throwable th = c1318.f4456;
            int i = c1318._handled;
        }
    }

    /* JADX INFO: renamed from: ވ */
    public void mo2591(Object obj) {
        mo2590(obj);
    }

    @Override // p025.p026.C1368
    /* JADX INFO: renamed from: ފ, reason: contains not printable characters */
    public String mo2614() {
        C1322.m2648(this.f4439);
        return super.mo2614();
    }

    @Override // p025.p026.C1368
    /* JADX INFO: renamed from: ދ, reason: contains not printable characters */
    public final void mo2615() {
        mo2617();
    }

    /* JADX INFO: renamed from: ތ, reason: contains not printable characters */
    public final void m2616() {
        m2698((InterfaceC1363) this.f4440.get(InterfaceC1363.f4514));
    }

    /* JADX INFO: renamed from: ލ, reason: contains not printable characters */
    public void mo2617() {
    }
}
