package o;

import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.pq, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2184pq implements InterfaceC0707aL {
    public final /* synthetic */ int l;
    public final Object m;
    public final Object n;

    public /* synthetic */ C2184pq(int i, Object obj, Object obj2) {
        this.l = i;
        this.m = obj;
        this.n = obj2;
    }

    @Override // o.InterfaceC0707aL
    public final void f(InterfaceC0898cL interfaceC0898cL, UK uk) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException {
        switch (this.l) {
            case 0:
                InterfaceC1994nq interfaceC1994nq = (InterfaceC1994nq) this.m;
                switch (AbstractC2089oq.a[uk.ordinal()]) {
                    case 1:
                        interfaceC1994nq.getClass();
                        break;
                    case 2:
                        interfaceC1994nq.b();
                        break;
                    case 3:
                        interfaceC1994nq.d();
                        break;
                    case 4:
                        interfaceC1994nq.getClass();
                        break;
                    case 5:
                        interfaceC1994nq.c();
                        break;
                    case 6:
                        interfaceC1994nq.g();
                        break;
                    case 7:
                        throw new IllegalArgumentException("ON_ANY must not been send by anybody");
                    default:
                        throw new C2170pj();
                }
                InterfaceC0707aL interfaceC0707aL = (InterfaceC0707aL) this.n;
                if (interfaceC0707aL != null) {
                    interfaceC0707aL.f(interfaceC0898cL, uk);
                    return;
                }
                return;
            case 1:
                if (uk == UK.ON_START) {
                    ((WK) this.m).c(this);
                    ((C1640k40) this.n).d();
                    return;
                }
                return;
            default:
                HashMap map = ((C0500Th) this.n).a;
                List list = (List) map.get(uk);
                Object obj = this.m;
                C0500Th.a(list, interfaceC0898cL, uk, obj);
                C0500Th.a((List) map.get(UK.ON_ANY), interfaceC0898cL, uk, obj);
                return;
        }
    }

    public C2184pq(InterfaceC0803bL interfaceC0803bL) {
        this.l = 2;
        this.m = interfaceC0803bL;
        C0552Vh c0552Vh = C0552Vh.c;
        Class<?> cls = interfaceC0803bL.getClass();
        C0500Th c0500Th = (C0500Th) c0552Vh.a.get(cls);
        this.n = c0500Th == null ? c0552Vh.a(cls, null) : c0500Th;
    }
}
