package defpackage;

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

/* renamed from: ˁᵟᵝ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC0715 {

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

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public Object f3452;

    public AbstractC0715(C2797 c2797, int i) {
        if (c2797 == null) {
            ᵹˉᵞ.ˌᵜᵹᵩ("format options cannot be null");
            throw null;
        }
        if (i < 0) {
            ᵹˉᵞ.ˌᵜᵹᵩ(AbstractC4486.m9556(new StringBuilder(String.valueOf(i).length() + 15), "invalid index: ", i));
            throw null;
        }
        this.f3451 = i;
        this.f3452 = c2797;
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public static long m2711(long j) {
        return (-(j & 1)) ^ (j >>> 1);
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public static C0025 m2712(byte[] bArr, int i, int i2, boolean z) {
        C0025 c0025 = new C0025(bArr, i, i2, z);
        try {
            c0025.mo159(i2);
            return c0025;
        } catch (InvalidProtocolBufferException e) {
            throw new IllegalArgumentException(e);
        }
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public static int m2713(int i) {
        return (-(i & 1)) ^ (i >>> 1);
    }

    /* renamed from: ˀᵗᵝᵭ */
    public abstract String mo153();

    /* renamed from: ˌʾˀ */
    public abstract double mo158();

    /* renamed from: ˌᵜᵹᵩ */
    public abstract int mo159(int i);

    /* renamed from: ˎˏʜʾ */
    public abstract boolean mo161();

    /* renamed from: ˎˑː */
    public abstract long mo162();

    /* renamed from: ˏˋٴ */
    public abstract int mo163();

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public abstract int[] mo2714(int[] iArr, int i);

    /* renamed from: ˑᵥˁ */
    public abstract int mo165();

    /* renamed from: ˑᵱ */
    public abstract int mo166();

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public abstract int mo2715();

    /* renamed from: ᵞʡ */
    public abstract long mo170();

    /* renamed from: ᵡʠ */
    public abstract int mo171();

    /* renamed from: ᵡˎ */
    public abstract int mo172();

    /* renamed from: ᵡⁱᵥ */
    public abstract String mo174();

    /* renamed from: ᵢˇᵭ */
    public abstract int mo175();

    /* renamed from: ᵤᵙᵷ */
    public abstract long mo176();

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public ByteBuffer m2716(int i, byte[] bArr) {
        int[] iArrMo2714 = mo2714(AbstractC2052.m5632(bArr), i);
        int[] iArr = (int[]) iArrMo2714.clone();
        AbstractC2052.m5636(iArr);
        for (int i2 = 0; i2 < iArrMo2714.length; i2++) {
            iArrMo2714[i2] = iArrMo2714[i2] + iArr[i2];
        }
        ByteBuffer byteBufferOrder = ByteBuffer.allocate(64).order(ByteOrder.LITTLE_ENDIAN);
        byteBufferOrder.asIntBuffer().put(iArrMo2714, 0, 16);
        return byteBufferOrder;
    }

    /* renamed from: ᵧـˌᵎ, reason: contains not printable characters */
    public void m2717() throws androidx.datastore.preferences.protobuf.InvalidProtocolBufferException {
        int iMo172;
        do {
            iMo172 = mo172();
            if (iMo172 == 0) {
                return;
            }
            int i = this.f3451;
            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.f3451 = i + 1;
            this.f3451--;
        } while (mo179(iMo172));
    }

    /* renamed from: ᵧᵾˀˈ */
    public abstract long mo177();

    /* renamed from: ᵨᵳʝ */
    public abstract float mo178();

    /* renamed from: ᵪʩ */
    public abstract C5500 mo923();

    /* renamed from: ᵮᵠـˌ */
    public abstract boolean mo179(int i);

    /* renamed from: ᵯٴᵦ */
    public abstract boolean mo180();

    /* renamed from: ᵳٴᵶ */
    public abstract C5050 mo181();

    /* renamed from: ᵴᵳ */
    public abstract void mo182(int i);

    /* renamed from: ᵶᵷᵕ */
    public abstract void mo184(int i);

    /* renamed from: ᵸʓᵠ */
    public abstract int mo185();

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public void m2718(byte[] bArr, ByteBuffer byteBuffer, ByteBuffer byteBuffer2) throws GeneralSecurityException {
        if (bArr.length != mo2715()) {
            throw new GeneralSecurityException("The nonce length (in bytes) must be " + mo2715());
        }
        int iRemaining = byteBuffer2.remaining();
        int i = iRemaining / 64;
        int i2 = i + 1;
        for (int i3 = 0; i3 < i2; i3++) {
            ByteBuffer byteBufferM2716 = m2716(this.f3451 + i3, bArr);
            if (i3 == i) {
                ˉᵜˆ.ˑᵥˁ(byteBuffer, byteBuffer2, byteBufferM2716, iRemaining % 64);
            } else {
                ˉᵜˆ.ˑᵥˁ(byteBuffer, byteBuffer2, byteBufferM2716, 64);
            }
        }
    }

    /* renamed from: ᵺʙ, reason: contains not printable characters */
    public abstract void mo2719(C3512 c3512, Object obj);

    /* renamed from: ᵾᵬ */
    public abstract int mo186();

    /* renamed from: ᵿʗᵝʽ */
    public abstract long mo187();
}
