package p025.p026;

import p138.p139.p143.p144.C2803;
import p402.C6549;
import p402.p405.InterfaceC6575;
import p402.p411.p413.C6635;

/* JADX INFO: renamed from: އ.֏.ވ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C1310 extends AbstractC1365<InterfaceC1363> {

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final C1307<?> f4449;

    public C1310(InterfaceC1363 interfaceC1363, C1307<?> c1307) {
        super(interfaceC1363);
        this.f4449 = c1307;
    }

    @Override // p025.p026.p027.C1284
    public String toString() {
        StringBuilder sbM4889 = C2803.m4889("ChildContinuation[");
        sbM4889.append(this.f4449);
        sbM4889.append(']');
        return sbM4889.toString();
    }

    @Override // p402.p411.p412.InterfaceC6614
    /* JADX INFO: renamed from: ؠ */
    public /* bridge */ /* synthetic */ C6549 mo1606(Throwable th) {
        mo2640(th);
        return C6549.f19328;
    }

    /* JADX WARN: Code restructure failed: missing block: B:17:0x0033, code lost:
    
        r2 = true;
     */
    @Override // p025.p026.AbstractC1321
    /* JADX INFO: renamed from: ؠ, reason: avoid collision after fix types in other method and contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void mo2640(Throwable th) {
        C1307<?> c1307 = this.f4449;
        Throwable thMo2626 = c1307.mo2626((InterfaceC1363) this.f4517);
        boolean z = false;
        if (c1307.f4486 == 0) {
            InterfaceC6575<?> interfaceC6575 = c1307.f4446;
            if (!(interfaceC6575 instanceof C1336)) {
                interfaceC6575 = null;
            }
            C1336 c1336 = (C1336) interfaceC6575;
            if (c1336 != null) {
                while (true) {
                    Object obj = c1336._reusableCancellableContinuation;
                    if (C6635.m9825(obj, C1337.f4484)) {
                        if (C1336.f4477.compareAndSet(c1336, C1337.f4484, thMo2626)) {
                            break;
                        }
                    } else if (obj instanceof Throwable) {
                        break;
                    } else if (C1336.f4477.compareAndSet(c1336, obj, null)) {
                        break;
                    }
                }
            }
        }
        if (z) {
            return;
        }
        c1307.mo2622(thMo2626);
        c1307.m2635();
    }
}
