package g0;

import h2.b1;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

/* loaded from: classes.dex */
final class u implements b1 {

    /* renamed from: a, reason: collision with root package name */
    private final q f18986a;

    /* renamed from: b, reason: collision with root package name */
    private final Map f18987b = new LinkedHashMap();

    public u(q qVar) {
        this.f18986a = qVar;
    }

    @Override // h2.b1
    public void a(b1.a aVar) {
        this.f18987b.clear();
        Iterator it = aVar.iterator();
        while (it.hasNext()) {
            Object c10 = this.f18986a.c(it.next());
            Integer num = (Integer) this.f18987b.get(c10);
            int intValue = num != null ? num.intValue() : 0;
            if (intValue == 7) {
                it.remove();
            } else {
                this.f18987b.put(c10, Integer.valueOf(intValue + 1));
            }
        }
    }

    @Override // h2.b1
    public boolean b(Object obj, Object obj2) {
        return kotlin.jvm.internal.t.b(this.f18986a.c(obj), this.f18986a.c(obj2));
    }
}
