package defpackage;

import com.google.android.gms.internal.measurement.zzaeh;
import java.io.InputStream;
import java.util.Arrays;

/* renamed from: ᵤˉᵩ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public abstract class AbstractC3415 {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public int f12707;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public int f12708;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public Object f12709;

    /* renamed from: ᵡʠ, reason: contains not printable characters */
    public static int m7774(int i) {
        return (i >>> 1) ^ (-(i & 1));
    }

    /* renamed from: ᵳٴᵶ, reason: contains not printable characters */
    public static AbstractC3415 m7775(InputStream inputStream, int i) {
        if (i <= 0) {
            ᵹˉᵞ.ˌᵜᵹᵩ("bufferSize must be > 0");
            return null;
        }
        if (inputStream != null) {
            return new C2023(inputStream, i);
        }
        C4496 c4496 = new C4496(AbstractC0357.f2110);
        try {
            c4496.mo5566(0);
            return c4496;
        } catch (zzaeh e) {
            throw new IllegalArgumentException(e);
        }
    }

    /* renamed from: ᵸʓᵠ, reason: contains not printable characters */
    public static long m7776(long j) {
        return (j >>> 1) ^ (-(1 & j));
    }

    /* renamed from: ˀᵗᵝᵭ */
    public abstract int mo5558();

    /* renamed from: ˁˑᵰ */
    public abstract long mo5560();

    /* renamed from: ˇʼʤˎ */
    public abstract AbstractC1061[] mo5324();

    /* renamed from: ˌʾˀ, reason: contains not printable characters */
    public void m7777() {
        int iMo5576;
        do {
            iMo5576 = mo5576();
            if (iMo5576 == 0) {
                return;
            }
            int i = this.f12708;
            int i2 = this.f12707;
            if (i + i2 >= 100) {
                C1499.m4426("Protocol message had too many levels of nesting.  May be malicious.  Use setRecursionLimit() to increase the recursion depth limit.");
                return;
            } else {
                this.f12707 = i2 + 1;
                this.f12707--;
            }
        } while (mo5571(iMo5576));
    }

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

    /* renamed from: ˎˏʜʾ */
    public abstract int mo5566(int i);

    /* renamed from: ˎˑː */
    public abstract String mo5567();

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public void m7778(AbstractC1061 abstractC1061) {
        int i;
        InterfaceC4943[] interfaceC4943ArrMo3436;
        synchronized (this) {
            try {
                int i2 = this.f12708 - 1;
                this.f12708 = i2;
                if (i2 == 0) {
                    this.f12707 = 0;
                }
                interfaceC4943ArrMo3436 = abstractC1061.mo3436(this);
            } catch (Throwable th) {
                throw th;
            }
        }
        for (InterfaceC4943 interfaceC4943 : interfaceC4943ArrMo3436) {
            if (interfaceC4943 != null) {
                interfaceC4943.mo2134(C3637.f13536);
            }
        }
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public AbstractC1061 m7779() {
        AbstractC1061 abstractC1061Mo5335;
        synchronized (this) {
            try {
                AbstractC1061[] abstractC1061ArrMo5324 = (AbstractC1061[]) this.f12709;
                if (abstractC1061ArrMo5324 == null) {
                    abstractC1061ArrMo5324 = mo5324();
                    this.f12709 = abstractC1061ArrMo5324;
                } else if (this.f12708 >= abstractC1061ArrMo5324.length) {
                    Object[] objArrCopyOf = Arrays.copyOf(abstractC1061ArrMo5324, abstractC1061ArrMo5324.length * 2);
                    this.f12709 = (AbstractC1061[]) objArrCopyOf;
                    abstractC1061ArrMo5324 = (AbstractC1061[]) objArrCopyOf;
                }
                int i = this.f12707;
                do {
                    abstractC1061Mo5335 = abstractC1061ArrMo5324[i];
                    if (abstractC1061Mo5335 == null) {
                        abstractC1061Mo5335 = mo5335();
                        abstractC1061ArrMo5324[i] = abstractC1061Mo5335;
                    }
                    i++;
                    if (i >= abstractC1061ArrMo5324.length) {
                        i = 0;
                    }
                } while (!abstractC1061Mo5335.mo3435(this));
                this.f12707 = i;
                this.f12708++;
            } catch (Throwable th) {
                throw th;
            }
        }
        return abstractC1061Mo5335;
    }

    /* renamed from: ˑᵝﹳᵜ */
    public abstract long mo5569();

    /* renamed from: ˑᵥˁ */
    public abstract String mo5570();

    /* renamed from: ˑᵱ */
    public abstract boolean mo5571(int i);

    /* renamed from: ᐧﾞ */
    public abstract int mo5572();

    /* renamed from: ᵙᵢᵨᵳ */
    public abstract long mo5573();

    /* renamed from: ᵝᵵᵺ */
    public abstract int mo5575();

    /* renamed from: ᵞʡ */
    public abstract int mo5576();

    /* renamed from: ᵡˎ */
    public abstract boolean mo5577();

    /* renamed from: ᵡᵘˎʽ */
    public abstract int mo5578();

    /* renamed from: ᵡⁱᵥ */
    public abstract long mo5580();

    /* renamed from: ᵢˇᵭ */
    public abstract float mo5581();

    /* renamed from: ᵤᵙᵷ */
    public abstract int mo5582();

    /* renamed from: ᵧـˌᵎ */
    public abstract byte[] mo5583();

    /* renamed from: ᵧᵾˀˈ */
    public abstract double mo5584();

    /* renamed from: ᵨᵳʝ */
    public abstract void mo5585(int i);

    /* renamed from: ᵪʩ */
    public abstract void mo5586(int i);

    /* renamed from: ᵮᵠـˌ */
    public abstract C2492 mo5587();

    /* renamed from: ᵯٴᵦ */
    public abstract int mo5588(byte[] bArr, int i, int i2);

    /* renamed from: ᵶʔᵢˊ */
    public abstract int mo5590();

    /* renamed from: ᵶᵷᵕ */
    public abstract boolean mo5591();

    /* renamed from: ᵹᵝᵶ */
    public abstract void mo5592(int i);

    /* renamed from: ᵺʙ */
    public abstract int mo5593();

    /* renamed from: ᵻᵢﹳᵰ */
    public abstract AbstractC1061 mo5335();

    /* renamed from: ᵾᵬ */
    public abstract long mo5594();

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

    /* renamed from: ﾞⁱ */
    public abstract int mo5596();
}
