package com.google.protobuf;

import V.C0629x;
import java.io.IOException;
import java.io.InputStream;

/* JADX INFO: renamed from: com.google.protobuf.s, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC1329s {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f14351a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public int f14352b = 100;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public C0629x f14353c;

    public static int b(int i6) {
        return (-(i6 & 1)) ^ (i6 >>> 1);
    }

    public static long c(long j4) {
        return (-(j4 & 1)) ^ (j4 >>> 1);
    }

    public static C1322o f(byte[] bArr, int i6, int i7, boolean z6) {
        C1322o c1322o = new C1322o(bArr, i6, i7, z6);
        try {
            c1322o.i(i7);
            return c1322o;
        } catch (C1297b0 e6) {
            throw new IllegalArgumentException(e6);
        }
    }

    public static AbstractC1329s g(InputStream inputStream) {
        if (inputStream != null) {
            return new C1326q(inputStream);
        }
        byte[] bArr = Z.f14235b;
        return f(bArr, 0, bArr.length, false);
    }

    public static int s(InputStream inputStream, int i6) throws IOException {
        if ((i6 & 128) == 0) {
            return i6;
        }
        int i7 = i6 & 127;
        int i8 = 7;
        while (i8 < 32) {
            int i9 = inputStream.read();
            if (i9 == -1) {
                throw C1297b0.h();
            }
            i7 |= (i9 & 127) << i8;
            if ((i9 & 128) == 0) {
                return i7;
            }
            i8 += 7;
        }
        while (i8 < 64) {
            int i10 = inputStream.read();
            if (i10 == -1) {
                throw C1297b0.h();
            }
            if ((i10 & 128) == 0) {
                return i7;
            }
            i8 += 7;
        }
        throw C1297b0.e();
    }

    public abstract int A();

    public abstract long B();

    public abstract boolean C(int i6);

    public abstract void a(int i6);

    public abstract int d();

    public abstract boolean e();

    public abstract void h(int i6);

    public abstract int i(int i6);

    public abstract boolean j();

    public abstract C1318m k();

    public abstract double l();

    public abstract int m();

    public abstract int n();

    public abstract long o();

    public abstract float p();

    public abstract int q();

    public abstract long r();

    public abstract int t();

    public abstract long u();

    public abstract int v();

    public abstract long w();

    public abstract String x();

    public abstract String y();

    public abstract int z();
}
