FlixOlé v4.4.0版本的 MD5 值为:50e7f767ca3e8715936523e9ef089581

以下内容为反编译后的 e.java 源代码,内容仅作参考


package g.g.a.m;

import g.g.a.m.d;
import g.g.a.m.o.p;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
public class e {
    public static float O0 = 0.5f;
    public float A;
    public boolean A0;
    public boolean B;
    public boolean B0;
    public boolean C;
    public boolean C0;
    public int D;
    public int D0;
    public float E;
    public int E0;
    public int[] F;
    public boolean F0;
    public float G;
    public boolean G0;
    public boolean H;
    public float[] H0;
    public boolean I;
    public e[] I0;
    public boolean J;
    public e[] J0;
    public int K;
    public e K0;
    public int L;
    public e L0;
    public d M;
    public int M0;
    public d N;
    public int N0;
    public d O;
    public d P;
    public d Q;
    public d R;
    public d S;
    public d T;
    public d[] U;
    public ArrayList<d> V;
    public boolean[] W;
    public b[] X;
    public e Y;
    public int Z;
    public int a0;
    public g.g.a.m.o.c b;
    public float b0;
    public g.g.a.m.o.c c;
    public int c0;
    public int d0;
    public int e0;
    public int f0;
    public int g0;
    public int h0;
    public int i0;
    public int j0;
    public int k0;
    public boolean f2406l;
    public int l0;
    public boolean f2407m;
    public float m0;
    public boolean f2408n;
    public float n0;
    public boolean f2409o;
    public Object o0;
    public int f2410p;
    public int p0;
    public int f2411q;
    public int q0;
    public int r;
    public String r0;
    public int s;
    public String s0;
    public int t;
    public int t0;
    public int[] u;
    public int u0;
    public int v;
    public int v0;
    public int w;
    public int w0;
    public float x;
    public boolean x0;
    public int y;
    public boolean y0;
    public int z;
    public boolean z0;
    public boolean a = false;
    public g.g.a.m.o.l d = null;
    public g.g.a.m.o.n e = null;
    public boolean[] f2400f = {true, true};
    public boolean f2401g = true;
    public boolean f2402h = false;
    public boolean f2403i = true;
    public int f2404j = -1;
    public int f2405k = -1;

    public static class a {
        public static final int[] a;
        public static final int[] b;

        static {
            int[] iArr = new int[b.values().length];
            b = iArr;
            try {
                iArr[b.FIXED.ordinal()] = 1;
            } catch (NoSuchFieldError unused) {
            }
            try {
                b[b.WRAP_CONTENT.ordinal()] = 2;
            } catch (NoSuchFieldError unused2) {
            }
            try {
                b[b.MATCH_PARENT.ordinal()] = 3;
            } catch (NoSuchFieldError unused3) {
            }
            try {
                b[b.MATCH_CONSTRAINT.ordinal()] = 4;
            } catch (NoSuchFieldError unused4) {
            }
            int[] iArr2 = new int[d.b.values().length];
            a = iArr2;
            try {
                iArr2[d.b.LEFT.ordinal()] = 1;
            } catch (NoSuchFieldError unused5) {
            }
            try {
                a[d.b.TOP.ordinal()] = 2;
            } catch (NoSuchFieldError unused6) {
            }
            try {
                a[d.b.RIGHT.ordinal()] = 3;
            } catch (NoSuchFieldError unused7) {
            }
            try {
                a[d.b.BOTTOM.ordinal()] = 4;
            } catch (NoSuchFieldError unused8) {
            }
            try {
                a[d.b.BASELINE.ordinal()] = 5;
            } catch (NoSuchFieldError unused9) {
            }
            try {
                a[d.b.CENTER.ordinal()] = 6;
            } catch (NoSuchFieldError unused10) {
            }
            try {
                a[d.b.CENTER_X.ordinal()] = 7;
            } catch (NoSuchFieldError unused11) {
            }
            try {
                a[d.b.CENTER_Y.ordinal()] = 8;
            } catch (NoSuchFieldError unused12) {
            }
            try {
                a[d.b.NONE.ordinal()] = 9;
            } catch (NoSuchFieldError unused13) {
            }
        }
    }

    public enum b {
        FIXED,
        WRAP_CONTENT,
        MATCH_CONSTRAINT,
        MATCH_PARENT
    }

    public e() {
        new g.g.a.l.a(this);
        this.f2406l = false;
        this.f2407m = false;
        this.f2408n = false;
        this.f2409o = false;
        this.f2410p = -1;
        this.f2411q = -1;
        this.r = 0;
        this.s = 0;
        this.t = 0;
        this.u = new int[2];
        this.v = 0;
        this.w = 0;
        this.x = 1.0f;
        this.y = 0;
        this.z = 0;
        this.A = 1.0f;
        this.D = -1;
        this.E = 1.0f;
        this.F = new int[]{Integer.MAX_VALUE, Integer.MAX_VALUE};
        this.G = 0.0f;
        this.H = false;
        this.J = false;
        this.K = 0;
        this.L = 0;
        d dVar = new d(this, d.b.LEFT);
        this.M = dVar;
        d dVar2 = new d(this, d.b.TOP);
        this.N = dVar2;
        d dVar3 = new d(this, d.b.RIGHT);
        this.O = dVar3;
        d dVar4 = new d(this, d.b.BOTTOM);
        this.P = dVar4;
        d dVar5 = new d(this, d.b.BASELINE);
        this.Q = dVar5;
        this.R = new d(this, d.b.CENTER_X);
        this.S = new d(this, d.b.CENTER_Y);
        d dVar6 = new d(this, d.b.CENTER);
        this.T = dVar6;
        this.U = new d[]{dVar, dVar3, dVar2, dVar4, dVar5, dVar6};
        this.V = new ArrayList<>();
        this.W = new boolean[2];
        b bVar = b.FIXED;
        this.X = new b[]{bVar, bVar};
        this.Y = null;
        this.Z = 0;
        this.a0 = 0;
        this.b0 = 0.0f;
        this.c0 = -1;
        this.d0 = 0;
        this.e0 = 0;
        this.f0 = 0;
        this.g0 = 0;
        this.h0 = 0;
        this.i0 = 0;
        this.j0 = 0;
        float f2 = O0;
        this.m0 = f2;
        this.n0 = f2;
        this.p0 = 0;
        this.q0 = 0;
        this.r0 = null;
        this.s0 = null;
        this.D0 = 0;
        this.E0 = 0;
        this.H0 = new float[]{-1.0f, -1.0f};
        this.I0 = new e[]{null, null};
        this.J0 = new e[]{null, null};
        this.K0 = null;
        this.L0 = null;
        this.M0 = -1;
        this.N0 = -1;
        d();
    }

    public float A() {
        return this.m0;
    }

    public void A0(String str) {
        float f2;
        int i2 = 0;
        if (str == null || str.length() == 0) {
            this.b0 = 0.0f;
            return;
        }
        int i3 = -1;
        int length = str.length();
        int indexOf = str.indexOf(44);
        int i4 = 0;
        if (indexOf > 0 && indexOf < length - 1) {
            String substring = str.substring(0, indexOf);
            if (substring.equalsIgnoreCase("W")) {
                i3 = 0;
            } else if (substring.equalsIgnoreCase("H")) {
                i3 = 1;
            }
            i4 = indexOf + 1;
        }
        int indexOf2 = str.indexOf(58);
        if (indexOf2 < 0 || indexOf2 >= length - 1) {
            String substring2 = str.substring(i4);
            if (substring2.length() > 0) {
                f2 = Float.parseFloat(substring2);
            }
            f2 = 0.0f;
        } else {
            String substring3 = str.substring(i4, indexOf2);
            String substring4 = str.substring(indexOf2 + 1);
            if (substring3.length() > 0 && substring4.length() > 0) {
                float parseFloat = Float.parseFloat(substring3);
                float parseFloat2 = Float.parseFloat(substring4);
                if (parseFloat > 0.0f && parseFloat2 > 0.0f) {
                    f2 = i3 == 1 ? Math.abs(parseFloat2 / parseFloat) : Math.abs(parseFloat / parseFloat2);
                }
            }
            f2 = 0.0f;
        }
        i2 = (f2 > i2 ? 1 : (f2 == i2 ? 0 : -1));
        if (i2 > 0) {
            this.b0 = f2;
            this.c0 = i3;
        }
    }

    public int B() {
        return this.D0;
    }

    public void B0(int i2) {
        if (this.H) {
            int i3 = i2 - this.j0;
            int i4 = this.a0 + i3;
            this.e0 = i3;
            this.N.t(i3);
            this.P.t(i4);
            this.Q.t(i2);
            this.f2407m = true;
        }
    }

    public b C() {
        return this.X[0];
    }

    public void C0(int i2, int i3) {
        if (this.f2406l) {
            return;
        }
        this.M.t(i2);
        this.O.t(i3);
        this.d0 = i2;
        this.Z = i3 - i2;
        this.f2406l = true;
    }

    public int D() {
        d dVar = this.M;
        int i2 = dVar != null ? 0 + dVar.f2397g : 0;
        d dVar2 = this.O;
        return dVar2 != null ? i2 + dVar2.f2397g : i2;
    }

    public void D0(int i2) {
        this.M.t(i2);
        this.d0 = i2;
    }

    public int E() {
        return this.K;
    }

    public void E0(int i2) {
        this.N.t(i2);
        this.e0 = i2;
    }

    public int F() {
        return this.L;
    }

    public void F0(int i2, int i3) {
        if (this.f2407m) {
            return;
        }
        this.N.t(i2);
        this.P.t(i3);
        this.e0 = i2;
        this.a0 = i3 - i2;
        if (this.H) {
            this.Q.t(i2 + this.j0);
        }
        this.f2407m = true;
    }

    public int G(int i2) {
        if (i2 == 0) {
            return V();
        }
        if (i2 == 1) {
            return z();
        }
        return 0;
    }

    public void G0(int i2, int i3, int i4, int i5) {
        int i6;
        int i7;
        int i8 = i4 - i2;
        int i9 = i5 - i3;
        this.d0 = i2;
        this.e0 = i3;
        if (this.q0 == 8) {
            this.Z = 0;
            this.a0 = 0;
            return;
        }
        b[] bVarArr = this.X;
        b bVar = bVarArr[0];
        b bVar2 = b.FIXED;
        if (bVar == bVar2 && i8 < (i7 = this.Z)) {
            i8 = i7;
        }
        if (bVarArr[1] == bVar2 && i9 < (i6 = this.a0)) {
            i9 = i6;
        }
        this.Z = i8;
        this.a0 = i9;
        int i10 = this.l0;
        if (i9 < i10) {
            this.a0 = i10;
        }
        int i11 = this.k0;
        if (i8 < i11) {
            this.Z = i11;
        }
        int i12 = this.w;
        if (i12 > 0 && bVarArr[0] == b.MATCH_CONSTRAINT) {
            this.Z = Math.min(this.Z, i12);
        }
        int i13 = this.z;
        if (i13 > 0 && this.X[1] == b.MATCH_CONSTRAINT) {
            this.a0 = Math.min(this.a0, i13);
        }
        int i14 = this.Z;
        if (i8 != i14) {
            this.f2404j = i14;
        }
        int i15 = this.a0;
        if (i9 != i15) {
            this.f2405k = i15;
        }
    }

    public int H() {
        return this.F[1];
    }

    public void H0(boolean z) {
        this.H = z;
    }

    public int I() {
        return this.F[0];
    }

    public void I0(int i2) {
        this.a0 = i2;
        int i3 = this.l0;
        if (i2 < i3) {
            this.a0 = i3;
        }
    }

    public int J() {
        return this.l0;
    }

    public void J0(float f2) {
        this.m0 = f2;
    }

    public int K() {
        return this.k0;
    }

    public void K0(int i2) {
        this.D0 = i2;
    }

    public e L(int i2) {
        d dVar;
        d dVar2;
        if (i2 != 0) {
            if (i2 == 1 && (dVar2 = (dVar = this.P).f2396f) != null && dVar2.f2396f == dVar) {
                return dVar2.d;
            }
            return null;
        }
        d dVar3 = this.O;
        d dVar4 = dVar3.f2396f;
        if (dVar4 == null || dVar4.f2396f != dVar3) {
            return null;
        }
        return dVar4.d;
    }

    public void L0(int i2, int i3) {
        this.d0 = i2;
        int i4 = i3 - i2;
        this.Z = i4;
        int i5 = this.k0;
        if (i4 < i5) {
            this.Z = i5;
        }
    }

    public e M() {
        return this.Y;
    }

    public void M0(b bVar) {
        this.X[0] = bVar;
    }

    public e N(int i2) {
        d dVar;
        d dVar2;
        if (i2 != 0) {
            if (i2 == 1 && (dVar2 = (dVar = this.N).f2396f) != null && dVar2.f2396f == dVar) {
                return dVar2.d;
            }
            return null;
        }
        d dVar3 = this.M;
        d dVar4 = dVar3.f2396f;
        if (dVar4 == null || dVar4.f2396f != dVar3) {
            return null;
        }
        return dVar4.d;
    }

    public void N0(int i2, int i3, int i4, float f2) {
        this.s = i2;
        this.v = i3;
        if (i4 == Integer.MAX_VALUE) {
            i4 = 0;
        }
        this.w = i4;
        this.x = f2;
        if (f2 <= 0.0f || f2 >= 1.0f || i2 != 0) {
            return;
        }
        this.s = 2;
    }

    public int O() {
        return W() + this.Z;
    }

    public void O0(float f2) {
        this.H0[0] = f2;
    }

    public p P(int i2) {
        if (i2 == 0) {
            return this.d;
        }
        if (i2 == 1) {
            return this.e;
        }
        return null;
    }

    public void P0(int i2, boolean z) {
        this.W[i2] = z;
    }

    public float Q() {
        return this.n0;
    }

    public void Q0(boolean z) {
        this.I = z;
    }

    public int R() {
        return this.E0;
    }

    public void R0(boolean z) {
        this.J = z;
    }

    public b S() {
        return this.X[1];
    }

    public void S0(int i2, int i3) {
        this.K = i2;
        this.L = i3;
        V0(false);
    }

    public int T() {
        int i2 = this.M != null ? 0 + this.N.f2397g : 0;
        return this.O != null ? i2 + this.P.f2397g : i2;
    }

    public void T0(int i2) {
        this.F[1] = i2;
    }

    public int U() {
        return this.q0;
    }

    public void U0(int i2) {
        this.F[0] = i2;
    }

    public int V() {
        if (this.q0 == 8) {
            return 0;
        }
        return this.Z;
    }

    public void V0(boolean z) {
        this.f2401g = z;
    }

    public int W() {
        e eVar = this.Y;
        return (eVar == null || !(eVar instanceof f)) ? this.d0 : ((f) eVar).X0 + this.d0;
    }

    public void W0(int i2) {
        if (i2 < 0) {
            i2 = 0;
        }
        this.l0 = i2;
    }

    public int X() {
        e eVar = this.Y;
        return (eVar == null || !(eVar instanceof f)) ? this.e0 : ((f) eVar).Y0 + this.e0;
    }

    public void X0(int i2) {
        if (i2 < 0) {
            i2 = 0;
        }
        this.k0 = i2;
    }

    public boolean Y() {
        return this.H;
    }

    public void Y0(int i2, int i3) {
        this.d0 = i2;
        this.e0 = i3;
    }

    public boolean Z(int i2) {
        if (i2 == 0) {
            return (this.M.f2396f != null ? 1 : 0) + (this.O.f2396f != null ? 1 : 0) < 2;
        }
        return ((this.N.f2396f != null ? 1 : 0) + (this.P.f2396f != null ? 1 : 0)) + (this.Q.f2396f != null ? 1 : 0) < 2;
    }

    public void Z0(e eVar) {
        this.Y = eVar;
    }

    public boolean a0() {
        int size = this.V.size();
        for (int i2 = 0; i2 < size; i2++) {
            if (this.V.get(i2).m()) {
                return true;
            }
        }
        return false;
    }

    public void a1(float f2) {
        this.n0 = f2;
    }

    public boolean b0() {
        return (this.f2404j == -1 && this.f2405k == -1) ? false : true;
    }

    public void b1(int i2) {
        this.E0 = i2;
    }

    public boolean c0(int i2, int i3) {
        d dVar;
        d dVar2;
        if (i2 == 0) {
            d dVar3 = this.M.f2396f;
            return dVar3 != null && dVar3.n() && (dVar2 = this.O.f2396f) != null && dVar2.n() && (this.O.f2396f.e() - this.O.f()) - (this.M.f2396f.e() + this.M.f()) >= i3;
        }
        d dVar4 = this.N.f2396f;
        return dVar4 != null && dVar4.n() && (dVar = this.P.f2396f) != null && dVar.n() && (this.P.f2396f.e() - this.P.f()) - (this.N.f2396f.e() + this.N.f()) >= i3;
        return false;
    }

    public void c1(int i2, int i3) {
        this.e0 = i2;
        int i4 = i3 - i2;
        this.a0 = i4;
        int i5 = this.l0;
        if (i4 < i5) {
            this.a0 = i5;
        }
    }

    public final void d() {
        this.V.add(this.M);
        this.V.add(this.N);
        this.V.add(this.O);
        this.V.add(this.P);
        this.V.add(this.R);
        this.V.add(this.S);
        this.V.add(this.T);
        this.V.add(this.Q);
    }

    public void d0(d.b bVar, e eVar, d.b bVar2, int i2, int i3) {
        q(bVar).b(eVar.q(bVar2), i2, i3, true);
    }

    public void d1(b bVar) {
        this.X[1] = bVar;
    }

    public void e(f fVar, g.g.a.d dVar, HashSet<e> hashSet, int i2, boolean z) {
        if (z) {
            if (!hashSet.contains(this)) {
                return;
            }
            k.a(fVar, dVar, this);
            hashSet.remove(this);
            g(dVar, fVar.Q1(64));
        }
        if (i2 == 0) {
            HashSet<d> d = this.M.d();
            if (d != null) {
                Iterator<d> it = d.iterator();
                while (it.hasNext()) {
                    it.next().d.e(fVar, dVar, hashSet, i2, true);
                }
            }
            HashSet<d> d2 = this.O.d();
            if (d2 != null) {
                Iterator<d> it2 = d2.iterator();
                while (it2.hasNext()) {
                    it2.next().d.e(fVar, dVar, hashSet, i2, true);
                }
                return;
            }
            return;
        }
        HashSet<d> d3 = this.N.d();
        if (d3 != null) {
            Iterator<d> it3 = d3.iterator();
            while (it3.hasNext()) {
                it3.next().d.e(fVar, dVar, hashSet, i2, true);
            }
        }
        HashSet<d> d4 = this.P.d();
        if (d4 != null) {
            Iterator<d> it4 = d4.iterator();
            while (it4.hasNext()) {
                it4.next().d.e(fVar, dVar, hashSet, i2, true);
            }
        }
        HashSet<d> d5 = this.Q.d();
        if (d5 != null) {
            Iterator<d> it5 = d5.iterator();
            while (it5.hasNext()) {
                it5.next().d.e(fVar, dVar, hashSet, i2, true);
            }
        }
    }

    public final boolean e0(int i2) {
        int i3 = i2 * 2;
        d[] dVarArr = this.U;
        if (dVarArr[i3].f2396f != null && dVarArr[i3].f2396f.f2396f != dVarArr[i3]) {
            int i4 = i3 + 1;
            if (dVarArr[i4].f2396f != null && dVarArr[i4].f2396f.f2396f == dVarArr[i4]) {
                return true;
            }
        }
        return false;
    }

    public void e1(int i2, int i3, int i4, float f2) {
        this.t = i2;
        this.y = i3;
        if (i4 == Integer.MAX_VALUE) {
            i4 = 0;
        }
        this.z = i4;
        this.A = f2;
        if (f2 <= 0.0f || f2 >= 1.0f || i2 != 0) {
            return;
        }
        this.t = 2;
    }

    public boolean f() {
        return (this instanceof m) || (this instanceof h);
    }

    public boolean f0() {
        return this.f2408n;
    }

    public void f1(float f2) {
        this.H0[1] = f2;
    }

    public void g(g.g.a.d dVar, boolean z) {
        boolean z2;
        boolean z3;
        boolean z4;
        e eVar;
        e eVar2;
        g.g.a.e eVar3;
        boolean z5;
        boolean z6;
        int i2;
        int i3;
        int i4;
        int i5;
        float f2;
        g.g.a.i iVar;
        char c;
        int i6;
        int i7;
        int i8;
        int i9;
        boolean z7;
        int i10;
        boolean z8;
        b bVar;
        boolean z9;
        int i11;
        boolean z10;
        boolean z11;
        boolean z12;
        boolean z13;
        b bVar2;
        b bVar3;
        g.g.a.i iVar2;
        g.g.a.i iVar3;
        g.g.a.i iVar4;
        g.g.a.i iVar5;
        g.g.a.i iVar6;
        int i12;
        int i13;
        char c2;
        e eVar4;
        g.g.a.d dVar2;
        g.g.a.i iVar7;
        g.g.a.i iVar8;
        g.g.a.i iVar9;
        boolean z14;
        g.g.a.i iVar10;
        g.g.a.i iVar11;
        e eVar5;
        g.g.a.d dVar3;
        g.g.a.i iVar12;
        g.g.a.i iVar13;
        g.g.a.i iVar14;
        g.g.a.i iVar15;
        boolean z15;
        g.g.a.m.o.l lVar;
        g.g.a.m.o.f fVar;
        int i14;
        int i15;
        boolean h0;
        boolean j0;
        g.g.a.m.o.l lVar2;
        g.g.a.m.o.n nVar;
        g.g.a.m.o.f fVar2;
        boolean[] zArr;
        g.g.a.i q2 = dVar.q(this.M);
        g.g.a.i q3 = dVar.q(this.O);
        g.g.a.i q4 = dVar.q(this.N);
        g.g.a.i q5 = dVar.q(this.P);
        g.g.a.i q6 = dVar.q(this.Q);
        e eVar6 = this.Y;
        if (eVar6 != null) {
            boolean z16 = eVar6 != null && eVar6.X[0] == b.WRAP_CONTENT;
            boolean z17 = eVar6 != null && eVar6.X[1] == b.WRAP_CONTENT;
            int i16 = this.r;
            if (i16 == 1) {
                z2 = z16;
                z3 = false;
                if (this.q0 == 8) {
                    zArr = this.W;
                    if (!zArr[0]) {
                        return;
                    }
                }
                z4 = this.f2406l;
                if (!z4) {
                }
                if (z4) {
                }
                if (this.f2407m) {
                }
                if (this.f2406l) {
                    this.f2406l = false;
                    this.f2407m = false;
                    return;
                }
                eVar3 = g.g.a.d.x;
                if (eVar3 != null) {
                }
                if (z) {
                    fVar2 = lVar2.f2451h;
                    if (fVar2.f2441j) {
                        if (eVar3 != null) {
                        }
                        dVar.f(q2, fVar2.f2438g);
                        dVar.f(q3, this.d.f2452i.f2438g);
                        dVar.f(q4, this.e.f2451h.f2438g);
                        dVar.f(q5, this.e.f2452i.f2438g);
                        dVar.f(q6, this.e.f2446k.f2438g);
                        if (this.Y != null) {
                        }
                        this.f2406l = false;
                        this.f2407m = false;
                        return;
                    }
                }
                if (eVar3 != null) {
                }
                if (this.Y != null) {
                }
                i2 = this.Z;
                i3 = this.k0;
                if (i2 >= i3) {
                }
                i4 = this.a0;
                i5 = this.l0;
                if (i4 >= i5) {
                }
                b[] bVarArr = this.X;
                b bVar4 = bVarArr[0];
                b bVar5 = b.MATCH_CONSTRAINT;
                int i17 = i3;
                if (bVar4 != bVar5) {
                }
                int i18 = i5;
                if (bVarArr[1] != bVar5) {
                }
                int i19 = this.c0;
                this.D = i19;
                f2 = this.b0;
                this.E = f2;
                int i20 = this.s;
                int i21 = this.t;
                if (f2 > 0.0f) {
                }
                c = 0;
                i6 = i20;
                i7 = i21;
                i8 = i17;
                i9 = i18;
                z7 = false;
                int[] iArr = this.u;
                iArr[c] = i6;
                iArr[1] = i7;
                if (z7) {
                }
                z8 = false;
                if (z7) {
                }
                b bVar6 = this.X[0];
                bVar = b.WRAP_CONTENT;
                if (bVar6 != bVar) {
                }
                if (!z9) {
                }
                z10 = !this.T.o();
                boolean[] zArr2 = this.W;
                z11 = zArr2[0];
                boolean z18 = zArr2[1];
                if (this.f2410p != 2) {
                }
                z12 = z2;
                z13 = z3;
                bVar2 = bVar5;
                bVar3 = bVar;
                iVar2 = q6;
                iVar3 = q5;
                iVar4 = q4;
                iVar5 = q3;
                iVar6 = iVar;
                if (z) {
                }
                z14 = true;
                if (eVar4.f2411q != 2 ? false : z14) {
                }
                iVar10 = iVar8;
                iVar11 = iVar9;
                if (z7) {
                }
                if (eVar5.T.o()) {
                }
                eVar5.f2406l = false;
                eVar5.f2407m = false;
            }
            if (i16 == 2) {
                z3 = z17;
                z2 = false;
            } else if (i16 != 3) {
                z3 = z17;
                z2 = z16;
            }
            if (this.q0 == 8 && !a0()) {
                zArr = this.W;
                if (!zArr[0] && !zArr[1]) {
                    return;
                }
            }
            z4 = this.f2406l;
            if (!z4 || this.f2407m) {
                if (z4) {
                    dVar.f(q2, this.d0);
                    dVar.f(q3, this.d0 + this.Z);
                    if (z2 && (eVar2 = this.Y) != null) {
                        if (this.f2403i) {
                            f fVar3 = (f) eVar2;
                            fVar3.w1(this.M);
                            fVar3.v1(this.O);
                        } else {
                            dVar.h(dVar.q(eVar2.O), q3, 0, 5);
                        }
                    }
                }
                if (this.f2407m) {
                    dVar.f(q4, this.e0);
                    dVar.f(q5, this.e0 + this.a0);
                    if (this.Q.m()) {
                        dVar.f(q6, this.e0 + this.j0);
                    }
                    if (z3 && (eVar = this.Y) != null) {
                        if (this.f2403i) {
                            f fVar4 = (f) eVar;
                            fVar4.B1(this.N);
                            fVar4.A1(this.P);
                        } else {
                            dVar.h(dVar.q(eVar.P), q5, 0, 5);
                        }
                    }
                }
                if (this.f2406l && this.f2407m) {
                    this.f2406l = false;
                    this.f2407m = false;
                    return;
                }
            }
            eVar3 = g.g.a.d.x;
            if (eVar3 != null) {
                eVar3.y++;
            }
            if (z && (lVar2 = this.d) != null && (nVar = this.e) != null) {
                fVar2 = lVar2.f2451h;
                if (fVar2.f2441j && lVar2.f2452i.f2441j && nVar.f2451h.f2441j && nVar.f2452i.f2441j) {
                    if (eVar3 != null) {
                        eVar3.r++;
                    }
                    dVar.f(q2, fVar2.f2438g);
                    dVar.f(q3, this.d.f2452i.f2438g);
                    dVar.f(q4, this.e.f2451h.f2438g);
                    dVar.f(q5, this.e.f2452i.f2438g);
                    dVar.f(q6, this.e.f2446k.f2438g);
                    if (this.Y != null) {
                        if (z2 && this.f2400f[0] && !h0()) {
                            dVar.h(dVar.q(this.Y.O), q3, 0, 8);
                        }
                        if (z3 && this.f2400f[1] && !j0()) {
                            dVar.h(dVar.q(this.Y.P), q5, 0, 8);
                        }
                    }
                    this.f2406l = false;
                    this.f2407m = false;
                    return;
                }
            }
            if (eVar3 != null) {
                eVar3.s++;
            }
            if (this.Y != null) {
                if (e0(0)) {
                    ((f) this.Y).s1(this, 0);
                    h0 = true;
                } else {
                    h0 = h0();
                }
                if (e0(1)) {
                    ((f) this.Y).s1(this, 1);
                    j0 = true;
                } else {
                    j0 = j0();
                }
                if (!h0 && z2 && this.q0 != 8 && this.M.f2396f == null && this.O.f2396f == null) {
                    dVar.h(dVar.q(this.Y.O), q3, 0, 1);
                }
                if (!j0 && z3 && this.q0 != 8 && this.N.f2396f == null && this.P.f2396f == null && this.Q == null) {
                    dVar.h(dVar.q(this.Y.P), q5, 0, 1);
                }
                z6 = h0;
                z5 = j0;
            } else {
                z5 = false;
                z6 = false;
            }
            i2 = this.Z;
            i3 = this.k0;
            if (i2 >= i3) {
                i3 = i2;
            }
            i4 = this.a0;
            i5 = this.l0;
            if (i4 >= i5) {
                i5 = i4;
            }
            b[] bVarArr2 = this.X;
            b bVar42 = bVarArr2[0];
            b bVar52 = b.MATCH_CONSTRAINT;
            int i172 = i3;
            boolean z19 = bVar42 != bVar52;
            int i182 = i5;
            boolean z20 = bVarArr2[1] != bVar52;
            int i192 = this.c0;
            this.D = i192;
            f2 = this.b0;
            this.E = f2;
            int i202 = this.s;
            int i212 = this.t;
            if (f2 > 0.0f) {
                iVar = q2;
                if (this.q0 != 8) {
                    if (bVarArr2[0] == bVar52 && i202 == 0) {
                        i202 = 3;
                    }
                    if (bVarArr2[1] == bVar52 && i212 == 0) {
                        i212 = 3;
                    }
                    if (bVarArr2[0] == bVar52 && bVarArr2[1] == bVar52) {
                        i15 = 3;
                        if (i202 == 3 && i212 == 3) {
                            l1(z2, z3, z19, z20);
                            c = 0;
                            i6 = i202;
                            i7 = i212;
                            i8 = i172;
                            i9 = i182;
                            z7 = true;
                            int[] iArr2 = this.u;
                            iArr2[c] = i6;
                            iArr2[1] = i7;
                            if (z7) {
                                int i22 = this.D;
                                i10 = -1;
                                if (i22 == 0 || i22 == -1) {
                                    z8 = true;
                                    boolean z21 = !z7 && ((i14 = this.D) == 1 || i14 == i10);
                                    b bVar62 = this.X[0];
                                    bVar = b.WRAP_CONTENT;
                                    z9 = bVar62 != bVar && (this instanceof f);
                                    i11 = !z9 ? 0 : i8;
                                    z10 = !this.T.o();
                                    boolean[] zArr22 = this.W;
                                    z11 = zArr22[0];
                                    boolean z182 = zArr22[1];
                                    if (this.f2410p != 2 && !this.f2406l) {
                                        if (z && (lVar = this.d) != null) {
                                            fVar = lVar.f2451h;
                                            if (fVar.f2441j && lVar.f2452i.f2441j) {
                                                if (!z) {
                                                    g.g.a.i iVar16 = iVar;
                                                    dVar.f(iVar16, fVar.f2438g);
                                                    dVar.f(q3, this.d.f2452i.f2438g);
                                                    if (this.Y != null && z2 && this.f2400f[0] && !h0()) {
                                                        dVar.h(dVar.q(this.Y.O), q3, 0, 8);
                                                    }
                                                    z12 = z2;
                                                    z13 = z3;
                                                    bVar2 = bVar52;
                                                    bVar3 = bVar;
                                                    iVar2 = q6;
                                                    iVar3 = q5;
                                                    iVar4 = q4;
                                                    iVar5 = q3;
                                                    iVar6 = iVar16;
                                                    if (z) {
                                                        eVar4 = this;
                                                        g.g.a.m.o.n nVar2 = eVar4.e;
                                                        if (nVar2 != null) {
                                                            g.g.a.m.o.f fVar5 = nVar2.f2451h;
                                                            if (fVar5.f2441j && nVar2.f2452i.f2441j) {
                                                                dVar2 = dVar;
                                                                iVar9 = iVar4;
                                                                dVar2.f(iVar9, fVar5.f2438g);
                                                                iVar8 = iVar3;
                                                                dVar2.f(iVar8, eVar4.e.f2452i.f2438g);
                                                                iVar7 = iVar2;
                                                                dVar2.f(iVar7, eVar4.e.f2446k.f2438g);
                                                                e eVar7 = eVar4.Y;
                                                                if (eVar7 == null || z5 || !z13) {
                                                                    i12 = 8;
                                                                    i13 = 0;
                                                                    c2 = 1;
                                                                } else {
                                                                    c2 = 1;
                                                                    if (eVar4.f2400f[1]) {
                                                                        i12 = 8;
                                                                        i13 = 0;
                                                                        dVar2.h(dVar2.q(eVar7.P), iVar8, 0, 8);
                                                                    } else {
                                                                        i12 = 8;
                                                                        i13 = 0;
                                                                    }
                                                                }
                                                                z14 = false;
                                                                if ((eVar4.f2411q != 2 ? false : z14) || eVar4.f2407m) {
                                                                    iVar10 = iVar8;
                                                                    iVar11 = iVar9;
                                                                } else {
                                                                    boolean z22 = eVar4.X[c2] == bVar3 && (eVar4 instanceof f);
                                                                    if (z22) {
                                                                        i9 = 0;
                                                                    }
                                                                    e eVar8 = eVar4.Y;
                                                                    g.g.a.i q7 = eVar8 != null ? dVar2.q(eVar8.P) : null;
                                                                    e eVar9 = eVar4.Y;
                                                                    g.g.a.i q8 = eVar9 != null ? dVar2.q(eVar9.N) : null;
                                                                    if (eVar4.j0 > 0 || eVar4.q0 == i12) {
                                                                        d dVar4 = eVar4.Q;
                                                                        if (dVar4.f2396f != null) {
                                                                            dVar2.e(iVar7, iVar9, r(), i12);
                                                                            dVar2.e(iVar7, dVar2.q(eVar4.Q.f2396f), eVar4.Q.f(), i12);
                                                                            if (z13) {
                                                                                dVar2.h(q7, dVar2.q(eVar4.P), i13, 5);
                                                                            }
                                                                            z15 = false;
                                                                            boolean z23 = eVar4.f2400f[c2];
                                                                            b[] bVarArr3 = eVar4.X;
                                                                            iVar10 = iVar8;
                                                                            iVar11 = iVar9;
                                                                            i(dVar, false, z13, z12, z23, q8, q7, bVarArr3[c2], z22, eVar4.N, eVar4.P, eVar4.e0, i9, eVar4.l0, eVar4.F[c2], eVar4.n0, z21, bVarArr3[0] != bVar2, z5, z6, z182, i7, i6, eVar4.y, eVar4.z, eVar4.A, z15);
                                                                        } else {
                                                                            dVar2.e(iVar7, iVar9, eVar4.q0 == i12 ? dVar4.f() : r(), i12);
                                                                        }
                                                                    }
                                                                    z15 = z10;
                                                                    boolean z232 = eVar4.f2400f[c2];
                                                                    b[] bVarArr32 = eVar4.X;
                                                                    iVar10 = iVar8;
                                                                    iVar11 = iVar9;
                                                                    i(dVar, false, z13, z12, z232, q8, q7, bVarArr32[c2], z22, eVar4.N, eVar4.P, eVar4.e0, i9, eVar4.l0, eVar4.F[c2], eVar4.n0, z21, bVarArr32[0] != bVar2, z5, z6, z182, i7, i6, eVar4.y, eVar4.z, eVar4.A, z15);
                                                                }
                                                                if (z7) {
                                                                    eVar5 = this;
                                                                } else {
                                                                    int i23 = 8;
                                                                    eVar5 = this;
                                                                    int i24 = eVar5.D;
                                                                    float f3 = eVar5.E;
                                                                    if (i24 == 1) {
                                                                        dVar3 = dVar;
                                                                        iVar12 = iVar10;
                                                                        iVar13 = iVar11;
                                                                        iVar14 = iVar5;
                                                                        iVar15 = iVar6;
                                                                    } else {
                                                                        i23 = 8;
                                                                        dVar3 = dVar;
                                                                        iVar12 = iVar5;
                                                                        iVar13 = iVar6;
                                                                        iVar14 = iVar10;
                                                                        iVar15 = iVar11;
                                                                    }
                                                                    dVar3.k(iVar12, iVar13, iVar14, iVar15, f3, i23);
                                                                }
                                                                if (eVar5.T.o()) {
                                                                    dVar.b(eVar5, eVar5.T.j().h(), (float) Math.toRadians(eVar5.G + 90.0f), eVar5.T.f());
                                                                }
                                                                eVar5.f2406l = false;
                                                                eVar5.f2407m = false;
                                                            }
                                                        }
                                                        dVar2 = dVar;
                                                        iVar7 = iVar2;
                                                        iVar8 = iVar3;
                                                        iVar9 = iVar4;
                                                        i12 = 8;
                                                        i13 = 0;
                                                        c2 = 1;
                                                    } else {
                                                        i12 = 8;
                                                        i13 = 0;
                                                        c2 = 1;
                                                        eVar4 = this;
                                                        dVar2 = dVar;
                                                        iVar7 = iVar2;
                                                        iVar8 = iVar3;
                                                        iVar9 = iVar4;
                                                    }
                                                    z14 = true;
                                                    if (eVar4.f2411q != 2 ? false : z14) {
                                                    }
                                                    iVar10 = iVar8;
                                                    iVar11 = iVar9;
                                                    if (z7) {
                                                    }
                                                    if (eVar5.T.o()) {
                                                    }
                                                    eVar5.f2406l = false;
                                                    eVar5.f2407m = false;
                                                }
                                            }
                                        }
                                        g.g.a.i iVar17 = iVar;
                                        e eVar10 = this.Y;
                                        g.g.a.i q9 = eVar10 == null ? dVar.q(eVar10.O) : null;
                                        e eVar11 = this.Y;
                                        g.g.a.i q10 = eVar11 == null ? dVar.q(eVar11.M) : null;
                                        boolean z24 = this.f2400f[0];
                                        b[] bVarArr4 = this.X;
                                        z12 = z2;
                                        z13 = z3;
                                        bVar2 = bVar52;
                                        iVar2 = q6;
                                        iVar3 = q5;
                                        iVar4 = q4;
                                        iVar5 = q3;
                                        iVar6 = iVar17;
                                        bVar3 = bVar;
                                        i(dVar, true, z2, z3, z24, q10, q9, bVarArr4[0], z9, this.M, this.O, this.d0, i11, this.k0, this.F[0], this.m0, z8, bVarArr4[1] != bVar52, z6, z5, z11, i6, i7, this.v, this.w, this.x, z10);
                                        if (z) {
                                        }
                                        z14 = true;
                                        if (eVar4.f2411q != 2 ? false : z14) {
                                        }
                                        iVar10 = iVar8;
                                        iVar11 = iVar9;
                                        if (z7) {
                                        }
                                        if (eVar5.T.o()) {
                                        }
                                        eVar5.f2406l = false;
                                        eVar5.f2407m = false;
                                    }
                                    z12 = z2;
                                    z13 = z3;
                                    bVar2 = bVar52;
                                    bVar3 = bVar;
                                    iVar2 = q6;
                                    iVar3 = q5;
                                    iVar4 = q4;
                                    iVar5 = q3;
                                    iVar6 = iVar;
                                    if (z) {
                                    }
                                    z14 = true;
                                    if (eVar4.f2411q != 2 ? false : z14) {
                                    }
                                    iVar10 = iVar8;
                                    iVar11 = iVar9;
                                    if (z7) {
                                    }
                                    if (eVar5.T.o()) {
                                    }
                                    eVar5.f2406l = false;
                                    eVar5.f2407m = false;
                                }
                            } else {
                                i10 = -1;
                            }
                            z8 = false;
                            if (z7) {
                            }
                            b bVar622 = this.X[0];
                            bVar = b.WRAP_CONTENT;
                            if (bVar622 != bVar) {
                            }
                            if (!z9) {
                            }
                            z10 = !this.T.o();
                            boolean[] zArr222 = this.W;
                            z11 = zArr222[0];
                            boolean z1822 = zArr222[1];
                            if (this.f2410p != 2) {
                                if (z) {
                                    fVar = lVar.f2451h;
                                    if (fVar.f2441j) {
                                        if (!z) {
                                        }
                                    }
                                }
                                g.g.a.i iVar172 = iVar;
                                e eVar102 = this.Y;
                                if (eVar102 == null) {
                                }
                                e eVar112 = this.Y;
                                if (eVar112 == null) {
                                }
                                boolean z242 = this.f2400f[0];
                                b[] bVarArr42 = this.X;
                                z12 = z2;
                                z13 = z3;
                                bVar2 = bVar52;
                                iVar2 = q6;
                                iVar3 = q5;
                                iVar4 = q4;
                                iVar5 = q3;
                                iVar6 = iVar172;
                                bVar3 = bVar;
                                i(dVar, true, z2, z3, z242, q10, q9, bVarArr42[0], z9, this.M, this.O, this.d0, i11, this.k0, this.F[0], this.m0, z8, bVarArr42[1] != bVar52, z6, z5, z11, i6, i7, this.v, this.w, this.x, z10);
                                if (z) {
                                }
                                z14 = true;
                                if (eVar4.f2411q != 2 ? false : z14) {
                                }
                                iVar10 = iVar8;
                                iVar11 = iVar9;
                                if (z7) {
                                }
                                if (eVar5.T.o()) {
                                }
                                eVar5.f2406l = false;
                                eVar5.f2407m = false;
                            }
                            z12 = z2;
                            z13 = z3;
                            bVar2 = bVar52;
                            bVar3 = bVar;
                            iVar2 = q6;
                            iVar3 = q5;
                            iVar4 = q4;
                            iVar5 = q3;
                            iVar6 = iVar;
                            if (z) {
                            }
                            z14 = true;
                            if (eVar4.f2411q != 2 ? false : z14) {
                            }
                            iVar10 = iVar8;
                            iVar11 = iVar9;
                            if (z7) {
                            }
                            if (eVar5.T.o()) {
                            }
                            eVar5.f2406l = false;
                            eVar5.f2407m = false;
                        }
                    } else {
                        i15 = 3;
                    }
                    if (bVarArr2[0] == bVar52 && i202 == i15) {
                        this.D = 0;
                        i8 = (int) (f2 * i4);
                        if (bVarArr2[1] != bVar52) {
                            i7 = i212;
                            i9 = i182;
                            c = 0;
                            z7 = false;
                            i6 = 4;
                            int[] iArr22 = this.u;
                            iArr22[c] = i6;
                            iArr22[1] = i7;
                            if (z7) {
                            }
                            z8 = false;
                            if (z7) {
                            }
                            b bVar6222 = this.X[0];
                            bVar = b.WRAP_CONTENT;
                            if (bVar6222 != bVar) {
                            }
                            if (!z9) {
                            }
                            z10 = !this.T.o();
                            boolean[] zArr2222 = this.W;
                            z11 = zArr2222[0];
                            boolean z18222 = zArr2222[1];
                            if (this.f2410p != 2) {
                            }
                            z12 = z2;
                            z13 = z3;
                            bVar2 = bVar52;
                            bVar3 = bVar;
                            iVar2 = q6;
                            iVar3 = q5;
                            iVar4 = q4;
                            iVar5 = q3;
                            iVar6 = iVar;
                            if (z) {
                            }
                            z14 = true;
                            if (eVar4.f2411q != 2 ? false : z14) {
                            }
                            iVar10 = iVar8;
                            iVar11 = iVar9;
                            if (z7) {
                            }
                            if (eVar5.T.o()) {
                            }
                            eVar5.f2406l = false;
                            eVar5.f2407m = false;
                        }
                        i6 = i202;
                        i7 = i212;
                        i9 = i182;
                        c = 0;
                        z7 = true;
                        int[] iArr222 = this.u;
                        iArr222[c] = i6;
                        iArr222[1] = i7;
                        if (z7) {
                        }
                        z8 = false;
                        if (z7) {
                        }
                        b bVar62222 = this.X[0];
                        bVar = b.WRAP_CONTENT;
                        if (bVar62222 != bVar) {
                        }
                        if (!z9) {
                        }
                        z10 = !this.T.o();
                        boolean[] zArr22222 = this.W;
                        z11 = zArr22222[0];
                        boolean z182222 = zArr22222[1];
                        if (this.f2410p != 2) {
                        }
                        z12 = z2;
                        z13 = z3;
                        bVar2 = bVar52;
                        bVar3 = bVar;
                        iVar2 = q6;
                        iVar3 = q5;
                        iVar4 = q4;
                        iVar5 = q3;
                        iVar6 = iVar;
                        if (z) {
                        }
                        z14 = true;
                        if (eVar4.f2411q != 2 ? false : z14) {
                        }
                        iVar10 = iVar8;
                        iVar11 = iVar9;
                        if (z7) {
                        }
                        if (eVar5.T.o()) {
                        }
                        eVar5.f2406l = false;
                        eVar5.f2407m = false;
                    }
                    if (bVarArr2[1] == bVar52 && i212 == 3) {
                        this.D = 1;
                        if (i192 == -1) {
                            this.E = 1.0f / f2;
                        }
                        int i25 = (int) (this.E * i2);
                        c = 0;
                        i9 = i25;
                        i6 = i202;
                        if (bVarArr2[0] != bVar52) {
                            i8 = i172;
                            z7 = false;
                            i7 = 4;
                            int[] iArr2222 = this.u;
                            iArr2222[c] = i6;
                            iArr2222[1] = i7;
                            if (z7) {
                            }
                            z8 = false;
                            if (z7) {
                            }
                            b bVar622222 = this.X[0];
                            bVar = b.WRAP_CONTENT;
                            if (bVar622222 != bVar) {
                            }
                            if (!z9) {
                            }
                            z10 = !this.T.o();
                            boolean[] zArr222222 = this.W;
                            z11 = zArr222222[0];
                            boolean z1822222 = zArr222222[1];
                            if (this.f2410p != 2) {
                            }
                            z12 = z2;
                            z13 = z3;
                            bVar2 = bVar52;
                            bVar3 = bVar;
                            iVar2 = q6;
                            iVar3 = q5;
                            iVar4 = q4;
                            iVar5 = q3;
                            iVar6 = iVar;
                            if (z) {
                            }
                            z14 = true;
                            if (eVar4.f2411q != 2 ? false : z14) {
                            }
                            iVar10 = iVar8;
                            iVar11 = iVar9;
                            if (z7) {
                            }
                            if (eVar5.T.o()) {
                            }
                            eVar5.f2406l = false;
                            eVar5.f2407m = false;
                        }
                        i7 = i212;
                        i8 = i172;
                        z7 = true;
                        int[] iArr22222 = this.u;
                        iArr22222[c] = i6;
                        iArr22222[1] = i7;
                        if (z7) {
                        }
                        z8 = false;
                        if (z7) {
                        }
                        b bVar6222222 = this.X[0];
                        bVar = b.WRAP_CONTENT;
                        if (bVar6222222 != bVar) {
                        }
                        if (!z9) {
                        }
                        z10 = !this.T.o();
                        boolean[] zArr2222222 = this.W;
                        z11 = zArr2222222[0];
                        boolean z18222222 = zArr2222222[1];
                        if (this.f2410p != 2) {
                        }
                        z12 = z2;
                        z13 = z3;
                        bVar2 = bVar52;
                        bVar3 = bVar;
                        iVar2 = q6;
                        iVar3 = q5;
                        iVar4 = q4;
                        iVar5 = q3;
                        iVar6 = iVar;
                        if (z) {
                        }
                        z14 = true;
                        if (eVar4.f2411q != 2 ? false : z14) {
                        }
                        iVar10 = iVar8;
                        iVar11 = iVar9;
                        if (z7) {
                        }
                        if (eVar5.T.o()) {
                        }
                        eVar5.f2406l = false;
                        eVar5.f2407m = false;
                    }
                    c = 0;
                    i6 = i202;
                    i7 = i212;
                    i8 = i172;
                    i9 = i182;
                    z7 = true;
                    int[] iArr222222 = this.u;
                    iArr222222[c] = i6;
                    iArr222222[1] = i7;
                    if (z7) {
                    }
                    z8 = false;
                    if (z7) {
                    }
                    b bVar62222222 = this.X[0];
                    bVar = b.WRAP_CONTENT;
                    if (bVar62222222 != bVar) {
                    }
                    if (!z9) {
                    }
                    z10 = !this.T.o();
                    boolean[] zArr22222222 = this.W;
                    z11 = zArr22222222[0];
                    boolean z182222222 = zArr22222222[1];
                    if (this.f2410p != 2) {
                    }
                    z12 = z2;
                    z13 = z3;
                    bVar2 = bVar52;
                    bVar3 = bVar;
                    iVar2 = q6;
                    iVar3 = q5;
                    iVar4 = q4;
                    iVar5 = q3;
                    iVar6 = iVar;
                    if (z) {
                    }
                    z14 = true;
                    if (eVar4.f2411q != 2 ? false : z14) {
                    }
                    iVar10 = iVar8;
                    iVar11 = iVar9;
                    if (z7) {
                    }
                    if (eVar5.T.o()) {
                    }
                    eVar5.f2406l = false;
                    eVar5.f2407m = false;
                }
            } else {
                iVar = q2;
            }
            c = 0;
            i6 = i202;
            i7 = i212;
            i8 = i172;
            i9 = i182;
            z7 = false;
            int[] iArr2222222 = this.u;
            iArr2222222[c] = i6;
            iArr2222222[1] = i7;
            if (z7) {
            }
            z8 = false;
            if (z7) {
            }
            b bVar622222222 = this.X[0];
            bVar = b.WRAP_CONTENT;
            if (bVar622222222 != bVar) {
            }
            if (!z9) {
            }
            z10 = !this.T.o();
            boolean[] zArr222222222 = this.W;
            z11 = zArr222222222[0];
            boolean z1822222222 = zArr222222222[1];
            if (this.f2410p != 2) {
            }
            z12 = z2;
            z13 = z3;
            bVar2 = bVar52;
            bVar3 = bVar;
            iVar2 = q6;
            iVar3 = q5;
            iVar4 = q4;
            iVar5 = q3;
            iVar6 = iVar;
            if (z) {
            }
            z14 = true;
            if (eVar4.f2411q != 2 ? false : z14) {
            }
            iVar10 = iVar8;
            iVar11 = iVar9;
            if (z7) {
            }
            if (eVar5.T.o()) {
            }
            eVar5.f2406l = false;
            eVar5.f2407m = false;
        }
        z2 = false;
        z3 = false;
        if (this.q0 == 8) {
        }
        z4 = this.f2406l;
        if (!z4) {
        }
        if (z4) {
        }
        if (this.f2407m) {
        }
        if (this.f2406l) {
        }
        eVar3 = g.g.a.d.x;
        if (eVar3 != null) {
        }
        if (z) {
        }
        if (eVar3 != null) {
        }
        if (this.Y != null) {
        }
        i2 = this.Z;
        i3 = this.k0;
        if (i2 >= i3) {
        }
        i4 = this.a0;
        i5 = this.l0;
        if (i4 >= i5) {
        }
        b[] bVarArr22 = this.X;
        b bVar422 = bVarArr22[0];
        b bVar522 = b.MATCH_CONSTRAINT;
        int i1722 = i3;
        if (bVar422 != bVar522) {
        }
        int i1822 = i5;
        if (bVarArr22[1] != bVar522) {
        }
        int i1922 = this.c0;
        this.D = i1922;
        f2 = this.b0;
        this.E = f2;
        int i2022 = this.s;
        int i2122 = this.t;
        if (f2 > 0.0f) {
        }
        c = 0;
        i6 = i2022;
        i7 = i2122;
        i8 = i1722;
        i9 = i1822;
        z7 = false;
        int[] iArr22222222 = this.u;
        iArr22222222[c] = i6;
        iArr22222222[1] = i7;
        if (z7) {
        }
        z8 = false;
        if (z7) {
        }
        b bVar6222222222 = this.X[0];
        bVar = b.WRAP_CONTENT;
        if (bVar6222222222 != bVar) {
        }
        if (!z9) {
        }
        z10 = !this.T.o();
        boolean[] zArr2222222222 = this.W;
        z11 = zArr2222222222[0];
        boolean z18222222222 = zArr2222222222[1];
        if (this.f2410p != 2) {
        }
        z12 = z2;
        z13 = z3;
        bVar2 = bVar522;
        bVar3 = bVar;
        iVar2 = q6;
        iVar3 = q5;
        iVar4 = q4;
        iVar5 = q3;
        iVar6 = iVar;
        if (z) {
        }
        z14 = true;
        if (eVar4.f2411q != 2 ? false : z14) {
        }
        iVar10 = iVar8;
        iVar11 = iVar9;
        if (z7) {
        }
        if (eVar5.T.o()) {
        }
        eVar5.f2406l = false;
        eVar5.f2407m = false;
    }

    public boolean g0(int i2) {
        return this.W[i2];
    }

    public void g1(int i2) {
        this.q0 = i2;
    }

    public boolean h() {
        return this.q0 != 8;
    }

    public boolean h0() {
        d dVar = this.M;
        d dVar2 = dVar.f2396f;
        if (dVar2 == null || dVar2.f2396f != dVar) {
            d dVar3 = this.O;
            d dVar4 = dVar3.f2396f;
            return dVar4 != null && dVar4.f2396f == dVar3;
        }
        return true;
    }

    public void h1(int i2) {
        this.Z = i2;
        int i3 = this.k0;
        if (i2 < i3) {
            this.Z = i3;
        }
    }

    public final void i(g.g.a.d dVar, boolean z, boolean z2, boolean z3, boolean z4, g.g.a.i iVar, g.g.a.i iVar2, b bVar, boolean z5, d dVar2, d dVar3, int i2, int i3, int i4, int i5, float f2, boolean z6, boolean z7, boolean z8, boolean z9, boolean z10, int i6, int i7, int i8, int i9, float f3, boolean z11) {
        int i10;
        boolean z12;
        int i11;
        g.g.a.i iVar3;
        int i12;
        int i13;
        int i14;
        g.g.a.i iVar4;
        g.g.a.i iVar5;
        g.g.a.i iVar6;
        int i15;
        boolean z13;
        g.g.a.i q2;
        e eVar;
        d.b bVar2;
        g.g.a.i iVar7;
        g.g.a.i iVar8;
        boolean z14;
        int i16;
        g.g.a.i iVar9;
        g.g.a.i iVar10;
        int i17;
        int i18;
        boolean z15;
        d dVar4;
        int i19;
        g.g.a.i iVar11;
        g.g.a.i iVar12;
        int i20;
        int i21;
        int i22;
        int i23;
        boolean z16;
        boolean z17;
        boolean z18;
        boolean z19;
        g.g.a.i iVar13;
        e eVar2;
        e eVar3;
        boolean z20;
        g.g.a.i iVar14;
        boolean z21;
        g.g.a.i iVar15;
        e eVar4;
        int i24;
        int i25;
        boolean z22;
        int i26;
        int i27;
        int i28;
        int i29;
        boolean z23;
        boolean z24;
        e eVar5;
        int i30;
        g.g.a.i iVar16;
        int i31;
        e eVar6;
        int i32 = i9;
        g.g.a.i q3 = dVar.q(dVar2);
        g.g.a.i q4 = dVar.q(dVar3);
        g.g.a.i q5 = dVar.q(dVar2.j());
        g.g.a.i q6 = dVar.q(dVar3.j());
        if (g.g.a.d.w() != null) {
            g.g.a.d.w().w++;
        }
        boolean o2 = dVar2.o();
        boolean o3 = dVar3.o();
        boolean o4 = this.T.o();
        int i33 = o3 ? (o2 ? 1 : 0) + 1 : o2 ? 1 : 0;
        if (o4) {
            i33++;
        }
        int i34 = z6 ? 3 : i6;
        int i35 = a.b[bVar.ordinal()];
        if (i35 == 1 || i35 == 2 || i35 == 3 || i35 != 4) {
            i10 = i34;
        } else {
            i10 = i34;
            if (i10 != 4) {
                z12 = true;
                i11 = this.f2404j;
                if (i11 == -1 && z) {
                    this.f2404j = -1;
                    iVar3 = q6;
                    z12 = false;
                } else {
                    i11 = i3;
                    iVar3 = q6;
                }
                i12 = this.f2405k;
                if (i12 != -1 && !z) {
                    this.f2405k = -1;
                    i11 = i12;
                    z12 = false;
                }
                if (this.q0 == 8) {
                    i11 = 0;
                    z12 = false;
                }
                if (z11) {
                    if (!o2 && !o3 && !o4) {
                        dVar.f(q3, i2);
                    } else if (o2 && !o3) {
                        dVar.e(q3, q5, dVar2.f(), 8);
                    }
                }
                if (z12) {
                    if (z5) {
                        dVar.e(q4, q3, 0, 3);
                        if (i4 > 0) {
                            dVar.h(q4, q3, i4, 8);
                        }
                        if (i5 < Integer.MAX_VALUE) {
                            dVar.j(q4, q3, i5, 8);
                        }
                    } else {
                        dVar.e(q4, q3, i11, 8);
                    }
                    z13 = z4;
                    i14 = i33;
                    iVar4 = q5;
                    iVar5 = q4;
                    iVar6 = iVar3;
                } else if (i33 == 2 || z6 || !(i10 == 1 || i10 == 0)) {
                    int i36 = i8 == -2 ? i11 : i8;
                    int i37 = i32 == -2 ? i11 : i32;
                    if (i11 > 0 && i10 != 1) {
                        i11 = 0;
                    }
                    if (i36 > 0) {
                        dVar.h(q4, q3, i36, 8);
                        i11 = Math.max(i11, i36);
                    }
                    if (i37 > 0) {
                        if ((z2 && i10 == 1) ? false : true) {
                            i13 = 8;
                            dVar.j(q4, q3, i37, 8);
                        } else {
                            i13 = 8;
                        }
                        i11 = Math.min(i11, i37);
                    } else {
                        i13 = 8;
                    }
                    if (i10 == 1) {
                        if (z2) {
                            dVar.e(q4, q3, i11, i13);
                        } else {
                            dVar.e(q4, q3, i11, 5);
                            dVar.j(q4, q3, i11, i13);
                        }
                        z13 = z4;
                        i32 = i37;
                        i14 = i33;
                        iVar4 = q5;
                        iVar5 = q4;
                        iVar6 = iVar3;
                        i15 = i36;
                    } else if (i10 == 2) {
                        d.b k2 = dVar2.k();
                        d.b bVar3 = d.b.TOP;
                        if (k2 == bVar3 || dVar2.k() == d.b.BOTTOM) {
                            q2 = dVar.q(this.Y.q(bVar3));
                            eVar = this.Y;
                            bVar2 = d.b.BOTTOM;
                        } else {
                            q2 = dVar.q(this.Y.q(d.b.LEFT));
                            eVar = this.Y;
                            bVar2 = d.b.RIGHT;
                        }
                        g.g.a.b r = dVar.r();
                        int i38 = i37;
                        iVar6 = iVar3;
                        i15 = i36;
                        iVar4 = q5;
                        i14 = i33;
                        iVar5 = q4;
                        r.k(q4, q3, dVar.q(eVar.q(bVar2)), q2, f3);
                        dVar.d(r);
                        if (z2) {
                            z12 = false;
                        }
                        z13 = z4;
                        i32 = i38;
                    } else {
                        int i39 = i37;
                        i14 = i33;
                        iVar4 = q5;
                        iVar5 = q4;
                        iVar6 = iVar3;
                        i15 = i36;
                        i32 = i39;
                        z13 = true;
                    }
                    if (!z11) {
                        iVar7 = iVar2;
                        iVar8 = iVar5;
                        z14 = z13;
                        i16 = 0;
                        iVar9 = iVar;
                        iVar10 = q3;
                        i17 = i14;
                        i18 = 2;
                    } else if (z8) {
                        iVar7 = iVar2;
                        iVar8 = iVar5;
                        z14 = z13;
                        i17 = i14;
                        i16 = 0;
                        i18 = 2;
                        iVar9 = iVar;
                        iVar10 = q3;
                    } else {
                        if (o2 || o3 || o4) {
                            if (o2 && !o3) {
                                z21 = z2;
                                iVar15 = iVar5;
                                i30 = (z2 && (dVar2.f2396f.d instanceof g.g.a.m.a)) ? 8 : 5;
                                z20 = z13;
                                if (z21) {
                                }
                            } else if (!o2 && o3) {
                                dVar.e(iVar5, iVar6, -dVar3.f(), 8);
                                if (z2) {
                                    if (this.f2402h && q3.t && (eVar5 = this.Y) != null) {
                                        f fVar = (f) eVar5;
                                        if (z) {
                                            fVar.w1(dVar2);
                                        } else {
                                            fVar.B1(dVar2);
                                        }
                                    } else {
                                        dVar.h(q3, iVar, 0, 5);
                                    }
                                }
                            } else if (o2 && o3) {
                                e eVar7 = dVar2.f2396f.d;
                                e eVar8 = dVar3.f2396f.d;
                                e M = M();
                                if (z12) {
                                    if (i10 == 0) {
                                        if (i32 != 0 || i15 != 0) {
                                            i21 = 5;
                                            i29 = 5;
                                            z23 = true;
                                            z24 = false;
                                            z16 = true;
                                        } else if (iVar4.t && iVar6.t) {
                                            dVar.e(q3, iVar4, dVar2.f(), 8);
                                            dVar.e(iVar5, iVar6, -dVar3.f(), 8);
                                            return;
                                        } else {
                                            i21 = 8;
                                            i29 = 8;
                                            z23 = false;
                                            z24 = true;
                                            z16 = false;
                                        }
                                        if ((eVar7 instanceof g.g.a.m.a) || (eVar8 instanceof g.g.a.m.a)) {
                                            iVar11 = iVar2;
                                            i19 = i10;
                                            z18 = z24;
                                            i22 = 6;
                                            z17 = z23;
                                            i23 = 4;
                                            if (z16 || iVar4 != iVar6 || eVar7 == M) {
                                                z19 = true;
                                            } else {
                                                z16 = false;
                                                z19 = false;
                                            }
                                            if (z17) {
                                                iVar13 = iVar5;
                                                eVar2 = M;
                                                eVar3 = eVar8;
                                                z20 = z13;
                                                iVar14 = q3;
                                                z21 = z2;
                                            } else {
                                                if (z12 || z7 || z9 || iVar4 != iVar || iVar6 != iVar11) {
                                                    z21 = z2;
                                                    i25 = i22;
                                                    z22 = z19;
                                                    i26 = i21;
                                                } else {
                                                    z21 = false;
                                                    i26 = 8;
                                                    i25 = 8;
                                                    z22 = false;
                                                }
                                                iVar13 = iVar5;
                                                z20 = z13;
                                                eVar3 = eVar8;
                                                eVar2 = M;
                                                iVar14 = q3;
                                                dVar.c(q3, iVar4, dVar2.f(), f2, iVar6, iVar13, dVar3.f(), i25);
                                                i21 = i26;
                                                z19 = z22;
                                            }
                                            if (this.q0 != 8 && !dVar3.m()) {
                                                return;
                                            }
                                            if (z16) {
                                                iVar15 = iVar13;
                                            } else {
                                                if (z21 && iVar4 != iVar6 && !z12 && ((eVar7 instanceof g.g.a.m.a) || (eVar3 instanceof g.g.a.m.a))) {
                                                    i21 = 6;
                                                }
                                                dVar.h(iVar14, iVar4, dVar2.f(), i21);
                                                iVar15 = iVar13;
                                                dVar.j(iVar15, iVar6, -dVar3.f(), i21);
                                            }
                                            if (z21 || !z10 || (eVar7 instanceof g.g.a.m.a) || (eVar3 instanceof g.g.a.m.a)) {
                                                eVar4 = eVar2;
                                            } else {
                                                eVar4 = eVar2;
                                                if (eVar3 != eVar4) {
                                                    i24 = 6;
                                                    i21 = 6;
                                                    z19 = true;
                                                    if (z19) {
                                                        if (z18 && (!z9 || z3)) {
                                                            int i40 = (eVar7 == eVar4 || eVar3 == eVar4) ? 6 : i24;
                                                            i40 = ((eVar7 instanceof h) || (eVar3 instanceof h)) ? 5 : 5;
                                                            i40 = ((eVar7 instanceof g.g.a.m.a) || (eVar3 instanceof g.g.a.m.a)) ? 5 : 5;
                                                            if (z9) {
                                                                i40 = 5;
                                                            }
                                                            i24 = Math.max(i40, i24);
                                                        }
                                                        if (z21) {
                                                            i24 = Math.min(i21, i24);
                                                            if (z6 && !z9 && (eVar7 == eVar4 || eVar3 == eVar4)) {
                                                                i24 = 4;
                                                            }
                                                        }
                                                        dVar.e(iVar14, iVar4, dVar2.f(), i24);
                                                        dVar.e(iVar15, iVar6, -dVar3.f(), i24);
                                                    }
                                                    if (z21) {
                                                        int f4 = iVar == iVar4 ? dVar2.f() : 0;
                                                        if (iVar4 != iVar) {
                                                            dVar.h(iVar14, iVar, f4, 5);
                                                            if (!z21 && z12) {
                                                                if (i4 == 0 && i15 == 0) {
                                                                    if (z12 && i19 == 3) {
                                                                        dVar.h(iVar15, iVar14, 0, 8);
                                                                    } else {
                                                                        dVar.h(iVar15, iVar14, 0, 5);
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                    if (!z21) {
                                                    }
                                                }
                                            }
                                            i24 = i23;
                                            if (z19) {
                                            }
                                            if (z21) {
                                            }
                                            if (!z21) {
                                            }
                                        } else {
                                            iVar11 = iVar2;
                                            z18 = z24;
                                            z17 = z23;
                                            i23 = i29;
                                            i19 = i10;
                                            i22 = 6;
                                            if (z16) {
                                            }
                                            z19 = true;
                                            if (z17) {
                                            }
                                            if (this.q0 != 8) {
                                            }
                                            if (z16) {
                                            }
                                            if (z21) {
                                            }
                                            eVar4 = eVar2;
                                            i24 = i23;
                                            if (z19) {
                                            }
                                            if (z21) {
                                            }
                                            if (!z21) {
                                            }
                                        }
                                    } else if (i10 == 2) {
                                        if ((eVar7 instanceof g.g.a.m.a) || (eVar8 instanceof g.g.a.m.a)) {
                                            iVar11 = iVar2;
                                            i19 = i10;
                                        } else {
                                            iVar11 = iVar2;
                                            i19 = i10;
                                            i22 = 6;
                                            i21 = 5;
                                            i23 = 5;
                                            z17 = true;
                                            z16 = true;
                                            z18 = false;
                                            if (z16) {
                                            }
                                            z19 = true;
                                            if (z17) {
                                            }
                                            if (this.q0 != 8) {
                                            }
                                            if (z16) {
                                            }
                                            if (z21) {
                                            }
                                            eVar4 = eVar2;
                                            i24 = i23;
                                            if (z19) {
                                            }
                                            if (z21) {
                                            }
                                            if (!z21) {
                                            }
                                        }
                                    } else if (i10 == 1) {
                                        iVar11 = iVar2;
                                        i19 = i10;
                                        i22 = 6;
                                        i21 = 8;
                                        i23 = 4;
                                        z17 = true;
                                        z16 = true;
                                        z18 = false;
                                        if (z16) {
                                        }
                                        z19 = true;
                                        if (z17) {
                                        }
                                        if (this.q0 != 8) {
                                        }
                                        if (z16) {
                                        }
                                        if (z21) {
                                        }
                                        eVar4 = eVar2;
                                        i24 = i23;
                                        if (z19) {
                                        }
                                        if (z21) {
                                        }
                                        if (!z21) {
                                        }
                                    } else if (i10 == 3) {
                                        i19 = i10;
                                        if (this.D == -1) {
                                            iVar11 = iVar2;
                                            i22 = z9 ? z2 ? 5 : 4 : 8;
                                            i21 = 8;
                                        } else if (z6) {
                                            if (i7 == 2 || i7 == 1) {
                                                i27 = 5;
                                                i28 = 4;
                                            } else {
                                                i27 = 8;
                                                i28 = 5;
                                            }
                                            iVar11 = iVar2;
                                            i23 = i28;
                                            z17 = true;
                                            z16 = true;
                                            z18 = true;
                                            i21 = i27;
                                            i22 = 6;
                                            if (z16) {
                                            }
                                            z19 = true;
                                            if (z17) {
                                            }
                                            if (this.q0 != 8) {
                                            }
                                            if (z16) {
                                            }
                                            if (z21) {
                                            }
                                            eVar4 = eVar2;
                                            i24 = i23;
                                            if (z19) {
                                            }
                                            if (z21) {
                                            }
                                            if (!z21) {
                                            }
                                        } else if (i32 > 0) {
                                            iVar11 = iVar2;
                                            i22 = 6;
                                            i21 = 5;
                                        } else {
                                            if (i32 != 0 || i15 != 0) {
                                                iVar11 = iVar2;
                                                i22 = 6;
                                                i21 = 5;
                                            } else if (z9) {
                                                iVar11 = iVar2;
                                                i21 = (eVar7 == M || eVar8 == M) ? 5 : 4;
                                                i22 = 6;
                                            } else {
                                                iVar11 = iVar2;
                                                i22 = 6;
                                                i21 = 5;
                                                i23 = 8;
                                                z17 = true;
                                                z16 = true;
                                                z18 = true;
                                                if (z16) {
                                                }
                                                z19 = true;
                                                if (z17) {
                                                }
                                                if (this.q0 != 8) {
                                                }
                                                if (z16) {
                                                }
                                                if (z21) {
                                                }
                                                eVar4 = eVar2;
                                                i24 = i23;
                                                if (z19) {
                                                }
                                                if (z21) {
                                                }
                                                if (!z21) {
                                                }
                                            }
                                            i23 = 4;
                                            z17 = true;
                                            z16 = true;
                                            z18 = true;
                                            if (z16) {
                                            }
                                            z19 = true;
                                            if (z17) {
                                            }
                                            if (this.q0 != 8) {
                                            }
                                            if (z16) {
                                            }
                                            if (z21) {
                                            }
                                            eVar4 = eVar2;
                                            i24 = i23;
                                            if (z19) {
                                            }
                                            if (z21) {
                                            }
                                            if (!z21) {
                                            }
                                        }
                                        i23 = 5;
                                        z17 = true;
                                        z16 = true;
                                        z18 = true;
                                        if (z16) {
                                        }
                                        z19 = true;
                                        if (z17) {
                                        }
                                        if (this.q0 != 8) {
                                        }
                                        if (z16) {
                                        }
                                        if (z21) {
                                        }
                                        eVar4 = eVar2;
                                        i24 = i23;
                                        if (z19) {
                                        }
                                        if (z21) {
                                        }
                                        if (!z21) {
                                        }
                                    } else {
                                        i19 = i10;
                                        iVar11 = iVar2;
                                        i22 = 6;
                                        i21 = 5;
                                        i23 = 4;
                                        z17 = false;
                                        z16 = false;
                                        z18 = false;
                                        if (z16) {
                                        }
                                        z19 = true;
                                        if (z17) {
                                        }
                                        if (this.q0 != 8) {
                                        }
                                        if (z16) {
                                        }
                                        if (z21) {
                                        }
                                        eVar4 = eVar2;
                                        i24 = i23;
                                        if (z19) {
                                        }
                                        if (z21) {
                                        }
                                        if (!z21) {
                                        }
                                    }
                                    i30 = 5;
                                    if (z21 || !z20) {
                                        return;
                                    }
                                    if (dVar3.f2396f != null) {
                                        i31 = dVar3.f();
                                        iVar16 = iVar2;
                                    } else {
                                        iVar16 = iVar2;
                                        i31 = 0;
                                    }
                                    if (iVar6 != iVar16) {
                                        if (!this.f2402h || !iVar15.t || (eVar6 = this.Y) == null) {
                                            dVar.h(iVar16, iVar15, i31, i30);
                                            return;
                                        }
                                        f fVar2 = (f) eVar6;
                                        if (z) {
                                            fVar2.v1(dVar3);
                                            return;
                                        } else {
                                            fVar2.A1(dVar3);
                                            return;
                                        }
                                    }
                                    return;
                                }
                                i19 = i10;
                                if (iVar4.t && iVar6.t) {
                                    dVar.c(q3, iVar4, dVar2.f(), f2, iVar6, iVar5, dVar3.f(), 8);
                                    if (z2 && z13) {
                                        if (dVar3.f2396f != null) {
                                            i20 = dVar3.f();
                                            iVar12 = iVar2;
                                        } else {
                                            iVar12 = iVar2;
                                            i20 = 0;
                                        }
                                        if (iVar6 != iVar12) {
                                            dVar.h(iVar12, iVar5, i20, 5);
                                            return;
                                        }
                                        return;
                                    }
                                    return;
                                }
                                iVar11 = iVar2;
                                i22 = 6;
                                i21 = 5;
                                i23 = 4;
                                z17 = true;
                                z16 = true;
                                z18 = false;
                                if (z16) {
                                }
                                z19 = true;
                                if (z17) {
                                }
                                if (this.q0 != 8) {
                                }
                                if (z16) {
                                }
                                if (z21) {
                                }
                                eVar4 = eVar2;
                                i24 = i23;
                                if (z19) {
                                }
                                if (z21) {
                                }
                                if (!z21) {
                                }
                                i30 = 5;
                                if (z21) {
                                    return;
                                }
                                return;
                            }
                        }
                        iVar15 = iVar5;
                        z20 = z13;
                        z21 = z2;
                        i30 = 5;
                        if (z21) {
                        }
                    }
                    if (i17 < i18 && z2 && z14) {
                        dVar.h(iVar10, iVar9, i16, 8);
                        boolean z25 = z || this.Q.f2396f == null;
                        if (z || (dVar4 = this.Q.f2396f) == null) {
                            z15 = z25;
                        } else {
                            e eVar9 = dVar4.d;
                            if (eVar9.b0 != 0.0f) {
                                b[] bVarArr = eVar9.X;
                                b bVar4 = bVarArr[i16];
                                b bVar5 = b.MATCH_CONSTRAINT;
                                if (bVar4 == bVar5 && bVarArr[1] == bVar5) {
                                    z15 = true;
                                }
                            }
                            z15 = false;
                        }
                        if (z15) {
                            dVar.h(iVar7, iVar8, i16, 8);
                            return;
                        }
                        return;
                    }
                    return;
                } else {
                    int max = Math.max(i8, i11);
                    if (i32 > 0) {
                        max = Math.min(i32, max);
                    }
                    dVar.e(q4, q3, max, 8);
                    z13 = z4;
                    i14 = i33;
                    iVar4 = q5;
                    iVar5 = q4;
                    iVar6 = iVar3;
                    z12 = false;
                }
                i15 = i8;
                if (!z11) {
                }
                if (i17 < i18) {
                    return;
                }
                return;
            }
        }
        z12 = false;
        i11 = this.f2404j;
        if (i11 == -1) {
        }
        i11 = i3;
        iVar3 = q6;
        i12 = this.f2405k;
        if (i12 != -1) {
            this.f2405k = -1;
            i11 = i12;
            z12 = false;
        }
        if (this.q0 == 8) {
        }
        if (z11) {
        }
        if (z12) {
        }
        i15 = i8;
        if (!z11) {
        }
        if (i17 < i18) {
        }
    }

    public boolean i0() {
        return this.I;
    }

    public void i1(int i2) {
        if (i2 < 0 || i2 > 3) {
            return;
        }
        this.r = i2;
    }

    public void j(d.b bVar, e eVar, d.b bVar2) {
        k(bVar, eVar, bVar2, 0);
    }

    public boolean j0() {
        d dVar = this.N;
        d dVar2 = dVar.f2396f;
        if (dVar2 == null || dVar2.f2396f != dVar) {
            d dVar3 = this.P;
            d dVar4 = dVar3.f2396f;
            return dVar4 != null && dVar4.f2396f == dVar3;
        }
        return true;
    }

    public void j1(int i2) {
        this.d0 = i2;
    }

    public void k(d.b bVar, e eVar, d.b bVar2, int i2) {
        d g2;
        d q2;
        d q3;
        d.b bVar3;
        d.b bVar4;
        d q4;
        boolean z;
        d.b bVar5;
        d.b bVar6 = d.b.CENTER;
        if (bVar == bVar6) {
            d.b bVar7 = d.b.LEFT;
            if (bVar2 == bVar6) {
                d q5 = q(bVar7);
                d.b bVar8 = d.b.RIGHT;
                d q6 = q(bVar8);
                d.b bVar9 = d.b.TOP;
                d q7 = q(bVar9);
                d.b bVar10 = d.b.BOTTOM;
                d q8 = q(bVar10);
                boolean z2 = true;
                if ((q5 == null || !q5.o()) && (q6 == null || !q6.o())) {
                    k(bVar7, eVar, bVar7, 0);
                    k(bVar8, eVar, bVar8, 0);
                    z = true;
                } else {
                    z = false;
                }
                if ((q7 == null || !q7.o()) && (q8 == null || !q8.o())) {
                    k(bVar9, eVar, bVar9, 0);
                    k(bVar10, eVar, bVar10, 0);
                } else {
                    z2 = false;
                }
                if (!z || !z2) {
                    if (z) {
                        bVar5 = d.b.CENTER_X;
                    } else if (!z2) {
                        return;
                    } else {
                        bVar5 = d.b.CENTER_Y;
                    }
                    q(bVar5).a(eVar.q(bVar5), 0);
                    return;
                }
                q3 = q(bVar6);
                q4 = eVar.q(bVar6);
            } else {
                if (bVar2 == bVar7 || bVar2 == d.b.RIGHT) {
                    k(bVar7, eVar, bVar2, 0);
                    k(d.b.RIGHT, eVar, bVar2, 0);
                } else {
                    d.b bVar11 = d.b.TOP;
                    if (bVar2 != bVar11 && bVar2 != d.b.BOTTOM) {
                        return;
                    }
                    k(bVar11, eVar, bVar2, 0);
                    k(d.b.BOTTOM, eVar, bVar2, 0);
                }
                q3 = q(bVar6);
                q4 = eVar.q(bVar2);
            }
        } else {
            d.b bVar12 = d.b.CENTER_X;
            if (bVar == bVar12 && (bVar2 == (bVar4 = d.b.LEFT) || bVar2 == d.b.RIGHT)) {
                d q9 = q(bVar4);
                q4 = eVar.q(bVar2);
                d q10 = q(d.b.RIGHT);
                q9.a(q4, 0);
                q10.a(q4, 0);
                q3 = q(bVar12);
            } else {
                d.b bVar13 = d.b.CENTER_Y;
                if (bVar == bVar13 && (bVar2 == (bVar3 = d.b.TOP) || bVar2 == d.b.BOTTOM)) {
                    d q11 = eVar.q(bVar2);
                    q(bVar3).a(q11, 0);
                    q(d.b.BOTTOM).a(q11, 0);
                    q(bVar13).a(q11, 0);
                    return;
                }
                if (bVar == bVar12 && bVar2 == bVar12) {
                    d.b bVar14 = d.b.LEFT;
                    q(bVar14).a(eVar.q(bVar14), 0);
                    d.b bVar15 = d.b.RIGHT;
                    q(bVar15).a(eVar.q(bVar15), 0);
                    q3 = q(bVar12);
                } else if (bVar != bVar13 || bVar2 != bVar13) {
                    d q12 = q(bVar);
                    d q13 = eVar.q(bVar2);
                    if (q12.p(q13)) {
                        d.b bVar16 = d.b.BASELINE;
                        if (bVar == bVar16) {
                            d q14 = q(d.b.TOP);
                            q2 = q(d.b.BOTTOM);
                            if (q14 != null) {
                                q14.q();
                            }
                        } else {
                            if (bVar == d.b.TOP || bVar == d.b.BOTTOM) {
                                d q15 = q(bVar16);
                                if (q15 != null) {
                                    q15.q();
                                }
                                d q16 = q(bVar6);
                                if (q16.j() != q13) {
                                    q16.q();
                                }
                                g2 = q(bVar).g();
                                q2 = q(bVar13);
                            } else if (bVar == d.b.LEFT || bVar == d.b.RIGHT) {
                                d q17 = q(bVar6);
                                if (q17.j() != q13) {
                                    q17.q();
                                }
                                g2 = q(bVar).g();
                                q2 = q(bVar12);
                            }
                            q2.q();
                        }
                        q12.a(q13, i2);
                        return;
                    }
                    return;
                } else {
                    d.b bVar17 = d.b.TOP;
                    q(bVar17).a(eVar.q(bVar17), 0);
                    d.b bVar18 = d.b.BOTTOM;
                    q(bVar18).a(eVar.q(bVar18), 0);
                    q3 = q(bVar13);
                }
                q4 = eVar.q(bVar2);
            }
        }
        q3.a(q4, 0);
    }

    public boolean k0() {
        return this.J;
    }

    public void k1(int i2) {
        this.e0 = i2;
    }

    public void l(d dVar, d dVar2, int i2) {
        if (dVar.h() == this) {
            k(dVar.k(), dVar2.h(), dVar2.k(), i2);
        }
    }

    public boolean l0() {
        return this.f2401g && this.q0 != 8;
    }

    public void l1(boolean z, boolean z2, boolean z3, boolean z4) {
        if (this.D == -1) {
            if (z3 && !z4) {
                this.D = 0;
            } else if (!z3 && z4) {
                this.D = 1;
                if (this.c0 == -1) {
                    this.E = 1.0f / this.E;
                }
            }
        }
        if (this.D == 0 && (!this.N.o() || !this.P.o())) {
            this.D = 1;
        } else if (this.D == 1 && (!this.M.o() || !this.O.o())) {
            this.D = 0;
        }
        if (this.D == -1 && (!this.N.o() || !this.P.o() || !this.M.o() || !this.O.o())) {
            if (this.N.o() && this.P.o()) {
                this.D = 0;
            } else if (this.M.o() && this.O.o()) {
                this.E = 1.0f / this.E;
                this.D = 1;
            }
        }
        if (this.D == -1) {
            int i2 = this.v;
            if (i2 > 0 && this.y == 0) {
                this.D = 0;
            } else if (i2 != 0 || this.y <= 0) {
            } else {
                this.E = 1.0f / this.E;
                this.D = 1;
            }
        }
    }

    public void m(e eVar, float f2, int i2) {
        d.b bVar = d.b.CENTER;
        d0(bVar, eVar, bVar, i2, 0);
        this.G = f2;
    }

    public boolean m0() {
        return this.f2406l || (this.M.n() && this.O.n());
    }

    public void m1(boolean z, boolean z2) {
        int i2;
        int i3;
        boolean k2 = z & this.d.k();
        boolean k3 = z2 & this.e.k();
        g.g.a.m.o.l lVar = this.d;
        int i4 = lVar.f2451h.f2438g;
        g.g.a.m.o.n nVar = this.e;
        int i5 = nVar.f2451h.f2438g;
        int i6 = lVar.f2452i.f2438g;
        int i7 = nVar.f2452i.f2438g;
        int i8 = i7 - i5;
        if (i6 - i4 < 0 || i8 < 0 || i4 == Integer.MIN_VALUE || i4 == Integer.MAX_VALUE || i5 == Integer.MIN_VALUE || i5 == Integer.MAX_VALUE || i6 == Integer.MIN_VALUE || i6 == Integer.MAX_VALUE || i7 == Integer.MIN_VALUE || i7 == Integer.MAX_VALUE) {
            i6 = 0;
            i4 = 0;
            i7 = 0;
            i5 = 0;
        }
        int i9 = i6 - i4;
        int i10 = i7 - i5;
        if (k2) {
            this.d0 = i4;
        }
        if (k3) {
            this.e0 = i5;
        }
        if (this.q0 == 8) {
            this.Z = 0;
            this.a0 = 0;
            return;
        }
        if (k2) {
            if (this.X[0] == b.FIXED && i9 < (i3 = this.Z)) {
                i9 = i3;
            }
            this.Z = i9;
            int i11 = this.k0;
            if (i9 < i11) {
                this.Z = i11;
            }
        }
        if (k3) {
            if (this.X[1] == b.FIXED && i10 < (i2 = this.a0)) {
                i10 = i2;
            }
            this.a0 = i10;
            int i12 = this.l0;
            if (i10 < i12) {
                this.a0 = i12;
            }
        }
    }

    public void n(e eVar, HashMap<e, e> hashMap) {
        this.f2410p = eVar.f2410p;
        this.f2411q = eVar.f2411q;
        this.s = eVar.s;
        this.t = eVar.t;
        int[] iArr = this.u;
        int[] iArr2 = eVar.u;
        iArr[0] = iArr2[0];
        iArr[1] = iArr2[1];
        this.v = eVar.v;
        this.w = eVar.w;
        this.y = eVar.y;
        this.z = eVar.z;
        this.A = eVar.A;
        this.B = eVar.B;
        this.C = eVar.C;
        this.D = eVar.D;
        this.E = eVar.E;
        int[] iArr3 = eVar.F;
        this.F = Arrays.copyOf(iArr3, iArr3.length);
        this.G = eVar.G;
        this.H = eVar.H;
        this.I = eVar.I;
        this.M.q();
        this.N.q();
        this.O.q();
        this.P.q();
        this.Q.q();
        this.R.q();
        this.S.q();
        this.T.q();
        this.X = (b[]) Arrays.copyOf(this.X, 2);
        this.Y = this.Y == null ? null : hashMap.get(eVar.Y);
        this.Z = eVar.Z;
        this.a0 = eVar.a0;
        this.b0 = eVar.b0;
        this.c0 = eVar.c0;
        this.d0 = eVar.d0;
        this.e0 = eVar.e0;
        this.f0 = eVar.f0;
        this.g0 = eVar.g0;
        this.h0 = eVar.h0;
        this.i0 = eVar.i0;
        this.j0 = eVar.j0;
        this.k0 = eVar.k0;
        this.l0 = eVar.l0;
        this.m0 = eVar.m0;
        this.n0 = eVar.n0;
        this.o0 = eVar.o0;
        this.p0 = eVar.p0;
        this.q0 = eVar.q0;
        this.r0 = eVar.r0;
        this.s0 = eVar.s0;
        this.t0 = eVar.t0;
        this.u0 = eVar.u0;
        this.v0 = eVar.v0;
        this.w0 = eVar.w0;
        this.x0 = eVar.x0;
        this.y0 = eVar.y0;
        this.z0 = eVar.z0;
        this.A0 = eVar.A0;
        this.B0 = eVar.B0;
        this.C0 = eVar.C0;
        this.D0 = eVar.D0;
        this.E0 = eVar.E0;
        this.F0 = eVar.F0;
        this.G0 = eVar.G0;
        float[] fArr = this.H0;
        float[] fArr2 = eVar.H0;
        fArr[0] = fArr2[0];
        fArr[1] = fArr2[1];
        e[] eVarArr = this.I0;
        e[] eVarArr2 = eVar.I0;
        eVarArr[0] = eVarArr2[0];
        eVarArr[1] = eVarArr2[1];
        e[] eVarArr3 = this.J0;
        e[] eVarArr4 = eVar.J0;
        eVarArr3[0] = eVarArr4[0];
        eVarArr3[1] = eVarArr4[1];
        e eVar2 = eVar.K0;
        this.K0 = eVar2 == null ? null : hashMap.get(eVar2);
        e eVar3 = eVar.L0;
        this.L0 = eVar3 != null ? hashMap.get(eVar3) : null;
    }

    public boolean n0() {
        return this.f2407m || (this.N.n() && this.P.n());
    }

    public void n1(g.g.a.d dVar, boolean z) {
        g.g.a.m.o.n nVar;
        g.g.a.m.o.l lVar;
        int x = dVar.x(this.M);
        int x2 = dVar.x(this.N);
        int x3 = dVar.x(this.O);
        int x4 = dVar.x(this.P);
        if (z && (lVar = this.d) != null) {
            g.g.a.m.o.f fVar = lVar.f2451h;
            if (fVar.f2441j) {
                g.g.a.m.o.f fVar2 = lVar.f2452i;
                if (fVar2.f2441j) {
                    x = fVar.f2438g;
                    x3 = fVar2.f2438g;
                }
            }
        }
        if (z && (nVar = this.e) != null) {
            g.g.a.m.o.f fVar3 = nVar.f2451h;
            if (fVar3.f2441j) {
                g.g.a.m.o.f fVar4 = nVar.f2452i;
                if (fVar4.f2441j) {
                    x2 = fVar3.f2438g;
                    x4 = fVar4.f2438g;
                }
            }
        }
        int i2 = x4 - x2;
        if (x3 - x < 0 || i2 < 0 || x == Integer.MIN_VALUE || x == Integer.MAX_VALUE || x2 == Integer.MIN_VALUE || x2 == Integer.MAX_VALUE || x3 == Integer.MIN_VALUE || x3 == Integer.MAX_VALUE || x4 == Integer.MIN_VALUE || x4 == Integer.MAX_VALUE) {
            x4 = 0;
            x = 0;
            x2 = 0;
            x3 = 0;
        }
        G0(x, x2, x3, x4);
    }

    public void o(g.g.a.d dVar) {
        dVar.q(this.M);
        dVar.q(this.N);
        dVar.q(this.O);
        dVar.q(this.P);
        if (this.j0 > 0) {
            dVar.q(this.Q);
        }
    }

    public boolean o0() {
        return this.f2409o;
    }

    public void p() {
        if (this.d == null) {
            this.d = new g.g.a.m.o.l(this);
        }
        if (this.e == null) {
            this.e = new g.g.a.m.o.n(this);
        }
    }

    public void p0() {
        this.f2408n = true;
    }

    public d q(d.b bVar) {
        switch (a.a[bVar.ordinal()]) {
            case 1:
                return this.M;
            case 2:
                return this.N;
            case 3:
                return this.O;
            case 4:
                return this.P;
            case 5:
                return this.Q;
            case 6:
                return this.T;
            case 7:
                return this.R;
            case 8:
                return this.S;
            case 9:
                return null;
            default:
                throw new AssertionError(bVar.name());
        }
    }

    public void q0() {
        this.f2409o = true;
    }

    public int r() {
        return this.j0;
    }

    public boolean r0() {
        b[] bVarArr = this.X;
        b bVar = bVarArr[0];
        b bVar2 = b.MATCH_CONSTRAINT;
        return bVar == bVar2 && bVarArr[1] == bVar2;
    }

    public float s(int i2) {
        if (i2 == 0) {
            return this.m0;
        }
        if (i2 == 1) {
            return this.n0;
        }
        return -1.0f;
    }

    public void s0() {
        this.M.q();
        this.N.q();
        this.O.q();
        this.P.q();
        this.Q.q();
        this.R.q();
        this.S.q();
        this.T.q();
        this.Y = null;
        this.G = 0.0f;
        this.Z = 0;
        this.a0 = 0;
        this.b0 = 0.0f;
        this.c0 = -1;
        this.d0 = 0;
        this.e0 = 0;
        this.h0 = 0;
        this.i0 = 0;
        this.j0 = 0;
        this.k0 = 0;
        this.l0 = 0;
        float f2 = O0;
        this.m0 = f2;
        this.n0 = f2;
        b[] bVarArr = this.X;
        b bVar = b.FIXED;
        bVarArr[0] = bVar;
        bVarArr[1] = bVar;
        this.o0 = null;
        this.p0 = 0;
        this.q0 = 0;
        this.s0 = null;
        this.B0 = false;
        this.C0 = false;
        this.D0 = 0;
        this.E0 = 0;
        this.F0 = false;
        this.G0 = false;
        float[] fArr = this.H0;
        fArr[0] = -1.0f;
        fArr[1] = -1.0f;
        this.f2410p = -1;
        this.f2411q = -1;
        int[] iArr = this.F;
        iArr[0] = Integer.MAX_VALUE;
        iArr[1] = Integer.MAX_VALUE;
        this.s = 0;
        this.t = 0;
        this.x = 1.0f;
        this.A = 1.0f;
        this.w = Integer.MAX_VALUE;
        this.z = Integer.MAX_VALUE;
        this.v = 0;
        this.y = 0;
        this.D = -1;
        this.E = 1.0f;
        boolean[] zArr = this.f2400f;
        zArr[0] = true;
        zArr[1] = true;
        this.J = false;
        boolean[] zArr2 = this.W;
        zArr2[0] = false;
        zArr2[1] = false;
        this.f2401g = true;
        int[] iArr2 = this.u;
        iArr2[0] = 0;
        iArr2[1] = 0;
        this.f2404j = -1;
        this.f2405k = -1;
    }

    public int t() {
        return X() + this.a0;
    }

    public void t0() {
        u0();
        a1(O0);
        J0(O0);
    }

    public String toString() {
        String str;
        StringBuilder sb = new StringBuilder();
        String str2 = "";
        if (this.s0 != null) {
            str = "type: " + this.s0 + " ";
        } else {
            str = "";
        }
        sb.append(str);
        if (this.r0 != null) {
            str2 = "id: " + this.r0 + " ";
        }
        sb.append(str2);
        sb.append("(");
        sb.append(this.d0);
        sb.append(", ");
        sb.append(this.e0);
        sb.append(") - (");
        sb.append(this.Z);
        sb.append(" x ");
        sb.append(this.a0);
        sb.append(")");
        return sb.toString();
    }

    public Object u() {
        return this.o0;
    }

    public void u0() {
        e M = M();
        if (M != null && (M instanceof f) && ((f) M()).I1()) {
            return;
        }
        int size = this.V.size();
        for (int i2 = 0; i2 < size; i2++) {
            this.V.get(i2).q();
        }
    }

    public String v() {
        return this.r0;
    }

    public void v0() {
        this.f2406l = false;
        this.f2407m = false;
        this.f2408n = false;
        this.f2409o = false;
        int size = this.V.size();
        for (int i2 = 0; i2 < size; i2++) {
            this.V.get(i2).r();
        }
    }

    public b w(int i2) {
        if (i2 == 0) {
            return C();
        }
        if (i2 == 1) {
            return S();
        }
        return null;
    }

    public void w0(g.g.a.c cVar) {
        this.M.s(cVar);
        this.N.s(cVar);
        this.O.s(cVar);
        this.P.s(cVar);
        this.Q.s(cVar);
        this.T.s(cVar);
        this.R.s(cVar);
        this.S.s(cVar);
    }

    public float x() {
        return this.b0;
    }

    public void x0(int i2) {
        this.j0 = i2;
        this.H = i2 > 0;
    }

    public int y() {
        return this.c0;
    }

    public void y0(Object obj) {
        this.o0 = obj;
    }

    public int z() {
        if (this.q0 == 8) {
            return 0;
        }
        return this.a0;
    }

    public void z0(String str) {
        this.r0 = str;
    }
}