package h2;

import java.io.Closeable;

/* JADX INFO: renamed from: h2.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1030c implements Closeable, AutoCloseable {

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

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ f f13370s;

    public C1030c(f fVar, C1029b c1029b) {
        this.f13370s = fVar;
        this.f13368q = c1029b;
    }

    @Override // java.io.Closeable, java.lang.AutoCloseable
    public final void close() {
        if (this.f13369r) {
            return;
        }
        this.f13369r = true;
        f fVar = this.f13370s;
        synchronized (fVar) {
            C1029b c1029b = this.f13368q;
            int i = c1029b.f13367h - 1;
            c1029b.f13367h = i;
            if (i == 0 && c1029b.f13365f) {
                X6.d dVar = f.f13373G;
                fVar.H(c1029b);
            }
        }
    }
}
