package defpackage;

import j$.util.Objects;

/* renamed from: ˉᵹ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1237 implements Comparable {

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public final RuntimeException f5191;

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final String f5192;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public final Object f5193;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final long f5194;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public final long f5195;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final int f5196;

    public C1237(long j, String str, int i, long j2, Object obj) {
        ᵛᵾˏ.ᵯٴᵦ(((j > 0L ? 1 : (j == 0L ? 0 : -1)) == 0) == (str != null));
        this.f5194 = j;
        this.f5192 = str;
        this.f5196 = i;
        this.f5195 = j2;
        this.f5193 = obj;
        if (i != 5) {
            this.f5191 = null;
            return;
        }
        if (obj == null) {
            this.f5191 = new NullPointerException("Null stringOrBytes");
        } else if ((obj instanceof byte[]) || (obj instanceof AbstractC2646)) {
            this.f5191 = null;
        } else {
            this.f5191 = new RuntimeException("Wrong stringOrBytes type: ".concat(String.valueOf(obj.getClass())));
        }
    }

    @Override // java.lang.Comparable
    public final int compareTo(Object obj) {
        C1237 c1237 = (C1237) obj;
        long j = c1237.f5194;
        long j2 = this.f5194;
        int iCompare = Long.compare(j2, j);
        if (iCompare != 0) {
            return iCompare;
        }
        if (j2 != 0) {
            return 0;
        }
        String str = this.f5192;
        str.getClass();
        String str2 = c1237.f5192;
        str2.getClass();
        return str.compareTo(str2);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof C1237)) {
            return false;
        }
        C1237 c1237 = (C1237) obj;
        return this.f5194 == c1237.f5194 && Objects.equals(this.f5192, c1237.f5192);
    }

    public final int hashCode() {
        return Objects.hash(Long.valueOf(this.f5194), this.f5192);
    }

    public final String toString() {
        String string = this.f5192;
        if (string == null) {
            string = Long.toString(this.f5194);
        }
        String strValueOf = String.valueOf(m3770());
        return AbstractC3915.m8592(new StringBuilder(String.valueOf(string).length() + 1 + strValueOf.length()), string, ":", strValueOf);
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final Object m3770() {
        int i = this.f5196;
        if (i == 0) {
            return Boolean.FALSE;
        }
        if (i == 1) {
            return Boolean.TRUE;
        }
        long j = this.f5195;
        if (i == 2) {
            return Long.valueOf(j);
        }
        if (i == 3) {
            return Double.valueOf(Double.longBitsToDouble(j));
        }
        Object obj = this.f5193;
        if (i == 4) {
            obj.getClass();
            return obj;
        }
        if (i != 5) {
            throw new AssertionError("Impossible, this was validated when parsed or created");
        }
        obj.getClass();
        try {
            return obj instanceof byte[] ? (byte[]) obj : ((AbstractC2646) obj).m6635();
        } catch (Throwable th) {
            RuntimeException runtimeException = this.f5191;
            if (runtimeException != null) {
                th.addSuppressed(runtimeException);
            }
            throw th;
        }
    }
}
