package o;

import android.database.Cursor;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Rect;
import android.icu.text.DecimalFormatSymbols;
import android.os.Binder;
import android.os.Build;
import android.os.Parcelable;
import android.text.TextDirectionHeuristic;
import android.text.TextDirectionHeuristics;
import android.text.TextPaint;
import android.text.method.PasswordTransformationMethod;
import android.util.Size;
import android.util.SizeF;
import android.util.SparseArray;
import android.view.ActionMode;
import android.view.FocusFinder;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.EdgeEffect;
import android.widget.TextView;
import com.google.android.gms.common.R;
import java.io.IOException;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.TreeMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public abstract class F3 {
    public static final C2943xq f;
    public static final C2943xq g;
    public static CG i;
    public static CG j;
    public static CG k;
    public static final C0081Dd a = new C0081Dd(-1.0f);
    public static final C0081Dd b = new C0081Dd(1.0f);
    public static final C0055Cd c = new C0055Cd(-1.0f);
    public static final C0055Cd d = new C0055Cd(1.0f);
    public static final Class[] e = {Serializable.class, Parcelable.class, String.class, SparseArray.class, Binder.class, Size.class, SizeF.class};
    public static final Object h = new Object();

    static {
        int i2 = 4;
        f = new C2943xq("NULL", i2);
        g = new C2943xq("UNINITIALIZED", i2);
    }

    public static final QX A(View view) {
        QX qx = (QX) view.getTag(R.id.pooling_container_listener_holder_tag);
        if (qx != null) {
            return qx;
        }
        QX qx2 = new QX();
        view.setTag(R.id.pooling_container_listener_holder_tag, qx2);
        return qx2;
    }

    public static final int B(H90 h90) {
        return ((Ea0) AbstractC2884x90.i(h90.l)).e;
    }

    public static C0911cY C(E8 e8) {
        int i2 = Build.VERSION.SDK_INT;
        if (i2 >= 28) {
            return new C0911cY(AbstractC0094Dq.m(e8));
        }
        TextPaint textPaint = new TextPaint(e8.getPaint());
        TextDirectionHeuristic textDirectionHeuristic = TextDirectionHeuristics.FIRSTSTRONG_LTR;
        int breakStrategy = e8.getBreakStrategy();
        int hyphenationFrequency = e8.getHyphenationFrequency();
        if (e8.getTransformationMethod() instanceof PasswordTransformationMethod) {
            textDirectionHeuristic = TextDirectionHeuristics.LTR;
        } else {
            if (i2 < 28 || (e8.getInputType() & 15) != 3) {
                boolean z = e8.getLayoutDirection() == 1;
                switch (e8.getTextDirection()) {
                    case 2:
                        textDirectionHeuristic = TextDirectionHeuristics.ANYRTL_LTR;
                        break;
                    case 3:
                        textDirectionHeuristic = TextDirectionHeuristics.LTR;
                        break;
                    case 4:
                        textDirectionHeuristic = TextDirectionHeuristics.RTL;
                        break;
                    case 5:
                        textDirectionHeuristic = TextDirectionHeuristics.LOCALE;
                        break;
                    case 6:
                        break;
                    case 7:
                        textDirectionHeuristic = TextDirectionHeuristics.FIRSTSTRONG_RTL;
                        break;
                    default:
                        if (z) {
                            textDirectionHeuristic = TextDirectionHeuristics.FIRSTSTRONG_RTL;
                            break;
                        }
                        break;
                }
            } else {
                byte directionality = Character.getDirectionality(AbstractC0094Dq.e(DecimalFormatSymbols.getInstance(e8.getTextLocale()))[0].codePointAt(0));
                textDirectionHeuristic = (directionality == 1 || directionality == 2) ? TextDirectionHeuristics.RTL : TextDirectionHeuristics.LTR;
            }
        }
        return new C0911cY(textPaint, textDirectionHeuristic, breakStrategy, hyphenationFrequency);
    }

    public static final int D(int i2, int i3) {
        return (i2 >> i3) & 31;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public static List E(C1365h90 c1365h90, int i2, C1365h90 c1365h902, boolean z, boolean z2, boolean z3) {
        C0332Mv c0332Mv;
        boolean z4;
        int i3;
        int i4;
        int iS = c1365h90.s(i2);
        int i5 = i2 + iS;
        int iF = c1365h90.f(i2);
        int iF2 = c1365h90.f(i5);
        int i6 = iF2 - iF;
        boolean z5 = i2 >= 0 && (c1365h90.b[(c1365h90.q(i2) * 5) + 1] & 201326592) != 0;
        c1365h902.u(iS);
        c1365h902.v(i6, c1365h902.t);
        if (c1365h90.g < i5) {
            c1365h90.z(i5);
        }
        if (c1365h90.k < iF2) {
            c1365h90.A(iF2, i5);
        }
        int[] iArr = c1365h902.b;
        int i7 = c1365h902.t;
        int i8 = i7 * 5;
        AbstractC2219q9.I(i8, i2 * 5, i5 * 5, c1365h90.b, iArr);
        Object[] objArr = c1365h902.c;
        int i9 = c1365h902.i;
        System.arraycopy(c1365h90.c, iF, objArr, i9, i6);
        int i10 = c1365h902.v;
        iArr[i8 + 2] = i10;
        int i11 = i7 - i2;
        int i12 = i7 + iS;
        int iG = i9 - c1365h902.g(iArr, i7);
        int i13 = c1365h902.m;
        int i14 = c1365h902.l;
        int length = objArr.length;
        boolean z6 = z5;
        int i15 = i13;
        int i16 = i7;
        while (i16 < i12) {
            if (i16 != i7) {
                int i17 = (i16 * 5) + 2;
                iArr[i17] = iArr[i17] + i11;
            }
            int[] iArr2 = iArr;
            int iG2 = c1365h902.g(iArr, i16) + iG;
            if (i15 < i16) {
                i3 = i7;
                i4 = 0;
            } else {
                i3 = i7;
                i4 = c1365h902.k;
            }
            iArr2[(i16 * 5) + 4] = C1365h90.i(iG2, i4, i14, length);
            if (i16 == i15) {
                i15++;
            }
            i16++;
            i7 = i3;
            iArr = iArr2;
        }
        int[] iArr3 = iArr;
        c1365h902.m = i15;
        int iB = AbstractC1269g90.b(c1365h90.d, i2, c1365h90.o());
        int iB2 = AbstractC1269g90.b(c1365h90.d, i5, c1365h90.o());
        if (iB < iB2) {
            ArrayList arrayList = c1365h90.d;
            ArrayList arrayList2 = new ArrayList(iB2 - iB);
            for (int i18 = iB; i18 < iB2; i18++) {
                G2 g2 = (G2) arrayList.get(i18);
                g2.a += i11;
                arrayList2.add(g2);
            }
            c1365h902.d.addAll(AbstractC1269g90.b(c1365h902.d, c1365h902.t, c1365h902.o()), arrayList2);
            arrayList.subList(iB, iB2).clear();
            c0332Mv = arrayList2;
        } else {
            c0332Mv = C0332Mv.l;
        }
        if (!c0332Mv.isEmpty()) {
            HashMap map = c1365h90.e;
            HashMap map2 = c1365h902.e;
            if (map != null && map2 != null) {
                int size = c0332Mv.size();
                for (int i19 = 0; i19 < size; i19++) {
                }
            }
        }
        int i20 = c1365h902.v;
        c1365h902.M(i10);
        int iC = c1365h90.C(c1365h90.b, i2);
        if (!z3) {
            z4 = false;
        } else if (z) {
            boolean z7 = iC >= 0;
            if (z7) {
                c1365h90.N();
                c1365h90.a(iC - c1365h90.t);
                c1365h90.N();
            }
            c1365h90.a(i2 - c1365h90.t);
            boolean zF = c1365h90.F();
            if (z7) {
                c1365h90.K();
                c1365h90.j();
                c1365h90.K();
                c1365h90.j();
            }
            z4 = zF;
        } else {
            boolean zG = c1365h90.G(i2, iS);
            c1365h90.H(iF, i6, i2 - 1);
            z4 = zG;
        }
        if (z4) {
            AbstractC0373Ok.c("Unexpectedly removed anchors");
        }
        int i21 = c1365h902.f555o;
        int i22 = iArr3[i8 + 1];
        c1365h902.f555o = i21 + ((1073741824 & i22) != 0 ? 1 : i22 & 67108863);
        if (z2) {
            c1365h902.t = i12;
            c1365h902.i = i9 + i6;
        }
        if (z6) {
            c1365h902.R(i10);
        }
        return c0332Mv;
    }

    public static final boolean F(H90 h90, OC oc) {
        int i2;
        Y y;
        Object objG;
        AbstractC2220q90 abstractC2220q90K;
        boolean zF;
        do {
            synchronized (h) {
                Ea0 ea0 = (Ea0) AbstractC2884x90.i(h90.l);
                i2 = ea0.d;
                y = ea0.c;
            }
            NW nwE = y.e();
            objG = oc.g(nwE);
            Y yC = nwE.c();
            if (c(yC, y)) {
                break;
            }
            Ea0 ea02 = h90.l;
            synchronized (AbstractC2884x90.c) {
                abstractC2220q90K = AbstractC2884x90.k();
                zF = f((Ea0) AbstractC2884x90.w(ea02, h90, abstractC2220q90K), i2, yC, true);
            }
            AbstractC2884x90.n(abstractC2220q90K, h90);
        } while (!zF);
        return ((Boolean) objG).booleanValue();
    }

    public static float G(EdgeEffect edgeEffect, float f2, float f3) {
        if (Build.VERSION.SDK_INT >= 31) {
            return AbstractC0591Wu.c(edgeEffect, f2, f3);
        }
        AbstractC0565Vu.a(edgeEffect, f2, f3);
        return f2;
    }

    /* JADX WARN: Removed duplicated region for block: B:18:0x0082  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static long H(int r13, java.lang.String r14) throws java.lang.NumberFormatException {
        /*
            Method dump skipped, instructions count: 288
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.F3.H(int, java.lang.String):long");
    }

    public static final void I(float[] fArr, float[] fArr2) {
        float fU = u(fArr2, 0, fArr, 0);
        float fU2 = u(fArr2, 0, fArr, 1);
        float fU3 = u(fArr2, 0, fArr, 2);
        float fU4 = u(fArr2, 0, fArr, 3);
        float fU5 = u(fArr2, 1, fArr, 0);
        float fU6 = u(fArr2, 1, fArr, 1);
        float fU7 = u(fArr2, 1, fArr, 2);
        float fU8 = u(fArr2, 1, fArr, 3);
        float fU9 = u(fArr2, 2, fArr, 0);
        float fU10 = u(fArr2, 2, fArr, 1);
        float fU11 = u(fArr2, 2, fArr, 2);
        float fU12 = u(fArr2, 2, fArr, 3);
        float fU13 = u(fArr2, 3, fArr, 0);
        float fU14 = u(fArr2, 3, fArr, 1);
        float fU15 = u(fArr2, 3, fArr, 2);
        float fU16 = u(fArr2, 3, fArr, 3);
        fArr[0] = fU;
        fArr[1] = fU2;
        fArr[2] = fU3;
        fArr[3] = fU4;
        fArr[4] = fU5;
        fArr[5] = fU6;
        fArr[6] = fU7;
        fArr[7] = fU8;
        fArr[8] = fU9;
        fArr[9] = fU10;
        fArr[10] = fU11;
        fArr[11] = fU12;
        fArr[12] = fU13;
        fArr[13] = fU14;
        fArr[14] = fU15;
        fArr[15] = fU16;
    }

    public static final List J(Cursor cursor) {
        int columnIndex = cursor.getColumnIndex("id");
        int columnIndex2 = cursor.getColumnIndex("seq");
        int columnIndex3 = cursor.getColumnIndex("from");
        int columnIndex4 = cursor.getColumnIndex("to");
        HL hl = new HL(10);
        while (cursor.moveToNext()) {
            hl.add(new C2916xc0(cursor.getInt(columnIndex), cursor.getInt(columnIndex2), cursor.getString(columnIndex3), cursor.getString(columnIndex4)));
        }
        return AbstractC3117zi.o0(AbstractC0662Zn.i(hl));
    }

    public static final C3011yc0 K(FC fc, String str, boolean z) throws IOException {
        Cursor cursorQ = fc.q("PRAGMA index_xinfo(`" + str + "`)");
        try {
            int columnIndex = cursorQ.getColumnIndex("seqno");
            int columnIndex2 = cursorQ.getColumnIndex("cid");
            int columnIndex3 = cursorQ.getColumnIndex("name");
            int columnIndex4 = cursorQ.getColumnIndex("desc");
            if (columnIndex != -1 && columnIndex2 != -1 && columnIndex3 != -1 && columnIndex4 != -1) {
                TreeMap treeMap = new TreeMap();
                TreeMap treeMap2 = new TreeMap();
                while (cursorQ.moveToNext()) {
                    if (cursorQ.getInt(columnIndex2) >= 0) {
                        int i2 = cursorQ.getInt(columnIndex);
                        String string = cursorQ.getString(columnIndex3);
                        String str2 = cursorQ.getInt(columnIndex4) > 0 ? "DESC" : "ASC";
                        treeMap.put(Integer.valueOf(i2), string);
                        treeMap2.put(Integer.valueOf(i2), str2);
                    }
                }
                C3011yc0 c3011yc0 = new C3011yc0(str, z, AbstractC3117zi.t0(treeMap.values()), AbstractC3117zi.t0(treeMap2.values()));
                cursorQ.close();
                return c3011yc0;
            }
            cursorQ.close();
            return null;
        } finally {
        }
    }

    public static final boolean L(View view, Integer num, Rect rect) {
        if (num == null) {
            return view.requestFocus();
        }
        if (!(view instanceof ViewGroup)) {
            return view.requestFocus(num.intValue(), rect);
        }
        ViewGroup viewGroup = (ViewGroup) view;
        if (viewGroup.isFocused()) {
            return true;
        }
        if (viewGroup.isFocusable() && !viewGroup.hasFocus()) {
            return viewGroup.requestFocus(num.intValue(), rect);
        }
        if (view instanceof C2207q3) {
            return ((C2207q3) view).requestFocus(num.intValue(), rect);
        }
        if (rect != null) {
            View viewFindNextFocusFromRect = FocusFinder.getInstance().findNextFocusFromRect(viewGroup, rect, num.intValue());
            return viewFindNextFocusFromRect != null ? viewFindNextFocusFromRect.requestFocus(num.intValue(), rect) : viewGroup.requestFocus(num.intValue(), rect);
        }
        View viewFindNextFocus = FocusFinder.getInstance().findNextFocus(viewGroup, viewGroup.hasFocus() ? viewGroup.findFocus() : null, num.intValue());
        return viewFindNextFocus != null ? viewFindNextFocus.requestFocus(num.intValue()) : view.requestFocus(num.intValue());
    }

    public static void M(RuntimeException runtimeException, String str) {
        StackTraceElement[] stackTrace = runtimeException.getStackTrace();
        int length = stackTrace.length;
        int i2 = -1;
        for (int i3 = 0; i3 < length; i3++) {
            if (str.equals(stackTrace[i3].getClassName())) {
                i2 = i3;
            }
        }
        runtimeException.setStackTrace((StackTraceElement[]) Arrays.copyOfRange(stackTrace, i2 + 1, length));
    }

    public static void N(Window window, boolean z) {
        int i2 = Build.VERSION.SDK_INT;
        if (i2 >= 35) {
            D0.f(window, z);
        } else {
            if (i2 >= 30) {
                D0.e(window, z);
                return;
            }
            View decorView = window.getDecorView();
            int systemUiVisibility = decorView.getSystemUiVisibility();
            decorView.setSystemUiVisibility(z ? systemUiVisibility & (-1793) : systemUiVisibility | 1792);
        }
    }

    public static void O(TextView textView, int i2) {
        AbstractC0249Jp.w(i2);
        if (Build.VERSION.SDK_INT >= 28) {
            AbstractC0094Dq.p(textView, i2);
            return;
        }
        Paint.FontMetricsInt fontMetricsInt = textView.getPaint().getFontMetricsInt();
        int i3 = textView.getIncludeFontPadding() ? fontMetricsInt.top : fontMetricsInt.ascent;
        if (i2 > Math.abs(i3)) {
            textView.setPadding(textView.getPaddingLeft(), i2 + i3, textView.getPaddingRight(), textView.getPaddingBottom());
        }
    }

    public static final void P(Matrix matrix, float[] fArr) {
        float f2 = fArr[0];
        float f3 = fArr[1];
        float f4 = fArr[2];
        float f5 = fArr[3];
        float f6 = fArr[4];
        float f7 = fArr[5];
        float f8 = fArr[6];
        float f9 = fArr[7];
        float f10 = fArr[8];
        float f11 = fArr[12];
        float f12 = fArr[13];
        float f13 = fArr[15];
        fArr[0] = f2;
        fArr[1] = f6;
        fArr[2] = f11;
        fArr[3] = f3;
        fArr[4] = f7;
        fArr[5] = f12;
        fArr[6] = f5;
        fArr[7] = f9;
        fArr[8] = f13;
        matrix.setValues(fArr);
        fArr[0] = f2;
        fArr[1] = f3;
        fArr[2] = f4;
        fArr[3] = f5;
        fArr[4] = f6;
        fArr[5] = f7;
        fArr[6] = f8;
        fArr[7] = f9;
        fArr[8] = f10;
    }

    public static final void Q(Matrix matrix, float[] fArr) {
        matrix.getValues(fArr);
        float f2 = fArr[0];
        float f3 = fArr[1];
        float f4 = fArr[2];
        float f5 = fArr[3];
        float f6 = fArr[4];
        float f7 = fArr[5];
        float f8 = fArr[6];
        float f9 = fArr[7];
        float f10 = fArr[8];
        fArr[0] = f2;
        fArr[1] = f5;
        fArr[2] = 0.0f;
        fArr[3] = f8;
        fArr[4] = f3;
        fArr[5] = f6;
        fArr[6] = 0.0f;
        fArr[7] = f9;
        fArr[8] = 0.0f;
        fArr[9] = 0.0f;
        fArr[10] = 1.0f;
        fArr[11] = 0.0f;
        fArr[12] = f4;
        fArr[13] = f7;
        fArr[14] = 0.0f;
        fArr[15] = f10;
    }

    public static void R(TextView textView, int i2) {
        AbstractC0249Jp.w(i2);
        Paint.FontMetricsInt fontMetricsInt = textView.getPaint().getFontMetricsInt();
        int i3 = textView.getIncludeFontPadding() ? fontMetricsInt.bottom : fontMetricsInt.descent;
        if (i2 > Math.abs(i3)) {
            textView.setPadding(textView.getPaddingLeft(), textView.getPaddingTop(), textView.getPaddingRight(), i2 - i3);
        }
    }

    public static void S(TextView textView, int i2) {
        AbstractC0249Jp.w(i2);
        if (i2 != textView.getPaint().getFontMetricsInt(null)) {
            textView.setLineSpacing(i2 - r0, 1.0f);
        }
    }

    public static final Integer T(int i2) {
        if (i2 == 5) {
            return 33;
        }
        if (i2 == 6) {
            return 130;
        }
        if (i2 == 3) {
            return 17;
        }
        if (i2 == 4) {
            return 66;
        }
        if (i2 == 1) {
            return 2;
        }
        return i2 == 2 ? 1 : null;
    }

    public static final C0388Oz U(int i2) {
        if (i2 == 1) {
            return new C0388Oz(2);
        }
        if (i2 == 2) {
            return new C0388Oz(1);
        }
        if (i2 == 17) {
            return new C0388Oz(3);
        }
        if (i2 == 33) {
            return new C0388Oz(5);
        }
        if (i2 == 66) {
            return new C0388Oz(4);
        }
        if (i2 != 130) {
            return null;
        }
        return new C0388Oz(6);
    }

    public static ActionMode.Callback V(ActionMode.Callback callback) {
        return (!(callback instanceof ActionModeCallbackC1211ff0) || Build.VERSION.SDK_INT < 26) ? callback : ((ActionModeCallbackC1211ff0) callback).a;
    }

    public static ActionMode.Callback W(ActionMode.Callback callback, TextView textView) {
        int i2 = Build.VERSION.SDK_INT;
        return (i2 < 26 || i2 > 27 || (callback instanceof ActionModeCallbackC1211ff0) || callback == null) ? callback : new ActionModeCallbackC1211ff0(callback, textView);
    }

    public static final long a(float f2, boolean z, boolean z2) {
        return (((z ? 1L : 0L) | (z2 ? 2L : 0L)) & 4294967295L) | (Float.floatToRawIntBits(f2) << 32);
    }

    public static final void b(int i2, int i3) {
        if (i2 < 0 || i2 >= i3) {
            throw new IndexOutOfBoundsException("index (" + i2 + ") is out of bound of [0, " + i3 + ')');
        }
    }

    public static boolean c(Object obj, Object obj2) {
        return obj == null ? obj2 == null : obj.equals(obj2);
    }

    public static final boolean d(byte[] bArr, int i2, byte[] bArr2, int i3, int i4) {
        for (int i5 = 0; i5 < i4; i5++) {
            if (bArr[i5 + i2] != bArr2[i5 + i3]) {
                return false;
            }
        }
        return true;
    }

    public static final void e(AbstractC0934ck0 abstractC0934ck0, C1640k40 c1640k40, WK wk) {
        AutoCloseable autoCloseable;
        C1030dk0 c1030dk0 = abstractC0934ck0.a;
        if (c1030dk0 != null) {
            synchronized (c1030dk0.a) {
                autoCloseable = (AutoCloseable) c1030dk0.b.get("androidx.lifecycle.savedstate.vm.tag");
            }
        } else {
            autoCloseable = null;
        }
        C1067e40 c1067e40 = (C1067e40) autoCloseable;
        if (c1067e40 == null || c1067e40.n) {
            return;
        }
        c1067e40.j(c1640k40, wk);
        VK vkB = wk.b();
        if (vkB == VK.m || vkB.a(VK.f372o)) {
            c1640k40.d();
        } else {
            wk.a(new C2184pq(1, wk, c1640k40));
        }
    }

    public static final boolean f(Ea0 ea0, int i2, Y y, boolean z) {
        boolean z2;
        synchronized (h) {
            try {
                int i3 = ea0.d;
                if (i3 == i2) {
                    ea0.c = y;
                    z2 = true;
                    if (z) {
                        ea0.e++;
                    }
                    ea0.d = i3 + 1;
                } else {
                    z2 = false;
                }
            } catch (Throwable th) {
                throw th;
            }
        }
        return z2;
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void g(o.AbstractC0298Lm r4) {
        /*
            boolean r0 = r4 instanceof o.C0431Qq
            if (r0 == 0) goto L13
            r0 = r4
            o.Qq r0 = (o.C0431Qq) r0
            int r1 = r0.p
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.p = r1
            goto L18
        L13:
            o.Qq r0 = new o.Qq
            r0.<init>(r4)
        L18:
            java.lang.Object r4 = r0.f303o
            int r1 = r0.p
            r2 = 1
            if (r1 == 0) goto L2d
            if (r1 == r2) goto L29
            java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r4.<init>(r0)
            throw r4
        L29:
            o.IJ.H(r4)
            goto L47
        L2d:
            o.IJ.H(r4)
            r0.p = r2
            o.sg r4 = new o.sg
            o.Im r0 = o.AbstractC2539te.G(r0)
            r4.<init>(r2, r0)
            r4.r()
            java.lang.Object r4 = r4.q()
            o.Dn r0 = o.EnumC0091Dn.l
            if (r4 != r0) goto L47
            return
        L47:
            o.pj r4 = new o.pj
            r4.<init>()
            throw r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.F3.g(o.Lm):void");
    }

    public static final T00 h(View view, C2207q3 c2207q3) {
        int[] iArr = AbstractC1692kh0.m;
        view.getLocationInWindow(iArr);
        int i2 = iArr[0];
        int i3 = iArr[1];
        c2207q3.getLocationInWindow(iArr);
        float f2 = i2 - iArr[0];
        float f3 = i3 - iArr[1];
        return new T00(f2, f3, view.getWidth() + f2, view.getHeight() + f3);
    }

    public static final boolean i(Object obj) {
        if (obj instanceof B90) {
            B90 b90 = (B90) obj;
            if (b90.d() == C0669Zu.O || b90.d() == ME.G || b90.d() == C0669Zu.S) {
                Object value = b90.getValue();
                if (value == null) {
                    return true;
                }
                return i(value);
            }
        } else {
            if ((obj instanceof QC) && (obj instanceof Serializable)) {
                return false;
            }
            for (int i2 = 0; i2 < 7; i2++) {
                if (e[i2].isInstance(obj)) {
                    return true;
                }
            }
        }
        return false;
    }

    public static void j(Object obj, Object obj2) {
        if (obj == null) {
            String strValueOf = String.valueOf(obj2);
            StringBuilder sb = new StringBuilder(strValueOf.length() + 24);
            sb.append("null key in entry: null=");
            sb.append(strValueOf);
            throw new NullPointerException(sb.toString());
        }
        if (obj2 != null) {
            return;
        }
        String strValueOf2 = String.valueOf(obj);
        StringBuilder sb2 = new StringBuilder(strValueOf2.length() + 26);
        sb2.append("null value in entry: ");
        sb2.append(strValueOf2);
        sb2.append("=null");
        throw new NullPointerException(sb2.toString());
    }

    public static void k(int i2, String str) {
        if (i2 >= 0) {
            return;
        }
        StringBuilder sb = new StringBuilder(str.length() + 40);
        sb.append(str);
        sb.append(" cannot be negative but was: ");
        sb.append(i2);
        throw new IllegalArgumentException(sb.toString());
    }

    public static final void l(long j2, long j3, long j4) {
        if ((j3 | j4) < 0 || j3 > j2 || j2 - j3 < j4) {
            throw new ArrayIndexOutOfBoundsException("size=" + j2 + " offset=" + j3 + " byteCount=" + j4);
        }
    }

    public static int m(int i2, int i3) {
        if (i2 < i3) {
            return -1;
        }
        return i2 == i3 ? 0 : 1;
    }

    public static int n(long j2, long j3) {
        if (j2 < j3) {
            return -1;
        }
        return j2 == j3 ? 0 : 1;
    }

    public static int o(C2204q10 c2204q10, AbstractC1624jv abstractC1624jv, View view, View view2, AbstractC1157f10 abstractC1157f10, boolean z) {
        if (abstractC1157f10.v() == 0 || c2204q10.b() == 0 || view == null || view2 == null) {
            return 0;
        }
        if (!z) {
            return Math.abs(AbstractC1157f10.H(view) - AbstractC1157f10.H(view2)) + 1;
        }
        return Math.min(abstractC1624jv.l(), abstractC1624jv.b(view2) - abstractC1624jv.e(view));
    }

    public static int p(C2204q10 c2204q10, AbstractC1624jv abstractC1624jv, View view, View view2, AbstractC1157f10 abstractC1157f10, boolean z, boolean z2) {
        if (abstractC1157f10.v() == 0 || c2204q10.b() == 0 || view == null || view2 == null) {
            return 0;
        }
        int iMax = z2 ? Math.max(0, (c2204q10.b() - Math.max(AbstractC1157f10.H(view), AbstractC1157f10.H(view2))) - 1) : Math.max(0, Math.min(AbstractC1157f10.H(view), AbstractC1157f10.H(view2)));
        if (z) {
            return Math.round((iMax * (Math.abs(abstractC1624jv.b(view2) - abstractC1624jv.e(view)) / (Math.abs(AbstractC1157f10.H(view) - AbstractC1157f10.H(view2)) + 1))) + (abstractC1624jv.k() - abstractC1624jv.e(view)));
        }
        return iMax;
    }

    public static int q(C2204q10 c2204q10, AbstractC1624jv abstractC1624jv, View view, View view2, AbstractC1157f10 abstractC1157f10, boolean z) {
        if (abstractC1157f10.v() == 0 || c2204q10.b() == 0 || view == null || view2 == null) {
            return 0;
        }
        if (!z) {
            return c2204q10.b();
        }
        return (int) (((abstractC1624jv.b(view2) - abstractC1624jv.e(view)) / (Math.abs(AbstractC1157f10.H(view) - AbstractC1157f10.H(view2)) + 1)) * c2204q10.b());
    }

    public static int s(boolean z, String str, int i2, int i3) {
        while (i2 < i3) {
            char cCharAt = str.charAt(i2);
            if (((cCharAt < ' ' && cCharAt != '\t') || cCharAt >= 127 || ('0' <= cCharAt && cCharAt < ':') || (('a' <= cCharAt && cCharAt < '{') || (('A' <= cCharAt && cCharAt < '[') || cCharAt == ':'))) == (!z)) {
                return i2;
            }
            i2++;
        }
        return i3;
    }

    public static final Object t(long j2, InterfaceC0220Im interfaceC0220Im) {
        if (j2 > 0) {
            C2448sg c2448sg = new C2448sg(1, AbstractC2539te.G(interfaceC0220Im));
            c2448sg.r();
            if (j2 < Long.MAX_VALUE) {
                y(c2448sg.p).G(j2, c2448sg);
            }
            Object objQ = c2448sg.q();
            if (objQ == EnumC0091Dn.l) {
                return objQ;
            }
        }
        return Oh0.a;
    }

    public static final float u(float[] fArr, int i2, float[] fArr2, int i3) {
        int i4 = i2 * 4;
        return (fArr[i4 + 3] * fArr2[12 + i3]) + (fArr[i4 + 2] * fArr2[8 + i3]) + (fArr[i4 + 1] * fArr2[4 + i3]) + (fArr[i4] * fArr2[i3]);
    }

    public static final CG w() {
        CG cg = i;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.Badge", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i2 = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(20.0f, 7.0f);
        ke.i(-5.0f);
        ke.q(4.0f);
        ke.g(0.0f, -1.1f, -0.9f, -2.0f, -2.0f, -2.0f);
        ke.i(-2.0f);
        ke.f(9.9f, 2.0f, 9.0f, 2.9f, 9.0f, 4.0f);
        ke.r(3.0f);
        ke.h(4.0f);
        ke.f(2.9f, 7.0f, 2.0f, 7.9f, 2.0f, 9.0f);
        ke.r(11.0f);
        ke.g(0.0f, 1.1f, 0.9f, 2.0f, 2.0f, 2.0f);
        ke.i(16.0f);
        ke.g(1.1f, 0.0f, 2.0f, -0.9f, 2.0f, -2.0f);
        ke.q(9.0f);
        ke.f(22.0f, 7.9f, 21.1f, 7.0f, 20.0f, 7.0f);
        ke.e();
        ke.l(9.0f, 12.0f);
        ke.g(0.83f, 0.0f, 1.5f, 0.67f, 1.5f, 1.5f);
        ke.m(9.83f, 15.0f, 9.0f, 15.0f);
        ke.n(-1.5f, -0.67f, -1.5f, -1.5f);
        ke.m(8.17f, 12.0f, 9.0f, 12.0f);
        ke.e();
        ke.l(12.0f, 18.0f);
        ke.h(6.0f);
        ke.r(-0.75f);
        ke.g(0.0f, -1.0f, 2.0f, -1.5f, 3.0f, -1.5f);
        ke.n(3.0f, 0.5f, 3.0f, 1.5f);
        ke.q(18.0f);
        ke.e();
        ke.l(13.0f, 9.0f);
        ke.i(-2.0f);
        ke.q(4.0f);
        ke.i(2.0f);
        ke.q(9.0f);
        ke.e();
        ke.l(18.0f, 16.5f);
        ke.i(-4.0f);
        ke.q(15.0f);
        ke.i(4.0f);
        ke.q(16.5f);
        ke.e();
        ke.l(18.0f, 13.5f);
        ke.i(-4.0f);
        ke.q(12.0f);
        ke.i(4.0f);
        ke.q(13.5f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        i = cgB;
        return cgB;
    }

    public static final InterfaceC0405Pq y(InterfaceC2747vn interfaceC2747vn) {
        InterfaceC2557tn interfaceC2557tnM = interfaceC2747vn.m(C0669Zu.D);
        InterfaceC0405Pq interfaceC0405Pq = interfaceC2557tnM instanceof InterfaceC0405Pq ? (InterfaceC0405Pq) interfaceC2557tnM : null;
        return interfaceC0405Pq == null ? AbstractC0560Vp.a : interfaceC0405Pq;
    }

    public static float z(EdgeEffect edgeEffect) {
        if (Build.VERSION.SDK_INT >= 31) {
            return AbstractC0591Wu.b(edgeEffect);
        }
        return 0.0f;
    }

    public abstract boolean r(C3100zZ c3100zZ);

    public abstract Object v(C3100zZ c3100zZ);

    public abstract T00 x();
}
