package J2;

import android.util.SparseArray;
import d5.AbstractC0844a;
import java.util.HashMap;
import w2.EnumC1700c;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final HashMap f3466b;

    static {
        HashMap map = new HashMap();
        f3466b = map;
        map.put(EnumC1700c.f18296q, 0);
        map.put(EnumC1700c.f18297r, 1);
        map.put(EnumC1700c.f18298s, 2);
        for (EnumC1700c enumC1700c : map.keySet()) {
            f3465a.append(((Integer) f3466b.get(enumC1700c)).intValue(), enumC1700c);
        }
    }

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

    public static EnumC1700c b(int i) {
        EnumC1700c enumC1700c = (EnumC1700c) f3465a.get(i);
        if (enumC1700c != null) {
            return enumC1700c;
        }
        throw new IllegalArgumentException(AbstractC0844a.j("Unknown Priority for value ", i));
    }
}
