package defpackage;

import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;

/* renamed from: ʿᵻʘˑ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC0481 {

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final C3444 f2554 = new C3444();

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final AutoCloseable m2098(String str) {
        AutoCloseable autoCloseable;
        C3444 c3444 = this.f2554;
        if (c3444 == null) {
            return null;
        }
        synchronized (((ᵺᐧʝ) c3444.f12885)) {
            autoCloseable = (AutoCloseable) ((LinkedHashMap) c3444.f12883).get(str);
        }
        return autoCloseable;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public void mo2099() {
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m2100(String str, AutoCloseable autoCloseable) {
        AutoCloseable autoCloseable2;
        C3444 c3444 = this.f2554;
        if (c3444 != null) {
            if (c3444.f12884) {
                C3444.m7820(autoCloseable);
                return;
            }
            synchronized (((ᵺᐧʝ) c3444.f12885)) {
                autoCloseable2 = (AutoCloseable) ((LinkedHashMap) c3444.f12883).put(str, autoCloseable);
            }
            C3444.m7820(autoCloseable2);
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m2101() {
        C3444 c3444 = this.f2554;
        if (c3444 != null && !c3444.f12884) {
            c3444.f12884 = true;
            synchronized (((ᵺᐧʝ) c3444.f12885)) {
                try {
                    Iterator it = ((LinkedHashMap) c3444.f12883).values().iterator();
                    while (it.hasNext()) {
                        C3444.m7820((AutoCloseable) it.next());
                    }
                    Iterator it2 = ((LinkedHashSet) c3444.f12886).iterator();
                    while (it2.hasNext()) {
                        C3444.m7820((AutoCloseable) it2.next());
                    }
                    ((LinkedHashSet) c3444.f12886).clear();
                } catch (Throwable th) {
                    throw th;
                }
            }
        }
        mo2099();
    }
}
