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;

/* renamed from: ᵢʝᵱᵦ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C3244 implements Iterable {

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final Object f12206 = new Object();

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final HashMap f12205 = new HashMap();

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Set f12208 = Collections.EMPTY_SET;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public List f12207 = Collections.EMPTY_LIST;

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

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m7580(C2221 c2221) {
        synchronized (this.f12206) {
            try {
                Integer num = (Integer) this.f12205.get(c2221);
                if (num == null) {
                    return;
                }
                ArrayList arrayList = new ArrayList(this.f12207);
                arrayList.remove(c2221);
                this.f12207 = DesugarCollections.unmodifiableList(arrayList);
                int iIntValue = num.intValue();
                HashMap map = this.f12205;
                if (iIntValue == 1) {
                    map.remove(c2221);
                    HashSet hashSet = new HashSet(this.f12208);
                    hashSet.remove(c2221);
                    this.f12208 = DesugarCollections.unmodifiableSet(hashSet);
                } else {
                    map.put(c2221, Integer.valueOf(num.intValue() - 1));
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final int m7581(C2221 c2221) {
        int iIntValue;
        synchronized (this.f12206) {
            try {
                iIntValue = this.f12205.containsKey(c2221) ? ((Integer) this.f12205.get(c2221)).intValue() : 0;
            } catch (Throwable th) {
                throw th;
            }
        }
        return iIntValue;
    }
}
