package p138.p176.p177.p242.p265.p266;

import android.os.Parcel;
import android.os.Parcelable;
import p000.p001.p002.p003.p004.C0567;
import p138.p176.p177.p242.p246.p249.p250.AbstractC4283;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ބ.֏.པ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4999 extends AbstractC4283 {
    public static final Parcelable.Creator<C4999> CREATOR = new C4781();

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public final int f15116;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public final String f15117;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public final long f15118;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public final Long f15119;

    /* JADX INFO: renamed from: އ, reason: contains not printable characters */
    public final String f15120;

    /* JADX INFO: renamed from: ވ, reason: contains not printable characters */
    public final String f15121;

    /* JADX INFO: renamed from: މ, reason: contains not printable characters */
    public final Double f15122;

    public C4999(int i, String str, long j, Long l, Float f, String str2, String str3, Double d) {
        this.f15116 = i;
        this.f15117 = str;
        this.f15118 = j;
        this.f15119 = l;
        if (i == 1) {
            this.f15122 = f != null ? Double.valueOf(f.doubleValue()) : null;
        } else {
            this.f15122 = d;
        }
        this.f15120 = str2;
        this.f15121 = str3;
    }

    public C4999(String str, long j, Object obj, String str2) {
        C0567.m1926(str);
        this.f15116 = 2;
        this.f15117 = str;
        this.f15118 = j;
        this.f15121 = str2;
        if (obj == null) {
            this.f15119 = null;
            this.f15122 = null;
            this.f15120 = null;
            return;
        }
        if (obj instanceof Long) {
            this.f15119 = (Long) obj;
            this.f15122 = null;
            this.f15120 = null;
        } else if (obj instanceof String) {
            this.f15119 = null;
            this.f15122 = null;
            this.f15120 = (String) obj;
        } else {
            if (!(obj instanceof Double)) {
                throw new IllegalArgumentException("User attribute given of un-supported type");
            }
            this.f15119 = null;
            this.f15122 = (Double) obj;
            this.f15120 = null;
        }
    }

    public C4999(C5036 c5036) {
        this(c5036.f15173, c5036.f15174, c5036.f15175, c5036.f15172);
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i) {
        int iM1843 = C0567.m1843(parcel);
        C0567.m1880(parcel, 1, this.f15116);
        C0567.m1885(parcel, 2, this.f15117, false);
        C0567.m1881(parcel, 3, this.f15118);
        Long l = this.f15119;
        if (l != null) {
            C0567.m1937(parcel, 4, 8);
            parcel.writeLong(l.longValue());
        }
        C0567.m1885(parcel, 6, this.f15120, false);
        C0567.m1885(parcel, 7, this.f15121, false);
        Double d = this.f15122;
        if (d != null) {
            C0567.m1937(parcel, 8, 8);
            parcel.writeDouble(d.doubleValue());
        }
        C0567.m1955(parcel, iM1843);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final Object m8527() {
        Long l = this.f15119;
        if (l != null) {
            return l;
        }
        Double d = this.f15122;
        if (d != null) {
            return d;
        }
        String str = this.f15120;
        if (str != null) {
            return str;
        }
        return null;
    }
}
