package B3;

import Z0.o;
import android.util.SparseArray;
import java.util.HashMap;
import o3.c;

/* 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 f490a = new SparseArray();

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

    static {
        HashMap map = new HashMap();
        f491b = map;
        map.put(c.f21809a, 0);
        map.put(c.f21810b, 1);
        map.put(c.f21811c, 2);
        for (c cVar : map.keySet()) {
            f490a.append(((Integer) f491b.get(cVar)).intValue(), cVar);
        }
    }

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

    public static c b(int i6) {
        c cVar = (c) f490a.get(i6);
        if (cVar != null) {
            return cVar;
        }
        throw new IllegalArgumentException(o.l("Unknown Priority for value ", i6));
    }
}
