package defpackage;

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

/* renamed from: ᵭᵡ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C4135 {

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public static final C4135 f15462;

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

    static {
        int i = AbstractC4206.f15729;
        f15462 = new C4135(C2980.f11517);
    }

    public C4135(AbstractC4206 abstractC4206) {
        this.f15463 = abstractC4206;
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public static C4135 m9046(AbstractC3415 abstractC3415) throws zzaeh {
        String strMo5570;
        long j;
        C1237 c1237;
        int iMo5578 = abstractC3415.mo5578();
        if (iMo5578 < 0) {
            C1499.m4426("Negative number of flags");
            return null;
        }
        int i = AbstractC4206.f15729;
        C1479 c1479 = new C1479();
        long j2 = 0;
        for (int i2 = 0; i2 < iMo5578; i2++) {
            long jMo5569 = abstractC3415.mo5569();
            int i3 = (int) jMo5569;
            long j3 = jMo5569 >>> 3;
            if (j3 == 0) {
                j = 0;
                strMo5570 = abstractC3415.mo5570();
            } else {
                long j4 = j3 + j2;
                if (j4 > 2305843009213693951L) {
                    C1499.m4426("Flag name larger than max size");
                    return null;
                }
                strMo5570 = null;
                j = j4;
            }
            int i4 = i3 & 7;
            if (i4 == 0 || i4 == 1) {
                c1237 = new C1237(j, strMo5570, i4, 0L, null);
            } else if (i4 == 2) {
                c1237 = new C1237(j, strMo5570, i4, abstractC3415.mo5569(), null);
            } else if (i4 == 3) {
                c1237 = new C1237(j, strMo5570, i4, Double.doubleToRawLongBits(abstractC3415.mo5584()), null);
            } else if (i4 == 4) {
                c1237 = new C1237(j, strMo5570, i4, 0L, abstractC3415.mo5570());
            } else {
                if (i4 != 5) {
                    C1499.m4426(AbstractC4486.m9556(new StringBuilder(String.valueOf(i4).length() + 23), "Unrecognized flag type ", i4));
                    return null;
                }
                c1237 = new C1237(j, strMo5570, i4, 0L, abstractC3415.mo5583());
            }
            long j5 = c1237.f5194;
            if (j5 != 0) {
                j2 = j5;
            }
            c1479.m3197(c1237);
        }
        return new C4135(c1479.m4395());
    }

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

    public final int hashCode() {
        AbstractC4206 abstractC4206 = this.f15463;
        abstractC4206.getClass();
        return ʼٴ.ˁˑᵰ(abstractC4206);
    }
}
