package o;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.text.Layout;
import android.text.StaticLayout;
import android.text.TextDirectionHeuristic;
import android.text.TextPaint;
import android.text.TextUtils;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CancellationException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Jp, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0249Jp {
    public static final C0688a6 a = new C0688a6(0);
    public static final C2377rs b = new C2377rs();
    public static final StackTraceElement[] c = new StackTraceElement[0];
    public static CG d;

    public static StaticLayout A(CharSequence charSequence, TextPaint textPaint, int i, int i2, TextDirectionHeuristic textDirectionHeuristic, Layout.Alignment alignment, int i3, TextUtils.TruncateAt truncateAt, int i4, int i5, boolean z, int i6, int i7, int i8, int i9) {
        if (i2 < 0) {
            AbstractC2228qH.a("invalid start value");
        }
        int length = charSequence.length();
        if (i2 < 0 || i2 > length) {
            AbstractC2228qH.a("invalid end value");
        }
        if (i3 < 0) {
            AbstractC2228qH.a("invalid maxLines value");
        }
        if (i < 0) {
            AbstractC2228qH.a("invalid width value");
        }
        if (i4 < 0) {
            AbstractC2228qH.a("invalid ellipsizedWidth value");
        }
        StaticLayout.Builder builderObtain = StaticLayout.Builder.obtain(charSequence, 0, i2, textPaint, i);
        builderObtain.setTextDirection(textDirectionHeuristic);
        builderObtain.setAlignment(alignment);
        builderObtain.setMaxLines(i3);
        builderObtain.setEllipsize(truncateAt);
        builderObtain.setEllipsizedWidth(i4);
        builderObtain.setLineSpacing(0.0f, 1.0f);
        builderObtain.setIncludePad(z);
        builderObtain.setBreakStrategy(i6);
        builderObtain.setHyphenationFrequency(i9);
        builderObtain.setIndents(null, null);
        int i10 = Build.VERSION.SDK_INT;
        if (i10 >= 26) {
            builderObtain.setJustificationMode(i5);
        }
        if (i10 >= 28) {
            builderObtain.setUseLineSpacingFromFallbacks(true);
        }
        if (i10 >= 33) {
            builderObtain.setLineBreakConfig(B0.d().setLineBreakStyle(i7).setLineBreakWordStyle(i8).build());
        }
        if (i10 >= 35) {
            builderObtain.setUseBoundsForWidth(false);
        }
        return builderObtain.build();
    }

    public static final InterfaceC0065Cn B(C0321Mk c0321Mk) {
        return new T10(c0321Mk.P);
    }

    public static final C2269ql C(AbstractC0345Ni abstractC0345Ni, AbstractC0345Ni abstractC0345Ni2) {
        if (abstractC0345Ni == abstractC0345Ni2) {
            return new C2079ol(abstractC0345Ni, abstractC0345Ni, 1);
        }
        long j = abstractC0345Ni.b;
        long j2 = AbstractC0242Ji.a;
        return (AbstractC0242Ji.a(j, j2) && AbstractC0242Ji.a(abstractC0345Ni2.b, j2)) ? new C2174pl((R20) abstractC0345Ni, (R20) abstractC0345Ni2) : new C2269ql(abstractC0345Ni, abstractC0345Ni2, 0);
    }

    public static final C2315rA D(Context context) {
        ME me = new ME(28);
        context.getApplicationContext();
        return new C2315rA(me, new C2209q4(Build.VERSION.SDK_INT >= 31 ? PA.a.a(context) : 0));
    }

    public static final float E(float[] fArr, float[] fArr2) {
        int length = fArr.length;
        float f = 0.0f;
        for (int i = 0; i < length; i++) {
            f += fArr[i] * fArr2[i];
        }
        return f;
    }

    public static final int F(int i, List list) {
        int i2;
        int i3 = ((BV) AbstractC3117zi.j0(list)).c;
        if (i > ((BV) AbstractC3117zi.j0(list)).c) {
            AbstractC2228qH.a("Index " + i + " should be less or equal than last line's end " + i3);
        }
        int size = list.size() - 1;
        int i4 = 0;
        while (true) {
            if (i4 > size) {
                i2 = -(i4 + 1);
                break;
            }
            i2 = (i4 + size) >>> 1;
            BV bv = (BV) list.get(i2);
            char c2 = bv.b > i ? (char) 1 : bv.c <= i ? (char) 65535 : (char) 0;
            if (c2 >= 0) {
                if (c2 <= 0) {
                    break;
                }
                size = i2 - 1;
            } else {
                i4 = i2 + 1;
            }
        }
        if (i2 >= 0 && i2 < list.size()) {
            return i2;
        }
        StringBuilder sbO = AbstractC0126Ew.o(i2, "Found paragraph index ", " should be in range [0, ");
        sbO.append(list.size());
        sbO.append(").\nDebug info: index=");
        sbO.append(i);
        sbO.append(", paragraphs=[");
        sbO.append(WL.a(list, null, new C1072e7(24), 31));
        sbO.append(']');
        AbstractC2228qH.a(sbO.toString());
        return i2;
    }

    public static final int G(int i, List list) {
        int size = list.size() - 1;
        int i2 = 0;
        while (i2 <= size) {
            int i3 = (i2 + size) >>> 1;
            BV bv = (BV) list.get(i3);
            char c2 = bv.d > i ? (char) 1 : bv.e <= i ? (char) 65535 : (char) 0;
            if (c2 < 0) {
                i2 = i3 + 1;
            } else {
                if (c2 <= 0) {
                    return i3;
                }
                size = i3 - 1;
            }
        }
        return -(i2 + 1);
    }

    public static final int H(ArrayList arrayList, float f) {
        if (f <= 0.0f) {
            return 0;
        }
        if (f >= ((BV) AbstractC3117zi.j0(arrayList)).g) {
            return AbstractC0008Ai.R(arrayList);
        }
        int size = arrayList.size() - 1;
        int i = 0;
        while (i <= size) {
            int i2 = (i + size) >>> 1;
            BV bv = (BV) arrayList.get(i2);
            char c2 = bv.f > f ? (char) 1 : bv.g <= f ? (char) 65535 : (char) 0;
            if (c2 < 0) {
                i = i2 + 1;
            } else {
                if (c2 <= 0) {
                    return i2;
                }
                size = i2 - 1;
            }
        }
        return -(i + 1);
    }

    public static final void I(ArrayList arrayList, long j, OC oc) {
        int size = arrayList.size();
        for (int iF = F(Ue0.f(j), arrayList); iF < size; iF++) {
            BV bv = (BV) arrayList.get(iF);
            if (bv.b >= Ue0.e(j)) {
                return;
            }
            if (bv.b != bv.c) {
                oc.g(bv);
            }
        }
    }

    public static final CG J() {
        CG cg = d;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.Description", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(14.0f, 2.0f);
        ke.j(6.0f, 2.0f);
        ke.g(-1.1f, 0.0f, -1.99f, 0.9f, -1.99f, 2.0f);
        ke.j(4.0f, 20.0f);
        ke.g(0.0f, 1.1f, 0.89f, 2.0f, 1.99f, 2.0f);
        ke.j(18.0f, 22.0f);
        ke.g(1.1f, 0.0f, 2.0f, -0.9f, 2.0f, -2.0f);
        ke.j(20.0f, 8.0f);
        ke.k(-6.0f, -6.0f);
        ke.e();
        ke.l(16.0f, 18.0f);
        ke.j(8.0f, 18.0f);
        ke.r(-2.0f);
        ke.i(8.0f);
        ke.r(2.0f);
        ke.e();
        ke.l(16.0f, 14.0f);
        ke.j(8.0f, 14.0f);
        ke.r(-2.0f);
        ke.i(8.0f);
        ke.r(2.0f);
        ke.e();
        ke.l(13.0f, 9.0f);
        ke.j(13.0f, 3.5f);
        ke.j(18.5f, 9.0f);
        ke.j(13.0f, 9.0f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        d = cgB;
        return cgB;
    }

    public static final String K(Object obj) {
        return Integer.toHexString(System.identityHashCode(obj));
    }

    public static final int L(Ne0 ne0, int i) {
        Me0 me0 = ne0.a;
        C2331rQ c2331rQ = ne0.b;
        if (me0.a.m.length() != 0) {
            int iD = c2331rQ.d(i);
            if ((i != 0 && iD == c2331rQ.d(i - 1)) || (i != me0.a.m.length() && iD == c2331rQ.d(i + 1))) {
                return ne0.a(i);
            }
        }
        return ne0.h(i);
    }

    public static final void M(Ua0 ua0, String str) {
        ua0.v(ua0.b - 1, "Trailing comma before the end of JSON ".concat(str), "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingCommas = true' in 'Json {}' builder to support them.");
        throw null;
    }

    public static /* synthetic */ void N(Ua0 ua0) {
        M(ua0, "object");
        throw null;
    }

    public static final float[] O(float[] fArr) {
        float f = fArr[0];
        float f2 = fArr[3];
        float f3 = fArr[6];
        float f4 = fArr[1];
        float f5 = fArr[4];
        float f6 = fArr[7];
        float f7 = fArr[2];
        float f8 = fArr[5];
        float f9 = fArr[8];
        float f10 = (f5 * f9) - (f6 * f8);
        float f11 = (f6 * f7) - (f4 * f9);
        float f12 = (f4 * f8) - (f5 * f7);
        float f13 = (f3 * f12) + (f2 * f11) + (f * f10);
        float[] fArr2 = new float[fArr.length];
        fArr2[0] = f10 / f13;
        fArr2[1] = f11 / f13;
        fArr2[2] = f12 / f13;
        fArr2[3] = ((f3 * f8) - (f2 * f9)) / f13;
        fArr2[4] = ((f9 * f) - (f3 * f7)) / f13;
        fArr2[5] = ((f7 * f2) - (f8 * f)) / f13;
        fArr2[6] = ((f2 * f6) - (f3 * f5)) / f13;
        fArr2[7] = ((f3 * f4) - (f6 * f)) / f13;
        fArr2[8] = ((f * f5) - (f2 * f4)) / f13;
        return fArr2;
    }

    public static boolean P(int i) {
        int type = Character.getType(i);
        return type == 23 || type == 20 || type == 22 || type == 30 || type == 29 || type == 24 || type == 21;
    }

    public static final CharSequence Q(CharSequence charSequence, int i) {
        if (charSequence.length() >= 200) {
            if (i != -1) {
                int i2 = i - 30;
                int i3 = i + 30;
                String str = i2 <= 0 ? "" : ".....";
                String str2 = i3 >= charSequence.length() ? "" : ".....";
                StringBuilder sb = new StringBuilder();
                sb.append(str);
                if (i2 < 0) {
                    i2 = 0;
                }
                int length = charSequence.length();
                if (i3 > length) {
                    i3 = length;
                }
                sb.append(charSequence.subSequence(i2, i3).toString());
                sb.append(str2);
                return sb.toString();
            }
            int length2 = charSequence.length() - 60;
            if (length2 > 0) {
                return "....." + charSequence.subSequence(length2, charSequence.length()).toString();
            }
        }
        return charSequence;
    }

    public static final float[] R(float[] fArr, float[] fArr2) {
        float[] fArr3 = new float[9];
        if (fArr.length < 9 || fArr2.length < 9) {
            return fArr3;
        }
        float f = fArr[0] * fArr2[0];
        float f2 = fArr[3];
        float f3 = fArr2[1];
        float f4 = fArr[6];
        float f5 = fArr2[2];
        fArr3[0] = (f4 * f5) + (f2 * f3) + f;
        float f6 = fArr[1];
        float f7 = fArr2[0];
        float f8 = fArr[4];
        float f9 = fArr[7];
        float f10 = f9 * f5;
        fArr3[1] = f10 + (f3 * f8) + (f6 * f7);
        float f11 = fArr[2] * f7;
        float f12 = fArr[5];
        float f13 = (fArr2[1] * f12) + f11;
        float f14 = fArr[8];
        fArr3[2] = (f5 * f14) + f13;
        float f15 = fArr[0];
        float f16 = fArr2[3] * f15;
        float f17 = fArr2[4];
        float f18 = (f2 * f17) + f16;
        float f19 = fArr2[5];
        fArr3[3] = (f4 * f19) + f18;
        float f20 = fArr[1];
        float f21 = fArr2[3];
        float f22 = f8 * f17;
        fArr3[4] = (f9 * f19) + f22 + (f20 * f21);
        float f23 = fArr[2];
        float f24 = f19 * f14;
        fArr3[5] = f24 + (f12 * fArr2[4]) + (f21 * f23);
        float f25 = f15 * fArr2[6];
        float f26 = fArr[3];
        float f27 = fArr2[7];
        float f28 = (f26 * f27) + f25;
        float f29 = fArr2[8];
        fArr3[6] = (f4 * f29) + f28;
        float f30 = fArr2[6];
        float f31 = f9 * f29;
        fArr3[7] = f31 + (fArr[4] * f27) + (f20 * f30);
        float f32 = f14 * f29;
        fArr3[8] = f32 + (fArr[5] * fArr2[7]) + (f23 * f30);
        return fArr3;
    }

    public static final float[] S(float[] fArr, float[] fArr2) {
        if (fArr.length < 9 || fArr2.length < 3) {
            return fArr2;
        }
        float f = fArr2[0];
        float f2 = fArr2[1];
        float f3 = fArr2[2];
        fArr2[0] = (fArr[6] * f3) + (fArr[3] * f2) + (fArr[0] * f);
        fArr2[1] = (fArr[7] * f3) + (fArr[4] * f2) + (fArr[1] * f);
        fArr2[2] = (fArr[8] * f3) + (fArr[5] * f2) + (fArr[2] * f);
        return fArr2;
    }

    public static final boolean X(String str) {
        return (str.equals("GET") || str.equals("HEAD")) ? false : true;
    }

    public static final A5 Y(NC nc, C0321Mk c0321Mk, int i) {
        View view = (View) c0321Mk.j(N3.f);
        boolean zF = c0321Mk.f(view);
        Object objK = c0321Mk.K();
        Object obj = C0140Fk.a;
        if (zF || objK == obj) {
            objK = new A5(view, null, nc);
            c0321Mk.f0(objK);
        }
        A5 a5 = (A5) objK;
        boolean zH = c0321Mk.h(a5);
        Object objK2 = c0321Mk.K();
        if (zH || objK2 == obj) {
            objK2 = new C2400s5(a5, 3);
            c0321Mk.f0(objK2);
        }
        b(a5, (OC) objK2, c0321Mk);
        return a5;
    }

    public static final void Z(float[] fArr, float[] fArr2, int i, float[] fArr3) {
        if (i == 0) {
            AbstractC2133pH.a("At least one point must be provided");
        }
        int i2 = 2 >= i ? i - 1 : 2;
        int i3 = i2 + 1;
        float[][] fArr4 = new float[i3][];
        for (int i4 = 0; i4 < i3; i4++) {
            fArr4[i4] = new float[i];
        }
        for (int i5 = 0; i5 < i; i5++) {
            fArr4[0][i5] = 1.0f;
            for (int i6 = 1; i6 < i3; i6++) {
                fArr4[i6][i5] = fArr4[i6 - 1][i5] * fArr[i5];
            }
        }
        float[][] fArr5 = new float[i3][];
        for (int i7 = 0; i7 < i3; i7++) {
            fArr5[i7] = new float[i];
        }
        float[][] fArr6 = new float[i3][];
        for (int i8 = 0; i8 < i3; i8++) {
            fArr6[i8] = new float[i3];
        }
        int i9 = 0;
        while (i9 < i3) {
            float[] fArr7 = fArr5[i9];
            System.arraycopy(fArr4[i9], 0, fArr7, 0, i);
            for (int i10 = 0; i10 < i9; i10++) {
                float[] fArr8 = fArr5[i10];
                float fE = E(fArr7, fArr8);
                for (int i11 = 0; i11 < i; i11++) {
                    fArr7[i11] = fArr7[i11] - (fArr8[i11] * fE);
                }
            }
            float fSqrt = (float) Math.sqrt(E(fArr7, fArr7));
            if (fSqrt < 1.0E-6f) {
                fSqrt = 1.0E-6f;
            }
            float f = 1.0f / fSqrt;
            for (int i12 = 0; i12 < i; i12++) {
                fArr7[i12] = fArr7[i12] * f;
            }
            float[] fArr9 = fArr6[i9];
            int i13 = 0;
            while (i13 < i3) {
                fArr9[i13] = i13 < i9 ? 0.0f : E(fArr7, fArr4[i13]);
                i13++;
            }
            i9++;
        }
        for (int i14 = i2; -1 < i14; i14--) {
            float fE2 = E(fArr5[i14], fArr2);
            float[] fArr10 = fArr6[i14];
            int i15 = i14 + 1;
            if (i15 <= i2) {
                int i16 = i2;
                while (true) {
                    fE2 -= fArr10[i16] * fArr3[i16];
                    if (i16 != i15) {
                        i16--;
                    }
                }
            }
            fArr3[i14] = fE2 / fArr10[i14];
        }
    }

    public static final T2 a(C2493t4 c2493t4) {
        Canvas canvas = U2.a;
        T2 t2 = new T2();
        t2.a = new Canvas(C1884mi0.k(c2493t4));
        return t2;
    }

    public static final void b(Object obj, OC oc, C0321Mk c0321Mk) {
        boolean zF = c0321Mk.f(obj);
        Object objK = c0321Mk.K();
        if (zF || objK == C0140Fk.a) {
            objK = new C2188ps(oc);
            c0321Mk.f0(objK);
        }
    }

    public static final C2135pJ c(Number number, String str) {
        return new C2135pJ("Unexpected special floating-point value " + number + ". By default, non-finite floating point values are prohibited because they do not conform JSON specification. It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\nCurrent output: " + ((Object) Q(str, -1)));
    }

    public static final void c0(Object[] objArr, int i, int i2) {
        while (i < i2) {
            objArr[i] = null;
            i++;
        }
    }

    public static final C2135pJ d(L60 l60) {
        return new C2135pJ("Value of type '" + l60.b() + "' can't be used in JSON as a key in the map. It should have either primitive or enum kind, but its kind is '" + l60.c() + "'.\nUse 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
    }

    public static final void d0(C1556jA c1556jA) {
        LP lp;
        C0312Mb c0312Mb;
        if (!c1556jA.l.y) {
            AbstractC2133pH.b("visitAncestors called on an unattached node");
        }
        LP lp2 = c1556jA.l.p;
        C2420sK c2420sKS = AbstractC2539te.S(c1556jA);
        loop0: while (true) {
            lp = null;
            if (c2420sKS == null) {
                break;
            }
            if ((((LP) c2420sKS.N.g).f209o & 1024) != 0) {
                while (lp2 != null) {
                    if ((lp2.n & 1024) != 0) {
                        LP lpI = lp2;
                        C1479iR c1479iR = null;
                        while (lpI != null) {
                            if (lpI instanceof C1556jA) {
                                lp = lpI;
                                break loop0;
                            }
                            if ((lpI.n & 1024) != 0 && (lpI instanceof AbstractC0561Vq)) {
                                int i = 0;
                                for (LP lp3 = ((AbstractC0561Vq) lpI).A; lp3 != null; lp3 = lp3.q) {
                                    if ((lp3.n & 1024) != 0) {
                                        i++;
                                        if (i == 1) {
                                            lpI = lp3;
                                        } else {
                                            if (c1479iR == null) {
                                                c1479iR = new C1479iR(new LP[16]);
                                            }
                                            if (lpI != null) {
                                                c1479iR.b(lpI);
                                                lpI = null;
                                            }
                                            c1479iR.b(lp3);
                                        }
                                    }
                                }
                                if (i == 1) {
                                }
                            }
                            lpI = AbstractC2539te.i(c1479iR);
                        }
                    }
                    lp2 = lp2.p;
                }
            }
            c2420sKS = c2420sKS.s();
            lp2 = (c2420sKS == null || (c0312Mb = c2420sKS.N) == null) ? null : (Bc0) c0312Mb.f;
        }
        C1556jA c1556jA2 = (C1556jA) lp;
        if (c1556jA2 == null) {
            if (c1556jA.g(AbstractC0029Bd.a) != null) {
                throw new ClassCastException();
            }
            return;
        }
        C3100zZ c3100zZ = AbstractC0029Bd.a;
        if (c1556jA2.g(c3100zZ) != null) {
            throw new ClassCastException();
        }
        if (c1556jA.g(c3100zZ) != null) {
            throw new ClassCastException();
        }
    }

    public static final C2135pJ e(int i, CharSequence charSequence, String str) {
        String str2 = str + "\nJSON input: " + ((Object) Q(charSequence, i));
        if (i >= 0) {
            str2 = "Unexpected JSON token at offset " + i + ": " + str2;
        }
        return new C2135pJ(str2);
    }

    public static void e0(View view, CharSequence charSequence) {
        if (Build.VERSION.SDK_INT >= 26) {
            Wf0.a(view, charSequence);
            return;
        }
        Yf0 yf0 = Yf0.v;
        if (yf0 != null && yf0.l == view) {
            Yf0.b(null);
        }
        if (!TextUtils.isEmpty(charSequence)) {
            new Yf0(view, charSequence);
            return;
        }
        Yf0 yf02 = Yf0.w;
        if (yf02 != null && yf02.l == view) {
            yf02.a();
        }
        view.setOnLongClickListener(null);
        view.setLongClickable(false);
        view.setOnHoverListener(null);
    }

    public static final void f(Object obj, Object obj2, SC sc, C0321Mk c0321Mk) {
        InterfaceC2747vn interfaceC2747vn = c0321Mk.P;
        boolean zF = c0321Mk.f(obj) | c0321Mk.f(obj2);
        Object objK = c0321Mk.K();
        if (zF || objK == C0140Fk.a) {
            objK = new C0802bK(interfaceC2747vn, sc);
            c0321Mk.f0(objK);
        }
    }

    public static final String f0(InterfaceC0220Im interfaceC0220Im) {
        Object h20;
        if (interfaceC0220Im instanceof C1428hs) {
            return ((C1428hs) interfaceC0220Im).toString();
        }
        try {
            h20 = interfaceC0220Im + '@' + K(interfaceC0220Im);
        } catch (Throwable th) {
            h20 = new H20(th);
        }
        if (I20.a(h20) != null) {
            h20 = interfaceC0220Im.getClass().getName() + '@' + K(interfaceC0220Im);
        }
        return (String) h20;
    }

    public static final void g(Object obj, C0321Mk c0321Mk, SC sc) {
        InterfaceC2747vn interfaceC2747vn = c0321Mk.P;
        boolean zF = c0321Mk.f(obj);
        Object objK = c0321Mk.K();
        if (zF || objK == C0140Fk.a) {
            objK = new C0802bK(interfaceC2747vn, sc);
            c0321Mk.f0(objK);
        }
    }

    public static final void g0() {
        throw new UnsupportedOperationException();
    }

    public static J4 h(String str, C0733af0 c0733af0, long j, InterfaceC2281qr interfaceC2281qr, InterfaceC2221qA interfaceC2221qA, int i, int i2) {
        C0332Mv c0332Mv = C0332Mv.l;
        return new J4(new N4(str, c0733af0, c0332Mv, c0332Mv, interfaceC2221qA, interfaceC2281qr), i, 1, j);
    }

    public static boolean h0(byte b2) {
        return b2 > -65;
    }

    public static final void i(MP mp, C0554Vj c0554Vj, C0321Mk c0321Mk, int i) {
        int i2;
        c0321Mk.X(2064964257);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(mp) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.h(c0554Vj) ? 32 : 16;
        }
        if (c0321Mk.N(i2 & 1, (i2 & 19) != 18)) {
            j(mp, c0554Vj, c0321Mk, ((i2 << 3) & 896) | (i2 & 14) | 48);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new B5(mp, c0554Vj, i, 0);
        }
    }

    public static final void j(MP mp, C0554Vj c0554Vj, C0321Mk c0321Mk, int i) {
        int i2;
        c0321Mk.X(771959668);
        if ((i & 6) == 0) {
            i2 = (c0321Mk.f(mp) ? 4 : 2) | i;
        } else {
            i2 = i;
        }
        if ((i & 48) == 0) {
            i2 |= c0321Mk.h(null) ? 32 : 16;
        }
        if ((i & 384) == 0) {
            i2 |= c0321Mk.h(c0554Vj) ? 256 : 128;
        }
        if (c0321Mk.N(i2 & 1, (i2 & 147) != 146)) {
            Object objK = c0321Mk.K();
            J7 j7 = C0140Fk.a;
            if (objK == j7) {
                MV mv = new MV(null, C0669Zu.O);
                c0321Mk.f0(mv);
                objK = mv;
            }
            InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK;
            Object objK2 = c0321Mk.K();
            if (objK2 == j7) {
                objK2 = new C5(interfaceC1191fR, 0);
                c0321Mk.f0(objK2);
            }
            AbstractC2841wm0.b(AbstractC2348rd0.b.a(Y((NC) objK2, c0321Mk, 0)), C2887xC.y(-291176396, new E5(mp, interfaceC1191fR, c0554Vj, 0), c0321Mk), c0321Mk, 56);
        } else {
            c0321Mk.Q();
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new B5(mp, c0554Vj, i, 1);
        }
    }

    public static final void k(NC nc, C0321Mk c0321Mk) {
        JU ju = c0321Mk.L.b.g;
        ju.U(C2810wU.c);
        As0.R(ju, 0, nc);
    }

    public static final void l(Tj0 tj0, C2420sK c2420sK) {
        long jL = ((C2702vH) c2420sK.N.d).L(0L);
        int iRound = Math.round(Float.intBitsToFloat((int) (jL >> 32)));
        int iRound2 = Math.round(Float.intBitsToFloat((int) (jL & 4294967295L)));
        tj0.layout(iRound, iRound2, tj0.getMeasuredWidth() + iRound, tj0.getMeasuredHeight() + iRound2);
    }

    public static final String m(Object[] objArr, int i, int i2, V v) {
        StringBuilder sb = new StringBuilder((i2 * 3) + 2);
        sb.append("[");
        for (int i3 = 0; i3 < i2; i3++) {
            if (i3 > 0) {
                sb.append(", ");
            }
            Object obj = objArr[i + i3];
            if (obj == v) {
                sb.append("(this Collection)");
            } else {
                sb.append(obj);
            }
        }
        sb.append("]");
        return sb.toString();
    }

    public static AbstractC0345Ni n(AbstractC0345Ni abstractC0345Ni) {
        Yk0 yk0 = AbstractC2461sm0.c;
        if (AbstractC0242Ji.a(abstractC0345Ni.b, AbstractC0242Ji.a)) {
            R20 r20 = (R20) abstractC0345Ni;
            Yk0 yk02 = r20.d;
            if (!z(yk02, yk0)) {
                return new R20(r20.a, r20.h, yk0, R(y(N1.c.b, yk02.a(), yk0.a()), r20.i), r20.k, r20.n, r20.e, r20.f, r20.g, -1);
            }
        }
        return abstractC0345Ni;
    }

    public static final void o(C1981nj0 c1981nj0, IX ix, long j) {
        C1886mj0 c1886mj0 = (C1886mj0) c1981nj0.c;
        C1886mj0 c1886mj02 = (C1886mj0) c1981nj0.b;
        boolean zP = As0.p(ix);
        long j2 = ix.b;
        if (zP) {
            AbstractC2219q9.P(c1886mj02.d, null);
            c1886mj02.e = 0;
            AbstractC2219q9.P(c1886mj0.d, null);
            c1886mj0.e = 0;
            c1981nj0.a = 0L;
        }
        if (!As0.r(ix)) {
            List list = ix.k;
            if (list == null) {
                list = C0332Mv.l;
            }
            int i = 0;
            for (int size = list.size(); i < size; size = size) {
                C0892cF c0892cF = (C0892cF) list.get(i);
                long j3 = c0892cF.a;
                long jE = C1765lT.e(c0892cF.c, j);
                c1886mj02.a(Float.intBitsToFloat((int) (jE >> 32)), j3);
                c1886mj0.a(Float.intBitsToFloat((int) (jE & 4294967295L)), j3);
                i++;
            }
            long jE2 = C1765lT.e(ix.l, j);
            c1886mj02.a(Float.intBitsToFloat((int) (jE2 >> 32)), j2);
            c1886mj0.a(Float.intBitsToFloat((int) (jE2 & 4294967295L)), j2);
        }
        if (As0.r(ix) && j2 - c1981nj0.a > 40) {
            AbstractC2219q9.P(c1886mj02.d, null);
            c1886mj02.e = 0;
            AbstractC2219q9.P(c1886mj0.d, null);
            c1886mj0.e = 0;
            c1981nj0.a = 0L;
        }
        c1981nj0.a = j2;
    }

    public static C1116eg p(C0302Lq c0302Lq) {
        C0925cg c0925cg = new C0925cg();
        c0925cg.c = new C2300r20();
        C1116eg c1116eg = new C1116eg(c0925cg);
        c0925cg.b = c1116eg;
        c0925cg.a = AbstractC2462sn.class;
        try {
            c0302Lq.d(new K3(10, c0925cg, c0302Lq));
            c0925cg.a = "Deferred.asListenableFuture";
            return c1116eg;
        } catch (Exception e) {
            c1116eg.m.k(e);
            return c1116eg;
        }
    }

    public static final Object q(Hw0 hw0, AbstractC0298Lm abstractC0298Lm) throws Exception {
        if (!hw0.g()) {
            C2448sg c2448sg = new C2448sg(1, AbstractC2539te.G(abstractC0298Lm));
            c2448sg.r();
            hw0.a(ExecutorC0614Xr.m, new WT(22, c2448sg));
            return c2448sg.q();
        }
        Exception excE = hw0.e();
        if (excE != null) {
            throw excE;
        }
        if (!hw0.d) {
            return hw0.f();
        }
        throw new CancellationException("Task " + hw0 + " was cancelled normally.");
    }

    public static void v(String str, boolean z) {
        if (!z) {
            throw new IllegalArgumentException(str);
        }
    }

    public static void w(int i) {
        if (i < 0) {
            throw new IllegalArgumentException();
        }
    }

    public static void x(Object obj, String str) {
        if (obj == null) {
            throw new NullPointerException(str);
        }
    }

    public static final float[] y(float[] fArr, float[] fArr2, float[] fArr3) {
        S(fArr, fArr2);
        S(fArr, fArr3);
        float[] fArr4 = {fArr3[0] / fArr2[0], fArr3[1] / fArr2[1], fArr3[2] / fArr2[2]};
        float[] fArrO = O(fArr);
        float f = fArr4[0];
        float f2 = fArr[0] * f;
        float f3 = fArr4[1];
        float f4 = fArr[1] * f3;
        float f5 = fArr4[2];
        return R(fArrO, new float[]{f2, f4, fArr[2] * f5, fArr[3] * f, fArr[4] * f3, fArr[5] * f5, f * fArr[6], f3 * fArr[7], f5 * fArr[8]});
    }

    public static final boolean z(Yk0 yk0, Yk0 yk02) {
        if (yk0 == yk02) {
            return true;
        }
        return Math.abs(yk0.a - yk02.a) < 0.001f && Math.abs(yk0.b - yk02.b) < 0.001f;
    }

    public abstract void T(Throwable th);

    public abstract void U(int i);

    public abstract void V(Typeface typeface);

    public abstract void W(C2062oc0 c2062oc0);

    public abstract void a0(C1250g0 c1250g0, C1250g0 c1250g02);

    public abstract void b0(C1250g0 c1250g0, Thread thread);

    public void r(int i) {
        new Handler(Looper.getMainLooper()).post(new RunnableC2120p7(i, 1, this));
    }

    public abstract boolean s(AbstractC1346h0 abstractC1346h0, C0963d0 c0963d0, C0963d0 c0963d02);

    public abstract boolean t(AbstractC1346h0 abstractC1346h0, Object obj, Object obj2);

    public abstract boolean u(AbstractC1346h0 abstractC1346h0, C1250g0 c1250g0, C1250g0 c1250g02);
}
