package defpackage;

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

/* renamed from: ˊᐧʛᵔ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C1326 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public Object f5442;

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

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

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

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public int f5446;

    public /* synthetic */ C1326(byte b, int i) {
        this.f5444 = i;
    }

    public C1326(int i) {
        this.f5444 = 0;
        if (i < 1) {
            ᵯᵽᵦ.ˀᵗᵩ("capacity must be >= 1");
            throw null;
        }
        if (i > 1073741824) {
            ᵯᵽᵦ.ˀᵗᵩ("capacity must be <= 2^30");
            throw null;
        }
        i = Integer.bitCount(i) != 1 ? Integer.highestOneBit(i - 1) << 1 : i;
        this.f5446 = i - 1;
        this.f5442 = new Object[i];
    }

    public C1326(AbstractC3415 abstractC3415) {
        this.f5444 = 3;
        this.f5446 = 0;
        this.f5442 = abstractC3415;
        abstractC3415.f12709 = this;
    }

    /* renamed from: ˀᵗᵝᵭ, reason: contains not printable characters */
    public static final void m4054(int i) throws zzaeh {
        if ((i & 3) == 0) {
            return;
        }
        C1499.m4426("Failed to parse the message.");
    }

    /* renamed from: ᵡˎ, reason: contains not printable characters */
    public static final void m4055(int i) throws zzaeh {
        if ((i & 7) == 0) {
            return;
        }
        C1499.m4426("Failed to parse the message.");
    }

    public String toString() {
        switch (this.f5444) {
            case 2:
                return "NegotiatedProtocol{dialect=" + ((EnumC2857) this.f5442) + ", maxTransactSize=" + this.f5445 + ", maxReadSize=" + this.f5443 + ", maxWriteSize=" + this.f5446 + '}';
            default:
                return super.toString();
        }
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public void m4056(int i) {
        if (i <= 0) {
            return;
        }
        if (i > m4061()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        int length = ((Object[]) this.f5442).length;
        int i2 = this.f5445;
        if (i < length - i2) {
            length = i2 + i;
        }
        while (i2 < length) {
            ((Object[]) this.f5442)[i2] = null;
            i2++;
        }
        int i3 = this.f5445;
        int i4 = length - i3;
        int i5 = i - i4;
        this.f5445 = this.f5446 & (i3 + i4);
        if (i5 > 0) {
            for (int i6 = 0; i6 < i5; i6++) {
                ((Object[]) this.f5442)[i6] = null;
            }
            this.f5445 = i5;
        }
    }

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public void m4057(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C4392;
        int i = this.f5445;
        if (z) {
            C4392 c4392 = (C4392) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c4392.m9421(abstractC3415.mo5593());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c4392.m9421(abstractC3415.mo5593());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Integer.valueOf(abstractC3415.mo5593()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Integer.valueOf(abstractC3415.mo5593()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public void m4058(InterfaceC4487 interfaceC4487, boolean z) throws zzaeg {
        String strMo5570;
        int iMo5576;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        if ((this.f5445 & 7) != 2) {
            C1499.m4428();
            return;
        }
        do {
            if (z) {
                m4069(2);
                strMo5570 = abstractC3415.mo5567();
            } else {
                m4069(2);
                strMo5570 = abstractC3415.mo5570();
            }
            interfaceC4487.add(strMo5570);
            if (abstractC3415.mo5591()) {
                return;
            } else {
                iMo5576 = abstractC3415.mo5576();
            }
        } while (iMo5576 == this.f5445);
        this.f5446 = iMo5576;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public void m4059(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C0386;
        int i = this.f5445;
        if (z) {
            C0386 c0386 = (C0386) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c0386.m1839(abstractC3415.mo5594());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c0386.m1839(abstractC3415.mo5594());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Long.valueOf(abstractC3415.mo5594()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Long.valueOf(abstractC3415.mo5594()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ˎˑː, reason: contains not printable characters */
    public AbstractC2646 m4060() throws zzaeg {
        m4069(2);
        return ((AbstractC3415) this.f5442).mo5587();
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public int m4061() {
        return this.f5446 & (this.f5443 - this.f5445);
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public void m4062() {
        Object[] objArr = (Object[]) this.f5442;
        int length = objArr.length;
        int i = this.f5445;
        int i2 = length - i;
        int i3 = length << 1;
        if (i3 < 0) {
            C1260.m3816("Max array capacity exceeded");
            return;
        }
        Object[] objArr2 = new Object[i3];
        AbstractC1658.m4726(0, i, length, objArr, objArr2);
        AbstractC1658.m4726(i2, 0, this.f5445, (Object[]) this.f5442, objArr2);
        this.f5442 = objArr2;
        this.f5445 = 0;
        this.f5443 = length;
        this.f5446 = i3 - 1;
    }

    /* renamed from: ˑᵥˁ, reason: contains not printable characters */
    public int m4063() {
        int iMo5576 = this.f5446;
        if (iMo5576 != 0) {
            this.f5445 = iMo5576;
            this.f5446 = 0;
        } else {
            iMo5576 = ((AbstractC3415) this.f5442).mo5576();
            this.f5445 = iMo5576;
        }
        if (iMo5576 == 0 || iMo5576 == this.f5443) {
            return Integer.MAX_VALUE;
        }
        return iMo5576 >>> 3;
    }

    /* renamed from: ˑᵱ, reason: contains not printable characters */
    public void m4064(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C0386;
        int i = this.f5445;
        if (z) {
            C0386 c0386 = (C0386) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c0386.m1839(abstractC3415.mo5573());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c0386.m1839(abstractC3415.mo5573());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Long.valueOf(abstractC3415.mo5573()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Long.valueOf(abstractC3415.mo5573()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public void m4065(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C0386;
        int i = this.f5445;
        if (z) {
            C0386 c0386 = (C0386) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 1) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5593 = abstractC3415.mo5593();
                m4055(iMo5593);
                int iMo5564 = abstractC3415.mo5564() + iMo5593;
                do {
                    c0386.m1839(abstractC3415.mo5580());
                } while (abstractC3415.mo5564() < iMo5564);
                return;
            }
            do {
                c0386.m1839(abstractC3415.mo5580());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 1) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55932 = abstractC3415.mo5593();
                m4055(iMo55932);
                int iMo55642 = abstractC3415.mo5564() + iMo55932;
                do {
                    interfaceC4487.add(Long.valueOf(abstractC3415.mo5580()));
                } while (abstractC3415.mo5564() < iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Long.valueOf(abstractC3415.mo5580()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵞʡ, reason: contains not printable characters */
    public void m4066(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C0386;
        int i = this.f5445;
        if (z) {
            C0386 c0386 = (C0386) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 1) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5593 = abstractC3415.mo5593();
                m4055(iMo5593);
                int iMo5564 = abstractC3415.mo5564() + iMo5593;
                do {
                    c0386.m1839(abstractC3415.mo5560());
                } while (abstractC3415.mo5564() < iMo5564);
                return;
            }
            do {
                c0386.m1839(abstractC3415.mo5560());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 1) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55932 = abstractC3415.mo5593();
                m4055(iMo55932);
                int iMo55642 = abstractC3415.mo5564() + iMo55932;
                do {
                    interfaceC4487.add(Long.valueOf(abstractC3415.mo5560()));
                } while (abstractC3415.mo5564() < iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Long.valueOf(abstractC3415.mo5560()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public void m4067(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C4392;
        int i = this.f5445;
        if (z) {
            C4392 c4392 = (C4392) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c4392.m9421(abstractC3415.mo5572());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c4392.m9421(abstractC3415.mo5572());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Integer.valueOf(abstractC3415.mo5572()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Integer.valueOf(abstractC3415.mo5572()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵡⁱᵥ, reason: contains not printable characters */
    public void m4068(int i) throws zzaeh {
        if (((AbstractC3415) this.f5442).mo5564() == i) {
            return;
        }
        C1499.m4426("While parsing a protocol message, the input ended unexpectedly in the middle of a field.  This could mean either that the input has been truncated or that an embedded message misreported its own length.");
    }

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public void m4069(int i) throws zzaeg {
        if ((this.f5445 & 7) == i) {
            return;
        }
        C1499.m4428();
    }

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public Object m4070(EnumC0858 enumC0858, Class cls, C1037 c1037) throws zzaeh {
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        EnumC0858 enumC08582 = EnumC0858.f3910;
        switch (enumC0858.ordinal()) {
            case 0:
                m4069(1);
                return Double.valueOf(abstractC3415.mo5584());
            case 1:
                m4069(5);
                return Float.valueOf(abstractC3415.mo5581());
            case 2:
                m4069(0);
                return Long.valueOf(abstractC3415.mo5594());
            case 3:
                m4069(0);
                return Long.valueOf(abstractC3415.mo5595());
            case 4:
                m4069(0);
                return Integer.valueOf(abstractC3415.mo5582());
            case 5:
                m4069(1);
                return Long.valueOf(abstractC3415.mo5580());
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
                m4069(5);
                return Integer.valueOf(abstractC3415.mo5558());
            case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
                m4069(0);
                return Boolean.valueOf(abstractC3415.mo5577());
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
                m4069(2);
                return abstractC3415.mo5567();
            case 9:
            default:
                ᵹˉᵞ.ˌᵜᵹᵩ("unsupported field type.");
                return null;
            case 10:
                m4069(2);
                InterfaceC1461 interfaceC1461M11073 = C5430.f20370.m11073(cls);
                AbstractC4985 abstractC4985Mo3034 = interfaceC1461M11073.mo3034();
                m4087(abstractC4985Mo3034, interfaceC1461M11073, c1037);
                interfaceC1461M11073.mo3035(abstractC4985Mo3034);
                return abstractC4985Mo3034;
            case 11:
                return m4060();
            case 12:
                m4069(0);
                return Integer.valueOf(abstractC3415.mo5593());
            case 13:
                m4069(0);
                return Integer.valueOf(abstractC3415.mo5572());
            case 14:
                m4069(5);
                return Integer.valueOf(abstractC3415.mo5590());
            case 15:
                m4069(1);
                return Long.valueOf(abstractC3415.mo5560());
            case 16:
                m4069(0);
                return Integer.valueOf(abstractC3415.mo5596());
            case 17:
                m4069(0);
                return Long.valueOf(abstractC3415.mo5573());
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public void m4071(C1538 c1538) {
        c1538.f6156 = null;
        c1538.f6154 = null;
        c1538.f6152 = null;
        c1538.f6149 = 1;
        int i = this.f5445;
        if (i > 0) {
            int i2 = this.f5446;
            if ((i2 & 1) == 0) {
                this.f5446 = i2 + 1;
                this.f5445 = i - 1;
                this.f5443++;
            }
        }
        c1538.f6154 = (C1538) this.f5442;
        this.f5442 = c1538;
        int i3 = this.f5446;
        int i4 = i3 + 1;
        this.f5446 = i4;
        int i5 = this.f5445;
        if (i5 > 0 && (i4 & 1) == 0) {
            this.f5446 = i3 + 2;
            this.f5445 = i5 - 1;
            this.f5443++;
        }
        int i6 = 4;
        while (true) {
            int i7 = i6 - 1;
            if ((this.f5446 & i7) != i7) {
                return;
            }
            int i8 = this.f5443;
            if (i8 == 0) {
                C1538 c15382 = (C1538) this.f5442;
                C1538 c15383 = c15382.f6154;
                C1538 c15384 = c15383.f6154;
                c15383.f6154 = c15384.f6154;
                this.f5442 = c15383;
                c15383.f6152 = c15384;
                c15383.f6156 = c15382;
                c15383.f6149 = c15382.f6149 + 1;
                c15384.f6154 = c15383;
                c15382.f6154 = c15383;
            } else if (i8 == 1) {
                C1538 c15385 = (C1538) this.f5442;
                C1538 c15386 = c15385.f6154;
                this.f5442 = c15386;
                c15386.f6156 = c15385;
                c15386.f6149 = c15385.f6149 + 1;
                c15385.f6154 = c15386;
                this.f5443 = 0;
            } else if (i8 == 2) {
                this.f5443 = 0;
            }
            i6 *= 2;
        }
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public void m4072(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        int i = this.f5445 & 7;
        if (i == 2) {
            int iMo5593 = abstractC3415.mo5593();
            m4054(iMo5593);
            int iMo5564 = abstractC3415.mo5564() + iMo5593;
            do {
                interfaceC4487.add(Float.valueOf(abstractC3415.mo5581()));
            } while (abstractC3415.mo5564() < iMo5564);
            return;
        }
        if (i != 5) {
            C1499.m4428();
            return;
        }
        do {
            interfaceC4487.add(Float.valueOf(abstractC3415.mo5581()));
            if (abstractC3415.mo5591()) {
                return;
            } else {
                iMo5576 = abstractC3415.mo5576();
            }
        } while (iMo5576 == this.f5445);
        this.f5446 = iMo5576;
    }

    /* JADX WARN: Code restructure failed: missing block: B:39:0x007e, code lost:
    
        r12.put(r4, r5);
     */
    /* JADX WARN: Code restructure failed: missing block: B:40:0x0081, code lost:
    
        r1.mo5592(r2);
     */
    /* JADX WARN: Code restructure failed: missing block: B:41:0x0084, code lost:
    
        return;
     */
    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public void m4073(defpackage.C3331 r12, defpackage.C1570 r13, defpackage.C1037 r14) throws com.google.android.gms.internal.measurement.zzaeg {
        /*
            r11 = this;
            r0 = 2
            r11.m4069(r0)
            java.lang.Object r1 = r11.f5442
            ᵤˉᵩ r1 = (defpackage.AbstractC3415) r1
            int r2 = r1.mo5593()
            int r2 = r1.mo5566(r2)
            java.lang.Object r3 = r13.f6229
            java.lang.String r4 = ""
            r5 = r3
        L15:
            int r6 = r11.m4063()     // Catch: java.lang.Throwable -> L49
            r7 = 2147483647(0x7fffffff, float:NaN)
            if (r6 == r7) goto L7e
            boolean r7 = r1.mo5591()     // Catch: java.lang.Throwable -> L49
            if (r7 == 0) goto L25
            goto L7e
        L25:
            r7 = 1
            r8 = 0
            java.lang.String r9 = "Unable to parse map entry."
            if (r6 == r7) goto L5a
            if (r6 == r0) goto L4d
            boolean r6 = r1.mo5591()     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            if (r6 != 0) goto L3f
            int r6 = r11.f5445     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            int r7 = r11.f5443     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            if (r6 != r7) goto L3a
            goto L3f
        L3a:
            boolean r6 = r1.mo5571(r6)     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            goto L40
        L3f:
            r6 = r8
        L40:
            if (r6 == 0) goto L43
            goto L15
        L43:
            com.google.android.gms.internal.measurement.zzaeh r6 = new com.google.android.gms.internal.measurement.zzaeh     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            r6.<init>(r9)     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            throw r6     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
        L49:
            r11 = move-exception
            goto L85
        L4b:
            r6 = move-exception
            goto L64
        L4d:
            java.lang.Object r6 = r13.f6230     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            ˆᵡʝˈ r6 = (defpackage.EnumC0858) r6     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            java.lang.Class r7 = r3.getClass()     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            java.lang.Object r5 = r11.m4070(r6, r7, r14)     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            goto L15
        L5a:
            java.lang.Object r6 = r13.f6227     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            ˆᵡʝˈ r6 = (defpackage.EnumC0858) r6     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            r7 = 0
            java.lang.Object r4 = r11.m4070(r6, r7, r7)     // Catch: java.lang.Throwable -> L49 com.google.android.gms.internal.measurement.zzaeg -> L4b
            goto L15
        L64:
            boolean r7 = r1.mo5591()     // Catch: java.lang.Throwable -> L49
            if (r7 != 0) goto L75
            int r7 = r11.f5445     // Catch: java.lang.Throwable -> L49
            int r10 = r11.f5443     // Catch: java.lang.Throwable -> L49
            if (r7 != r10) goto L71
            goto L75
        L71:
            boolean r8 = r1.mo5571(r7)     // Catch: java.lang.Throwable -> L49
        L75:
            if (r8 == 0) goto L78
            goto L15
        L78:
            com.google.android.gms.internal.measurement.zzaeh r11 = new com.google.android.gms.internal.measurement.zzaeh     // Catch: java.lang.Throwable -> L49
            r11.<init>(r9, r6)     // Catch: java.lang.Throwable -> L49
            throw r11     // Catch: java.lang.Throwable -> L49
        L7e:
            r12.put(r4, r5)     // Catch: java.lang.Throwable -> L49
            r1.mo5592(r2)
            return
        L85:
            r1.mo5592(r2)
            throw r11
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C1326.m4073(ᵣʽᵿ, ˌʽᵢ, ˈˋᵲ):void");
    }

    /* renamed from: ᵨᵳʝ, reason: contains not printable characters */
    public void m4074(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C4392;
        int i = this.f5445;
        if (z) {
            C4392 c4392 = (C4392) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c4392.m9421(abstractC3415.mo5596());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c4392.m9421(abstractC3415.mo5596());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Integer.valueOf(abstractC3415.mo5596()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Integer.valueOf(abstractC3415.mo5596()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵪʩ, reason: contains not printable characters */
    public void m4075(InterfaceC4487 interfaceC4487, InterfaceC1461 interfaceC1461, C1037 c1037) throws zzaeg {
        int iMo5576;
        int i = this.f5445;
        if ((i & 7) != 3) {
            C1499.m4428();
            return;
        }
        do {
            AbstractC4985 abstractC4985Mo3034 = interfaceC1461.mo3034();
            m4086(abstractC4985Mo3034, interfaceC1461, c1037);
            interfaceC1461.mo3035(abstractC4985Mo3034);
            interfaceC4487.add(abstractC4985Mo3034);
            AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
            if (abstractC3415.mo5591() || this.f5446 != 0) {
                return;
            } else {
                iMo5576 = abstractC3415.mo5576();
            }
        } while (iMo5576 == i);
        this.f5446 = iMo5576;
    }

    /* renamed from: ᵮᵠـˌ, reason: contains not printable characters */
    public void m4076(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        int i = this.f5445 & 7;
        if (i == 1) {
            do {
                interfaceC4487.add(Double.valueOf(abstractC3415.mo5584()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            this.f5446 = iMo5576;
            return;
        }
        if (i != 2) {
            C1499.m4428();
            return;
        }
        int iMo5593 = abstractC3415.mo5593();
        m4055(iMo5593);
        int iMo5564 = abstractC3415.mo5564() + iMo5593;
        do {
            interfaceC4487.add(Double.valueOf(abstractC3415.mo5584()));
        } while (abstractC3415.mo5564() < iMo5564);
    }

    /* renamed from: ᵯٴᵦ, reason: contains not printable characters */
    public void m4077(InterfaceC4487 interfaceC4487, InterfaceC1461 interfaceC1461, C1037 c1037) throws zzaeh {
        int iMo5576;
        int i = this.f5445;
        if ((i & 7) != 2) {
            C1499.m4428();
            return;
        }
        do {
            AbstractC4985 abstractC4985Mo3034 = interfaceC1461.mo3034();
            m4087(abstractC4985Mo3034, interfaceC1461, c1037);
            interfaceC1461.mo3035(abstractC4985Mo3034);
            interfaceC4487.add(abstractC4985Mo3034);
            AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
            if (abstractC3415.mo5591() || this.f5446 != 0) {
                return;
            } else {
                iMo5576 = abstractC3415.mo5576();
            }
        } while (iMo5576 == i);
        this.f5446 = iMo5576;
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public void m4078(InterfaceC4487 interfaceC4487) throws zzaeg {
        int iMo5576;
        if ((this.f5445 & 7) != 2) {
            C1499.m4428();
            return;
        }
        do {
            interfaceC4487.add(m4060());
            AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
            if (abstractC3415.mo5591()) {
                return;
            } else {
                iMo5576 = abstractC3415.mo5576();
            }
        } while (iMo5576 == this.f5445);
        this.f5446 = iMo5576;
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public void m4079(Object obj) {
        Object[] objArr = (Object[]) this.f5442;
        int i = this.f5443;
        objArr[i] = obj;
        int i2 = this.f5446 & (i + 1);
        this.f5443 = i2;
        if (i2 == this.f5445) {
            m4062();
        }
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public void m4080(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C4392;
        int i = this.f5445;
        if (z) {
            C4392 c4392 = (C4392) interfaceC4487;
            int i2 = i & 7;
            if (i2 == 2) {
                int iMo5593 = abstractC3415.mo5593();
                m4054(iMo5593);
                int iMo5564 = abstractC3415.mo5564() + iMo5593;
                do {
                    c4392.m9421(abstractC3415.mo5558());
                } while (abstractC3415.mo5564() < iMo5564);
                return;
            }
            if (i2 != 5) {
                C1499.m4428();
                return;
            }
            do {
                c4392.m9421(abstractC3415.mo5558());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 == 2) {
                int iMo55932 = abstractC3415.mo5593();
                m4054(iMo55932);
                int iMo55642 = abstractC3415.mo5564() + iMo55932;
                do {
                    interfaceC4487.add(Integer.valueOf(abstractC3415.mo5558()));
                } while (abstractC3415.mo5564() < iMo55642);
                return;
            }
            if (i3 != 5) {
                C1499.m4428();
                return;
            }
            do {
                interfaceC4487.add(Integer.valueOf(abstractC3415.mo5558()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public void m4081(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C4392;
        int i = this.f5445;
        if (z) {
            C4392 c4392 = (C4392) interfaceC4487;
            int i2 = i & 7;
            if (i2 == 2) {
                int iMo5593 = abstractC3415.mo5593();
                m4054(iMo5593);
                int iMo5564 = abstractC3415.mo5564() + iMo5593;
                do {
                    c4392.m9421(abstractC3415.mo5590());
                } while (abstractC3415.mo5564() < iMo5564);
                return;
            }
            if (i2 != 5) {
                C1499.m4428();
                return;
            }
            do {
                c4392.m9421(abstractC3415.mo5590());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 == 2) {
                int iMo55932 = abstractC3415.mo5593();
                m4054(iMo55932);
                int iMo55642 = abstractC3415.mo5564() + iMo55932;
                do {
                    interfaceC4487.add(Integer.valueOf(abstractC3415.mo5590()));
                } while (abstractC3415.mo5564() < iMo55642);
                return;
            }
            if (i3 != 5) {
                C1499.m4428();
                return;
            }
            do {
                interfaceC4487.add(Integer.valueOf(abstractC3415.mo5590()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public void m4082(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        int i = this.f5445 & 7;
        if (i == 0) {
            do {
                interfaceC4487.add(Boolean.valueOf(abstractC3415.mo5577()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            this.f5446 = iMo5576;
            return;
        }
        if (i != 2) {
            C1499.m4428();
            return;
        }
        int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
        do {
            interfaceC4487.add(Boolean.valueOf(abstractC3415.mo5577()));
        } while (abstractC3415.mo5564() < iMo5564);
        m4068(iMo5564);
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public void m4083(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C4392;
        int i = this.f5445;
        if (z) {
            C4392 c4392 = (C4392) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c4392.m9421(abstractC3415.mo5582());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c4392.m9421(abstractC3415.mo5582());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Integer.valueOf(abstractC3415.mo5582()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Integer.valueOf(abstractC3415.mo5582()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public void m4084(InterfaceC4487 interfaceC4487) throws zzaeh {
        int iMo5576;
        int iMo55762;
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        boolean z = interfaceC4487 instanceof C0386;
        int i = this.f5445;
        if (z) {
            C0386 c0386 = (C0386) interfaceC4487;
            int i2 = i & 7;
            if (i2 != 0) {
                if (i2 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo5564 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    c0386.m1839(abstractC3415.mo5595());
                } while (abstractC3415.mo5564() < iMo5564);
                m4068(iMo5564);
                return;
            }
            do {
                c0386.m1839(abstractC3415.mo5595());
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo55762 = abstractC3415.mo5576();
                }
            } while (iMo55762 == this.f5445);
        } else {
            int i3 = i & 7;
            if (i3 != 0) {
                if (i3 != 2) {
                    C1499.m4428();
                    return;
                }
                int iMo55642 = abstractC3415.mo5564() + abstractC3415.mo5593();
                do {
                    interfaceC4487.add(Long.valueOf(abstractC3415.mo5595()));
                } while (abstractC3415.mo5564() < iMo55642);
                m4068(iMo55642);
                return;
            }
            do {
                interfaceC4487.add(Long.valueOf(abstractC3415.mo5595()));
                if (abstractC3415.mo5591()) {
                    return;
                } else {
                    iMo5576 = abstractC3415.mo5576();
                }
            } while (iMo5576 == this.f5445);
            iMo55762 = iMo5576;
        }
        this.f5446 = iMo55762;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public void m4085(int i) {
        if (i <= 0) {
            return;
        }
        if (i > m4061()) {
            throw new ArrayIndexOutOfBoundsException();
        }
        int i2 = this.f5443;
        int i3 = i < i2 ? i2 - i : 0;
        for (int i4 = i3; i4 < i2; i4++) {
            ((Object[]) this.f5442)[i4] = null;
        }
        int i5 = this.f5443;
        int i6 = i5 - i3;
        int i7 = i - i6;
        this.f5443 = i5 - i6;
        if (i7 > 0) {
            int length = ((Object[]) this.f5442).length;
            this.f5443 = length;
            int i8 = length - i7;
            for (int i9 = i8; i9 < length; i9++) {
                ((Object[]) this.f5442)[i9] = null;
            }
            this.f5443 = i8;
        }
    }

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public void m4086(Object obj, InterfaceC1461 interfaceC1461, C1037 c1037) {
        int i = this.f5443;
        this.f5443 = ((this.f5445 >>> 3) << 3) | 4;
        try {
            interfaceC1461.mo3033(obj, this, c1037);
            if (this.f5445 == this.f5443) {
            } else {
                throw new zzaeh("Failed to parse the message.");
            }
        } finally {
            this.f5443 = i;
        }
    }

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public void m4087(Object obj, InterfaceC1461 interfaceC1461, C1037 c1037) throws zzaeh {
        AbstractC3415 abstractC3415 = (AbstractC3415) this.f5442;
        int iMo5593 = abstractC3415.mo5593();
        if (abstractC3415.f12708 + abstractC3415.f12707 >= 100) {
            C1499.m4426("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
            return;
        }
        int iMo5566 = abstractC3415.mo5566(iMo5593);
        abstractC3415.f12708++;
        interfaceC1461.mo3033(obj, this, c1037);
        abstractC3415.mo5585(0);
        abstractC3415.f12708--;
        abstractC3415.mo5592(iMo5566);
    }
}
