package com.google.crypto.tink.shaded.protobuf;

import defpackage.AbstractC0715;

/* renamed from: com.google.crypto.tink.shaded.protobuf.ᵶᵷᵕ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC0026 {
    /* renamed from: ᵥᵯˎ */
    public abstract C0027 mo863(Object obj);

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final boolean m961(int i, C0029 c0029, Object obj) throws InvalidProtocolBufferException {
        int i2 = c0029.f1116;
        AbstractC0715 abstractC0715 = c0029.f1115;
        int i3 = i2 >>> 3;
        int i4 = i2 & 7;
        if (i4 == 0) {
            c0029.m980(0);
            ((C0027) obj).m966(i3 << 3, Long.valueOf(abstractC0715.mo177()));
            return true;
        }
        if (i4 == 1) {
            c0029.m980(1);
            ((C0027) obj).m966((i3 << 3) | 1, Long.valueOf(abstractC0715.mo170()));
            return true;
        }
        if (i4 == 2) {
            ((C0027) obj).m966((i3 << 3) | 2, c0029.m969());
            return true;
        }
        if (i4 != 3) {
            if (i4 == 4) {
                if (i != 0) {
                    return false;
                }
                throw new InvalidProtocolBufferException("Protocol message end-group tag did not match expected tag.");
            }
            if (i4 != 5) {
                throw InvalidProtocolBufferException.m837();
            }
            c0029.m980(5);
            ((C0027) obj).m966(5 | (i3 << 3), Integer.valueOf(abstractC0715.mo185()));
            return true;
        }
        C0027 c0027M962 = C0027.m962();
        int i5 = i3 << 3;
        int i6 = i5 | 4;
        int i7 = i + 1;
        if (i7 >= 100) {
            throw new InvalidProtocolBufferException("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
        }
        while (c0029.m979() != Integer.MAX_VALUE && m961(i7, c0029, c0027M962)) {
        }
        if (i6 != c0029.f1116) {
            throw new InvalidProtocolBufferException("Protocol message end-group tag did not match expected tag.");
        }
        if (c0027M962.f1106) {
            c0027M962.f1106 = false;
        }
        ((C0027) obj).m966(i5 | 3, c0027M962);
        return true;
    }
}
