package o;

import android.util.SparseArray;
import java.util.HashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class JY {
    public static final SparseArray a = new SparseArray();
    public static final HashMap b;

    static {
        HashMap map = new HashMap();
        b = map;
        map.put(HY.l, 0);
        map.put(HY.m, 1);
        map.put(HY.n, 2);
        for (HY hy : map.keySet()) {
            a.append(((Integer) b.get(hy)).intValue(), hy);
        }
    }

    public static int a(HY hy) {
        Integer num = (Integer) b.get(hy);
        if (num != null) {
            return num.intValue();
        }
        throw new IllegalStateException("PriorityMapping is missing known Priority value " + hy);
    }

    public static HY b(int i) {
        HY hy = (HY) a.get(i);
        if (hy != null) {
            return hy;
        }
        throw new IllegalArgumentException(AbstractC0126Ew.j(i, "Unknown Priority for value "));
    }
}
