package g2;

import x7.B;
import x7.InterfaceC1733i;
import x7.x;

/* JADX INFO: loaded from: classes.dex */
public final class l extends m {

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public final x f12913q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final x7.m f12914r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final String f12915s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final h2.h f12916t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public boolean f12917u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public B f12918v;

    public l(x xVar, x7.m mVar, String str, h2.h hVar) {
        this.f12913q = xVar;
        this.f12914r = mVar;
        this.f12915s = str;
        this.f12916t = hVar;
    }

    @Override // g2.m
    public final U2.a a() {
        return null;
    }

    @Override // g2.m
    public final synchronized InterfaceC1733i b() {
        if (this.f12917u) {
            throw new IllegalStateException("closed");
        }
        B b8 = this.f12918v;
        if (b8 != null) {
            return b8;
        }
        B bC = s7.l.c(this.f12914r.k(this.f12913q));
        this.f12918v = bC;
        return bC;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final synchronized void close() {
        try {
            this.f12917u = true;
            B b8 = this.f12918v;
            if (b8 != null) {
                u2.f.a(b8);
            }
            h2.h hVar = this.f12916t;
            if (hVar != null) {
                u2.f.a(hVar);
            }
        } catch (Throwable th) {
            throw th;
        }
    }
}
