package p025.p026;

import java.util.concurrent.CancellationException;
import p025.p026.p027.C1273;
import p025.p026.p027.C1296;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6542;
import p402.p405.InterfaceC6575;
import p402.p405.InterfaceC6578;

/* JADX INFO: renamed from: އ.֏.ޟ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C1337 {

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final C1296 f4483 = new C1296("UNDEFINED");

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static final C1296 f4484 = new C1296("REUSABLE_CLAIMED");

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final <T> void m2663(InterfaceC6575<? super T> interfaceC6575, Object obj) {
        boolean z;
        if (!(interfaceC6575 instanceof C1336)) {
            interfaceC6575.mo2608(obj);
            return;
        }
        C1336 c1336 = (C1336) interfaceC6575;
        Object objM7201 = C4303.m7201(obj);
        if (c1336.f4481.mo2652(c1336.mo2607())) {
            c1336.f4478 = objM7201;
            c1336.f4486 = 1;
            c1336.f4481.mo2643(c1336.mo2607(), c1336);
            return;
        }
        C1385 c1385 = C1385.f4539;
        AbstractC1345 abstractC1345M2728 = C1385.m2728();
        if (abstractC1345M2728.m2673()) {
            c1336.f4478 = objM7201;
            c1336.f4486 = 1;
            abstractC1345M2728.m2669((AbstractC1339<?>) c1336);
            return;
        }
        abstractC1345M2728.m2672(true);
        try {
            InterfaceC1363 interfaceC1363 = (InterfaceC1363) c1336.mo2607().get(InterfaceC1363.f4514);
            if (interfaceC1363 == null || interfaceC1363.mo2610()) {
                z = false;
            } else {
                CancellationException cancellationExceptionMo2686 = interfaceC1363.mo2686();
                C6542.C6543 c6543 = C6542.f19318;
                c1336.mo2608(C4303.m7010((Throwable) cancellationExceptionMo2686));
                z = true;
            }
            if (!z) {
                InterfaceC6578 interfaceC6578Mo2607 = c1336.mo2607();
                Object objM2563 = C1273.m2563(interfaceC6578Mo2607, c1336.f4480);
                try {
                    c1336.f4482.mo2608(obj);
                    C1273.m2562(interfaceC6578Mo2607, objM2563);
                } catch (Throwable th) {
                    C1273.m2562(interfaceC6578Mo2607, objM2563);
                    throw th;
                }
            }
            while (abstractC1345M2728.m2674()) {
            }
        } finally {
            try {
            } finally {
            }
        }
    }
}
