package m4;

import k4.AbstractC2396i;
import u4.C2965a;

/* JADX INFO: renamed from: m4.q, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public final class C2536q extends D {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ k4.r0 f21131c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ k4.g0 f21132d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ C4.f f21133e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2536q(C4.f fVar, k4.r0 r0Var, k4.g0 g0Var) {
        super(((C2544t) fVar.f743d).f21158f, 0);
        this.f21133e = fVar;
        this.f21131c = r0Var;
        this.f21132d = g0Var;
    }

    @Override // m4.D
    public final void b() {
        u4.b.c();
        try {
            u4.c cVar = ((C2544t) this.f21133e.f743d).f21154b;
            u4.b.a();
            C2965a c2965a = u4.b.f24588a;
            c2965a.getClass();
            c();
            c2965a.getClass();
        } catch (Throwable th) {
            try {
                u4.b.f24588a.getClass();
            } catch (Throwable th2) {
                th.addSuppressed(th2);
            }
            throw th;
        }
    }

    public final void c() {
        k4.r0 r0Var = this.f21131c;
        k4.g0 g0Var = this.f21132d;
        k4.r0 r0Var2 = (k4.r0) this.f21133e.f742c;
        if (r0Var2 != null) {
            g0Var = new k4.g0();
            r0Var = r0Var2;
        }
        ((C2544t) this.f21133e.f743d).f21163k = true;
        try {
            C4.f fVar = this.f21133e;
            C2544t c2544t = (C2544t) fVar.f743d;
            AbstractC2396i abstractC2396i = (AbstractC2396i) fVar.f741b;
            c2544t.getClass();
            abstractC2396i.onClose(r0Var, g0Var);
            ((C2544t) this.f21133e.f743d).b();
            C0.J j4 = ((C2544t) this.f21133e.f743d).f21157e;
            if (r0Var.e()) {
                ((C0) j4.f535d).a();
            } else {
                ((C0) j4.f536e).a();
            }
        } catch (Throwable th) {
            ((C2544t) this.f21133e.f743d).b();
            C0.J j6 = ((C2544t) this.f21133e.f743d).f21157e;
            if (r0Var.e()) {
                ((C0) j6.f535d).a();
            } else {
                ((C0) j6.f536e).a();
            }
            throw th;
        }
    }
}
