package com.google.android.gms.internal.measurement;

import d5.AbstractC0844a;
import java.util.HashMap;

/* JADX INFO: renamed from: com.google.android.gms.internal.measurement.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0611b {

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public static final C3.J f9811d = C3.J.j(3, "_syn", "_err", "_el");

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public String f9812a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final long f9813b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final HashMap f9814c;

    public C0611b(String str, long j8, HashMap map) {
        this.f9812a = str;
        this.f9813b = j8;
        HashMap map2 = new HashMap();
        this.f9814c = map2;
        if (map != null) {
            map2.putAll(map);
        }
    }

    public static Object b(String str, Object obj, Object obj2) {
        if (f9811d.contains(str) && (obj2 instanceof Double)) {
            return Long.valueOf(Math.round(((Double) obj2).doubleValue()));
        }
        if (str.startsWith("_")) {
            if (!(obj instanceof String) && obj != null) {
                return obj;
            }
        } else if (!(obj instanceof Double)) {
            if (obj instanceof Long) {
                return Long.valueOf(Math.round(((Double) obj2).doubleValue()));
            }
            if (obj instanceof String) {
                return obj2.toString();
            }
        }
        return obj2;
    }

    /* JADX INFO: renamed from: a, reason: merged with bridge method [inline-methods] */
    public final C0611b clone() {
        return new C0611b(this.f9812a, this.f9813b, new HashMap(this.f9814c));
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C0611b)) {
            return false;
        }
        C0611b c0611b = (C0611b) obj;
        if (this.f9813b == c0611b.f9813b && this.f9812a.equals(c0611b.f9812a)) {
            return this.f9814c.equals(c0611b.f9814c);
        }
        return false;
    }

    public final int hashCode() {
        int iHashCode = this.f9812a.hashCode() * 31;
        HashMap map = this.f9814c;
        long j8 = this.f9813b;
        return map.hashCode() + ((iHashCode + ((int) (j8 ^ (j8 >>> 32)))) * 31);
    }

    public final String toString() {
        String str = this.f9812a;
        String string = this.f9814c.toString();
        StringBuilder sbP = AbstractC0844a.p("Event{name='", str, "', timestamp=");
        sbP.append(this.f9813b);
        sbP.append(", params=");
        sbP.append(string);
        sbP.append("}");
        return sbP.toString();
    }
}
