package p138.p176.p177.p242.p258.p263;

import com.google.android.gms.internal.measurement.zzes;
import com.google.android.gms.internal.measurement.zzft;
import java.util.Arrays;

/* JADX INFO: renamed from: ދ.ހ.֏.ހ.ރ.ނ.Г, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C4486 {

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public static final C4486 f13883 = new C4486(0, new int[0], new Object[0], false);

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public int f13884;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public int[] f13885;

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public Object[] f13886;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public int f13887;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public boolean f13888;

    public C4486() {
        this(0, new int[8], new Object[8], true);
    }

    public C4486(int i, int[] iArr, Object[] objArr, boolean z) {
        this.f13887 = -1;
        this.f13884 = i;
        this.f13885 = iArr;
        this.f13886 = objArr;
        this.f13888 = z;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static void m7539(int i, Object obj, InterfaceC4380 interfaceC4380) throws zzes.zza {
        int i2 = i >>> 3;
        int i3 = i & 7;
        if (i3 == 0) {
            ((C4457) interfaceC4380).m7429(i2, ((Long) obj).longValue());
            return;
        }
        if (i3 == 1) {
            ((C4457) interfaceC4380).m7440(i2, ((Long) obj).longValue());
            return;
        }
        if (i3 == 2) {
            ((C4457) interfaceC4380).m7432(i2, (AbstractC4435) obj);
            return;
        }
        if (i3 != 3) {
            if (i3 != 5) {
                throw new RuntimeException(zzft.m1405());
            }
            ((C4457) interfaceC4380).m7434(i2, ((Integer) obj).intValue());
            return;
        }
        C4457 c4457 = (C4457) interfaceC4380;
        if (c4457 == null) {
            throw null;
        }
        int i4 = i2 << 3;
        ((zzes.C0334) c4457.f13810).mo1392(i4 | 3);
        ((C4486) obj).m7543(interfaceC4380);
        ((zzes.C0334) c4457.f13810).mo1392(i4 | 4);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static C4486 m7540() {
        return new C4486(0, new int[8], new Object[8], true);
    }

    public final boolean equals(Object obj) {
        boolean z;
        boolean z2;
        if (this == obj) {
            return true;
        }
        if (obj == null || !(obj instanceof C4486)) {
            return false;
        }
        C4486 c4486 = (C4486) obj;
        int i = this.f13884;
        if (i == c4486.f13884) {
            int[] iArr = this.f13885;
            int[] iArr2 = c4486.f13885;
            int i2 = 0;
            while (true) {
                if (i2 >= i) {
                    z = true;
                    break;
                }
                if (iArr[i2] != iArr2[i2]) {
                    z = false;
                    break;
                }
                i2++;
            }
            if (z) {
                Object[] objArr = this.f13886;
                Object[] objArr2 = c4486.f13886;
                int i3 = this.f13884;
                int i4 = 0;
                while (true) {
                    if (i4 >= i3) {
                        z2 = true;
                        break;
                    }
                    if (!objArr[i4].equals(objArr2[i4])) {
                        z2 = false;
                        break;
                    }
                    i4++;
                }
                if (z2) {
                    return true;
                }
            }
        }
        return false;
    }

    public final int hashCode() {
        int i = this.f13884;
        int i2 = (i + 527) * 31;
        int[] iArr = this.f13885;
        int iHashCode = 17;
        int i3 = 17;
        for (int i4 = 0; i4 < i; i4++) {
            i3 = (i3 * 31) + iArr[i4];
        }
        int i5 = (i2 + i3) * 31;
        Object[] objArr = this.f13886;
        int i6 = this.f13884;
        for (int i7 = 0; i7 < i6; i7++) {
            iHashCode = (iHashCode * 31) + objArr[i7].hashCode();
        }
        return i5 + iHashCode;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m7541() {
        int iM1360;
        int i = this.f13887;
        if (i != -1) {
            return i;
        }
        int iM7541 = 0;
        for (int i2 = 0; i2 < this.f13884; i2++) {
            int i3 = this.f13885[i2];
            int i4 = i3 >>> 3;
            int i5 = i3 & 7;
            if (i5 == 0) {
                iM1360 = zzes.m1360(i4, ((Long) this.f13886[i2]).longValue());
            } else if (i5 == 1) {
                ((Long) this.f13886[i2]).longValue();
                iM1360 = zzes.m1381(i4);
            } else if (i5 == 2) {
                iM1360 = zzes.m1349(i4, (AbstractC4435) this.f13886[i2]);
            } else if (i5 == 3) {
                iM7541 = ((C4486) this.f13886[i2]).m7541() + (zzes.m1376(i4) << 1) + iM7541;
            } else {
                if (i5 != 5) {
                    throw new IllegalStateException(zzft.m1405());
                }
                ((Integer) this.f13886[i2]).intValue();
                iM1360 = zzes.m1384(i4);
            }
            iM7541 = iM1360 + iM7541;
        }
        this.f13887 = iM7541;
        return iM7541;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m7542(int i, Object obj) {
        if (!this.f13888) {
            throw new UnsupportedOperationException();
        }
        int i2 = this.f13884;
        if (i2 == this.f13885.length) {
            int i3 = this.f13884 + (i2 < 4 ? 8 : i2 >> 1);
            this.f13885 = Arrays.copyOf(this.f13885, i3);
            this.f13886 = Arrays.copyOf(this.f13886, i3);
        }
        int[] iArr = this.f13885;
        int i4 = this.f13884;
        iArr[i4] = i;
        this.f13886[i4] = obj;
        this.f13884 = i4 + 1;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m7543(InterfaceC4380 interfaceC4380) throws zzes.zza {
        if (this.f13884 == 0) {
            return;
        }
        if (((C4457) interfaceC4380) == null) {
            throw null;
        }
        for (int i = 0; i < this.f13884; i++) {
            m7539(this.f13885[i], this.f13886[i], interfaceC4380);
        }
    }
}
