package b4;

import C3.J;
import O1.C0225a;
import P.g;
import android.os.Bundle;
import d3.G0;
import d3.H0;
import e0.C0853a;
import java.util.HashSet;
import n4.u0;

/* JADX INFO: renamed from: b4.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0539b implements H0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f9197a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Object f9198b;

    public /* synthetic */ C0539b(int i, Object obj) {
        this.f9197a = i;
        this.f9198b = obj;
    }

    @Override // d3.H0
    public final void a(long j8, Bundle bundle, String str, String str2) {
        Object obj = this.f9198b;
        switch (this.f9197a) {
            case u0.f15495q /* 0 */:
                C0225a c0225a = (C0225a) obj;
                if (((HashSet) c0225a.f5010r).contains(str2)) {
                    Bundle bundle2 = new Bundle();
                    J j9 = AbstractC0538a.f9191a;
                    String strD = G0.d(str2, G0.f11465c, G0.f11463a);
                    if (strD != null) {
                        str2 = strD;
                    }
                    bundle2.putString("events", str2);
                    ((C0853a) c0225a.f5011s).D(2, bundle2);
                    break;
                }
                break;
            default:
                if (str != null && !AbstractC0538a.f9191a.contains(str2)) {
                    Bundle bundle3 = new Bundle();
                    bundle3.putString("name", str2);
                    bundle3.putLong("timestampInMillis", j8);
                    bundle3.putBundle("params", bundle);
                    ((C0853a) ((g) obj).f5246r).D(3, bundle3);
                    break;
                }
                break;
        }
    }
}
