package defpackage;

import com.google.android.gms.internal.measurement.zzabo;

/* renamed from: ᵜʾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2797 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static final C2797 f10767;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static final long f10768;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final int f10769;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final int f10770;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final int f10771;

    static {
        long jCharAt = 0;
        for (int i = 0; i < 7; i++) {
            jCharAt |= (i + 1) << ((int) ((" #(+,-0".charAt(i) - ' ') * 3));
        }
        f10768 = jCharAt;
        f10767 = new C2797(0, -1, -1);
    }

    public C2797(int i, int i2, int i3) {
        this.f10770 = i;
        this.f10771 = i2;
        this.f10769 = i3;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static int m6886(int i, int i2, String str) {
        if (i == i2) {
            throw zzabo.m808(i - 1, "missing precision", str);
        }
        int i3 = 0;
        for (int i4 = i; i4 < i2; i4++) {
            char cCharAt = (char) (str.charAt(i4) - '0');
            if (cCharAt >= '\n') {
                throw zzabo.m808(i4, "invalid precision character", str);
            }
            i3 = (i3 * 10) + cCharAt;
            if (i3 > 999999) {
                throw zzabo.m807(i, i2, "precision too large", str);
            }
        }
        if (i3 != 0) {
            return i3;
        }
        if (i2 == i + 1) {
            return 0;
        }
        throw zzabo.m807(i, i2, "invalid precision", str);
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (obj instanceof C2797) {
            C2797 c2797 = (C2797) obj;
            if (c2797.f10770 == this.f10770 && c2797.f10771 == this.f10771 && c2797.f10769 == this.f10769) {
                return true;
            }
        }
        return false;
    }

    public final int hashCode() {
        return (((this.f10770 * 31) + this.f10771) * 31) + this.f10769;
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final boolean m6887() {
        return (this.f10770 & 128) != 0;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final boolean m6888() {
        return this == f10767;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final boolean m6889(int i, boolean z) {
        int i2;
        if (m6888()) {
            return true;
        }
        int i3 = ~i;
        int i4 = this.f10770;
        if ((i3 & i4) != 0) {
            return false;
        }
        if ((!z && this.f10769 != -1) || (i4 & 9) == 9 || (i2 = i4 & 96) == 96) {
            return false;
        }
        return i2 == 0 || this.f10771 != -1;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final void m6890(StringBuilder sb) {
        if (m6888()) {
            return;
        }
        int i = 0;
        while (true) {
            int i2 = this.f10770 & (-129);
            int i3 = 1 << i;
            if (i3 > i2) {
                break;
            }
            if ((i2 & i3) != 0) {
                sb.append(" #(+,-0".charAt(i));
            }
            i++;
        }
        int i4 = this.f10771;
        if (i4 != -1) {
            sb.append(i4);
        }
        int i5 = this.f10769;
        if (i5 != -1) {
            sb.append('.');
            sb.append(i5);
        }
    }
}
