package com.google.protobuf;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes3.dex */
public abstract class o1 {

    /* renamed from: a, reason: collision with root package name */
    private static volatile int f15147a = 100;

    private final void l(Object obj, g1 g1Var, int i10) {
        while (g1Var.w() != Integer.MAX_VALUE && m(obj, g1Var, i10)) {
        }
    }

    abstract void a(Object obj, int i10, int i11);

    abstract void b(Object obj, int i10, long j10);

    abstract void c(Object obj, int i10, Object obj2);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void d(Object obj, int i10, h hVar);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void e(Object obj, int i10, long j10);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract Object f(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract Object g(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract int h(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract int i(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void j(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract Object k(Object obj, Object obj2);

    /* JADX INFO: Access modifiers changed from: package-private */
    public final boolean m(Object obj, g1 g1Var, int i10) {
        int a10 = g1Var.a();
        int a11 = u1.a(a10);
        int b10 = u1.b(a10);
        if (b10 == 0) {
            e(obj, a11, g1Var.G());
            return true;
        }
        if (b10 == 1) {
            b(obj, a11, g1Var.d());
            return true;
        }
        if (b10 == 2) {
            d(obj, a11, g1Var.z());
            return true;
        }
        if (b10 != 3) {
            if (b10 == 4) {
                return false;
            }
            if (b10 != 5) {
                throw a0.e();
            }
            a(obj, a11, g1Var.h());
            return true;
        }
        Object n10 = n();
        int c10 = u1.c(a11, 4);
        int i11 = i10 + 1;
        if (i11 >= f15147a) {
            throw a0.i();
        }
        l(n10, g1Var, i11);
        if (c10 != g1Var.a()) {
            throw a0.b();
        }
        c(obj, a11, r(n10));
        return true;
    }

    abstract Object n();

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void o(Object obj, Object obj2);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void p(Object obj, Object obj2);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract boolean q(g1 g1Var);

    abstract Object r(Object obj);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void s(Object obj, v1 v1Var);

    /* JADX INFO: Access modifiers changed from: package-private */
    public abstract void t(Object obj, v1 v1Var);
}
