package defpackage;

import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;

/* JADX INFO: renamed from: ᵟᵩˏˋ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C3100 extends C2622 {

    /* JADX INFO: renamed from: ʿᵯᴵ, reason: contains not printable characters */
    public final C1873 f11840;

    /* JADX INFO: renamed from: ˀᵛᵟ, reason: contains not printable characters */
    public C3435[] f11841;

    /* JADX INFO: renamed from: ˀᵝᵙᵛ, reason: contains not printable characters */
    public int f11842;

    /* JADX INFO: renamed from: ˆˀᵯ, reason: contains not printable characters */
    public int f11843;

    /* JADX INFO: renamed from: ˆᵱʣ, reason: contains not printable characters */
    public WeakReference f11844;

    /* JADX INFO: renamed from: ˊʧᵖ, reason: contains not printable characters */
    public boolean f11845;

    /* JADX INFO: renamed from: ˊᵶᵕᵛ, reason: contains not printable characters */
    public WeakReference f11846;

    /* JADX INFO: renamed from: ˋᵤᵦ, reason: contains not printable characters */
    public final HashSet f11847;

    /* JADX INFO: renamed from: ᵕᵜʽᵰ, reason: contains not printable characters */
    public int f11849;

    /* JADX INFO: renamed from: ᵘᵫᵡ, reason: contains not printable characters */
    public WeakReference f11850;

    /* JADX INFO: renamed from: ᵚᵹᵔᵜ, reason: contains not printable characters */
    public C0133 f11851;

    /* JADX INFO: renamed from: ᵟᵴᵥ, reason: contains not printable characters */
    public int f11852;

    /* JADX INFO: renamed from: ᵠᵚˀᵫ, reason: contains not printable characters */
    public C3435[] f11853;

    /* JADX INFO: renamed from: ᵠᵲˁ, reason: contains not printable characters */
    public int f11854;

    /* JADX INFO: renamed from: ᵣʚʿ, reason: contains not printable characters */
    public boolean f11855;

    /* JADX INFO: renamed from: ᵧᵠᵾ, reason: contains not printable characters */
    public WeakReference f11856;

    /* JADX INFO: renamed from: ᵧᵢᵴᵸ, reason: contains not printable characters */
    public final C2103 f11857;

    /* JADX INFO: renamed from: ᵰʜ, reason: contains not printable characters */
    public final C1188 f11859;

    /* JADX INFO: renamed from: ᵱᵭ, reason: contains not printable characters */
    public boolean f11860;

    /* JADX INFO: renamed from: ᵽˀᵥ, reason: contains not printable characters */
    public int f11861;

    /* JADX INFO: renamed from: ˏʽˊᵰ, reason: contains not printable characters */
    public ArrayList f11848 = new ArrayList();

    /* JADX INFO: renamed from: ᵯˇ, reason: contains not printable characters */
    public final ᵣˊˈᵪ f11858 = new ᵣˊˈᵪ(this);

    public C3100() {
        C2103 c2103 = new C2103();
        c2103.f8355 = true;
        c2103.f8357 = true;
        c2103.f8358 = new ArrayList();
        new ArrayList();
        c2103.f8362 = null;
        c2103.f8360 = new C1188();
        c2103.f8356 = new ArrayList();
        c2103.f8359 = this;
        c2103.f8361 = this;
        this.f11857 = c2103;
        this.f11851 = null;
        this.f11860 = false;
        this.f11840 = new C1873();
        this.f11861 = 0;
        this.f11854 = 0;
        this.f11853 = new C3435[4];
        this.f11841 = new C3435[4];
        this.f11842 = 257;
        this.f11855 = false;
        this.f11845 = false;
        this.f11856 = null;
        this.f11850 = null;
        this.f11846 = null;
        this.f11844 = null;
        this.f11847 = new HashSet();
        this.f11859 = new C1188();
    }

    /* JADX INFO: renamed from: ˀᵗ, reason: contains not printable characters */
    public static void m7193(C2622 c2622, C0133 c0133, C1188 c1188) {
        int i;
        int i2;
        if (c0133 == null) {
            return;
        }
        int i3 = c2622.f10174;
        int[] iArr = c2622.f10171;
        if (i3 == 8 || (c2622 instanceof C0148) || (c2622 instanceof C3556)) {
            c1188.f5056 = 0;
            c1188.f5062 = 0;
            return;
        }
        int[] iArr2 = c2622.f10196;
        c1188.f5058 = iArr2[0];
        c1188.f5053 = iArr2[1];
        c1188.f5055 = c2622.m6374();
        c1188.f5060 = c2622.m6379();
        c1188.f5061 = false;
        c1188.f5057 = 0;
        boolean z = c1188.f5058 == 3;
        boolean z2 = c1188.f5053 == 3;
        boolean z3 = z && c2622.f10172 > 0.0f;
        boolean z4 = z2 && c2622.f10172 > 0.0f;
        if (z && c2622.m6363(0) && c2622.f10160 == 0 && !z3) {
            c1188.f5058 = 2;
            if (z2 && c2622.f10157 == 0) {
                c1188.f5058 = 1;
            }
            z = false;
        }
        if (z2 && c2622.m6363(1) && c2622.f10157 == 0 && !z4) {
            c1188.f5053 = 2;
            if (z && c2622.f10160 == 0) {
                c1188.f5053 = 1;
            }
            z2 = false;
        }
        if (c2622.mo1277()) {
            c1188.f5058 = 1;
            z = false;
        }
        if (c2622.mo1272()) {
            c1188.f5053 = 1;
            z2 = false;
        }
        if (z3) {
            if (iArr[0] == 4) {
                c1188.f5058 = 1;
            } else if (!z2) {
                if (c1188.f5053 == 1) {
                    i2 = c1188.f5060;
                } else {
                    c1188.f5058 = 2;
                    c0133.m1244(c2622, c1188);
                    i2 = c1188.f5062;
                }
                c1188.f5058 = 1;
                c1188.f5055 = (int) (c2622.f10172 * i2);
            }
        }
        if (z4) {
            if (iArr[1] == 4) {
                c1188.f5053 = 1;
            } else if (!z) {
                if (c1188.f5058 == 1) {
                    i = c1188.f5055;
                } else {
                    c1188.f5053 = 2;
                    c0133.m1244(c2622, c1188);
                    i = c1188.f5056;
                }
                c1188.f5053 = 1;
                int i4 = c2622.f10180;
                float f = c2622.f10172;
                if (i4 == -1) {
                    c1188.f5060 = (int) (i / f);
                } else {
                    c1188.f5060 = (int) (f * i);
                }
            }
        }
        c0133.m1244(c2622, c1188);
        c2622.m6364(c1188.f5056);
        c2622.m6356(c1188.f5062);
        c2622.f10176 = c1188.f5054;
        c2622.m6353(c1188.f5059);
        c1188.f5057 = 0;
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ʽᵡᵢᵾ */
    public final void mo6350(boolean z, boolean z2) {
        super.mo6350(z, z2);
        int size = this.f11848.size();
        for (int i = 0; i < size; i++) {
            ((C2622) this.f11848.get(i)).mo6350(z, z2);
        }
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ʿٴˇ */
    public final void mo6351(ᵣˊˈᵪ r4) {
        super.mo6351(r4);
        int size = this.f11848.size();
        for (int i = 0; i < size; i++) {
            ((C2622) this.f11848.get(i)).mo6351(r4);
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:339:0x05e0  */
    /* JADX WARN: Removed duplicated region for block: B:350:0x060a  */
    /* JADX WARN: Removed duplicated region for block: B:365:0x063d  */
    /* JADX WARN: Removed duplicated region for block: B:370:0x0653  */
    /* JADX WARN: Removed duplicated region for block: B:375:0x0661  */
    /* JADX WARN: Removed duplicated region for block: B:379:0x066c  */
    /* JADX WARN: Removed duplicated region for block: B:382:0x0677 A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:384:0x067d  */
    /* JADX WARN: Removed duplicated region for block: B:387:0x0685  */
    /* JADX WARN: Removed duplicated region for block: B:391:0x068c  */
    /* JADX WARN: Removed duplicated region for block: B:394:0x0696  */
    /* JADX WARN: Removed duplicated region for block: B:400:0x06b3  */
    /* JADX WARN: Removed duplicated region for block: B:427:0x0716  */
    /* JADX WARN: Removed duplicated region for block: B:467:0x07c3  */
    /* JADX WARN: Removed duplicated region for block: B:476:0x0800  */
    /* JADX WARN: Removed duplicated region for block: B:482:0x081a A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:487:0x0827 A[LOOP:14: B:486:0x0825->B:487:0x0827, LOOP_END] */
    /* JADX WARN: Removed duplicated region for block: B:490:0x085c  */
    /* JADX WARN: Removed duplicated region for block: B:499:0x088e  */
    /* JADX WARN: Removed duplicated region for block: B:500:0x089a  */
    /* JADX WARN: Removed duplicated region for block: B:503:0x08ad  */
    /* JADX WARN: Removed duplicated region for block: B:504:0x08b5  */
    /* JADX WARN: Removed duplicated region for block: B:506:0x08b9  */
    /* JADX WARN: Removed duplicated region for block: B:519:0x08ed  */
    /* JADX WARN: Removed duplicated region for block: B:521:0x08f1  */
    /* JADX WARN: Removed duplicated region for block: B:525:0x0902  */
    /* JADX WARN: Removed duplicated region for block: B:595:0x08f2 A[SYNTHETIC] */
    /* JADX WARN: Removed duplicated region for block: B:62:0x012c  */
    /* JADX WARN: Type inference failed for: r0v100 */
    /* JADX WARN: Type inference failed for: r0v101 */
    /* JADX WARN: Type inference failed for: r0v102 */
    /* JADX WARN: Type inference failed for: r0v103 */
    /* JADX WARN: Type inference failed for: r0v104 */
    /* JADX WARN: Type inference failed for: r0v105 */
    /* JADX WARN: Type inference failed for: r0v106 */
    /* JADX WARN: Type inference failed for: r0v107 */
    /* JADX WARN: Type inference failed for: r0v108 */
    /* JADX WARN: Type inference failed for: r0v16 */
    /* JADX WARN: Type inference failed for: r0v17 */
    /* JADX WARN: Type inference failed for: r0v18 */
    /* JADX WARN: Type inference failed for: r0v19 */
    /* JADX WARN: Type inference failed for: r0v21 */
    /* JADX WARN: Type inference failed for: r0v22 */
    /* JADX WARN: Type inference failed for: r0v23 */
    /* JADX WARN: Type inference failed for: r0v24 */
    /* JADX WARN: Type inference failed for: r0v99 */
    /* JADX WARN: Type inference failed for: r10v1 */
    /* JADX WARN: Type inference failed for: r10v6 */
    /* JADX WARN: Type inference failed for: r12v1 */
    /* JADX WARN: Type inference failed for: r12v2 */
    /* JADX WARN: Type inference failed for: r12v4 */
    /* JADX WARN: Type inference failed for: r17v2 */
    /* JADX WARN: Type inference failed for: r17v3 */
    /* JADX WARN: Type inference failed for: r17v4 */
    /* JADX WARN: Type inference failed for: r21v0 */
    /* JADX WARN: Type inference failed for: r21v1 */
    /* JADX WARN: Type inference failed for: r21v2 */
    /* JADX WARN: Type inference failed for: r24v15 */
    /* JADX WARN: Type inference failed for: r24v16 */
    /* JADX WARN: Type inference failed for: r24v2 */
    /* JADX WARN: Type inference failed for: r24v3 */
    /* JADX WARN: Type inference failed for: r24v4 */
    /* JADX WARN: Type inference failed for: r24v5 */
    /* JADX WARN: Type inference failed for: r24v6 */
    /* JADX WARN: Type inference failed for: r24v7 */
    /* JADX WARN: Type inference failed for: r24v8 */
    /* JADX WARN: Type inference failed for: r24v9 */
    /* JADX WARN: Type inference failed for: r2v17 */
    /* JADX WARN: Type inference failed for: r2v18 */
    /* JADX WARN: Type inference failed for: r32v0, types: [ᵙʟʾ, ᵟᵩˏˋ] */
    /* JADX WARN: Type inference failed for: r3v67, types: [int] */
    /* JADX WARN: Type inference failed for: r5v53, types: [int] */
    /* JADX WARN: Type inference failed for: r6v13 */
    /* JADX WARN: Type inference failed for: r6v14 */
    /* JADX WARN: Type inference failed for: r6v77, types: [int] */
    /* JADX WARN: Type inference failed for: r8v11 */
    /* JADX WARN: Type inference failed for: r8v12, types: [boolean] */
    /* JADX WARN: Type inference failed for: r8v14 */
    /* JADX WARN: Type inference failed for: r8v52, types: [int] */
    /* JADX INFO: renamed from: ˁʢᵛ, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void m7194() {
        boolean[] zArr;
        ?? r21;
        int i;
        int i2;
        int i3;
        int i4;
        C4214 c4214;
        C4214 c42142;
        boolean z;
        char c;
        int i5;
        int i6;
        boolean z2;
        ?? r24;
        C4214 c42143;
        boolean z3;
        ?? r242;
        boolean z4;
        boolean z5;
        int iMax;
        ?? r8;
        ?? r17;
        boolean z6;
        int iMax2;
        ?? r0;
        boolean z7;
        boolean z8;
        ?? r02;
        int i7;
        boolean z9;
        ?? r03;
        int i8;
        int iMax3;
        boolean z10;
        int i9;
        int i10;
        int i11;
        int i12;
        char c2;
        C4760 c4760;
        int i13;
        int iM6374;
        int iM9941;
        int iM99412;
        C4760 c47602;
        C4760 c47603;
        int i14;
        boolean z11;
        boolean[] zArr2 = ᵬʕˎʽ.ːˏᵟᵯ;
        this.f10147 = 0;
        this.f10188 = 0;
        this.f11855 = false;
        this.f11845 = false;
        int size = this.f11848.size();
        int iMax4 = Math.max(0, m6374());
        int iMax5 = Math.max(0, m6379());
        int[] iArr = this.f10196;
        int i15 = iArr[1];
        int i16 = iArr[0];
        int i17 = this.f11843;
        C4214 c42144 = this.f10149;
        C4214 c42145 = this.f10151;
        if (i17 == 0 && ᵬʕˎʽ.ᵵᵽ(this.f11842, 1)) {
            C0133 c0133 = this.f11851;
            int i18 = iArr[0];
            int i19 = iArr[1];
            m6365();
            ArrayList arrayList = this.f11848;
            int size2 = arrayList.size();
            for (int i20 = 0; i20 < size2; i20++) {
                ((C2622) arrayList.get(i20)).m6365();
            }
            boolean z12 = this.f11860;
            zArr = zArr2;
            if (i18 == 1) {
                m6352(0, m6374());
            } else {
                c42145.m9150(0);
                this.f10147 = 0;
            }
            int i21 = 0;
            boolean z13 = false;
            boolean z14 = false;
            while (i21 < size2) {
                int i22 = i21;
                C2622 c2622 = (C2622) arrayList.get(i21);
                int[] iArr2 = iArr;
                if (c2622 instanceof C0148) {
                    C0148 c0148 = (C0148) c2622;
                    z11 = z13;
                    if (c0148.f1527 == 1) {
                        int i23 = c0148.f1529;
                        if (i23 != -1) {
                            c0148.m1276(i23);
                        } else if (c0148.f1528 != -1 && mo1277()) {
                            c0148.m1276(m6374() - c0148.f1528);
                        } else if (mo1277()) {
                            c0148.m1276((int) ((c0148.f1526 * m6374()) + 0.5f));
                        }
                        z11 = true;
                    }
                } else {
                    z11 = z13;
                    if ((c2622 instanceof C3556) && ((C3556) c2622).m8068() == 0) {
                        z13 = z11;
                        z14 = true;
                    }
                    i21 = i22 + 1;
                    iArr = iArr2;
                }
                z13 = z11;
                i21 = i22 + 1;
                iArr = iArr2;
            }
            r21 = iArr;
            if (z13) {
                for (int i24 = 0; i24 < size2; i24 = i14 + 1) {
                    C2622 c26222 = (C2622) arrayList.get(i24);
                    if (c26222 instanceof C0148) {
                        C0148 c01482 = (C0148) c26222;
                        i14 = i24;
                        if (c01482.f1527 == 1) {
                            ᵝˉː.ᵜᵪʾ(0, c01482, c0133, z12);
                        }
                    } else {
                        i14 = i24;
                    }
                }
            }
            ᵝˉː.ᵜᵪʾ(0, (C2622) this, c0133, z12);
            if (z14) {
                for (int i25 = 0; i25 < size2; i25++) {
                    C2622 c26223 = (C2622) arrayList.get(i25);
                    if (c26223 instanceof C3556) {
                        C3556 c3556 = (C3556) c26223;
                        if (c3556.m8068() == 0 && c3556.m8069()) {
                            ᵝˉː.ᵜᵪʾ(1, c3556, c0133, z12);
                        }
                    }
                }
            }
            if (i19 == 1) {
                m6359(0, m6379());
            } else {
                c42144.m9150(0);
                this.f10188 = 0;
            }
            int i26 = 0;
            boolean z15 = false;
            boolean z16 = false;
            while (i26 < size2) {
                C2622 c26224 = (C2622) arrayList.get(i26);
                int i27 = i26;
                if (c26224 instanceof C0148) {
                    C0148 c01483 = (C0148) c26224;
                    if (c01483.f1527 == 0) {
                        int i28 = c01483.f1529;
                        if (i28 != -1) {
                            c01483.m1276(i28);
                        } else if (c01483.f1528 != -1 && mo1272()) {
                            c01483.m1276(m6379() - c01483.f1528);
                        } else if (mo1272()) {
                            c01483.m1276((int) ((c01483.f1526 * m6379()) + 0.5f));
                        }
                        z15 = true;
                    }
                } else if ((c26224 instanceof C3556) && ((C3556) c26224).m8068() == 1) {
                    z16 = true;
                }
                i26 = i27 + 1;
            }
            if (z15) {
                for (int i29 = 0; i29 < size2; i29++) {
                    C2622 c26225 = (C2622) arrayList.get(i29);
                    if (c26225 instanceof C0148) {
                        C0148 c01484 = (C0148) c26225;
                        if (c01484.f1527 == 0) {
                            ᵝˉː.ˈⁱᵡ(1, c01484, c0133);
                        }
                    }
                }
            }
            ᵝˉː.ˈⁱᵡ(0, (C2622) this, c0133);
            if (z16) {
                for (int i30 = 0; i30 < size2; i30++) {
                    C2622 c26226 = (C2622) arrayList.get(i30);
                    if (c26226 instanceof C3556) {
                        C3556 c35562 = (C3556) c26226;
                        if (c35562.m8068() == 1 && c35562.m8069()) {
                            ᵝˉː.ˈⁱᵡ(1, c35562, c0133);
                        }
                    }
                }
            }
            for (int i31 = 0; i31 < size2; i31++) {
                C2622 c26227 = (C2622) arrayList.get(i31);
                if (c26227.m6373() && ᵝˉː.ʽˈˋ(c26227)) {
                    m7193(c26227, c0133, ᵝˉː.ᵲᵶᵳˈ);
                    if (!(c26227 instanceof C0148)) {
                        ᵝˉː.ᵜᵪʾ(0, c26227, c0133, z12);
                        ᵝˉː.ˈⁱᵡ(0, c26227, c0133);
                    } else if (((C0148) c26227).f1527 == 0) {
                        ᵝˉː.ˈⁱᵡ(0, c26227, c0133);
                    } else {
                        ᵝˉː.ᵜᵪʾ(0, c26227, c0133, z12);
                    }
                }
            }
            for (int i32 = 0; i32 < size; i32++) {
                C2622 c26228 = (C2622) this.f11848.get(i32);
                if (c26228.m6373() && !(c26228 instanceof C0148) && !(c26228 instanceof C3556) && !(c26228 instanceof C3678) && !c26228.f10146) {
                    int iM6375 = c26228.m6375(0);
                    int iM63752 = c26228.m6375(1);
                    if (iM6375 != 3 || c26228.f10160 == 1 || iM63752 != 3 || c26228.f10157 == 1) {
                        m7193(c26228, this.f11851, new C1188());
                    }
                }
            }
        } else {
            zArr = zArr2;
            r21 = iArr;
        }
        C1873 c1873 = this.f11840;
        if (size <= 2 || !((i16 == 2 || i15 == 2) && ᵬʕˎʽ.ᵵᵽ(this.f11842, 1024))) {
            i = iMax4;
            i2 = size;
            i3 = i15;
            i4 = i16;
            c4214 = c42144;
            c42142 = c42145;
        } else {
            C0133 c01332 = this.f11851;
            ArrayList arrayList2 = this.f11848;
            int size3 = arrayList2.size();
            int i33 = 0;
            while (i33 < size3) {
                C2622 c26229 = (C2622) arrayList2.get(i33);
                ?? r3 = r21[0];
                ?? r6 = r21[1];
                int i34 = i33;
                int[] iArr3 = c26229.f10196;
                c42142 = c42145;
                if (!ᵗʓ.ˉᵵᵜ((int) r3, (int) r6, iArr3[0], iArr3[1]) || (c26229 instanceof C3678)) {
                    i9 = iMax4;
                    i2 = size;
                    i10 = iMax5;
                    i11 = i15;
                    i12 = i16;
                    c4214 = c42144;
                    break;
                }
                i33 = i34 + 1;
                c42145 = c42142;
            }
            c42142 = c42145;
            i2 = size;
            c4214 = c42144;
            int i35 = 0;
            ArrayList arrayList3 = null;
            ArrayList arrayList4 = null;
            ArrayList arrayList5 = null;
            ArrayList arrayList6 = null;
            ArrayList arrayList7 = null;
            ArrayList arrayList8 = null;
            while (i35 < size3) {
                int i36 = i35;
                C2622 c262210 = (C2622) arrayList2.get(i35);
                int i37 = iMax5;
                ?? r5 = r21[0];
                int i38 = i15;
                ?? r82 = r21[1];
                int i39 = iMax4;
                int[] iArr4 = c262210.f10196;
                int i40 = i16;
                if (!ᵗʓ.ˉᵵᵜ((int) r5, (int) r82, iArr4[0], iArr4[1])) {
                    m7193(c262210, c01332, this.f11859);
                }
                boolean z17 = c262210 instanceof C0148;
                if (z17) {
                    C0148 c01485 = (C0148) c262210;
                    if (c01485.f1527 == 0) {
                        if (arrayList7 == null) {
                            arrayList7 = new ArrayList();
                        }
                        arrayList7.add(c01485);
                    }
                    if (c01485.f1527 == 1) {
                        if (arrayList3 == null) {
                            arrayList3 = new ArrayList();
                        }
                        arrayList3.add(c01485);
                    }
                }
                if (c262210 instanceof AbstractC0268) {
                    if (c262210 instanceof C3556) {
                        C3556 c35563 = (C3556) c262210;
                        if (c35563.m8068() == 0) {
                            if (arrayList5 == null) {
                                arrayList5 = new ArrayList();
                            }
                            arrayList5.add(c35563);
                        }
                        if (c35563.m8068() == 1) {
                            if (arrayList8 == null) {
                                arrayList8 = new ArrayList();
                            }
                            arrayList8.add(c35563);
                        }
                    } else {
                        AbstractC0268 abstractC0268 = (AbstractC0268) c262210;
                        if (arrayList5 == null) {
                            arrayList5 = new ArrayList();
                        }
                        arrayList5.add(abstractC0268);
                        if (arrayList8 == null) {
                            arrayList8 = new ArrayList();
                        }
                        arrayList8.add(abstractC0268);
                    }
                }
                if (c262210.f10151.f16036 == null && c262210.f10164.f16036 == null && !z17 && !(c262210 instanceof C3556)) {
                    if (arrayList6 == null) {
                        arrayList6 = new ArrayList();
                    }
                    arrayList6.add(c262210);
                }
                if (c262210.f10149.f16036 == null && c262210.f10161.f16036 == null && c262210.f10181.f16036 == null && !z17 && !(c262210 instanceof C3556)) {
                    if (arrayList4 == null) {
                        arrayList4 = new ArrayList();
                    }
                    arrayList4.add(c262210);
                }
                i35 = i36 + 1;
                iMax5 = i37;
                i15 = i38;
                iMax4 = i39;
                i16 = i40;
            }
            i9 = iMax4;
            i10 = iMax5;
            i11 = i15;
            i12 = i16;
            ArrayList arrayList9 = new ArrayList();
            if (arrayList3 != null) {
                int size4 = arrayList3.size();
                int i41 = 0;
                while (i41 < size4) {
                    Object obj = arrayList3.get(i41);
                    i41++;
                    ᵗʓ.ˋˈ((C0148) obj, 0, arrayList9, (C4760) null);
                }
            }
            if (arrayList5 != null) {
                int size5 = arrayList5.size();
                int i42 = 0;
                while (i42 < size5) {
                    Object obj2 = arrayList5.get(i42);
                    i42++;
                    AbstractC0268 abstractC02682 = (AbstractC0268) obj2;
                    C4760 c47604 = ᵗʓ.ˋˈ(abstractC02682, 0, arrayList9, (C4760) null);
                    abstractC02682.m1495(0, c47604, arrayList9);
                    c47604.m9943(arrayList9);
                }
            }
            HashSet hashSet = mo1278(2).f16032;
            if (hashSet != null) {
                Iterator it = hashSet.iterator();
                while (it.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it.next()).f16034, 0, arrayList9, (C4760) null);
                }
            }
            HashSet hashSet2 = mo1278(4).f16032;
            if (hashSet2 != null) {
                Iterator it2 = hashSet2.iterator();
                while (it2.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it2.next()).f16034, 0, arrayList9, (C4760) null);
                }
            }
            HashSet hashSet3 = mo1278(7).f16032;
            if (hashSet3 != null) {
                Iterator it3 = hashSet3.iterator();
                while (it3.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it3.next()).f16034, 0, arrayList9, (C4760) null);
                }
            }
            if (arrayList6 != null) {
                int size6 = arrayList6.size();
                int i43 = 0;
                while (i43 < size6) {
                    Object obj3 = arrayList6.get(i43);
                    i43++;
                    ᵗʓ.ˋˈ((C2622) obj3, 0, arrayList9, (C4760) null);
                }
            }
            if (arrayList7 != null) {
                int size7 = arrayList7.size();
                int i44 = 0;
                while (i44 < size7) {
                    Object obj4 = arrayList7.get(i44);
                    i44++;
                    ᵗʓ.ˋˈ((C0148) obj4, 1, arrayList9, (C4760) null);
                }
            }
            if (arrayList8 != null) {
                int size8 = arrayList8.size();
                int i45 = 0;
                while (i45 < size8) {
                    Object obj5 = arrayList8.get(i45);
                    i45++;
                    AbstractC0268 abstractC02683 = (AbstractC0268) obj5;
                    C4760 c47605 = ᵗʓ.ˋˈ(abstractC02683, 1, arrayList9, (C4760) null);
                    abstractC02683.m1495(1, c47605, arrayList9);
                    c47605.m9943(arrayList9);
                }
            }
            HashSet hashSet4 = mo1278(3).f16032;
            if (hashSet4 != null) {
                Iterator it4 = hashSet4.iterator();
                while (it4.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it4.next()).f16034, 1, arrayList9, (C4760) null);
                }
            }
            HashSet hashSet5 = mo1278(6).f16032;
            if (hashSet5 != null) {
                Iterator it5 = hashSet5.iterator();
                while (it5.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it5.next()).f16034, 1, arrayList9, (C4760) null);
                }
            }
            HashSet hashSet6 = mo1278(5).f16032;
            if (hashSet6 != null) {
                Iterator it6 = hashSet6.iterator();
                while (it6.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it6.next()).f16034, 1, arrayList9, (C4760) null);
                }
            }
            HashSet hashSet7 = mo1278(7).f16032;
            if (hashSet7 != null) {
                Iterator it7 = hashSet7.iterator();
                while (it7.hasNext()) {
                    ᵗʓ.ˋˈ(((C4214) it7.next()).f16034, 1, arrayList9, (C4760) null);
                }
            }
            if (arrayList4 != null) {
                int size9 = arrayList4.size();
                int i46 = 0;
                while (i46 < size9) {
                    Object obj6 = arrayList4.get(i46);
                    i46++;
                    ᵗʓ.ˋˈ((C2622) obj6, 1, arrayList9, (C4760) null);
                }
            }
            char c3 = 1;
            int i47 = 0;
            while (i47 < size3) {
                C2622 c262211 = (C2622) arrayList2.get(i47);
                int[] iArr5 = c262211.f10196;
                if (iArr5[0] == 3 && iArr5[c3] == 3) {
                    int i48 = c262211.f10153;
                    int size10 = arrayList9.size();
                    int i49 = 0;
                    while (true) {
                        if (i49 >= size10) {
                            c47602 = null;
                            break;
                        }
                        c47602 = (C4760) arrayList9.get(i49);
                        if (i48 == c47602.f18136) {
                            break;
                        } else {
                            i49++;
                        }
                    }
                    int i50 = c262211.f10209;
                    int size11 = arrayList9.size();
                    int i51 = 0;
                    while (true) {
                        if (i51 >= size11) {
                            c47603 = null;
                            break;
                        }
                        c47603 = (C4760) arrayList9.get(i51);
                        if (i50 == c47603.f18136) {
                            break;
                        } else {
                            i51++;
                        }
                    }
                    if (c47602 != null && c47603 != null) {
                        c47602.m9942(0, c47603);
                        c47603.f18137 = 2;
                        arrayList9.remove(c47602);
                    }
                }
                i47++;
                c3 = 1;
            }
            if (arrayList9.size() > 1) {
                if (r21[0] == 2) {
                    int size12 = arrayList9.size();
                    int i52 = 0;
                    int i53 = 0;
                    c4760 = null;
                    while (i53 < size12) {
                        Object obj7 = arrayList9.get(i53);
                        i53++;
                        C4760 c47606 = (C4760) obj7;
                        if (c47606.f18137 != 1 && (iM99412 = c47606.m9941(c1873, 0)) > i52) {
                            c4760 = c47606;
                            i52 = iM99412;
                        }
                    }
                    c2 = 1;
                    if (c4760 != null) {
                        m6367(1);
                        m6364(i52);
                    }
                    if (r21[c2] != 2) {
                        int size13 = arrayList9.size();
                        int i54 = 0;
                        int i55 = 0;
                        C4760 c47607 = null;
                        while (i55 < size13) {
                            Object obj8 = arrayList9.get(i55);
                            i55++;
                            C4760 c47608 = (C4760) obj8;
                            if (c47608.f18137 != 0 && (iM9941 = c47608.m9941(c1873, 1)) > i54) {
                                c47607 = c47608;
                                i54 = iM9941;
                            }
                        }
                        if (c47607 != null) {
                            m6377(1);
                            m6356(i54);
                        } else {
                            c47607 = null;
                        }
                        if (c4760 != null || c47607 != null) {
                            i4 = i12;
                            if (i4 == 2) {
                                i13 = i9;
                                if (i13 >= m6374() || i13 <= 0) {
                                    iM6374 = m6374();
                                    i3 = i11;
                                    if (i3 != 2) {
                                        iMax5 = i10;
                                        if (iMax5 >= m6379() || iMax5 <= 0) {
                                            iMax5 = m6379();
                                        } else {
                                            m6356(iMax5);
                                            this.f11845 = true;
                                        }
                                    } else {
                                        iMax5 = i10;
                                    }
                                    i = iM6374;
                                    z = true;
                                } else {
                                    m6364(i13);
                                    this.f11855 = true;
                                }
                            } else {
                                i13 = i9;
                            }
                            iM6374 = i13;
                            i3 = i11;
                            if (i3 != 2) {
                            }
                            i = iM6374;
                            z = true;
                        }
                    }
                    boolean z18 = m7196(64) || m7196(128);
                    c1873.getClass();
                    c1873.f7416 = false;
                    if (this.f11842 == 0 || !z18) {
                        c = 1;
                    } else {
                        c = 1;
                        c1873.f7416 = true;
                    }
                    ArrayList arrayList10 = this.f11848;
                    boolean z19 = r21[0] == 2 || r21[c] == 2;
                    this.f11861 = 0;
                    this.f11854 = 0;
                    i5 = i2;
                    for (i6 = 0; i6 < i5; i6++) {
                        C2622 c262212 = (C2622) this.f11848.get(i6);
                        if (c262212 instanceof C3100) {
                            ((C3100) c262212).m7194();
                        }
                    }
                    boolean zM7196 = m7196(64);
                    ?? r12 = z;
                    int i56 = 0;
                    z2 = true;
                    while (z2) {
                        int i57 = i56 + 1;
                        try {
                            c1873.m5092();
                            this.f11861 = 0;
                            this.f11854 = 0;
                            m6378(c1873);
                            for (int i58 = 0; i58 < i5; i58++) {
                                ((C2622) this.f11848.get(i58)).m6378(c1873);
                            }
                            m7197(c1873);
                            try {
                                WeakReference weakReference = this.f11856;
                                if (weakReference != null) {
                                    try {
                                        if (weakReference.get() != null) {
                                            c42143 = c4214;
                                            try {
                                            } catch (Exception e) {
                                                e = e;
                                            }
                                            try {
                                                z3 = z19;
                                            } catch (Exception e2) {
                                                e = e2;
                                                z3 = z19;
                                                z10 = true;
                                                e.printStackTrace();
                                                r242 = r12;
                                                System.out.println("EXCEPTION : " + e);
                                                z4 = z10;
                                                if (z4) {
                                                }
                                                if (z3) {
                                                    int iMax6 = 0;
                                                    int iMax7 = 0;
                                                    while (i8 < i5) {
                                                    }
                                                    int iMax8 = Math.max(this.f10165, iMax7);
                                                    iMax3 = Math.max(this.f10156, iMax6);
                                                    z5 = z5;
                                                    r242 = r242;
                                                    if (i4 == 2) {
                                                    }
                                                    if (i3 == 2) {
                                                        m6356(iMax3);
                                                        r21[1] = 2;
                                                        z5 = true;
                                                        r242 = 1;
                                                    }
                                                }
                                                iMax = Math.max(this.f10165, m6374());
                                                if (iMax <= m6374()) {
                                                }
                                                iMax2 = Math.max(this.f10156, m6379());
                                                if (iMax2 <= m6379()) {
                                                }
                                                if (r0 != 0) {
                                                }
                                                i7 = 8;
                                                r03 = r02;
                                                z9 = z8;
                                                if (i57 > i7) {
                                                }
                                                r12 = r03;
                                                i56 = i57;
                                                z19 = z3;
                                                c4214 = c42143;
                                                z2 = z9;
                                            }
                                            try {
                                                c1873.m5106(c1873.m5103((C4214) this.f11856.get()), c1873.m5103(c42143), 0, 5);
                                                this.f11856 = null;
                                            } catch (Exception e3) {
                                                e = e3;
                                                z10 = true;
                                                e.printStackTrace();
                                                r242 = r12;
                                                System.out.println("EXCEPTION : " + e);
                                                z4 = z10;
                                                if (z4) {
                                                }
                                                if (z3) {
                                                }
                                                iMax = Math.max(this.f10165, m6374());
                                                if (iMax <= m6374()) {
                                                }
                                                iMax2 = Math.max(this.f10156, m6379());
                                                if (iMax2 <= m6379()) {
                                                }
                                                if (r0 != 0) {
                                                }
                                                i7 = 8;
                                                r03 = r02;
                                                z9 = z8;
                                                if (i57 > i7) {
                                                }
                                                r12 = r03;
                                                i56 = i57;
                                                z19 = z3;
                                                c4214 = c42143;
                                                z2 = z9;
                                            }
                                        } else {
                                            c42143 = c4214;
                                            z3 = z19;
                                        }
                                        WeakReference weakReference2 = this.f11846;
                                        if (weakReference2 != null && weakReference2.get() != null) {
                                            c1873.m5106(c1873.m5103(this.f10161), c1873.m5103((C4214) this.f11846.get()), 0, 5);
                                            this.f11846 = null;
                                        }
                                        WeakReference weakReference3 = this.f11850;
                                        if (weakReference3 != null && weakReference3.get() != null) {
                                            C4214 c42146 = c42142;
                                            try {
                                                c42142 = c42146;
                                                c1873.m5106(c1873.m5103((C4214) this.f11850.get()), c1873.m5103(c42146), 0, 5);
                                                this.f11850 = null;
                                            } catch (Exception e4) {
                                                e = e4;
                                                c42142 = c42146;
                                                z10 = true;
                                                e.printStackTrace();
                                                r242 = r12;
                                                System.out.println("EXCEPTION : " + e);
                                                z4 = z10;
                                                if (z4) {
                                                }
                                                if (z3) {
                                                }
                                                iMax = Math.max(this.f10165, m6374());
                                                if (iMax <= m6374()) {
                                                }
                                                iMax2 = Math.max(this.f10156, m6379());
                                                if (iMax2 <= m6379()) {
                                                }
                                                if (r0 != 0) {
                                                }
                                                i7 = 8;
                                                r03 = r02;
                                                z9 = z8;
                                                if (i57 > i7) {
                                                }
                                                r12 = r03;
                                                i56 = i57;
                                                z19 = z3;
                                                c4214 = c42143;
                                                z2 = z9;
                                            }
                                        }
                                        WeakReference weakReference4 = this.f11844;
                                        if (weakReference4 != null && weakReference4.get() != null) {
                                            try {
                                            } catch (Exception e5) {
                                                e = e5;
                                            }
                                            try {
                                                c1873.m5106(c1873.m5103(this.f10164), c1873.m5103((C4214) this.f11844.get()), 0, 5);
                                                try {
                                                    this.f11844 = null;
                                                } catch (Exception e6) {
                                                    e = e6;
                                                    z10 = true;
                                                    e.printStackTrace();
                                                    r242 = r12;
                                                    System.out.println("EXCEPTION : " + e);
                                                    z4 = z10;
                                                }
                                            } catch (Exception e7) {
                                                e = e7;
                                                z10 = true;
                                                e.printStackTrace();
                                                r242 = r12;
                                                System.out.println("EXCEPTION : " + e);
                                                z4 = z10;
                                            }
                                        }
                                        c1873.m5095();
                                        r242 = r12;
                                        z4 = true;
                                    } catch (Exception e8) {
                                        e = e8;
                                        c42143 = c4214;
                                    }
                                }
                            } catch (Exception e9) {
                                e = e9;
                                c42143 = c4214;
                                z3 = z19;
                            }
                        } catch (Exception e10) {
                            e = e10;
                            c42143 = c4214;
                            z3 = z19;
                            z10 = z2;
                        }
                        if (z4) {
                            mo1273(c1873, zM7196);
                            for (int i59 = 0; i59 < i5; i59++) {
                                ((C2622) this.f11848.get(i59)).mo1273(c1873, zM7196);
                            }
                            z5 = false;
                        } else {
                            zArr[2] = false;
                            boolean zM71962 = m7196(64);
                            mo1273(c1873, zM71962);
                            int size14 = this.f11848.size();
                            int i60 = 0;
                            boolean z20 = false;
                            while (i60 < size14) {
                                C2622 c262213 = (C2622) this.f11848.get(i60);
                                c262213.mo1273(c1873, zM71962);
                                boolean z21 = zM71962;
                                int i61 = size14;
                                if (c262213.f10163 != -1 || c262213.f10210 != -1) {
                                    z20 = true;
                                }
                                i60++;
                                zM71962 = z21;
                                size14 = i61;
                                z20 = z20;
                            }
                            z5 = z20;
                        }
                        if (z3 && i57 < 8 && zArr[2]) {
                            int iMax62 = 0;
                            int iMax72 = 0;
                            for (i8 = 0; i8 < i5; i8++) {
                                C2622 c262214 = (C2622) this.f11848.get(i8);
                                iMax72 = Math.max(iMax72, c262214.m6374() + c262214.f10147);
                                iMax62 = Math.max(iMax62, c262214.m6379() + c262214.f10188);
                            }
                            int iMax82 = Math.max(this.f10165, iMax72);
                            iMax3 = Math.max(this.f10156, iMax62);
                            z5 = z5;
                            r242 = r242;
                            if (i4 == 2) {
                                z5 = z5;
                                r242 = r242;
                                if (m6374() < iMax82) {
                                    m6364(iMax82);
                                    r21[0] = 2;
                                    z5 = true;
                                    r242 = 1;
                                }
                            }
                            if (i3 == 2 && m6379() < iMax3) {
                                m6356(iMax3);
                                r21[1] = 2;
                                z5 = true;
                                r242 = 1;
                            }
                        }
                        iMax = Math.max(this.f10165, m6374());
                        if (iMax <= m6374()) {
                            m6364(iMax);
                            r8 = 1;
                            r21[0] = 1;
                            z6 = true;
                            r17 = 1;
                        } else {
                            r8 = 1;
                            r17 = r242;
                            z6 = z5;
                        }
                        iMax2 = Math.max(this.f10156, m6379());
                        if (iMax2 <= m6379()) {
                            m6356(iMax2);
                            r21[r8] = r8;
                            ?? r04 = r8;
                            z7 = r04 == true ? 1 : 0;
                            r0 = r04;
                        } else {
                            r0 = r17;
                            z7 = z6;
                        }
                        if (r0 != 0) {
                            ?? r05 = r0;
                            r05 = r0;
                            boolean z22 = z7;
                            z22 = z7;
                            if (r21[0] == 2 && i > 0) {
                                r05 = r0;
                                z22 = z7;
                                if (m6374() > i) {
                                    this.f11855 = r8;
                                    r21[0] = r8;
                                    m6364(i);
                                    ?? r06 = r8;
                                    z22 = r06 == true ? 1 : 0;
                                    r05 = r06;
                                }
                            }
                            r02 = r05;
                            r02 = r05;
                            z8 = z22;
                            z8 = z22;
                            if (r21[r8] == 2 && iMax5 > 0) {
                                r02 = r05;
                                z8 = z22;
                                if (m6379() > iMax5) {
                                    this.f11845 = r8;
                                    r21[r8] = r8;
                                    m6356(iMax5);
                                    r03 = 1;
                                    i7 = 8;
                                    z9 = true;
                                }
                            }
                            if (i57 > i7) {
                                z9 = false;
                            }
                            r12 = r03;
                            i56 = i57;
                            z19 = z3;
                            c4214 = c42143;
                            z2 = z9;
                        } else {
                            r02 = r0;
                            z8 = z7;
                        }
                        i7 = 8;
                        r03 = r02;
                        z9 = z8;
                        if (i57 > i7) {
                        }
                        r12 = r03;
                        i56 = i57;
                        z19 = z3;
                        c4214 = c42143;
                        z2 = z9;
                    }
                    r24 = r12;
                    this.f11848 = arrayList10;
                    if (r24 != 0) {
                        r21[0] = i4;
                        r21[1] = i3;
                    }
                    mo6351(c1873.f7419);
                }
                c2 = 1;
                c4760 = null;
                if (r21[c2] != 2) {
                }
                if (m7196(64)) {
                }
                c1873.getClass();
                c1873.f7416 = false;
                if (this.f11842 == 0) {
                    c = 1;
                }
                ArrayList arrayList102 = this.f11848;
                if (r21[0] == 2) {
                }
                this.f11861 = 0;
                this.f11854 = 0;
                i5 = i2;
                while (i6 < i5) {
                }
                boolean zM71963 = m7196(64);
                ?? r122 = z;
                int i562 = 0;
                z2 = true;
                while (z2) {
                }
                r24 = r122;
                this.f11848 = arrayList102;
                if (r24 != 0) {
                }
                mo6351(c1873.f7419);
            }
            iMax5 = i10;
            i3 = i11;
            i = i9;
            i4 = i12;
        }
        z = false;
        if (m7196(64)) {
        }
        c1873.getClass();
        c1873.f7416 = false;
        if (this.f11842 == 0) {
        }
        ArrayList arrayList1022 = this.f11848;
        if (r21[0] == 2) {
        }
        this.f11861 = 0;
        this.f11854 = 0;
        i5 = i2;
        while (i6 < i5) {
        }
        boolean zM719632 = m7196(64);
        ?? r1222 = z;
        int i5622 = 0;
        z2 = true;
        while (z2) {
        }
        r24 = r1222;
        this.f11848 = arrayList1022;
        if (r24 != 0) {
        }
        mo6351(c1873.f7419);
    }

    /* JADX INFO: renamed from: ˊˌˊ, reason: contains not printable characters */
    public final boolean m7195(int i, boolean z) {
        boolean z2;
        C2103 c2103 = this.f11857;
        ArrayList arrayList = c2103.f8358;
        C3100 c3100 = c2103.f8359;
        boolean z3 = false;
        int iM6375 = c3100.m6375(0);
        int iM63752 = c3100.m6375(1);
        int iM6355 = c3100.m6355();
        int iM6354 = c3100.m6354();
        if (z && (iM6375 == 2 || iM63752 == 2)) {
            int size = arrayList.size();
            int i2 = 0;
            while (true) {
                if (i2 >= size) {
                    break;
                }
                Object obj = arrayList.get(i2);
                i2++;
                AbstractC4476 abstractC4476 = (AbstractC4476) obj;
                if (abstractC4476.f17087 == i && !abstractC4476.mo1548()) {
                    z = false;
                    break;
                }
            }
            if (i == 0) {
                if (z && iM6375 == 2) {
                    c3100.m6367(1);
                    c3100.m6364(c2103.m5613(c3100, 0));
                    c3100.f10207.f17081.mo4024(c3100.m6374());
                }
            } else if (z && iM63752 == 2) {
                c3100.m6377(1);
                c3100.m6356(c2103.m5613(c3100, 1));
                c3100.f10191.f17081.mo4024(c3100.m6379());
            }
        }
        int[] iArr = c3100.f10196;
        if (i == 0) {
            int i3 = iArr[0];
            if (i3 == 1 || i3 == 4) {
                int iM6374 = c3100.m6374() + iM6355;
                c3100.f10207.f17086.mo4024(iM6374);
                c3100.f10207.f17081.mo4024(iM6374 - iM6355);
                z2 = true;
            }
            z2 = false;
        } else {
            int i4 = iArr[1];
            if (i4 == 1 || i4 == 4) {
                int iM6379 = c3100.m6379() + iM6354;
                c3100.f10191.f17086.mo4024(iM6379);
                c3100.f10191.f17081.mo4024(iM6379 - iM6354);
                z2 = true;
            }
            z2 = false;
        }
        c2103.m5612();
        int size2 = arrayList.size();
        int i5 = 0;
        while (i5 < size2) {
            Object obj2 = arrayList.get(i5);
            i5++;
            AbstractC4476 abstractC44762 = (AbstractC4476) obj2;
            if (abstractC44762.f17087 == i && (abstractC44762.f17078 != c3100 || abstractC44762.f17084)) {
                abstractC44762.mo1546();
            }
        }
        int size3 = arrayList.size();
        int i6 = 0;
        while (true) {
            if (i6 >= size3) {
                z3 = true;
                break;
            }
            Object obj3 = arrayList.get(i6);
            i6++;
            AbstractC4476 abstractC44763 = (AbstractC4476) obj3;
            if (abstractC44763.f17087 == i && (z2 || abstractC44763.f17078 != c3100)) {
                if (!abstractC44763.f17079.f6561 || !abstractC44763.f17086.f6561 || (!(abstractC44763 instanceof C4193) && !abstractC44763.f17081.f6561)) {
                    break;
                }
            }
        }
        c3100.m6367(iM6375);
        c3100.m6377(iM63752);
        return z3;
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ˋˈ */
    public final void mo6360(StringBuilder sb) {
        sb.append(this.f10200 + ":{\n");
        StringBuilder sb2 = new StringBuilder("  actualWidth:");
        sb2.append(this.f10150);
        sb.append(sb2.toString());
        sb.append("\n");
        sb.append("  actualHeight:" + this.f10148);
        sb.append("\n");
        ArrayList arrayList = this.f11848;
        int size = arrayList.size();
        int i = 0;
        while (i < size) {
            Object obj = arrayList.get(i);
            i++;
            ((C2622) obj).mo6360(sb);
            sb.append(",\n");
        }
        sb.append("}");
    }

    @Override // defpackage.C2622
    /* JADX INFO: renamed from: ˌᵨʠᵫ */
    public final void mo6362() {
        this.f11840.m5092();
        this.f11849 = 0;
        this.f11852 = 0;
        this.f11848.clear();
        super.mo6362();
    }

    /* JADX INFO: renamed from: ˏᵩʨ, reason: contains not printable characters */
    public final boolean m7196(int i) {
        return (this.f11842 & i) == i;
    }

    /* JADX INFO: renamed from: ᵞᵛᵘ, reason: contains not printable characters */
    public final void m7197(C1873 c1873) {
        C3100 c3100;
        C1873 c18732;
        boolean zM7196 = m7196(64);
        mo1271(c1873, zM7196);
        int size = this.f11848.size();
        boolean z = false;
        for (int i = 0; i < size; i++) {
            C2622 c2622 = (C2622) this.f11848.get(i);
            boolean[] zArr = c2622.f10185;
            zArr[0] = false;
            zArr[1] = false;
            if (c2622 instanceof C3556) {
                z = true;
            }
        }
        if (z) {
            for (int i2 = 0; i2 < size; i2++) {
                C2622 c26222 = (C2622) this.f11848.get(i2);
                if (c26222 instanceof C3556) {
                    C3556 c3556 = (C3556) c26222;
                    for (int i3 = 0; i3 < c3556.f1884; i3++) {
                        C2622 c26223 = c3556.f1883[i3];
                        if (c3556.f13621 || c26223.mo1274()) {
                            int i4 = c3556.f13623;
                            if (i4 == 0 || i4 == 1) {
                                c26223.f10185[0] = true;
                            } else if (i4 == 2 || i4 == 3) {
                                c26223.f10185[1] = true;
                            }
                        }
                    }
                }
            }
        }
        HashSet hashSet = this.f11847;
        hashSet.clear();
        for (int i5 = 0; i5 < size; i5++) {
            C2622 c26224 = (C2622) this.f11848.get(i5);
            c26224.getClass();
            boolean z2 = c26224 instanceof C3678;
            if (z2 || (c26224 instanceof C0148)) {
                if (z2) {
                    hashSet.add(c26224);
                } else {
                    c26224.mo1271(c1873, zM7196);
                }
            }
        }
        while (hashSet.size() > 0) {
            int size2 = hashSet.size();
            Iterator it = hashSet.iterator();
            while (true) {
                if (!it.hasNext()) {
                    break;
                }
                C3678 c3678 = (C3678) ((C2622) it.next());
                for (int i6 = 0; i6 < c3678.f1884; i6++) {
                    if (hashSet.contains(c3678.f1883[i6])) {
                        c3678.mo1271(c1873, zM7196);
                        hashSet.remove(c3678);
                        break;
                    }
                }
            }
            if (size2 == hashSet.size()) {
                Iterator it2 = hashSet.iterator();
                while (it2.hasNext()) {
                    ((C2622) it2.next()).mo1271(c1873, zM7196);
                }
                hashSet.clear();
            }
        }
        if (C1873.f7414) {
            HashSet<C2622> hashSet2 = new HashSet();
            for (int i7 = 0; i7 < size; i7++) {
                C2622 c26225 = (C2622) this.f11848.get(i7);
                c26225.getClass();
                if (!(c26225 instanceof C3678) && !(c26225 instanceof C0148)) {
                    hashSet2.add(c26225);
                }
            }
            c3100 = this;
            c18732 = c1873;
            c3100.m6376(this, c18732, hashSet2, this.f10196[0] == 2 ? 0 : 1, false);
            for (C2622 c26226 : hashSet2) {
                ᵬʕˎʽ.ʽˈˋ(c3100, c18732, c26226);
                c26226.mo1271(c18732, zM7196);
            }
        } else {
            c3100 = this;
            c18732 = c1873;
            for (int i8 = 0; i8 < size; i8++) {
                C2622 c26227 = (C2622) c3100.f11848.get(i8);
                if (c26227 instanceof C3100) {
                    int[] iArr = c26227.f10196;
                    int i9 = iArr[0];
                    int i10 = iArr[1];
                    if (i9 == 2) {
                        c26227.m6367(1);
                    }
                    if (i10 == 2) {
                        c26227.m6377(1);
                    }
                    c26227.mo1271(c18732, zM7196);
                    if (i9 == 2) {
                        c26227.m6367(i9);
                    }
                    if (i10 == 2) {
                        c26227.m6377(i10);
                    }
                } else {
                    ᵬʕˎʽ.ʽˈˋ(c3100, c18732, c26227);
                    if (!(c26227 instanceof C3678) && !(c26227 instanceof C0148)) {
                        c26227.mo1271(c18732, zM7196);
                    }
                }
            }
        }
        if (c3100.f11861 > 0) {
            ᵫﾞˌ.ᵲᵶᵳˈ(c3100, c18732, (ArrayList) null, 0);
        }
        if (c3100.f11854 > 0) {
            ᵫﾞˌ.ᵲᵶᵳˈ(c3100, c18732, (ArrayList) null, 1);
        }
    }

    /* JADX INFO: renamed from: ᵨˈʼﹶ, reason: contains not printable characters */
    public final void m7198(C2622 c2622, int i) {
        if (i == 0) {
            int i2 = this.f11861 + 1;
            C3435[] c3435Arr = this.f11841;
            if (i2 >= c3435Arr.length) {
                this.f11841 = (C3435[]) Arrays.copyOf(c3435Arr, c3435Arr.length * 2);
            }
            C3435[] c3435Arr2 = this.f11841;
            int i3 = this.f11861;
            c3435Arr2[i3] = new C3435(c2622, 0, this.f11860);
            this.f11861 = i3 + 1;
            return;
        }
        if (i == 1) {
            int i4 = this.f11854 + 1;
            C3435[] c3435Arr3 = this.f11853;
            if (i4 >= c3435Arr3.length) {
                this.f11853 = (C3435[]) Arrays.copyOf(c3435Arr3, c3435Arr3.length * 2);
            }
            C3435[] c3435Arr4 = this.f11853;
            int i5 = this.f11854;
            c3435Arr4[i5] = new C3435(c2622, 1, this.f11860);
            this.f11854 = i5 + 1;
        }
    }
}
