package o;

import java.io.Closeable;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.es, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C1140es implements Closeable {
    public final C1044ds l;
    public boolean m;
    public final /* synthetic */ C1332gs n;

    public C1140es(C1332gs c1332gs, C1044ds c1044ds) {
        this.n = c1332gs;
        this.l = c1044ds;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        if (this.m) {
            return;
        }
        this.m = true;
        C1332gs c1332gs = this.n;
        synchronized (c1332gs) {
            C1044ds c1044ds = this.l;
            int i = c1044ds.h - 1;
            c1044ds.h = i;
            if (i == 0 && c1044ds.f) {
                G10 g10 = C1332gs.B;
                c1332gs.q(c1044ds);
            }
        }
    }
}
