package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class U90 extends AbstractC3081zG {
    public final C80 l;
    public boolean m;
    public final InterfaceC1687kf n;

    public U90(InterfaceC1687kf interfaceC1687kf, C80 c80) {
        this.l = c80;
        this.n = interfaceC1687kf;
    }

    @Override // o.AbstractC3081zG, java.io.Closeable, java.lang.AutoCloseable
    public final synchronized void close() {
        this.m = true;
        InterfaceC1687kf interfaceC1687kf = this.n;
        if (interfaceC1687kf != null) {
            AbstractC1345h.a(interfaceC1687kf);
        }
    }

    @Override // o.AbstractC3081zG
    public final C80 d() {
        return this.l;
    }

    @Override // o.AbstractC3081zG
    public final synchronized InterfaceC1687kf f() {
        InterfaceC1687kf interfaceC1687kf;
        try {
            if (this.m) {
                throw new IllegalStateException("closed");
            }
            interfaceC1687kf = this.n;
            if (interfaceC1687kf == null) {
                AbstractC1628jy.a.k(null);
                throw null;
            }
        } catch (Throwable th) {
            throw th;
        }
        return interfaceC1687kf;
    }
}
