package defpackage;

import j$.util.DesugarCollections;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

/* JADX INFO: renamed from: ᵿᵣʞᵢ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C5523 implements Iterable {

    /* JADX INFO: renamed from: ˌᴵ, reason: contains not printable characters */
    public final Object f20846 = new Object();

    /* JADX INFO: renamed from: ᵜᵪʾ, reason: contains not printable characters */
    public final HashMap f20848 = new HashMap();

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ, reason: contains not printable characters */
    public Set f20847 = Collections.EMPTY_SET;

    /* JADX INFO: renamed from: ᵨᵼⁱ, reason: contains not printable characters */
    public List f20849 = Collections.EMPTY_LIST;

    @Override // java.lang.Iterable
    public final Iterator iterator() {
        Iterator it;
        synchronized (this.f20846) {
            it = this.f20849.iterator();
        }
        return it;
    }

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final int m11149(C3317 c3317) {
        int iIntValue;
        synchronized (this.f20846) {
            try {
                iIntValue = this.f20848.containsKey(c3317) ? ((Integer) this.f20848.get(c3317)).intValue() : 0;
            } catch (Throwable th) {
                throw th;
            }
        }
        return iIntValue;
    }

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final void m11150(C3317 c3317) {
        synchronized (this.f20846) {
            try {
                Integer num = (Integer) this.f20848.get(c3317);
                if (num == null) {
                    return;
                }
                ArrayList arrayList = new ArrayList(this.f20849);
                arrayList.remove(c3317);
                this.f20849 = DesugarCollections.unmodifiableList(arrayList);
                int iIntValue = num.intValue();
                HashMap map = this.f20848;
                if (iIntValue == 1) {
                    map.remove(c3317);
                    HashSet hashSet = new HashSet(this.f20847);
                    hashSet.remove(c3317);
                    this.f20847 = DesugarCollections.unmodifiableSet(hashSet);
                } else {
                    map.put(c3317, Integer.valueOf(num.intValue() - 1));
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }
}
