package defpackage;

import java.nio.ByteBuffer;

/* JADX INFO: renamed from: ːᵟˈᵺ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1985 {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final boolean f7858;

    /* JADX INFO: renamed from: ˊᵫᵗ, reason: contains not printable characters */
    public final boolean f7859;

    /* JADX INFO: renamed from: ˋˈ, reason: contains not printable characters */
    public final byte f7860;

    /* JADX INFO: renamed from: ːˏᵟᵯ, reason: contains not printable characters */
    public final boolean f7861;

    /* JADX INFO: renamed from: ᵝᵶ, reason: contains not printable characters */
    public final byte f7862;

    /* JADX INFO: renamed from: ᵨᵣ, reason: contains not printable characters */
    public final boolean f7863;

    /* JADX INFO: renamed from: ᵪᵹᵥᵻ, reason: contains not printable characters */
    public final byte f7864;

    /* JADX INFO: renamed from: ᵮᵣᵗˈ, reason: contains not printable characters */
    public final boolean f7865;

    /* JADX INFO: renamed from: ᵱᵽʡᵚ, reason: contains not printable characters */
    public final boolean f7866;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final boolean f7867;

    /* JADX INFO: renamed from: ᵵᵽ, reason: contains not printable characters */
    public final int f7868;

    /* JADX INFO: renamed from: ᵶᵥᵝ, reason: contains not printable characters */
    public final boolean f7869;

    /* JADX INFO: renamed from: ᵷᵺʾᵖ, reason: contains not printable characters */
    public final boolean f7870;

    /* JADX INFO: renamed from: ᵻʽᵯ, reason: contains not printable characters */
    public final boolean f7871;

    /* JADX INFO: renamed from: ᵻˈᵦʼ, reason: contains not printable characters */
    public final int f7872;

    public C1985(C3506 c3506) {
        int i = c3506.f13469;
        ByteBuffer byteBuffer = c3506.f13468;
        ᵻᵪ.ᵱᵽʡᵚ(i == 1);
        int iRemaining = byteBuffer.remaining();
        byte[] bArr = new byte[iRemaining];
        byteBuffer.asReadOnlyBuffer().get(bArr);
        C3180 c3180 = new C3180(iRemaining, bArr);
        this.f7868 = c3180.m7302(3);
        c3180.m7288();
        boolean zM7299 = c3180.m7299();
        this.f7867 = zM7299;
        if (zM7299) {
            c3180.m7302(5);
            this.f7858 = false;
            this.f7859 = false;
        } else {
            if (c3180.m7299()) {
                c3180.m7287(64);
                if (c3180.m7299()) {
                    int i2 = 0;
                    while (!c3180.m7299()) {
                        i2++;
                    }
                    if (i2 < 32) {
                        c3180.m7287(i2);
                    }
                }
                boolean zM72992 = c3180.m7299();
                this.f7858 = zM72992;
                if (zM72992) {
                    c3180.m7287(47);
                }
            } else {
                this.f7858 = false;
            }
            this.f7859 = c3180.m7299();
            int iM7302 = c3180.m7302(5);
            for (int i3 = 0; i3 <= iM7302; i3++) {
                c3180.m7287(12);
                if (i3 == 0) {
                    if (c3180.m7302(5) > 7) {
                        c3180.m7299();
                    }
                } else if (c3180.m7302(5) > 7) {
                    c3180.m7288();
                }
                if (this.f7858) {
                    c3180.m7288();
                }
                if (this.f7859 && c3180.m7299()) {
                    if (i3 == 0) {
                        c3180.m7302(4);
                    } else {
                        c3180.m7287(4);
                    }
                }
            }
        }
        int iM73022 = c3180.m7302(4);
        int iM73023 = c3180.m7302(4);
        c3180.m7287(iM73022 + 1);
        c3180.m7287(iM73023 + 1);
        if (this.f7867) {
            this.f7861 = false;
        } else {
            this.f7861 = c3180.m7299();
        }
        if (this.f7861) {
            c3180.m7287(4);
            c3180.m7287(3);
        }
        c3180.m7287(3);
        if (this.f7867) {
            this.f7863 = true;
            this.f7870 = true;
            this.f7872 = 0;
        } else {
            c3180.m7287(4);
            boolean zM72993 = c3180.m7299();
            if (zM72993) {
                c3180.m7287(2);
            }
            if (c3180.m7299()) {
                this.f7870 = true;
            } else {
                this.f7870 = c3180.m7299();
            }
            if (!this.f7870 || c3180.m7299()) {
                this.f7863 = true;
            } else {
                this.f7863 = c3180.m7299();
            }
            if (zM72993) {
                this.f7872 = c3180.m7302(3) + 1;
            } else {
                this.f7872 = 0;
            }
        }
        c3180.m7287(3);
        boolean zM72994 = c3180.m7299();
        if (this.f7868 == 2 && zM72994) {
            this.f7871 = c3180.m7299();
        } else {
            this.f7871 = false;
        }
        if (this.f7868 != 1) {
            this.f7866 = c3180.m7299();
        } else {
            this.f7866 = false;
        }
        if (c3180.m7299()) {
            this.f7862 = (byte) c3180.m7302(8);
            this.f7860 = (byte) c3180.m7302(8);
            this.f7864 = (byte) c3180.m7302(8);
        } else {
            this.f7862 = (byte) 0;
            this.f7860 = (byte) 0;
            this.f7864 = (byte) 0;
        }
        if (this.f7866) {
            c3180.m7288();
            this.f7869 = false;
            this.f7865 = false;
        } else if (this.f7862 == 1 && this.f7860 == 13 && this.f7864 == 0) {
            this.f7869 = false;
            this.f7865 = false;
        } else {
            c3180.m7288();
            int i4 = this.f7868;
            if (i4 == 0) {
                this.f7869 = true;
                this.f7865 = true;
            } else if (i4 == 1) {
                this.f7869 = false;
                this.f7865 = false;
            } else if (this.f7871) {
                boolean zM72995 = c3180.m7299();
                this.f7869 = zM72995;
                if (zM72995) {
                    this.f7865 = c3180.m7299();
                } else {
                    this.f7865 = false;
                }
            } else {
                this.f7869 = true;
                this.f7865 = false;
            }
            if (this.f7869 && this.f7865) {
                c3180.m7302(2);
            }
        }
        c3180.m7288();
    }
}
