package f2;

import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import kotlin.jvm.internal.o;

/* JADX INFO: renamed from: f2.d, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2035d {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final C2034c f16405a = new C2034c();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final LinkedHashMap f16406b = new LinkedHashMap();

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final LinkedHashSet f16407c = new LinkedHashSet();

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public volatile boolean f16408d;

    public static void b(AutoCloseable autoCloseable) {
        if (autoCloseable != null) {
            try {
                autoCloseable.close();
            } catch (Exception e6) {
                throw new RuntimeException(e6);
            }
        }
    }

    public final void a(AutoCloseable closeable) {
        o.h(closeable, "closeable");
        if (this.f16408d) {
            b(closeable);
            return;
        }
        synchronized (this.f16405a) {
            this.f16407c.add(closeable);
        }
    }
}
