package defpackage;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;

/* renamed from: ˈʒʾ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C0994 {

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int f4390;

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public C0994 f4392;

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public boolean f4393;

    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    public C0868 f4394;

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public int f4396;

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final C0425 f4398;

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public HashSet f4395 = null;

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public int f4391 = 0;

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public int f4397 = Integer.MIN_VALUE;

    public C0994(C0425 c0425, int i) {
        this.f4398 = c0425;
        this.f4390 = i;
    }

    public final String toString() {
        return this.f4398.f2392 + ":" + AbstractC4486.m9551(this.f4390);
    }

    /* renamed from: ˇʼʤˎ, reason: contains not printable characters */
    public final int m3348() {
        C0994 c0994;
        if (this.f4398.f2414 == 8) {
            return 0;
        }
        int i = this.f4397;
        return (i == Integer.MIN_VALUE || (c0994 = this.f4392) == null || c0994.f4398.f2414 != 8) ? this.f4391 : i;
    }

    /* renamed from: ˌᵜᵹᵩ, reason: contains not printable characters */
    public final void m3349(int i) {
        this.f4396 = i;
        this.f4393 = true;
    }

    /* renamed from: ˎˏʜʾ, reason: contains not printable characters */
    public final boolean m3350() {
        HashSet hashSet = this.f4395;
        if (hashSet == null) {
            return false;
        }
        Iterator it = hashSet.iterator();
        while (it.hasNext()) {
            if (((C0994) it.next()).m3351().m3358()) {
                return true;
            }
        }
        return false;
    }

    /* renamed from: ˏˋٴ, reason: contains not printable characters */
    public final C0994 m3351() {
        int i = this.f4390;
        int iM4088 = AbstractC1327.m4088(i);
        C0425 c0425 = this.f4398;
        switch (iM4088) {
            case 0:
            case 5:
            case C1339.STRING_SET_FIELD_NUMBER /* 6 */:
            case C1339.DOUBLE_FIELD_NUMBER /* 7 */:
            case C1339.BYTES_FIELD_NUMBER /* 8 */:
                return null;
            case 1:
                return c0425.f2358;
            case 2:
                return c0425.f2420;
            case 3:
                return c0425.f2377;
            case 4:
                return c0425.f2407;
            default:
                throw new AssertionError(AbstractC4486.m9551(i));
        }
    }

    /* renamed from: ˏᵙ, reason: contains not printable characters */
    public final void m3352(int i, C4926 c4926, ArrayList arrayList) {
        HashSet hashSet = this.f4395;
        if (hashSet != null) {
            Iterator it = hashSet.iterator();
            while (it.hasNext()) {
                ᵕˏᵛ.ᵤᵙᵷ(((C0994) it.next()).f4398, i, arrayList, c4926);
            }
        }
    }

    /* JADX WARN: Can't fix incorrect switch cases order, some code will duplicate */
    /* JADX WARN: Removed duplicated region for block: B:46:0x0063 A[RETURN] */
    /* renamed from: ᵝᵵᵺ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public final boolean m3353(defpackage.C0994 r10) {
        /*
            r9 = this;
            r0 = 0
            if (r10 != 0) goto L5
            goto L65
        L5:
            ʿᵕʽ r1 = r10.f4398
            int r10 = r10.f4390
            r2 = 6
            int r3 = r9.f4390
            r4 = 1
            if (r10 != r3) goto L1c
            if (r3 != r2) goto L63
            boolean r10 = r1.f2370
            if (r10 == 0) goto L65
            ʿᵕʽ r9 = r9.f4398
            boolean r9 = r9.f2370
            if (r9 != 0) goto L63
            goto L65
        L1c:
            int r9 = defpackage.AbstractC1327.m4088(r3)
            r5 = 4
            r6 = 2
            r7 = 9
            r8 = 8
            switch(r9) {
                case 0: goto L65;
                case 1: goto L53;
                case 2: goto L3f;
                case 3: goto L53;
                case 4: goto L3f;
                case 5: goto L3a;
                case 6: goto L33;
                case 7: goto L65;
                case 8: goto L65;
                default: goto L29;
            }
        L29:
            java.lang.AssertionError r9 = new java.lang.AssertionError
            java.lang.String r10 = defpackage.AbstractC4486.m9551(r3)
            r9.<init>(r10)
            throw r9
        L33:
            if (r10 == r2) goto L65
            if (r10 == r8) goto L65
            if (r10 == r7) goto L65
            goto L63
        L3a:
            if (r10 == r6) goto L65
            if (r10 != r5) goto L63
            goto L65
        L3f:
            r9 = 3
            if (r10 == r9) goto L48
            r9 = 5
            if (r10 != r9) goto L46
            goto L48
        L46:
            r9 = r0
            goto L49
        L48:
            r9 = r4
        L49:
            boolean r1 = r1 instanceof defpackage.C4454
            if (r1 == 0) goto L52
            if (r9 != 0) goto L63
            if (r10 != r7) goto L65
            goto L63
        L52:
            return r9
        L53:
            if (r10 == r6) goto L5a
            if (r10 != r5) goto L58
            goto L5a
        L58:
            r9 = r0
            goto L5b
        L5a:
            r9 = r4
        L5b:
            boolean r1 = r1 instanceof defpackage.C4454
            if (r1 == 0) goto L64
            if (r9 != 0) goto L63
            if (r10 != r8) goto L65
        L63:
            return r4
        L64:
            return r9
        L65:
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: defpackage.C0994.m3353(ˈʒʾ):boolean");
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final void m3354(C0994 c0994, int i) {
        m3355(c0994, i, Integer.MIN_VALUE, false);
    }

    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final boolean m3355(C0994 c0994, int i, int i2, boolean z) {
        if (c0994 == null) {
            m3356();
            return true;
        }
        if (!z && !m3353(c0994)) {
            return false;
        }
        this.f4392 = c0994;
        if (c0994.f4395 == null) {
            c0994.f4395 = new HashSet();
        }
        HashSet hashSet = this.f4392.f4395;
        if (hashSet != null) {
            hashSet.add(this);
        }
        this.f4391 = i;
        this.f4397 = i2;
        return true;
    }

    /* renamed from: ᵶᵷᵕ, reason: contains not printable characters */
    public final void m3356() {
        HashSet hashSet;
        C0994 c0994 = this.f4392;
        if (c0994 != null && (hashSet = c0994.f4395) != null) {
            hashSet.remove(this);
            if (this.f4392.f4395.size() == 0) {
                this.f4392.f4395 = null;
            }
        }
        this.f4395 = null;
        this.f4392 = null;
        this.f4391 = 0;
        this.f4397 = Integer.MIN_VALUE;
        this.f4393 = false;
        this.f4396 = 0;
    }

    /* renamed from: ᵸˑ, reason: contains not printable characters */
    public final void m3357() {
        C0868 c0868 = this.f4394;
        if (c0868 == null) {
            this.f4394 = new C0868(1);
        } else {
            c0868.m2989();
        }
    }

    /* renamed from: ᵹᵝᵶ, reason: contains not printable characters */
    public final boolean m3358() {
        return this.f4392 != null;
    }

    /* renamed from: ᵻᵢﹳᵰ, reason: contains not printable characters */
    public final int m3359() {
        if (this.f4393) {
            return this.f4396;
        }
        return 0;
    }
}
