package o;

import android.os.Bundle;
import java.util.HashSet;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.yp0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C3037yp0 implements InterfaceC2568ts0 {
    public final /* synthetic */ int a;
    public final /* synthetic */ Object b;

    public /* synthetic */ C3037yp0(int i, Object obj) {
        this.a = i;
        this.b = obj;
    }

    @Override // o.InterfaceC2568ts0
    public final void a(long j, Bundle bundle, String str, String str2) {
        int i = this.a;
        Object obj = this.b;
        switch (i) {
            case 0:
                C1390hY c1390hY = (C1390hY) obj;
                if (((HashSet) c1390hY.m).contains(str2)) {
                    Bundle bundle2 = new Bundle();
                    UG ug = AbstractC1327gp0.a;
                    String strO = AbstractC0662Zn.O(str2, AbstractC2841wm0.m, AbstractC2841wm0.k);
                    if (strO != null) {
                        str2 = strO;
                    }
                    bundle2.putString("events", str2);
                    ((Gm0) c1390hY.n).m(bundle2);
                    break;
                }
                break;
            default:
                if (str != null && !AbstractC1327gp0.a.contains(str2)) {
                    Bundle bundle3 = new Bundle();
                    bundle3.putString("name", str2);
                    bundle3.putLong("timestampInMillis", j);
                    bundle3.putBundle("params", bundle);
                    ((Gm0) ((C1696kj0) obj).m).m(bundle3);
                    break;
                }
                break;
        }
    }
}
