package u1;

import G0.Z;
import Z0.o;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import m1.AbstractC2464a;
import n1.C2608b;
import n1.C2609c;
import q.AbstractC2761L;
import v1.C3090c;
import v1.C3093f;

/* JADX INFO: loaded from: classes.dex */
public class d {

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public int f24431A;

    /* JADX INFO: renamed from: B, reason: collision with root package name */
    public float f24432B;

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public final int[] f24433C;

    /* JADX INFO: renamed from: D, reason: collision with root package name */
    public float f24434D;

    /* JADX INFO: renamed from: E, reason: collision with root package name */
    public boolean f24435E;

    /* JADX INFO: renamed from: F, reason: collision with root package name */
    public final C2962c f24436F;

    /* JADX INFO: renamed from: G, reason: collision with root package name */
    public final C2962c f24437G;

    /* JADX INFO: renamed from: H, reason: collision with root package name */
    public final C2962c f24438H;

    /* JADX INFO: renamed from: I, reason: collision with root package name */
    public final C2962c f24439I;

    /* JADX INFO: renamed from: J, reason: collision with root package name */
    public final C2962c f24440J;

    /* JADX INFO: renamed from: K, reason: collision with root package name */
    public final C2962c f24441K;

    /* JADX INFO: renamed from: L, reason: collision with root package name */
    public final C2962c f24442L;

    /* JADX INFO: renamed from: M, reason: collision with root package name */
    public final C2962c f24443M;

    /* JADX INFO: renamed from: N, reason: collision with root package name */
    public final C2962c[] f24444N;

    /* JADX INFO: renamed from: O, reason: collision with root package name */
    public final ArrayList f24445O;

    /* JADX INFO: renamed from: P, reason: collision with root package name */
    public final boolean[] f24446P;

    /* JADX INFO: renamed from: Q, reason: collision with root package name */
    public e f24447Q;

    /* JADX INFO: renamed from: R, reason: collision with root package name */
    public int f24448R;

    /* JADX INFO: renamed from: S, reason: collision with root package name */
    public int f24449S;

    /* JADX INFO: renamed from: T, reason: collision with root package name */
    public float f24450T;

    /* JADX INFO: renamed from: U, reason: collision with root package name */
    public int f24451U;

    /* JADX INFO: renamed from: V, reason: collision with root package name */
    public int f24452V;

    /* JADX INFO: renamed from: W, reason: collision with root package name */
    public int f24453W;
    public int X;
    public int Y;

    /* JADX INFO: renamed from: Z, reason: collision with root package name */
    public int f24454Z;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public boolean f24455a;

    /* JADX INFO: renamed from: a0, reason: collision with root package name */
    public float f24456a0;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public C3090c f24457b;

    /* JADX INFO: renamed from: b0, reason: collision with root package name */
    public float f24458b0;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public C3090c f24459c;

    /* JADX INFO: renamed from: c0, reason: collision with root package name */
    public Z f24460c0;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public v1.j f24461d;

    /* JADX INFO: renamed from: d0, reason: collision with root package name */
    public int f24462d0;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public v1.k f24463e;
    public String e0;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean[] f24464f;
    public int f0;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public boolean f24465g;
    public int g0;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    public int f24466h;
    public final float[] h0;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    public int f24467i;

    /* JADX INFO: renamed from: i0, reason: collision with root package name */
    public final d[] f24468i0;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final r1.k f24469j;

    /* JADX INFO: renamed from: j0, reason: collision with root package name */
    public final d[] f24470j0;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public String f24471k;

    /* JADX INFO: renamed from: k0, reason: collision with root package name */
    public int f24472k0;
    public boolean l;

    /* JADX INFO: renamed from: l0, reason: collision with root package name */
    public int f24473l0;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public boolean f24474m;

    /* JADX INFO: renamed from: m0, reason: collision with root package name */
    public final int[] f24475m0;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public boolean f24476n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    public boolean f24477o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public int f24478p;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public int f24479q;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public int f24480r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public int f24481s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final int[] f24482t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public int f24483u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public int f24484v;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public float f24485w;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public int f24486x;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public int f24487y;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public float f24488z;

    public d() {
        this.f24455a = false;
        this.f24461d = null;
        this.f24463e = null;
        this.f24464f = new boolean[]{true, true};
        this.f24465g = true;
        this.f24466h = -1;
        this.f24467i = -1;
        this.f24469j = new r1.k(this);
        this.l = false;
        this.f24474m = false;
        this.f24476n = false;
        this.f24477o = false;
        this.f24478p = -1;
        this.f24479q = -1;
        this.f24480r = 0;
        this.f24481s = 0;
        this.f24482t = new int[2];
        this.f24483u = 0;
        this.f24484v = 0;
        this.f24485w = 1.0f;
        this.f24486x = 0;
        this.f24487y = 0;
        this.f24488z = 1.0f;
        this.f24431A = -1;
        this.f24432B = 1.0f;
        this.f24433C = new int[]{Integer.MAX_VALUE, Integer.MAX_VALUE};
        this.f24434D = Float.NaN;
        this.f24435E = false;
        C2962c c2962c = new C2962c(this, 2);
        this.f24436F = c2962c;
        C2962c c2962c2 = new C2962c(this, 3);
        this.f24437G = c2962c2;
        C2962c c2962c3 = new C2962c(this, 4);
        this.f24438H = c2962c3;
        C2962c c2962c4 = new C2962c(this, 5);
        this.f24439I = c2962c4;
        C2962c c2962c5 = new C2962c(this, 6);
        this.f24440J = c2962c5;
        this.f24441K = new C2962c(this, 8);
        this.f24442L = new C2962c(this, 9);
        C2962c c2962c6 = new C2962c(this, 7);
        this.f24443M = c2962c6;
        this.f24444N = new C2962c[]{c2962c, c2962c3, c2962c2, c2962c4, c2962c5, c2962c6};
        this.f24445O = new ArrayList();
        this.f24446P = new boolean[2];
        this.f24475m0 = new int[]{1, 1};
        this.f24447Q = null;
        this.f24448R = 0;
        this.f24449S = 0;
        this.f24450T = 0.0f;
        this.f24451U = -1;
        this.f24452V = 0;
        this.f24453W = 0;
        this.X = 0;
        this.f24456a0 = 0.5f;
        this.f24458b0 = 0.5f;
        this.f24462d0 = 0;
        this.e0 = null;
        this.f0 = 0;
        this.g0 = 0;
        this.h0 = new float[]{-1.0f, -1.0f};
        this.f24468i0 = new d[]{null, null};
        this.f24470j0 = new d[]{null, null};
        this.f24472k0 = -1;
        this.f24473l0 = -1;
        a();
    }

    public void A() {
        this.f24436F.j();
        this.f24437G.j();
        this.f24438H.j();
        this.f24439I.j();
        this.f24440J.j();
        this.f24441K.j();
        this.f24442L.j();
        this.f24443M.j();
        this.f24447Q = null;
        this.f24434D = Float.NaN;
        this.f24448R = 0;
        this.f24449S = 0;
        this.f24450T = 0.0f;
        this.f24451U = -1;
        this.f24452V = 0;
        this.f24453W = 0;
        this.X = 0;
        this.Y = 0;
        this.f24454Z = 0;
        this.f24456a0 = 0.5f;
        this.f24458b0 = 0.5f;
        int[] iArr = this.f24475m0;
        iArr[0] = 1;
        iArr[1] = 1;
        this.f24460c0 = null;
        this.f24462d0 = 0;
        this.f0 = 0;
        this.g0 = 0;
        float[] fArr = this.h0;
        fArr[0] = -1.0f;
        fArr[1] = -1.0f;
        this.f24478p = -1;
        this.f24479q = -1;
        int[] iArr2 = this.f24433C;
        iArr2[0] = Integer.MAX_VALUE;
        iArr2[1] = Integer.MAX_VALUE;
        this.f24480r = 0;
        this.f24481s = 0;
        this.f24485w = 1.0f;
        this.f24488z = 1.0f;
        this.f24484v = Integer.MAX_VALUE;
        this.f24487y = Integer.MAX_VALUE;
        this.f24483u = 0;
        this.f24486x = 0;
        this.f24431A = -1;
        this.f24432B = 1.0f;
        boolean[] zArr = this.f24464f;
        zArr[0] = true;
        zArr[1] = true;
        boolean[] zArr2 = this.f24446P;
        zArr2[0] = false;
        zArr2[1] = false;
        this.f24465g = true;
        int[] iArr3 = this.f24482t;
        iArr3[0] = 0;
        iArr3[1] = 0;
        this.f24466h = -1;
        this.f24467i = -1;
    }

    public final void B() {
        e eVar = this.f24447Q;
        if (eVar != null) {
            boolean z6 = eVar instanceof e;
        }
        ArrayList arrayList = this.f24445O;
        int size = arrayList.size();
        for (int i6 = 0; i6 < size; i6++) {
            ((C2962c) arrayList.get(i6)).j();
        }
    }

    public final void C() {
        this.l = false;
        this.f24474m = false;
        this.f24476n = false;
        this.f24477o = false;
        ArrayList arrayList = this.f24445O;
        int size = arrayList.size();
        for (int i6 = 0; i6 < size; i6++) {
            C2962c c2962c = (C2962c) arrayList.get(i6);
            c2962c.f24424c = false;
            c2962c.f24423b = 0;
        }
    }

    public void D(C4.f fVar) {
        this.f24436F.k();
        this.f24437G.k();
        this.f24438H.k();
        this.f24439I.k();
        this.f24440J.k();
        this.f24443M.k();
        this.f24441K.k();
        this.f24442L.k();
    }

    public final void E(int i6) {
        this.X = i6;
        this.f24435E = i6 > 0;
    }

    public final void F(int i6, int i7) {
        if (this.l) {
            return;
        }
        this.f24436F.l(i6);
        this.f24438H.l(i7);
        this.f24452V = i6;
        this.f24448R = i7 - i6;
        this.l = true;
    }

    public final void G(int i6, int i7) {
        if (this.f24474m) {
            return;
        }
        this.f24437G.l(i6);
        this.f24439I.l(i7);
        this.f24453W = i6;
        this.f24449S = i7 - i6;
        if (this.f24435E) {
            this.f24440J.l(i6 + this.X);
        }
        this.f24474m = true;
    }

    public final void H(int i6) {
        this.f24449S = i6;
        int i7 = this.f24454Z;
        if (i6 < i7) {
            this.f24449S = i7;
        }
    }

    public final void I(int i6) {
        this.f24475m0[0] = i6;
    }

    public final void J(int i6) {
        this.f24475m0[1] = i6;
    }

    public final void K(int i6) {
        this.f24448R = i6;
        int i7 = this.Y;
        if (i6 < i7) {
            this.f24448R = i7;
        }
    }

    public void L(boolean z6, boolean z7) {
        int i6;
        int i7;
        v1.j jVar = this.f24461d;
        boolean z8 = z6 & jVar.f25288g;
        v1.k kVar = this.f24463e;
        boolean z9 = z7 & kVar.f25288g;
        int i8 = jVar.f25289h.f25266g;
        int i9 = kVar.f25289h.f25266g;
        int i10 = jVar.f25290i.f25266g;
        int i11 = kVar.f25290i.f25266g;
        int i12 = i11 - i9;
        if (i10 - i8 < 0 || i12 < 0 || i8 == Integer.MIN_VALUE || i8 == Integer.MAX_VALUE || i9 == Integer.MIN_VALUE || i9 == Integer.MAX_VALUE || i10 == Integer.MIN_VALUE || i10 == Integer.MAX_VALUE || i11 == Integer.MIN_VALUE || i11 == Integer.MAX_VALUE) {
            i10 = 0;
            i11 = 0;
            i8 = 0;
            i9 = 0;
        }
        int i13 = i10 - i8;
        int i14 = i11 - i9;
        if (z8) {
            this.f24452V = i8;
        }
        if (z9) {
            this.f24453W = i9;
        }
        if (this.f24462d0 == 8) {
            this.f24448R = 0;
            this.f24449S = 0;
            return;
        }
        int[] iArr = this.f24475m0;
        if (z8) {
            if (iArr[0] == 1 && i13 < (i7 = this.f24448R)) {
                i13 = i7;
            }
            this.f24448R = i13;
            int i15 = this.Y;
            if (i13 < i15) {
                this.f24448R = i15;
            }
        }
        if (z9) {
            if (iArr[1] == 1 && i14 < (i6 = this.f24449S)) {
                i14 = i6;
            }
            this.f24449S = i14;
            int i16 = this.f24454Z;
            if (i14 < i16) {
                this.f24449S = i16;
            }
        }
    }

    public void M(C2609c c2609c, boolean z6) {
        int i6;
        int i7;
        v1.k kVar;
        v1.j jVar;
        C2962c c2962c = this.f24436F;
        c2609c.getClass();
        int iN = C2609c.n(c2962c);
        int iN2 = C2609c.n(this.f24437G);
        int iN3 = C2609c.n(this.f24438H);
        int iN4 = C2609c.n(this.f24439I);
        if (z6 && (jVar = this.f24461d) != null) {
            C3093f c3093f = jVar.f25289h;
            if (c3093f.f25269j) {
                C3093f c3093f2 = jVar.f25290i;
                if (c3093f2.f25269j) {
                    iN = c3093f.f25266g;
                    iN3 = c3093f2.f25266g;
                }
            }
        }
        if (z6 && (kVar = this.f24463e) != null) {
            C3093f c3093f3 = kVar.f25289h;
            if (c3093f3.f25269j) {
                C3093f c3093f4 = kVar.f25290i;
                if (c3093f4.f25269j) {
                    iN2 = c3093f3.f25266g;
                    iN4 = c3093f4.f25266g;
                }
            }
        }
        int i8 = iN4 - iN2;
        if (iN3 - iN < 0 || i8 < 0 || iN == Integer.MIN_VALUE || iN == Integer.MAX_VALUE || iN2 == Integer.MIN_VALUE || iN2 == Integer.MAX_VALUE || iN3 == Integer.MIN_VALUE || iN3 == Integer.MAX_VALUE || iN4 == Integer.MIN_VALUE || iN4 == Integer.MAX_VALUE) {
            iN = 0;
            iN2 = 0;
            iN3 = 0;
            iN4 = 0;
        }
        int i9 = iN3 - iN;
        int i10 = iN4 - iN2;
        this.f24452V = iN;
        this.f24453W = iN2;
        if (this.f24462d0 == 8) {
            this.f24448R = 0;
            this.f24449S = 0;
            return;
        }
        int[] iArr = this.f24475m0;
        int i11 = iArr[0];
        if (i11 == 1 && i9 < (i7 = this.f24448R)) {
            i9 = i7;
        }
        if (iArr[1] == 1 && i10 < (i6 = this.f24449S)) {
            i10 = i6;
        }
        this.f24448R = i9;
        this.f24449S = i10;
        int i12 = this.f24454Z;
        if (i10 < i12) {
            this.f24449S = i12;
        }
        int i13 = this.Y;
        if (i9 < i13) {
            this.f24448R = i13;
        }
        int i14 = this.f24484v;
        if (i14 > 0 && i11 == 3) {
            this.f24448R = Math.min(this.f24448R, i14);
        }
        int i15 = this.f24487y;
        if (i15 > 0 && iArr[1] == 3) {
            this.f24449S = Math.min(this.f24449S, i15);
        }
        int i16 = this.f24448R;
        if (i9 != i16) {
            this.f24466h = i16;
        }
        int i17 = this.f24449S;
        if (i10 != i17) {
            this.f24467i = i17;
        }
    }

    public final void a() {
        C2962c c2962c = this.f24436F;
        ArrayList arrayList = this.f24445O;
        arrayList.add(c2962c);
        arrayList.add(this.f24437G);
        arrayList.add(this.f24438H);
        arrayList.add(this.f24439I);
        arrayList.add(this.f24441K);
        arrayList.add(this.f24442L);
        arrayList.add(this.f24443M);
        arrayList.add(this.f24440J);
    }

    public final void b(e eVar, C2609c c2609c, HashSet hashSet, int i6, boolean z6) {
        if (z6) {
            if (!hashSet.contains(this)) {
                return;
            }
            j.b(eVar, c2609c, this);
            hashSet.remove(this);
            c(c2609c, eVar.R(64));
        }
        if (i6 == 0) {
            HashSet hashSet2 = this.f24436F.f24422a;
            if (hashSet2 != null) {
                Iterator it = hashSet2.iterator();
                while (it.hasNext()) {
                    ((C2962c) it.next()).f24425d.b(eVar, c2609c, hashSet, i6, true);
                }
            }
            HashSet hashSet3 = this.f24438H.f24422a;
            if (hashSet3 != null) {
                Iterator it2 = hashSet3.iterator();
                while (it2.hasNext()) {
                    ((C2962c) it2.next()).f24425d.b(eVar, c2609c, hashSet, i6, true);
                }
                return;
            }
            return;
        }
        HashSet hashSet4 = this.f24437G.f24422a;
        if (hashSet4 != null) {
            Iterator it3 = hashSet4.iterator();
            while (it3.hasNext()) {
                ((C2962c) it3.next()).f24425d.b(eVar, c2609c, hashSet, i6, true);
            }
        }
        HashSet hashSet5 = this.f24439I.f24422a;
        if (hashSet5 != null) {
            Iterator it4 = hashSet5.iterator();
            while (it4.hasNext()) {
                ((C2962c) it4.next()).f24425d.b(eVar, c2609c, hashSet, i6, true);
            }
        }
        HashSet hashSet6 = this.f24440J.f24422a;
        if (hashSet6 != null) {
            Iterator it5 = hashSet6.iterator();
            while (it5.hasNext()) {
                ((C2962c) it5.next()).f24425d.b(eVar, c2609c, hashSet, i6, true);
            }
        }
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:112:0x01eb  */
    /* JADX WARN: Removed duplicated region for block: B:263:0x03e8  */
    /* JADX WARN: Removed duplicated region for block: B:267:0x03f1  */
    /* JADX WARN: Removed duplicated region for block: B:270:0x03f5  */
    /* JADX WARN: Removed duplicated region for block: B:275:0x0401  */
    /* JADX WARN: Removed duplicated region for block: B:278:0x0409  */
    /* JADX WARN: Removed duplicated region for block: B:281:0x040f  */
    /* JADX WARN: Removed duplicated region for block: B:283:0x0412  */
    /* JADX WARN: Removed duplicated region for block: B:286:0x0430  */
    /* JADX WARN: Removed duplicated region for block: B:305:0x0479  */
    /* JADX WARN: Removed duplicated region for block: B:321:0x051f  */
    /* JADX WARN: Removed duplicated region for block: B:337:0x0572  */
    /* JADX WARN: Removed duplicated region for block: B:340:0x0584  */
    /* JADX WARN: Removed duplicated region for block: B:341:0x0586  */
    /* JADX WARN: Removed duplicated region for block: B:344:0x058a  */
    /* JADX WARN: Removed duplicated region for block: B:366:0x05bf  */
    /* JADX WARN: Removed duplicated region for block: B:381:0x0646  */
    /* JADX WARN: Removed duplicated region for block: B:383:0x064c  */
    /* JADX WARN: Removed duplicated region for block: B:389:0x06aa  */
    /* JADX WARN: Type inference failed for: r10v23 */
    /* JADX WARN: Type inference failed for: r10v28 */
    /* JADX WARN: Type inference failed for: r10v29 */
    /* JADX WARN: Type inference failed for: r12v23 */
    /* JADX WARN: Type inference failed for: r12v24 */
    /* JADX WARN: Type inference failed for: r12v37 */
    /* JADX WARN: Type inference failed for: r18v12 */
    /* JADX WARN: Type inference failed for: r18v6, types: [boolean] */
    /* JADX WARN: Type inference failed for: r18v7 */
    /* JADX WARN: Type inference failed for: r19v1 */
    /* JADX WARN: Type inference failed for: r19v2 */
    /* JADX WARN: Type inference failed for: r19v5, types: [boolean] */
    /* JADX WARN: Type inference failed for: r19v6 */
    /* JADX WARN: Type inference failed for: r20v2, types: [boolean] */
    /* JADX WARN: Type inference failed for: r27v3 */
    /* JADX WARN: Type inference failed for: r27v4, types: [boolean] */
    /* JADX WARN: Type inference failed for: r27v7 */
    /* JADX WARN: Type inference failed for: r27v8 */
    /* JADX WARN: Type inference failed for: r27v9 */
    /* JADX WARN: Type inference failed for: r56v0, types: [u1.d] */
    /* JADX WARN: Type inference failed for: r9v11 */
    /* JADX WARN: Type inference failed for: r9v12, types: [boolean] */
    /* JADX WARN: Type inference failed for: r9v14 */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public void c(C2609c c2609c, boolean z6) {
        char c6;
        boolean z7;
        boolean z8;
        boolean z9;
        e eVar;
        e eVar2;
        C2962c c2962c;
        boolean[] zArr;
        C2962c c2962c2;
        boolean z10;
        ?? r12;
        C2962c c2962c3;
        n1.e eVar3;
        boolean[] zArr2;
        int i6;
        int i7;
        int i8;
        boolean z11;
        int i9;
        boolean z12;
        C2962c c2962c4;
        boolean z13;
        boolean z14;
        int i10;
        int[] iArr;
        boolean[] zArr3;
        n1.e eVar4;
        n1.e eVar5;
        C2962c c2962c5;
        n1.e eVar6;
        boolean z15;
        int[] iArr2;
        boolean z16;
        C2962c c2962c6;
        boolean[] zArr4;
        boolean z17;
        int[] iArr3;
        n1.e eVar7;
        C2962c c2962c7;
        n1.e eVar8;
        int i11;
        boolean z18;
        ?? r19;
        n1.e eVar9;
        n1.e eVar10;
        n1.e eVar11;
        int i12;
        int i13;
        char c7;
        int i14;
        n1.e eVar12;
        n1.e eVar13;
        v1.k kVar;
        boolean z19;
        v1.j jVar;
        int i15;
        int i16;
        char c8;
        ?? V5;
        boolean zW;
        v1.j jVar2;
        v1.k kVar2;
        boolean z20;
        C2609c c2609c2 = c2609c;
        C2962c c2962c8 = this.f24436F;
        n1.e eVarK = c2609c2.k(c2962c8);
        C2962c c2962c9 = this.f24438H;
        n1.e eVarK2 = c2609c2.k(c2962c9);
        C2962c c2962c10 = this.f24437G;
        n1.e eVarK3 = c2609c2.k(c2962c10);
        C2962c c2962c11 = this.f24439I;
        n1.e eVarK4 = c2609c2.k(c2962c11);
        C2962c c2962c12 = this.f24440J;
        n1.e eVarK5 = c2609c2.k(c2962c12);
        e eVar14 = this.f24447Q;
        if (eVar14 != null) {
            int[] iArr4 = eVar14.f24475m0;
            c6 = 1;
            z8 = iArr4[0] == 2;
            z7 = iArr4[1] == 2;
        } else {
            c6 = 1;
            z7 = false;
            z8 = false;
        }
        int i17 = this.f24462d0;
        boolean[] zArr5 = this.f24446P;
        boolean z21 = z7;
        if (i17 == 8) {
            ArrayList arrayList = this.f24445O;
            int size = arrayList.size();
            z9 = z8;
            int i18 = 0;
            while (true) {
                if (i18 < size) {
                    int i19 = size;
                    HashSet hashSet = ((C2962c) arrayList.get(i18)).f24422a;
                    if (hashSet != null && hashSet.size() > 0) {
                        break;
                    }
                    i18++;
                    size = i19;
                } else if (!zArr5[0] && !zArr5[c6]) {
                    return;
                }
            }
        } else {
            z9 = z8;
        }
        boolean z22 = this.l;
        if (z22 || this.f24474m) {
            if (z22) {
                c2609c2.d(eVarK, this.f24452V);
                c2609c2.d(eVarK2, this.f24452V + this.f24448R);
                if (z9 && (eVar2 = this.f24447Q) != null) {
                    WeakReference weakReference = eVar2.f24505z0;
                    if (weakReference == null || weakReference.get() == null || c2962c8.d() > ((C2962c) eVar2.f24505z0.get()).d()) {
                        eVar2.f24505z0 = new WeakReference(c2962c8);
                    }
                    WeakReference weakReference2 = eVar2.f24490B0;
                    if (weakReference2 == null || weakReference2.get() == null || c2962c9.d() > ((C2962c) eVar2.f24490B0.get()).d()) {
                        eVar2.f24490B0 = new WeakReference(c2962c9);
                    }
                }
            }
            if (this.f24474m) {
                c2609c2.d(eVarK3, this.f24453W);
                c2609c2.d(eVarK4, this.f24453W + this.f24449S);
                HashSet hashSet2 = c2962c12.f24422a;
                if (hashSet2 != null && hashSet2.size() > 0) {
                    c2609c2.d(eVarK5, this.f24453W + this.X);
                }
                if (z21 && (eVar = this.f24447Q) != null) {
                    WeakReference weakReference3 = eVar.f24504y0;
                    if (weakReference3 == null || weakReference3.get() == null || c2962c10.d() > ((C2962c) eVar.f24504y0.get()).d()) {
                        eVar.f24504y0 = new WeakReference(c2962c10);
                    }
                    WeakReference weakReference4 = eVar.f24489A0;
                    if (weakReference4 == null || weakReference4.get() == null || c2962c11.d() > ((C2962c) eVar.f24489A0.get()).d()) {
                        eVar.f24489A0 = new WeakReference(c2962c11);
                    }
                }
            }
            if (this.l && this.f24474m) {
                this.l = false;
                this.f24474m = false;
                return;
            }
        }
        boolean[] zArr6 = this.f24464f;
        if (!z6 || (jVar2 = this.f24461d) == null || (kVar2 = this.f24463e) == null) {
            c2962c = c2962c12;
            zArr = zArr6;
        } else {
            c2962c = c2962c12;
            C3093f c3093f = jVar2.f25289h;
            zArr = zArr6;
            if (c3093f.f25269j && jVar2.f25290i.f25269j && kVar2.f25289h.f25269j && kVar2.f25290i.f25269j) {
                c2609c2.d(eVarK, c3093f.f25266g);
                c2609c2.d(eVarK2, this.f24461d.f25290i.f25266g);
                c2609c2.d(eVarK3, this.f24463e.f25289h.f25266g);
                c2609c2.d(eVarK4, this.f24463e.f25290i.f25266g);
                c2609c2.d(eVarK5, this.f24463e.f25275k.f25266g);
                if (this.f24447Q == null) {
                    z20 = false;
                } else {
                    if (z9 && zArr[0] && !v()) {
                        c2609c2.f(c2609c2.k(this.f24447Q.f24438H), eVarK2, 0, 8);
                    }
                    if (z21 && zArr[c6] && !w()) {
                        z20 = false;
                        c2609c2.f(c2609c2.k(this.f24447Q.f24439I), eVarK4, 0, 8);
                    }
                }
                this.l = z20;
                this.f24474m = z20;
                return;
            }
        }
        if (this.f24447Q != null) {
            if (u(0)) {
                this.f24447Q.N(this, 0);
                char c9 = c6;
                c8 = c9 == true ? 1 : 0;
                V5 = c9;
            } else {
                c8 = c6;
                V5 = v();
            }
            if (u(c8)) {
                this.f24447Q.N(this, c8);
                zW = true;
            } else {
                zW = w();
            }
            if (V5 == 0 && z9 && this.f24462d0 != 8 && c2962c8.f24427f == null && c2962c9.f24427f == null) {
                c2962c2 = c2962c8;
                c2609c2.f(c2609c2.k(this.f24447Q.f24438H), eVarK2, 0, 1);
            } else {
                c2962c2 = c2962c8;
            }
            if (!zW && z21 && this.f24462d0 != 8 && c2962c10.f24427f == null && c2962c11.f24427f == null && c2962c == null) {
                c2609c2.f(c2609c2.k(this.f24447Q.f24439I), eVarK4, 0, 1);
            }
            z10 = zW;
            r12 = V5;
        } else {
            c2962c2 = c2962c8;
            z10 = false;
            r12 = 0;
        }
        int i20 = this.f24448R;
        int i21 = this.Y;
        if (i20 >= i21) {
            i21 = i20;
        }
        int i22 = this.f24449S;
        boolean z23 = z10;
        int i23 = this.f24454Z;
        int i24 = i22 < i23 ? i23 : i22;
        int[] iArr5 = this.f24475m0;
        int i25 = iArr5[0];
        boolean z24 = i25 != 3;
        int i26 = iArr5[1];
        boolean z25 = i26 != 3;
        int i27 = this.f24451U;
        this.f24431A = i27;
        float f6 = this.f24450T;
        this.f24432B = f6;
        int i28 = this.f24480r;
        int i29 = this.f24481s;
        if (f6 > 0.0f) {
            c2962c3 = c2962c11;
            if (this.f24462d0 != 8) {
                int i30 = (i25 == 3 && i28 == 0) ? 3 : i28;
                if (i26 == 3 && i29 == 0) {
                    eVar3 = eVarK4;
                    i16 = 3;
                } else {
                    eVar3 = eVarK4;
                    i16 = i29;
                }
                if (i25 == 3 && i26 == 3 && i30 == 3 && i16 == 3) {
                    if (i27 == -1) {
                        if (z24 && !z25) {
                            this.f24431A = 0;
                        } else if (!z24 && z25) {
                            this.f24431A = 1;
                            if (i27 == -1) {
                                this.f24432B = 1.0f / f6;
                            }
                        }
                    }
                    if (this.f24431A == 0 && (!c2962c10.h() || !c2962c3.h())) {
                        this.f24431A = 1;
                    } else if (this.f24431A == 1 && (!c2962c2.h() || !c2962c9.h())) {
                        this.f24431A = 0;
                    }
                    if (this.f24431A == -1 && (!c2962c10.h() || !c2962c3.h() || !c2962c2.h() || !c2962c9.h())) {
                        if (c2962c10.h() && c2962c3.h()) {
                            this.f24431A = 0;
                        } else if (c2962c2.h() && c2962c9.h()) {
                            this.f24432B = 1.0f / this.f24432B;
                            this.f24431A = 1;
                        }
                    }
                    if (this.f24431A == -1) {
                        int i31 = this.f24483u;
                        if (i31 > 0 && this.f24486x == 0) {
                            this.f24431A = 0;
                        } else if (i31 == 0 && this.f24486x > 0) {
                            this.f24432B = 1.0f / this.f24432B;
                            this.f24431A = 1;
                        }
                    }
                } else {
                    if (i25 != 3 || i30 != 3) {
                        if (i26 == 3 && i16 == 3) {
                            this.f24431A = 1;
                            if (i27 == -1) {
                                this.f24432B = 1.0f / f6;
                            }
                            i6 = (int) (this.f24432B * i20);
                            if (i25 != 3) {
                                i7 = i30;
                                zArr2 = zArr;
                                i8 = 4;
                            } else {
                                i7 = i30;
                                zArr2 = zArr;
                            }
                        }
                        z11 = true;
                        i8 = i16;
                        int[] iArr6 = this.f24482t;
                        iArr6[0] = i7;
                        iArr6[1] = i8;
                        if (z11) {
                            int i32 = this.f24431A;
                            i9 = -1;
                            boolean z26 = i32 == 0 || i32 == -1;
                            boolean z27 = !z11 && ((i15 = this.f24431A) == 1 || i15 == i9);
                            z12 = iArr5[0] != 2 && (this instanceof e);
                            if (z12) {
                                i21 = 0;
                            }
                            c2962c4 = this.f24443M;
                            z13 = !c2962c4.h();
                            z14 = z9;
                            boolean z28 = zArr5[0];
                            boolean z29 = zArr5[1];
                            i10 = this.f24478p;
                            iArr = this.f24433C;
                            zArr3 = zArr2;
                            if (i10 != 2 || this.l) {
                                eVar4 = eVarK;
                                eVar5 = eVarK2;
                                c2962c5 = c2962c4;
                                eVar6 = eVarK5;
                                z15 = z14;
                                iArr2 = iArr;
                                z16 = z21;
                                c2962c6 = c2962c;
                                zArr4 = zArr3;
                                z17 = z23;
                                iArr3 = iArr5;
                                eVar7 = eVarK3;
                                c2962c7 = c2962c3;
                                eVar8 = eVar3;
                                i11 = i7;
                                z18 = z13;
                                r19 = r12;
                            } else {
                                if (!z6 || (jVar = this.f24461d) == null) {
                                    z19 = z26;
                                } else {
                                    C3093f c3093f2 = jVar.f25289h;
                                    z19 = z26;
                                    if (c3093f2.f25269j && jVar.f25290i.f25269j) {
                                        if (z6) {
                                            c2609c2.d(eVarK, c3093f2.f25266g);
                                            c2609c2.d(eVarK2, this.f24461d.f25290i.f25266g);
                                            if (this.f24447Q != null && z14 && zArr3[0] && !v()) {
                                                c2609c2.f(c2609c2.k(this.f24447Q.f24438H), eVarK2, 0, 8);
                                            }
                                        }
                                        eVar4 = eVarK;
                                        eVar5 = eVarK2;
                                        c2962c5 = c2962c4;
                                        eVar6 = eVarK5;
                                        z15 = z14;
                                        iArr2 = iArr;
                                        z16 = z21;
                                        c2962c6 = c2962c;
                                        zArr4 = zArr3;
                                        z17 = z23;
                                        iArr3 = iArr5;
                                        eVar7 = eVarK3;
                                        c2962c7 = c2962c3;
                                        eVar8 = eVar3;
                                        i11 = i7;
                                        z18 = z13;
                                        r19 = r12;
                                    }
                                }
                                e eVar15 = this.f24447Q;
                                n1.e eVarK6 = eVar15 != null ? c2609c2.k(eVar15.f24438H) : null;
                                e eVar16 = this.f24447Q;
                                iArr3 = iArr5;
                                boolean z30 = z13;
                                c2962c5 = c2962c4;
                                n1.e eVarK7 = eVar16 != null ? c2609c2.k(eVar16.f24436F) : null;
                                z16 = z21;
                                ?? r192 = r12;
                                z15 = z14;
                                iArr2 = iArr;
                                z17 = z23;
                                c2962c6 = c2962c;
                                zArr4 = zArr3;
                                eVar7 = eVarK3;
                                eVar4 = eVarK;
                                c2962c7 = c2962c3;
                                eVar8 = eVar3;
                                eVar6 = eVarK5;
                                eVar5 = eVarK2;
                                i11 = i7;
                                c2609c2 = c2609c;
                                e(c2609c2, true, z15, z16, zArr3[0], eVarK7, eVarK6, iArr3[0], z12, this.f24436F, this.f24438H, this.f24452V, i21, this.Y, iArr2[0], this.f24456a0, z19, iArr3[1] == 3, r192, z17, z28, i11, i8, this.f24483u, this.f24484v, this.f24485w, z30);
                                r19 = r192;
                                z18 = z30;
                            }
                            if (z6 || (kVar = this.f24463e) == null) {
                                eVar9 = eVar7;
                                eVar10 = eVar8;
                                eVar11 = eVar6;
                                i12 = 0;
                                i13 = 8;
                                c7 = 1;
                                i14 = 1;
                            } else {
                                C3093f c3093f3 = kVar.f25289h;
                                if (c3093f3.f25269j && kVar.f25290i.f25269j) {
                                    int i33 = c3093f3.f25266g;
                                    eVar9 = eVar7;
                                    c2609c2.d(eVar9, i33);
                                    eVar10 = eVar8;
                                    c2609c2.d(eVar10, this.f24463e.f25290i.f25266g);
                                    eVar11 = eVar6;
                                    c2609c2.d(eVar11, this.f24463e.f25275k.f25266g);
                                    e eVar17 = this.f24447Q;
                                    if (eVar17 == null || z17 || !z16) {
                                        i12 = 0;
                                        i13 = 8;
                                        c7 = 1;
                                    } else {
                                        c7 = 1;
                                        if (zArr4[1]) {
                                            i12 = 0;
                                            i13 = 8;
                                            c2609c2.f(c2609c2.k(eVar17.f24439I), eVar10, 0, 8);
                                        } else {
                                            i12 = 0;
                                            i13 = 8;
                                        }
                                    }
                                    i14 = i12;
                                }
                            }
                            if ((this.f24479q != 2 ? i12 : i14) != 0 || this.f24474m) {
                                eVar12 = eVar9;
                                eVar13 = eVar10;
                            } else {
                                ?? r9 = (iArr3[c7] == 2 && (this instanceof e)) ? c7 : i12;
                                int i34 = r9 != 0 ? i12 : i6;
                                e eVar18 = this.f24447Q;
                                n1.e eVarK8 = eVar18 != null ? c2609c2.k(eVar18.f24439I) : null;
                                e eVar19 = this.f24447Q;
                                n1.e eVarK9 = eVar19 != null ? c2609c2.k(eVar19.f24437G) : null;
                                int i35 = this.X;
                                if (i35 <= 0) {
                                    ?? r27 = z18;
                                    if (this.f24462d0 == i13) {
                                        C2962c c2962c13 = c2962c6;
                                        if (c2962c13.f24427f != null) {
                                            c2609c2.e(eVar11, eVar9, i35, i13);
                                            c2609c2.e(eVar11, c2609c2.k(c2962c13.f24427f), c2962c13.e(), i13);
                                            if (z16) {
                                                c2609c2.f(eVarK8, c2609c2.k(c2962c7), i12, 5);
                                            }
                                            r27 = i12;
                                        } else if (this.f24462d0 == i13) {
                                            c2609c2.e(eVar11, eVar9, c2962c13.e(), i13);
                                            r27 = z18;
                                        } else {
                                            c2609c2.e(eVar11, eVar9, i35, i13);
                                            r27 = z18;
                                        }
                                    }
                                    int i36 = i12;
                                    eVar13 = eVar10;
                                    eVar12 = eVar9;
                                    c2609c2 = c2609c;
                                    e(c2609c2, false, z16, z15, zArr4[c7], eVarK9, eVarK8, iArr3[c7], r9, this.f24437G, this.f24439I, this.f24453W, i34, this.f24454Z, iArr2[c7], this.f24458b0, z27, iArr3[i36 == true ? 1 : 0] == 3 ? c7 : i36, z17, r19, z29, i8, i11, this.f24486x, this.f24487y, this.f24488z, r27);
                                }
                            }
                            if (z11) {
                                if (this.f24431A == 1) {
                                    float f7 = this.f24432B;
                                    C2608b c2608bL = c2609c2.l();
                                    c2608bL.f21574d.g(eVar13, -1.0f);
                                    c2608bL.f21574d.g(eVar12, 1.0f);
                                    c2608bL.f21574d.g(eVar5, f7);
                                    c2608bL.f21574d.g(eVar4, -f7);
                                    c2609c2.c(c2608bL);
                                } else {
                                    float f8 = this.f24432B;
                                    C2608b c2608bL2 = c2609c2.l();
                                    c2608bL2.f21574d.g(eVar5, -1.0f);
                                    c2608bL2.f21574d.g(eVar4, 1.0f);
                                    c2608bL2.f21574d.g(eVar13, f8);
                                    c2608bL2.f21574d.g(eVar12, -f8);
                                    c2609c2.c(c2608bL2);
                                }
                            }
                            if (c2962c5.h()) {
                                C2962c c2962c14 = c2962c5;
                                d dVar = c2962c14.f24427f.f24425d;
                                float radians = (float) Math.toRadians(this.f24434D + 90.0f);
                                int iE = c2962c14.e();
                                n1.e eVarK10 = c2609c2.k(j(2));
                                n1.e eVarK11 = c2609c2.k(j(3));
                                n1.e eVarK12 = c2609c2.k(j(4));
                                n1.e eVarK13 = c2609c2.k(j(5));
                                n1.e eVarK14 = c2609c2.k(dVar.j(2));
                                n1.e eVarK15 = c2609c2.k(dVar.j(3));
                                n1.e eVarK16 = c2609c2.k(dVar.j(4));
                                n1.e eVarK17 = c2609c2.k(dVar.j(5));
                                C2608b c2608bL3 = c2609c2.l();
                                double d6 = radians;
                                double dSin = Math.sin(d6);
                                double d7 = iE;
                                c2608bL3.f21574d.g(eVarK15, 0.5f);
                                c2608bL3.f21574d.g(eVarK17, 0.5f);
                                c2608bL3.f21574d.g(eVarK11, -0.5f);
                                c2608bL3.f21574d.g(eVarK13, -0.5f);
                                c2608bL3.f21572b = -((float) (dSin * d7));
                                c2609c2.c(c2608bL3);
                                C2608b c2608bL4 = c2609c2.l();
                                float fCos = (float) (Math.cos(d6) * d7);
                                c2608bL4.f21574d.g(eVarK14, 0.5f);
                                c2608bL4.f21574d.g(eVarK16, 0.5f);
                                c2608bL4.f21574d.g(eVarK10, -0.5f);
                                c2608bL4.f21574d.g(eVarK12, -0.5f);
                                c2608bL4.f21572b = -fCos;
                                c2609c2.c(c2608bL4);
                            }
                            this.l = false;
                            this.f24474m = false;
                        }
                        i9 = -1;
                        if (z11) {
                        }
                        if (iArr5[0] != 2) {
                        }
                        if (z12) {
                        }
                        c2962c4 = this.f24443M;
                        z13 = !c2962c4.h();
                        z14 = z9;
                        boolean z282 = zArr5[0];
                        boolean z292 = zArr5[1];
                        i10 = this.f24478p;
                        iArr = this.f24433C;
                        zArr3 = zArr2;
                        if (i10 != 2) {
                            eVar4 = eVarK;
                            eVar5 = eVarK2;
                            c2962c5 = c2962c4;
                            eVar6 = eVarK5;
                            z15 = z14;
                            iArr2 = iArr;
                            z16 = z21;
                            c2962c6 = c2962c;
                            zArr4 = zArr3;
                            z17 = z23;
                            iArr3 = iArr5;
                            eVar7 = eVarK3;
                            c2962c7 = c2962c3;
                            eVar8 = eVar3;
                            i11 = i7;
                            z18 = z13;
                            r19 = r12;
                        }
                        if (z6) {
                            eVar9 = eVar7;
                            eVar10 = eVar8;
                            eVar11 = eVar6;
                            i12 = 0;
                            i13 = 8;
                            c7 = 1;
                            i14 = 1;
                        }
                        if ((this.f24479q != 2 ? i12 : i14) != 0) {
                            eVar12 = eVar9;
                            eVar13 = eVar10;
                        }
                        if (z11) {
                        }
                        if (c2962c5.h()) {
                        }
                        this.l = false;
                        this.f24474m = false;
                    }
                    this.f24431A = 0;
                    i21 = (int) (f6 * i22);
                    if (i26 != 3) {
                        zArr2 = zArr;
                        i6 = i24;
                        i7 = 4;
                        z11 = false;
                        i8 = i16;
                        int[] iArr62 = this.f24482t;
                        iArr62[0] = i7;
                        iArr62[1] = i8;
                        if (z11) {
                        }
                        if (z11) {
                        }
                        if (iArr5[0] != 2) {
                        }
                        if (z12) {
                        }
                        c2962c4 = this.f24443M;
                        z13 = !c2962c4.h();
                        z14 = z9;
                        boolean z2822 = zArr5[0];
                        boolean z2922 = zArr5[1];
                        i10 = this.f24478p;
                        iArr = this.f24433C;
                        zArr3 = zArr2;
                        if (i10 != 2) {
                        }
                        if (z6) {
                        }
                        if ((this.f24479q != 2 ? i12 : i14) != 0) {
                        }
                        if (z11) {
                        }
                        if (c2962c5.h()) {
                        }
                        this.l = false;
                        this.f24474m = false;
                    }
                }
                i7 = i30;
                zArr2 = zArr;
                i6 = i24;
                z11 = true;
                i8 = i16;
                int[] iArr622 = this.f24482t;
                iArr622[0] = i7;
                iArr622[1] = i8;
                if (z11) {
                }
                if (z11) {
                }
                if (iArr5[0] != 2) {
                }
                if (z12) {
                }
                c2962c4 = this.f24443M;
                z13 = !c2962c4.h();
                z14 = z9;
                boolean z28222 = zArr5[0];
                boolean z29222 = zArr5[1];
                i10 = this.f24478p;
                iArr = this.f24433C;
                zArr3 = zArr2;
                if (i10 != 2) {
                }
                if (z6) {
                }
                if ((this.f24479q != 2 ? i12 : i14) != 0) {
                }
                if (z11) {
                }
                if (c2962c5.h()) {
                }
                this.l = false;
                this.f24474m = false;
            }
            z11 = false;
            int[] iArr6222 = this.f24482t;
            iArr6222[0] = i7;
            iArr6222[1] = i8;
            if (z11) {
            }
            if (z11) {
            }
            if (iArr5[0] != 2) {
            }
            if (z12) {
            }
            c2962c4 = this.f24443M;
            z13 = !c2962c4.h();
            z14 = z9;
            boolean z282222 = zArr5[0];
            boolean z292222 = zArr5[1];
            i10 = this.f24478p;
            iArr = this.f24433C;
            zArr3 = zArr2;
            if (i10 != 2) {
            }
            if (z6) {
            }
            if ((this.f24479q != 2 ? i12 : i14) != 0) {
            }
            if (z11) {
            }
            if (c2962c5.h()) {
            }
            this.l = false;
            this.f24474m = false;
        }
        c2962c3 = c2962c11;
        eVar3 = eVarK4;
        zArr2 = zArr;
        i6 = i24;
        i7 = i28;
        i8 = i29;
        z11 = false;
        int[] iArr62222 = this.f24482t;
        iArr62222[0] = i7;
        iArr62222[1] = i8;
        if (z11) {
        }
        if (z11) {
        }
        if (iArr5[0] != 2) {
        }
        if (z12) {
        }
        c2962c4 = this.f24443M;
        z13 = !c2962c4.h();
        z14 = z9;
        boolean z2822222 = zArr5[0];
        boolean z2922222 = zArr5[1];
        i10 = this.f24478p;
        iArr = this.f24433C;
        zArr3 = zArr2;
        if (i10 != 2) {
        }
        if (z6) {
        }
        if ((this.f24479q != 2 ? i12 : i14) != 0) {
        }
        if (z11) {
        }
        if (c2962c5.h()) {
        }
        this.l = false;
        this.f24474m = false;
    }

    public boolean d() {
        return this.f24462d0 != 8;
    }

    /* JADX WARN: Removed duplicated region for block: B:217:0x03bb A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:220:0x03c4  */
    /* JADX WARN: Removed duplicated region for block: B:222:0x03c8  */
    /* JADX WARN: Removed duplicated region for block: B:231:0x0401  */
    /* JADX WARN: Removed duplicated region for block: B:240:0x041e  */
    /* JADX WARN: Removed duplicated region for block: B:257:0x0451  */
    /* JADX WARN: Removed duplicated region for block: B:259:0x0457  */
    /* JADX WARN: Removed duplicated region for block: B:287:0x0492 A[PHI: r3
      0x0492: PHI (r3v16 int) = (r3v15 int), (r3v20 int), (r3v20 int), (r3v20 int) binds: [B:280:0x0482, B:282:0x0488, B:283:0x048a, B:285:0x048e] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:290:0x04a4  */
    /* JADX WARN: Removed duplicated region for block: B:303:0x04c5  */
    /* JADX WARN: Removed duplicated region for block: B:308:0x04d3 A[ADDED_TO_REGION] */
    /* JADX WARN: Removed duplicated region for block: B:337:0x0521  */
    /* JADX WARN: Removed duplicated region for block: B:345:? A[ADDED_TO_REGION, RETURN, SYNTHETIC] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void e(C2609c c2609c, boolean z6, boolean z7, boolean z8, boolean z9, n1.e eVar, n1.e eVar2, int i6, boolean z10, C2962c c2962c, C2962c c2962c2, int i7, int i8, int i9, int i10, float f6, boolean z11, boolean z12, boolean z13, boolean z14, boolean z15, int i11, int i12, int i13, int i14, float f7, boolean z16) {
        boolean z17;
        boolean z18;
        int iMin;
        boolean z19;
        boolean z20;
        int i15;
        int i16;
        boolean z21;
        n1.e eVarK;
        n1.e eVarK2;
        C2962c c2962c3;
        n1.e eVar3;
        boolean z22;
        int i17;
        n1.e eVar4;
        n1.e eVar5;
        n1.e eVar6;
        n1.e eVar7;
        int i18;
        int i19;
        int i20;
        boolean z23;
        boolean z24;
        boolean z25;
        boolean z26;
        d dVar;
        int i21;
        int i22;
        C2962c c2962c4;
        boolean z27;
        int iMin2;
        boolean z28;
        int i23;
        HashSet hashSet;
        boolean z29;
        int i24;
        int i25;
        int i26;
        int i27;
        int i28;
        boolean z30;
        boolean z31;
        int i29;
        C2609c c2609c2 = c2609c;
        int i30 = i13;
        int i31 = i14;
        n1.e eVarK3 = c2609c2.k(c2962c);
        n1.e eVarK4 = c2609c2.k(c2962c2);
        n1.e eVarK5 = c2609c2.k(c2962c.f24427f);
        n1.e eVarK6 = c2609c2.k(c2962c2.f24427f);
        boolean zH = c2962c.h();
        boolean zH2 = c2962c2.h();
        boolean zH3 = this.f24443M.h();
        int i32 = zH2 ? (zH ? 1 : 0) + 1 : zH ? 1 : 0;
        if (zH3) {
            i32++;
        }
        int i33 = i32;
        int i34 = z11 ? 3 : i11;
        int iC = AbstractC2464a.c(i6);
        boolean z32 = (iC == 0 || iC == 1 || iC != 2 || i34 == 4) ? false : true;
        int i35 = this.f24466h;
        if (i35 == -1 || !z6) {
            i35 = i8;
            z17 = z32;
        } else {
            this.f24466h = -1;
            z17 = false;
        }
        int i36 = this.f24467i;
        if (i36 == -1 || z6) {
            z18 = z17;
        } else {
            this.f24467i = -1;
            i35 = i36;
            z18 = false;
        }
        boolean z33 = z18;
        if (this.f24462d0 == 8) {
            z19 = false;
            iMin = 0;
        } else {
            iMin = i35;
            z19 = z33;
        }
        if (z16) {
            if (!zH && !zH2 && !zH3) {
                c2609c2.d(eVarK3, i7);
            } else if (zH && !zH2) {
                z20 = z19;
                i15 = 8;
                c2609c2.e(eVarK3, eVarK5, c2962c.e(), 8);
            }
            z20 = z19;
            i15 = 8;
        } else {
            z20 = z19;
            i15 = 8;
        }
        if (z20) {
            if (i33 == 2 || z11 || !(i34 == 1 || i34 == 0)) {
                if (i30 == -2) {
                    i30 = iMin;
                }
                if (i31 == -2) {
                    i31 = iMin;
                }
                if (iMin > 0 && i34 != 1) {
                    iMin = 0;
                }
                if (i30 > 0) {
                    c2609c2.f(eVarK4, eVarK3, i30, 8);
                    iMin = Math.max(iMin, i30);
                }
                if (i31 > 0) {
                    if (!z7 || i34 != 1) {
                        c2609c2.g(eVarK4, eVarK3, i31, 8);
                    }
                    iMin = Math.min(iMin, i31);
                }
                if (i34 == 1) {
                    if (z7) {
                        c2609c2.e(eVarK4, eVarK3, iMin, 8);
                    } else if (z13) {
                        c2609c2.e(eVarK4, eVarK3, iMin, 5);
                        c2609c2.g(eVarK4, eVarK3, iMin, 8);
                    } else {
                        c2609c2.e(eVarK4, eVarK3, iMin, 5);
                        c2609c2.g(eVarK4, eVarK3, iMin, 8);
                    }
                } else if (i34 == 2) {
                    int i37 = c2962c.f24426e;
                    if (i37 == 3 || i37 == 5) {
                        eVarK = c2609c2.k(this.f24447Q.j(3));
                        eVarK2 = c2609c2.k(this.f24447Q.j(5));
                    } else {
                        eVarK = c2609c2.k(this.f24447Q.j(2));
                        eVarK2 = c2609c2.k(this.f24447Q.j(4));
                    }
                    C2608b c2608bL = c2609c2.l();
                    int i38 = i30;
                    c2608bL.f21574d.g(eVarK4, -1.0f);
                    c2608bL.f21574d.g(eVarK3, 1.0f);
                    c2608bL.f21574d.g(eVarK2, f7);
                    c2608bL.f21574d.g(eVarK, -f7);
                    c2609c2.c(c2608bL);
                    if (z7) {
                        z20 = false;
                    }
                    z21 = z9;
                    i16 = i38;
                } else {
                    i16 = i30;
                    z21 = true;
                }
            } else {
                int iMax = Math.max(i30, iMin);
                if (i31 > 0) {
                    iMax = Math.min(i31, iMax);
                }
                c2609c2.e(eVarK4, eVarK3, iMax, 8);
                z21 = z9;
                i16 = i30;
                z20 = false;
            }
            if (z16 || z13) {
                boolean z34 = z21;
                if (i33 >= 2 && z7 && z34) {
                    c2609c2.f(eVarK3, eVar, 0, 8);
                    C2962c c2962c5 = this.f24440J;
                    boolean z35 = z6 || c2962c5.f24427f == null;
                    if (!z6 && (c2962c3 = c2962c5.f24427f) != null) {
                        d dVar2 = c2962c3.f24425d;
                        if (dVar2.f24450T != 0.0f) {
                            int[] iArr = dVar2.f24475m0;
                            z35 = iArr[0] == 3 && iArr[1] == 3;
                        }
                    }
                    if (z35) {
                        c2609c2.f(eVar2, eVarK4, 0, 8);
                        return;
                    }
                    return;
                }
                return;
            }
            if (!zH && !zH2 && !zH3) {
                c2962c4 = c2962c2;
                eVar6 = eVarK4;
                z22 = z21;
                eVar3 = eVarK6;
            } else if (!zH || zH2) {
                if (zH || !zH2) {
                    eVar3 = eVarK6;
                    if (zH && zH2) {
                        d dVar3 = c2962c.f24427f.f24425d;
                        d dVar4 = c2962c2.f24427f.f24425d;
                        z22 = z21;
                        e eVar8 = this.f24447Q;
                        int i39 = 6;
                        if (z20) {
                            if (i34 == 0) {
                                if (i31 != 0 || i16 != 0) {
                                    i27 = 5;
                                    i28 = 5;
                                    z30 = true;
                                    z31 = false;
                                    z24 = true;
                                } else if (eVarK5.f21601f && eVar3.f21601f) {
                                    c2609c2.e(eVarK3, eVarK5, c2962c.e(), 8);
                                    c2609c2.e(eVarK4, eVar3, -c2962c2.e(), 8);
                                    return;
                                } else {
                                    i27 = 8;
                                    i28 = 8;
                                    z30 = false;
                                    z31 = true;
                                    z24 = false;
                                }
                                if ((dVar3 instanceof C2960a) || (dVar4 instanceof C2960a)) {
                                    c2609c2 = c2609c;
                                    i17 = i34;
                                    eVar5 = eVarK3;
                                    eVar6 = eVarK4;
                                    z25 = z31;
                                    eVar4 = eVar2;
                                    i19 = i27;
                                    eVar7 = eVarK5;
                                    i18 = 6;
                                    z23 = z30;
                                    i20 = 4;
                                    if (z24 || eVar7 != eVar3 || dVar3 == eVar8) {
                                        z26 = true;
                                    } else {
                                        z24 = false;
                                        z26 = false;
                                    }
                                    if (z23) {
                                        dVar = dVar4;
                                        i21 = i16;
                                        i22 = i17;
                                        c2962c4 = c2962c2;
                                        z27 = z7;
                                    } else {
                                        if (z20 || z12 || z14 || eVar7 != eVar || eVar3 != eVar4) {
                                            z27 = z7;
                                            z29 = z26;
                                            i24 = i19;
                                        } else {
                                            i18 = 8;
                                            z27 = false;
                                            i24 = 8;
                                            z29 = false;
                                        }
                                        n1.e eVar9 = eVar7;
                                        i21 = i16;
                                        i22 = i17;
                                        dVar = dVar4;
                                        c2962c4 = c2962c2;
                                        c2609c2.b(eVar5, eVar9, c2962c.e(), f6, eVar3, eVar6, c2962c2.e(), i18);
                                        eVar7 = eVar9;
                                        i19 = i24;
                                        z26 = z29;
                                    }
                                    if (this.f24462d0 != 8 && ((hashSet = c2962c4.f24422a) == null || hashSet.size() <= 0)) {
                                        return;
                                    }
                                    if (z24) {
                                        if (z27 && eVar7 != eVar3 && !z20 && ((dVar3 instanceof C2960a) || (dVar instanceof C2960a))) {
                                            i19 = 6;
                                        }
                                        c2609c2.f(eVar5, eVar7, c2962c.e(), i19);
                                        c2609c2.g(eVar6, eVar3, -c2962c4.e(), i19);
                                    }
                                    if (z27 || !z15 || (dVar3 instanceof C2960a) || (dVar instanceof C2960a) || dVar == eVar8) {
                                        iMin2 = i20;
                                        z28 = z26;
                                    } else {
                                        iMin2 = 6;
                                        i19 = 6;
                                        z28 = true;
                                    }
                                    if (z28) {
                                        if (z25 && (!z14 || z8)) {
                                            if (dVar3 != eVar8 && dVar != eVar8) {
                                                i39 = iMin2;
                                            }
                                            if ((dVar3 instanceof h) || (dVar instanceof h)) {
                                                i39 = 5;
                                            }
                                            if ((dVar3 instanceof C2960a) || (dVar instanceof C2960a)) {
                                                i39 = 5;
                                            }
                                            iMin2 = Math.max(z14 ? 5 : i39, iMin2);
                                        }
                                        if (z27) {
                                            iMin2 = Math.min(i19, iMin2);
                                            int i40 = (z11 && !z14 && (dVar3 == eVar8 || dVar == eVar8)) ? 4 : iMin2;
                                            c2609c2.e(eVar5, eVar7, c2962c.e(), i40);
                                            c2609c2.e(eVar6, eVar3, -c2962c4.e(), i40);
                                        }
                                    }
                                    if (z27) {
                                        int iE = eVar == eVar7 ? c2962c.e() : 0;
                                        if (eVar7 != eVar) {
                                            c2609c2.f(eVar5, eVar, iE, 5);
                                        }
                                    }
                                    if (z27 || !z20 || i9 != 0 || i21 != 0) {
                                        i23 = 5;
                                        i29 = i23;
                                    } else if (z20 && i22 == 3) {
                                        c2609c2.f(eVar6, eVar5, 0, 8);
                                        i23 = 5;
                                        i29 = i23;
                                    } else {
                                        i23 = 5;
                                        c2609c2.f(eVar6, eVar5, 0, 5);
                                        i29 = i23;
                                    }
                                } else {
                                    c2609c2 = c2609c;
                                    eVar5 = eVarK3;
                                    eVar6 = eVarK4;
                                    z25 = z31;
                                    i19 = i27;
                                    eVar7 = eVarK5;
                                    i18 = 6;
                                    z23 = z30;
                                    i20 = i28;
                                    i17 = i34;
                                    eVar4 = eVar2;
                                    if (z24) {
                                        z26 = true;
                                        if (z23) {
                                        }
                                        if (this.f24462d0 != 8) {
                                        }
                                        if (z24) {
                                        }
                                        if (z27) {
                                            iMin2 = i20;
                                            z28 = z26;
                                            if (z28) {
                                            }
                                            if (z27) {
                                            }
                                            if (z27) {
                                                i23 = 5;
                                                i29 = i23;
                                            }
                                        }
                                    }
                                }
                            } else {
                                if (i34 == 2) {
                                    if ((dVar3 instanceof C2960a) || (dVar4 instanceof C2960a)) {
                                        c2609c2 = c2609c;
                                        i17 = i34;
                                        eVar5 = eVarK3;
                                        eVar6 = eVarK4;
                                        eVar7 = eVarK5;
                                        i18 = 6;
                                        i19 = 5;
                                    } else {
                                        c2609c2 = c2609c;
                                        i17 = i34;
                                        eVar5 = eVarK3;
                                        eVar6 = eVarK4;
                                        eVar7 = eVarK5;
                                        i18 = 6;
                                        i19 = 5;
                                        i20 = 5;
                                        z23 = true;
                                        z24 = true;
                                        z25 = false;
                                        eVar4 = eVar2;
                                        if (z24) {
                                        }
                                    }
                                } else if (i34 == 1) {
                                    c2609c2 = c2609c;
                                    i17 = i34;
                                    eVar5 = eVarK3;
                                    eVar6 = eVarK4;
                                    eVar7 = eVarK5;
                                    i18 = 6;
                                    i19 = 8;
                                } else if (i34 == 3) {
                                    i17 = i34;
                                    if (this.f24431A != -1) {
                                        if (z11) {
                                            if (i12 == 2 || i12 == 1) {
                                                i25 = 5;
                                                i26 = 4;
                                            } else {
                                                i25 = 8;
                                                i26 = 5;
                                            }
                                            i20 = i26;
                                            eVar5 = eVarK3;
                                            eVar6 = eVarK4;
                                            eVar7 = eVarK5;
                                            i18 = 6;
                                            z23 = true;
                                            z24 = true;
                                            z25 = true;
                                            eVar4 = eVar2;
                                        } else if (i31 > 0) {
                                            c2609c2 = c2609c;
                                            eVar4 = eVar2;
                                            eVar5 = eVarK3;
                                            eVar6 = eVarK4;
                                            eVar7 = eVarK5;
                                            i18 = 6;
                                            i19 = 5;
                                        } else {
                                            if (i31 != 0 || i16 != 0) {
                                                c2609c2 = c2609c;
                                                eVar4 = eVar2;
                                                eVar5 = eVarK3;
                                                eVar6 = eVarK4;
                                                eVar7 = eVarK5;
                                                i18 = 6;
                                                i19 = 5;
                                                i20 = 4;
                                            } else if (z14) {
                                                i25 = (dVar3 == eVar8 || dVar4 == eVar8) ? 5 : 4;
                                                eVar4 = eVar2;
                                                eVar5 = eVarK3;
                                                eVar6 = eVarK4;
                                                eVar7 = eVarK5;
                                                i18 = 6;
                                                i20 = 4;
                                                z23 = true;
                                                z24 = true;
                                                z25 = true;
                                            } else {
                                                c2609c2 = c2609c;
                                                eVar4 = eVar2;
                                                eVar5 = eVarK3;
                                                eVar6 = eVarK4;
                                                eVar7 = eVarK5;
                                                i18 = 6;
                                                i19 = 5;
                                                i20 = 8;
                                            }
                                            z23 = true;
                                            z24 = true;
                                            z25 = true;
                                            if (z24) {
                                            }
                                        }
                                        i19 = i25;
                                        c2609c2 = c2609c;
                                        if (z24) {
                                        }
                                    } else if (z14) {
                                        c2609c2 = c2609c;
                                        eVar4 = eVar2;
                                        eVar5 = eVarK3;
                                        eVar6 = eVarK4;
                                        eVar7 = eVarK5;
                                        i19 = 8;
                                        i18 = z7 ? 5 : 4;
                                    } else {
                                        c2609c2 = c2609c;
                                        eVar4 = eVar2;
                                        eVar5 = eVarK3;
                                        eVar6 = eVarK4;
                                        eVar7 = eVarK5;
                                        i19 = 8;
                                        i18 = 8;
                                    }
                                    i20 = 5;
                                    z23 = true;
                                    z24 = true;
                                    z25 = true;
                                    if (z24) {
                                    }
                                } else {
                                    i17 = i34;
                                    c2609c2 = c2609c;
                                    eVar4 = eVar2;
                                    eVar5 = eVarK3;
                                    eVar6 = eVarK4;
                                    eVar7 = eVarK5;
                                    i18 = 6;
                                    i19 = 5;
                                    i20 = 4;
                                    z23 = false;
                                    z24 = false;
                                }
                                i20 = 4;
                                z23 = true;
                                z24 = true;
                                z25 = false;
                                eVar4 = eVar2;
                                if (z24) {
                                }
                            }
                            if (z27 && z22) {
                                int iE2 = c2962c4.f24427f != null ? c2962c4.e() : 0;
                                if (eVar3 != eVar2) {
                                    c2609c2.f(eVar2, eVar6, iE2, i29);
                                    return;
                                }
                                return;
                            }
                            return;
                        }
                        i17 = i34;
                        if (eVarK5.f21601f && eVar3.f21601f) {
                            c2609c.b(eVarK3, eVarK5, c2962c.e(), f6, eVar3, eVarK4, c2962c2.e(), 8);
                            if (z7 && z22) {
                                int iE3 = c2962c2.f24427f != null ? c2962c2.e() : 0;
                                if (eVar3 != eVar2) {
                                    c2609c.f(eVar2, eVarK4, iE3, 5);
                                    return;
                                }
                                return;
                            }
                            return;
                        }
                        c2609c2 = c2609c;
                        eVar4 = eVar2;
                        eVar5 = eVarK3;
                        eVar6 = eVarK4;
                        eVar7 = eVarK5;
                        i18 = 6;
                        i19 = 5;
                        i20 = 4;
                        z23 = true;
                        z24 = true;
                        z25 = false;
                        if (z24) {
                        }
                        if (z27) {
                            return;
                        } else {
                            return;
                        }
                    }
                } else {
                    eVar3 = eVarK6;
                    c2609c2.e(eVarK4, eVar3, -c2962c2.e(), 8);
                    if (z7) {
                        c2609c2.f(eVarK3, eVar, 0, 5);
                        c2962c4 = c2962c2;
                        i23 = 5;
                        eVar6 = eVarK4;
                        z22 = z21;
                        z27 = z7;
                        i29 = i23;
                        if (z27) {
                        }
                    }
                }
                c2962c4 = c2962c2;
                eVar6 = eVarK4;
                z22 = z21;
            } else {
                c2962c4 = c2962c2;
                eVar6 = eVarK4;
                z22 = z21;
                eVar3 = eVarK6;
                z27 = z7;
                i29 = (z7 && (c2962c.f24427f.f24425d instanceof C2960a)) ? 8 : 5;
                if (z27) {
                }
            }
            i23 = 5;
            z27 = z7;
            i29 = i23;
            if (z27) {
            }
        } else if (z10) {
            c2609c2.e(eVarK4, eVarK3, 0, 3);
            if (i9 > 0) {
                c2609c2.f(eVarK4, eVarK3, i9, i15);
            }
            if (i10 < Integer.MAX_VALUE) {
                c2609c2.g(eVarK4, eVarK3, i10, i15);
            }
        } else {
            c2609c2.e(eVarK4, eVarK3, iMin, i15);
        }
        z21 = z9;
        i16 = i30;
        if (z16) {
        }
        boolean z342 = z21;
        if (i33 >= 2) {
        }
    }

    public final void f(int i6, d dVar, int i7, int i8) {
        boolean z6;
        if (i6 == 7) {
            if (i7 != 7) {
                if (i7 == 2 || i7 == 4) {
                    f(2, dVar, i7, 0);
                    f(4, dVar, i7, 0);
                    j(7).a(dVar.j(i7), 0);
                    return;
                } else {
                    if (i7 == 3 || i7 == 5) {
                        f(3, dVar, i7, 0);
                        f(5, dVar, i7, 0);
                        j(7).a(dVar.j(i7), 0);
                        return;
                    }
                    return;
                }
            }
            C2962c c2962cJ = j(2);
            C2962c c2962cJ2 = j(4);
            C2962c c2962cJ3 = j(3);
            C2962c c2962cJ4 = j(5);
            boolean z7 = true;
            if ((c2962cJ == null || !c2962cJ.h()) && (c2962cJ2 == null || !c2962cJ2.h())) {
                f(2, dVar, 2, 0);
                f(4, dVar, 4, 0);
                z6 = true;
            } else {
                z6 = false;
            }
            if ((c2962cJ3 == null || !c2962cJ3.h()) && (c2962cJ4 == null || !c2962cJ4.h())) {
                f(3, dVar, 3, 0);
                f(5, dVar, 5, 0);
            } else {
                z7 = false;
            }
            if (z6 && z7) {
                j(7).a(dVar.j(7), 0);
                return;
            } else if (z6) {
                j(8).a(dVar.j(8), 0);
                return;
            } else {
                if (z7) {
                    j(9).a(dVar.j(9), 0);
                    return;
                }
                return;
            }
        }
        if (i6 == 8 && (i7 == 2 || i7 == 4)) {
            C2962c c2962cJ5 = j(2);
            C2962c c2962cJ6 = dVar.j(i7);
            C2962c c2962cJ7 = j(4);
            c2962cJ5.a(c2962cJ6, 0);
            c2962cJ7.a(c2962cJ6, 0);
            j(8).a(c2962cJ6, 0);
            return;
        }
        if (i6 == 9 && (i7 == 3 || i7 == 5)) {
            C2962c c2962cJ8 = dVar.j(i7);
            j(3).a(c2962cJ8, 0);
            j(5).a(c2962cJ8, 0);
            j(9).a(c2962cJ8, 0);
            return;
        }
        if (i6 == 8 && i7 == 8) {
            j(2).a(dVar.j(2), 0);
            j(4).a(dVar.j(4), 0);
            j(8).a(dVar.j(i7), 0);
            return;
        }
        if (i6 == 9 && i7 == 9) {
            j(3).a(dVar.j(3), 0);
            j(5).a(dVar.j(5), 0);
            j(9).a(dVar.j(i7), 0);
            return;
        }
        C2962c c2962cJ9 = j(i6);
        C2962c c2962cJ10 = dVar.j(i7);
        if (c2962cJ9.i(c2962cJ10)) {
            if (i6 == 6) {
                C2962c c2962cJ11 = j(3);
                C2962c c2962cJ12 = j(5);
                if (c2962cJ11 != null) {
                    c2962cJ11.j();
                }
                if (c2962cJ12 != null) {
                    c2962cJ12.j();
                }
            } else if (i6 == 3 || i6 == 5) {
                C2962c c2962cJ13 = j(6);
                if (c2962cJ13 != null) {
                    c2962cJ13.j();
                }
                C2962c c2962cJ14 = j(7);
                if (c2962cJ14.f24427f != c2962cJ10) {
                    c2962cJ14.j();
                }
                C2962c c2962cF = j(i6).f();
                C2962c c2962cJ15 = j(9);
                if (c2962cJ15.h()) {
                    c2962cF.j();
                    c2962cJ15.j();
                }
            } else if (i6 == 2 || i6 == 4) {
                C2962c c2962cJ16 = j(7);
                if (c2962cJ16.f24427f != c2962cJ10) {
                    c2962cJ16.j();
                }
                C2962c c2962cF2 = j(i6).f();
                C2962c c2962cJ17 = j(8);
                if (c2962cJ17.h()) {
                    c2962cF2.j();
                    c2962cJ17.j();
                }
            }
            c2962cJ9.a(c2962cJ10, i8);
        }
    }

    public final void g(C2962c c2962c, C2962c c2962c2, int i6) {
        if (c2962c.f24425d == this) {
            f(c2962c.f24426e, c2962c2.f24425d, c2962c2.f24426e, i6);
        }
    }

    public final void h(C2609c c2609c) {
        c2609c.k(this.f24436F);
        c2609c.k(this.f24437G);
        c2609c.k(this.f24438H);
        c2609c.k(this.f24439I);
        if (this.X > 0) {
            c2609c.k(this.f24440J);
        }
    }

    public final void i() {
        if (this.f24461d == null) {
            v1.j jVar = new v1.j(this);
            jVar.f25289h.f25264e = 4;
            jVar.f25290i.f25264e = 5;
            jVar.f25287f = 0;
            this.f24461d = jVar;
        }
        if (this.f24463e == null) {
            v1.k kVar = new v1.k(this);
            C3093f c3093f = new C3093f(kVar);
            kVar.f25275k = c3093f;
            kVar.l = null;
            kVar.f25289h.f25264e = 6;
            kVar.f25290i.f25264e = 7;
            c3093f.f25264e = 8;
            kVar.f25287f = 1;
            this.f24463e = kVar;
        }
    }

    public C2962c j(int i6) {
        switch (AbstractC2464a.c(i6)) {
            case 0:
                return null;
            case 1:
                return this.f24436F;
            case 2:
                return this.f24437G;
            case 3:
                return this.f24438H;
            case 4:
                return this.f24439I;
            case 5:
                return this.f24440J;
            case 6:
                return this.f24443M;
            case 7:
                return this.f24441K;
            case 8:
                return this.f24442L;
            default:
                throw new AssertionError(AbstractC2761L.p(i6));
        }
    }

    public final int k(int i6) {
        int[] iArr = this.f24475m0;
        if (i6 == 0) {
            return iArr[0];
        }
        if (i6 == 1) {
            return iArr[1];
        }
        return 0;
    }

    public final int l() {
        if (this.f24462d0 == 8) {
            return 0;
        }
        return this.f24449S;
    }

    public final d m(int i6) {
        C2962c c2962c;
        C2962c c2962c2;
        if (i6 != 0) {
            if (i6 == 1 && (c2962c2 = (c2962c = this.f24439I).f24427f) != null && c2962c2.f24427f == c2962c) {
                return c2962c2.f24425d;
            }
            return null;
        }
        C2962c c2962c3 = this.f24438H;
        C2962c c2962c4 = c2962c3.f24427f;
        if (c2962c4 == null || c2962c4.f24427f != c2962c3) {
            return null;
        }
        return c2962c4.f24425d;
    }

    public final d n(int i6) {
        C2962c c2962c;
        C2962c c2962c2;
        if (i6 != 0) {
            if (i6 == 1 && (c2962c2 = (c2962c = this.f24437G).f24427f) != null && c2962c2.f24427f == c2962c) {
                return c2962c2.f24425d;
            }
            return null;
        }
        C2962c c2962c3 = this.f24436F;
        C2962c c2962c4 = c2962c3.f24427f;
        if (c2962c4 == null || c2962c4.f24427f != c2962c3) {
            return null;
        }
        return c2962c4.f24425d;
    }

    public final int o() {
        if (this.f24462d0 == 8) {
            return 0;
        }
        return this.f24448R;
    }

    public final int p() {
        e eVar = this.f24447Q;
        return (eVar == null || !(eVar instanceof e)) ? this.f24452V : this.f24452V;
    }

    public final int q() {
        e eVar = this.f24447Q;
        return (eVar == null || !(eVar instanceof e)) ? this.f24453W : this.f24453W;
    }

    /* JADX WARN: Removed duplicated region for block: B:29:0x003a A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:30:0x003b A[RETURN] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean r(int i6) {
        if (i6 == 0) {
            return (this.f24436F.f24427f != null ? 1 : 0) + (this.f24438H.f24427f != null ? 1 : 0) < 2;
        }
        if ((this.f24437G.f24427f != null ? 1 : 0) + (this.f24439I.f24427f != null ? 1 : 0) + (this.f24440J.f24427f != null ? 1 : 0) < 2) {
        }
    }

    public final boolean s(int i6, int i7) {
        C2962c c2962c;
        C2962c c2962c2;
        C2962c c2962c3;
        C2962c c2962c4;
        if (i6 == 0) {
            C2962c c2962c5 = this.f24436F;
            C2962c c2962c6 = c2962c5.f24427f;
            if (c2962c6 == null || !c2962c6.f24424c || (c2962c4 = (c2962c3 = this.f24438H).f24427f) == null || !c2962c4.f24424c) {
                return false;
            }
            return (c2962c4.d() - c2962c3.e()) - (c2962c5.e() + c2962c5.f24427f.d()) >= i7;
        }
        C2962c c2962c7 = this.f24437G;
        C2962c c2962c8 = c2962c7.f24427f;
        if (c2962c8 == null || !c2962c8.f24424c || (c2962c2 = (c2962c = this.f24439I).f24427f) == null || !c2962c2.f24424c) {
            return false;
        }
        return (c2962c2.d() - c2962c.e()) - (c2962c7.e() + c2962c7.f24427f.d()) >= i7;
    }

    public final void t(int i6, int i7, int i8, int i9, d dVar) {
        j(i6).b(dVar.j(i7), i8, i9, true);
    }

    public String toString() {
        StringBuilder sbT = o.t("");
        sbT.append(this.e0 != null ? com.google.android.recaptcha.internal.a.n(new StringBuilder("id: "), this.e0, " ") : "");
        sbT.append("(");
        sbT.append(this.f24452V);
        sbT.append(", ");
        sbT.append(this.f24453W);
        sbT.append(") - (");
        sbT.append(this.f24448R);
        sbT.append(" x ");
        return o.q(sbT, this.f24449S, ")");
    }

    public final boolean u(int i6) {
        C2962c c2962c;
        C2962c c2962c2;
        int i7 = i6 * 2;
        C2962c[] c2962cArr = this.f24444N;
        C2962c c2962c3 = c2962cArr[i7];
        C2962c c2962c4 = c2962c3.f24427f;
        return (c2962c4 == null || c2962c4.f24427f == c2962c3 || (c2962c2 = (c2962c = c2962cArr[i7 + 1]).f24427f) == null || c2962c2.f24427f != c2962c) ? false : true;
    }

    public final boolean v() {
        C2962c c2962c = this.f24436F;
        C2962c c2962c2 = c2962c.f24427f;
        if (c2962c2 != null && c2962c2.f24427f == c2962c) {
            return true;
        }
        C2962c c2962c3 = this.f24438H;
        C2962c c2962c4 = c2962c3.f24427f;
        return c2962c4 != null && c2962c4.f24427f == c2962c3;
    }

    public final boolean w() {
        C2962c c2962c = this.f24437G;
        C2962c c2962c2 = c2962c.f24427f;
        if (c2962c2 != null && c2962c2.f24427f == c2962c) {
            return true;
        }
        C2962c c2962c3 = this.f24439I;
        C2962c c2962c4 = c2962c3.f24427f;
        return c2962c4 != null && c2962c4.f24427f == c2962c3;
    }

    public final boolean x() {
        return this.f24465g && this.f24462d0 != 8;
    }

    public boolean y() {
        if (this.l) {
            return true;
        }
        return this.f24436F.f24424c && this.f24438H.f24424c;
    }

    public boolean z() {
        if (this.f24474m) {
            return true;
        }
        return this.f24437G.f24424c && this.f24439I.f24424c;
    }

    public d(int i6, int i7) {
        this.f24455a = false;
        this.f24461d = null;
        this.f24463e = null;
        this.f24464f = new boolean[]{true, true};
        this.f24465g = true;
        this.f24466h = -1;
        this.f24467i = -1;
        this.f24469j = new r1.k(this);
        this.l = false;
        this.f24474m = false;
        this.f24476n = false;
        this.f24477o = false;
        this.f24478p = -1;
        this.f24479q = -1;
        this.f24480r = 0;
        this.f24481s = 0;
        this.f24482t = new int[2];
        this.f24483u = 0;
        this.f24484v = 0;
        this.f24485w = 1.0f;
        this.f24486x = 0;
        this.f24487y = 0;
        this.f24488z = 1.0f;
        this.f24431A = -1;
        this.f24432B = 1.0f;
        this.f24433C = new int[]{Integer.MAX_VALUE, Integer.MAX_VALUE};
        this.f24434D = Float.NaN;
        this.f24435E = false;
        C2962c c2962c = new C2962c(this, 2);
        this.f24436F = c2962c;
        C2962c c2962c2 = new C2962c(this, 3);
        this.f24437G = c2962c2;
        C2962c c2962c3 = new C2962c(this, 4);
        this.f24438H = c2962c3;
        C2962c c2962c4 = new C2962c(this, 5);
        this.f24439I = c2962c4;
        C2962c c2962c5 = new C2962c(this, 6);
        this.f24440J = c2962c5;
        this.f24441K = new C2962c(this, 8);
        this.f24442L = new C2962c(this, 9);
        C2962c c2962c6 = new C2962c(this, 7);
        this.f24443M = c2962c6;
        this.f24444N = new C2962c[]{c2962c, c2962c3, c2962c2, c2962c4, c2962c5, c2962c6};
        this.f24445O = new ArrayList();
        this.f24446P = new boolean[2];
        this.f24475m0 = new int[]{1, 1};
        this.f24447Q = null;
        this.f24450T = 0.0f;
        this.f24451U = -1;
        this.X = 0;
        this.f24456a0 = 0.5f;
        this.f24458b0 = 0.5f;
        this.f24462d0 = 0;
        this.e0 = null;
        this.f0 = 0;
        this.g0 = 0;
        this.h0 = new float[]{-1.0f, -1.0f};
        this.f24468i0 = new d[]{null, null};
        this.f24470j0 = new d[]{null, null};
        this.f24472k0 = -1;
        this.f24473l0 = -1;
        this.f24452V = 0;
        this.f24453W = 0;
        this.f24448R = i6;
        this.f24449S = i7;
        a();
    }
}
