package defpackage;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/* JADX INFO: renamed from: ᵴˊᵞᵲ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C4644 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final HashMap f17652;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final HashMap f17653 = new HashMap();

    public C4644(HashMap map) {
        this.f17652 = map;
        for (Map.Entry entry : map.entrySet()) {
            EnumC1653 enumC1653 = (EnumC1653) entry.getValue();
            List arrayList = (List) this.f17653.get(enumC1653);
            if (arrayList == null) {
                arrayList = new ArrayList();
                this.f17653.put(enumC1653, arrayList);
            }
            arrayList.add((C0711) entry.getKey());
        }
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static void m9777(List list, InterfaceC1569 interfaceC1569, EnumC1653 enumC1653, InterfaceC5232 interfaceC5232) {
        if (list != null) {
            for (int size = list.size() - 1; size >= 0; size--) {
                C0711 c0711 = (C0711) list.get(size);
                Method method = c0711.f3247;
                try {
                    int i = c0711.f3248;
                    if (i == 0) {
                        method.invoke(interfaceC5232, null);
                    } else if (i == 1) {
                        method.invoke(interfaceC5232, interfaceC1569);
                    } else if (i == 2) {
                        method.invoke(interfaceC5232, interfaceC1569, enumC1653);
                    }
                } catch (IllegalAccessException e) {
                    C4935.m10238(e);
                    return;
                } catch (InvocationTargetException e2) {
                    ᵷᵝˎ.ᵪᵹᵥᵻ("Failed to call observer method", e2.getCause());
                    return;
                }
            }
        }
    }
}
