package ec;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/* JADX INFO: loaded from: classes.dex */
public final class a {

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

    public final int[] a() {
        ArrayList arrayList = new ArrayList();
        int iIntValue = -1;
        for (Map.Entry entry : this.f25812a.entrySet()) {
            if (((Integer) entry.getValue()).intValue() > iIntValue) {
                iIntValue = ((Integer) entry.getValue()).intValue();
                arrayList.clear();
                arrayList.add((Integer) entry.getKey());
            } else if (((Integer) entry.getValue()).intValue() == iIntValue) {
                arrayList.add((Integer) entry.getKey());
            }
        }
        return dc.a.a(arrayList);
    }

    public final void b(int i10) {
        HashMap map = this.f25812a;
        Integer num = (Integer) map.get(Integer.valueOf(i10));
        if (num == null) {
            num = 0;
        }
        map.put(Integer.valueOf(i10), Integer.valueOf(num.intValue() + 1));
    }
}
