package xa;

import android.os.Bundle;
import com.bumptech.glide.g;
import com.google.android.gms.measurement.internal.c2;
import com.google.android.gms.measurement.internal.d2;
import com.google.android.gms.measurement.internal.u1;
import com.google.common.collect.ImmutableSet;
import java.util.Set;
import u.e;
import xyz.stream.utils.t;

/* JADX INFO: loaded from: classes2.dex */
public final class b implements d2 {

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

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

    public /* synthetic */ b(Object obj, int i10) {
        this.f34756a = i10;
        this.f34757b = obj;
    }

    @Override // com.google.android.gms.measurement.internal.d2
    public final void a(String str, String str2, Bundle bundle, long j10) {
        int i10 = this.f34756a;
        Object obj = this.f34757b;
        switch (i10) {
            case 0:
                e eVar = (e) obj;
                if (((Set) eVar.f33125a).contains(str2)) {
                    Bundle bundle2 = new Bundle();
                    ImmutableSet immutableSet = a.f34752a;
                    String strZ = g.z(str2, c2.f21500c, c2.f21498a);
                    if (strZ != null) {
                        str2 = strZ;
                    }
                    bundle2.putString("events", str2);
                    u1.x(eVar.f33126b);
                    throw null;
                }
                return;
            default:
                if (str == null || !(!a.f34752a.contains(str2))) {
                    return;
                }
                Bundle bundle3 = new Bundle();
                bundle3.putString("name", str2);
                bundle3.putLong("timestampInMillis", j10);
                bundle3.putBundle("params", bundle);
                u1.x(((t) obj).f36172b);
                throw null;
        }
    }
}
