package defpackage;

import com.google.crypto.tink.shaded.protobuf.C0018;
import com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.security.GeneralSecurityException;

/* JADX INFO: renamed from: ᵙˆᵾﹶ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public abstract class AbstractC2638 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public Object f10241;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public int f10242;

    public AbstractC2638(C4396 c4396, int i) {
        if (c4396 == null) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ("format options cannot be null");
            throw null;
        }
        if (i < 0) {
            ᵕᵩʽᵲ.ᵮᵣᵗˈ(AbstractC3589.m8106(new StringBuilder(String.valueOf(i).length() + 15), "invalid index: ", i));
            throw null;
        }
        this.f10242 = i;
        this.f10241 = c4396;
    }

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public static C0018 m6407(byte[] bArr, int i, int i2, boolean z) {
        C0018 c0018 = new C0018(bArr, i, i2, z);
        try {
            c0018.mo121(i2);
            return c0018;
        } catch (InvalidProtocolBufferException e) {
            throw new IllegalArgumentException(e);
        }
    }

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public static long m6408(long j) {
        return (-(j & 1)) ^ (j >>> 1);
    }

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public static int m6409(int i) {
        return (-(i & 1)) ^ (i >>> 1);
    }

    /* JADX INFO: renamed from: ʽˈˋ */
    public abstract void mo99(int i);

    /* JADX INFO: renamed from: ʿٴˇ */
    public abstract boolean mo100(int i);

    /* JADX INFO: renamed from: ˈᵲᵢ */
    public abstract String mo103();

    /* JADX INFO: renamed from: ˉᵲ */
    public abstract long mo104();

    /* JADX INFO: renamed from: ˉᵵᵜ */
    public abstract void mo3153(C5551 c5551, Object obj);

    /* JADX INFO: renamed from: ˊᵙᵾᵲ */
    public abstract int mo105();

    /* JADX INFO: renamed from: ˊᵨᵧ */
    public abstract int mo107();

    /* JADX INFO: renamed from: ˋˈ */
    public abstract C1236 mo846();

    /* JADX INFO: renamed from: ˌᴵ */
    public abstract long mo109();

    /* JADX INFO: renamed from: ˌᵨʠᵫ */
    public abstract int mo110();

    /* JADX INFO: renamed from: ˏːˆ */
    public abstract float mo111();

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public abstract int[] mo6410(int[] iArr, int i);

    /* JADX INFO: renamed from: ˑˊᵲ */
    public abstract long mo113();

    /* JADX INFO: renamed from: ᵔᵖᵹᵫ */
    public abstract long mo114();

    /* JADX INFO: renamed from: ᵜᵪʾ */
    public abstract int mo116();

    /* JADX INFO: renamed from: ᵝᵶ */
    public abstract boolean mo117();

    /* JADX INFO: renamed from: ᵟᵹᵙ */
    public abstract double mo118();

    /* JADX INFO: renamed from: ᵠˏˏ, reason: contains not printable characters */
    public void m6411() throws androidx.datastore.preferences.protobuf.InvalidProtocolBufferException {
        int iMo110;
        do {
            iMo110 = mo110();
            if (iMo110 == 0) {
                return;
            }
            int i = this.f10242;
            if (i >= 100) {
                throw new androidx.datastore.preferences.protobuf.InvalidProtocolBufferException("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
            }
            this.f10242 = i + 1;
            this.f10242--;
        } while (mo100(iMo110));
    }

    /* JADX INFO: renamed from: ᵨᵼⁱ */
    public abstract int mo119();

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ */
    public abstract C3056 mo120();

    /* JADX INFO: renamed from: ᵮᵣᵗˈ */
    public abstract int mo121(int i);

    /* JADX INFO: renamed from: ᵯᵷʽ */
    public abstract long mo122();

    /* JADX INFO: renamed from: ᵱʡˏ */
    public abstract int mo123();

    /* JADX INFO: renamed from: ᵱᵽʡᵚ */
    public abstract void mo124(int i);

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public ByteBuffer m6412(int i, byte[] bArr) {
        int[] iArrMo6410 = mo6410(AbstractC1400.m4018(bArr), i);
        int[] iArr = (int[]) iArrMo6410.clone();
        AbstractC1400.m4020(iArr);
        for (int i2 = 0; i2 < iArrMo6410.length; i2++) {
            iArrMo6410[i2] = iArrMo6410[i2] + iArr[i2];
        }
        ByteBuffer byteBufferOrder = ByteBuffer.allocate(64).order(ByteOrder.LITTLE_ENDIAN);
        byteBufferOrder.asIntBuffer().put(iArrMo6410, 0, 16);
        return byteBufferOrder;
    }

    /* JADX INFO: renamed from: ᵵᵽ */
    public abstract boolean mo126();

    /* JADX INFO: renamed from: ᵶˇᵱ */
    public abstract String mo127();

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public void m6413(byte[] bArr, ByteBuffer byteBuffer, ByteBuffer byteBuffer2) throws GeneralSecurityException {
        if (bArr.length != mo6414()) {
            throw new GeneralSecurityException("The nonce length (in bytes) must be " + mo6414());
        }
        int iRemaining = byteBuffer2.remaining();
        int i = iRemaining / 64;
        int i2 = i + 1;
        for (int i3 = 0; i3 < i2; i3++) {
            ByteBuffer byteBufferM6412 = m6412(this.f10242 + i3, bArr);
            if (i3 == i) {
                ᵷˆᵣ.ˊᵙᵾᵲ(byteBuffer, byteBuffer2, byteBufferM6412, iRemaining % 64);
            } else {
                ᵷˆᵣ.ˊᵙᵾᵲ(byteBuffer, byteBuffer2, byteBufferM6412, 64);
            }
        }
    }

    /* JADX INFO: renamed from: ᵸˆˁ */
    public abstract int mo128();

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public abstract int mo6414();

    /* JADX INFO: renamed from: ᵻˈᵦʼ */
    public abstract int mo129();
}
