package defpackage;

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

/* JADX INFO: renamed from: ᵗᵿᵛ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C2533 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public static final C2533 f9800;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final AbstractC4307 f9801;

    static {
        int i = AbstractC4307.f16402;
        f9800 = new C2533(C4286.f16347);
    }

    public C2533(AbstractC4307 abstractC4307) {
        this.f9801 = abstractC4307;
    }

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public static C2533 m6253(AbstractC5456 abstractC5456) throws zzaeh {
        String strMo4155;
        long j;
        C3518 c3518;
        int iMo4152 = abstractC5456.mo4152();
        if (iMo4152 < 0) {
            C1974.m5334("Negative number of flags");
            return null;
        }
        int i = AbstractC4307.f16402;
        C4663 c4663 = new C4663();
        long j2 = 0;
        for (int i2 = 0; i2 < iMo4152; i2++) {
            long jMo4138 = abstractC5456.mo4138();
            int i3 = (int) jMo4138;
            long j3 = jMo4138 >>> 3;
            if (j3 == 0) {
                j = 0;
                strMo4155 = abstractC5456.mo4155();
            } else {
                long j4 = j3 + j2;
                if (j4 > 2305843009213693951L) {
                    C1974.m5334("Flag name larger than max size");
                    return null;
                }
                strMo4155 = null;
                j = j4;
            }
            int i4 = i3 & 7;
            if (i4 == 0 || i4 == 1) {
                c3518 = new C3518(j, strMo4155, i4, 0L, null);
            } else if (i4 == 2) {
                c3518 = new C3518(j, strMo4155, i4, abstractC5456.mo4138(), null);
            } else if (i4 == 3) {
                c3518 = new C3518(j, strMo4155, i4, Double.doubleToRawLongBits(abstractC5456.mo4134()), null);
            } else if (i4 == 4) {
                c3518 = new C3518(j, strMo4155, i4, 0L, abstractC5456.mo4155());
            } else {
                if (i4 != 5) {
                    C1974.m5334(AbstractC3589.m8106(new StringBuilder(String.valueOf(i4).length() + 23), "Unrecognized flag type ", i4));
                    return null;
                }
                c3518 = new C3518(j, strMo4155, i4, 0L, abstractC5456.mo4146());
            }
            long j5 = c3518.f13505;
            if (j5 != 0) {
                j2 = j5;
            }
            c4663.m7406(c3518);
        }
        return new C2533(c4663.m9792());
    }

    public final boolean equals(Object obj) {
        if (!(obj instanceof C2533)) {
            return false;
        }
        return this.f9801.equals(((C2533) obj).f9801);
    }

    public final int hashCode() {
        AbstractC4307 abstractC4307 = this.f9801;
        abstractC4307.getClass();
        return ᵥˈᵛ.ˊᵡᵗʨ(abstractC4307);
    }
}
