package J0;

import C0.C0100a;
import C0.C0104e;
import C0.C0105f;
import C0.C0111l;
import C0.C0112m;
import C0.InterfaceC0110k;
import C0.InterfaceC0121w;
import C0.InterfaceC0122x;
import I0.AbstractC0300j0;
import I0.AbstractC0301k;
import I0.AbstractC0303l;
import I0.C0283b;
import I0.C0287d;
import I0.C0290e0;
import I0.C0310t;
import I0.EnumC0312v;
import Q0.C0586a;
import T0.C0596g;
import X0.InterfaceC0805s;
import X0.InterfaceC0807u;
import a.AbstractC0872a;
import android.content.Context;
import android.content.res.Configuration;
import android.graphics.Canvas;
import android.graphics.Point;
import android.graphics.Rect;
import android.os.Build;
import android.os.Looper;
import android.os.StrictMode;
import android.os.Trace;
import android.util.LongSparseArray;
import android.util.SparseArray;
import android.util.SparseLongArray;
import android.view.FocusFinder;
import android.view.InputDevice;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.PointerIcon;
import android.view.ScrollCaptureTarget;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.ViewStructure;
import android.view.ViewTreeObserver;
import android.view.accessibility.AccessibilityManager;
import android.view.accessibility.AccessibilityNodeInfo;
import android.view.animation.AnimationUtils;
import android.view.autofill.AutofillId;
import android.view.autofill.AutofillManager;
import android.view.autofill.AutofillValue;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.translation.TranslationRequestValue;
import android.view.translation.ViewTranslationRequest;
import androidx.compose.runtime.CancellationHandle;
import androidx.compose.runtime.MutableState;
import androidx.compose.runtime.SnapshotStateKt;
import androidx.compose.runtime.SnapshotStateKt__SnapshotStateKt;
import androidx.compose.runtime.State;
import androidx.compose.runtime.collection.MutableVector;
import androidx.compose.runtime.retain.ForgetfulRetainedValuesStore;
import androidx.compose.runtime.retain.RetainedValuesStore;
import androidx.compose.runtime.snapshots.Snapshot;
import androidx.compose.runtime.snapshots.SnapshotStateObserver;
import androidx.compose.ui.platform.LifecycleRetainedValuesStoreOwner;
import androidx.lifecycle.DefaultLifecycleObserver;
import androidx.lifecycle.InterfaceC1113w;
import androidx.media3.exoplayer.DecoderReuseEvaluation;
import androidx.media3.extractor.ts.TsExtractor;
import com.debridstream.tv.R;
import d2.C1864a;
import h1.C2069a;
import i0.AbstractC2238b;
import i0.AbstractC2254r;
import i0.C2257u;
import i0.C2258v;
import j0.AbstractC2313j;
import j0.C2306c;
import j0.C2312i;
import j0.C2314k;
import j0.InterfaceC2310g;
import j1.AbstractC2319a;
import java.lang.ref.WeakReference;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CancellationException;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Consumer;
import m3.AbstractC2467b;
import m3.AbstractC2478m;
import n.AbstractC2588o;
import n.C2566A;
import n.C2567B;
import n.C2592t;
import n0.AbstractC2603d;
import n0.C2605f;
import n2.InterfaceC2618i;
import o0.C2632c;
import p0.AbstractC2686D;
import p0.C2692J;
import p0.C2696b;
import p0.C2699e;
import p0.C2713t;
import p0.InterfaceC2684B;
import q.AbstractC2761L;
import w4.C3137A;
import w4.InterfaceC3141c;
import x0.InterfaceC3208a;
import x4.AbstractC3252r;
import x4.C3249o;
import y0.C3259a;
import y0.C3261c;
import y0.InterfaceC3260b;
import z0.C3291a;
import z0.C3292b;
import z0.InterfaceC3293c;

/* JADX INFO: loaded from: classes.dex */
public final class A extends ViewGroup implements I0.t0, I0.B0, InterfaceC0110k, DefaultLifecycleObserver, I0.q0, ViewTreeObserver.OnGlobalLayoutListener, ViewTreeObserver.OnScrollChangedListener, ViewTreeObserver.OnTouchModeChangeListener, n0.j {

    /* JADX INFO: renamed from: N0, reason: collision with root package name */
    public static Class f2695N0;

    /* JADX INFO: renamed from: O0, reason: collision with root package name */
    public static Method f2696O0;

    /* JADX INFO: renamed from: P0, reason: collision with root package name */
    public static Method f2697P0;

    /* JADX INFO: renamed from: Q0, reason: collision with root package name */
    public static final n.J f2698Q0 = new n.J();

    /* JADX INFO: renamed from: R0, reason: collision with root package name */
    public static RunnableC0371m f2699R0;

    /* JADX INFO: renamed from: S0, reason: collision with root package name */
    public static Method f2700S0;

    /* JADX INFO: renamed from: A, reason: collision with root package name */
    public final Q0.u f2701A;

    /* JADX INFO: renamed from: A0, reason: collision with root package name */
    public final n.J f2702A0;

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

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

    /* JADX INFO: renamed from: C, reason: collision with root package name */
    public k0.e f2705C;

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

    /* JADX INFO: renamed from: D, reason: collision with root package name */
    public final C0361h f2707D;

    /* JADX INFO: renamed from: D0, reason: collision with root package name */
    public final I2.K f2708D0;

    /* JADX INFO: renamed from: E, reason: collision with root package name */
    public final C2699e f2709E;
    public final RunnableC0369l E0;

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

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

    /* JADX INFO: renamed from: G, reason: collision with root package name */
    public final n.J f2712G;

    /* JADX INFO: renamed from: G0, reason: collision with root package name */
    public final H0 f2713G0;

    /* JADX INFO: renamed from: H, reason: collision with root package name */
    public n.J f2714H;

    /* JADX INFO: renamed from: H0, reason: collision with root package name */
    public final C0386u f2715H0;

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

    /* JADX INFO: renamed from: I0, reason: collision with root package name */
    public final InterfaceC0372m0 f2717I0;

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

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

    /* JADX INFO: renamed from: K, reason: collision with root package name */
    public final C0112m f2720K;
    public final C0.B K0;

    /* JADX INFO: renamed from: L, reason: collision with root package name */
    public final C0.D f2721L;
    public View L0;

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

    /* JADX INFO: renamed from: M0, reason: collision with root package name */
    public final C0388v f2723M0;

    /* JADX INFO: renamed from: N, reason: collision with root package name */
    public final C0.J f2724N;

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

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

    /* JADX INFO: renamed from: Q, reason: collision with root package name */
    public final C0365j f2727Q;

    /* JADX INFO: renamed from: R, reason: collision with root package name */
    public final C0363i f2728R;

    /* JADX INFO: renamed from: S, reason: collision with root package name */
    public final I0.v0 f2729S;

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

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

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

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

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

    /* JADX INFO: renamed from: a0, reason: collision with root package name */
    public final I0.W f2735a0;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final boolean f2736b;

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

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

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final I0.J f2740d;

    /* JADX INFO: renamed from: d0, reason: collision with root package name */
    public final float[] f2741d0;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public O0 f2742e;
    public final float[] e0;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public P0 f2743f;
    public final float[] f0;
    public long g0;
    public boolean h0;

    /* JADX INFO: renamed from: i0, reason: collision with root package name */
    public long f2744i0;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public RetainedValuesStore f2745j;

    /* JADX INFO: renamed from: j0, reason: collision with root package name */
    public final MutableState f2746j0;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final C3249o f2747k;

    /* JADX INFO: renamed from: k0, reason: collision with root package name */
    public final State f2748k0;
    public final RunnableC0369l l;

    /* JADX INFO: renamed from: l0, reason: collision with root package name */
    public J4.c f2749l0;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final MutableState f2750m;

    /* JADX INFO: renamed from: m0, reason: collision with root package name */
    public final Z0.B f2751m0;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    public final View f2752n;

    /* JADX INFO: renamed from: n0, reason: collision with root package name */
    public final Z0.z f2753n0;

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

    /* JADX INFO: renamed from: o0, reason: collision with root package name */
    public final AtomicReference f2755o0;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    public final n0.o f2756p;

    /* JADX INFO: renamed from: p0, reason: collision with root package name */
    public final C0395y0 f2757p0;

    /* JADX INFO: renamed from: q, reason: collision with root package name */
    public A4.j f2758q;

    /* JADX INFO: renamed from: q0, reason: collision with root package name */
    public final I0 f2759q0;

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final l0.b f2760r;

    /* JADX INFO: renamed from: r0, reason: collision with root package name */
    public final MutableState f2761r0;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final M0 f2762s;

    /* JADX INFO: renamed from: s0, reason: collision with root package name */
    public final MutableState f2763s0;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final C2713t f2764t;

    /* JADX INFO: renamed from: t0, reason: collision with root package name */
    public final C0393x0 f2765t0;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    public final C0360g0 f2766u;

    /* JADX INFO: renamed from: u0, reason: collision with root package name */
    public final C3261c f2767u0;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final G0.r f2768v;

    /* JADX INFO: renamed from: v0, reason: collision with root package name */
    public final H0.b f2769v0;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    public final I0.H f2770w;

    /* JADX INFO: renamed from: w0, reason: collision with root package name */
    public final Y f2771w0;

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    public final C2566A f2772x;

    /* JADX INFO: renamed from: x0, reason: collision with root package name */
    public MotionEvent f2773x0;

    /* JADX INFO: renamed from: y, reason: collision with root package name */
    public final R0.b f2774y;

    /* JADX INFO: renamed from: y0, reason: collision with root package name */
    public long f2775y0;

    /* JADX INFO: renamed from: z, reason: collision with root package name */
    public final A f2776z;

    /* JADX INFO: renamed from: z0, reason: collision with root package name */
    public final T.p f2777z0;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public A(Context context, A4.j jVar) {
        C2306c c2306c;
        super(context);
        this.f2734a = 9205357640488583168L;
        int i6 = 1;
        this.f2736b = true;
        this.f2740d = new I0.J();
        this.f2745j = ForgetfulRetainedValuesStore.INSTANCE;
        this.f2747k = new C3249o();
        int i7 = 0;
        this.l = new RunnableC0369l(this, i7);
        this.f2750m = SnapshotStateKt.mutableStateOf(W.d.d(context), SnapshotStateKt.referentialEqualityPolicy());
        int i8 = Build.VERSION.SDK_INT;
        boolean z6 = i8 >= 35;
        this.f2754o = z6;
        Q0.f fVar = new Q0.f();
        this.f2756p = new n0.o(this, this);
        this.f2758q = jVar;
        A a6 = this;
        a6.f2760r = new l0.b(new r(3, 0, A.class, this, "startDrag", "startDrag-12SF9DM(Landroidx/compose/ui/draganddrop/DragAndDropTransferData;JLkotlin/jvm/functions/Function1;)Z"));
        a6.f2762s = new M0();
        a6.f2764t = new C2713t();
        a6.f2766u = new C0360g0(ViewConfiguration.get(context));
        a6.f2768v = new G0.r();
        I0.H h5 = new I0.H(3);
        h5.c0(G0.v0.f2021b);
        h5.Z(a6.getDensity());
        h5.e0(a6.getViewConfiguration());
        h5.d0(new C0392x(a6).then(((n0.o) a6.getFocusOwner()).f21534e).then(a6.m10getDragAndDropManager().f20135c));
        a6.f2770w = h5;
        C2566A c2566a = AbstractC2588o.f21461a;
        a6.f2772x = new C2566A();
        a6.m11getLayoutNodes();
        a6.f2774y = new R0.b();
        a6.f2776z = a6;
        a6.f2701A = new Q0.u(a6.getRoot(), fVar, a6.m11getLayoutNodes());
        G g6 = new G(a6);
        a6.f2703B = g6;
        a6.f2705C = new k0.e(a6, new C0379q(0, a6, O.class, "getContentCaptureSessionCompat", "getContentCaptureSessionCompat(Landroid/view/View;)Landroidx/compose/ui/contentcapture/ContentCaptureSessionWrapper;", 1, 0));
        a6.f2707D = new C0361h(context);
        a6.f2709E = new C2699e(a6);
        a6.f2710F = new C2314k();
        a6.f2712G = new n.J();
        a6.f2720K = new C0112m();
        I0.H root = a6.getRoot();
        C0.D d6 = new C0.D();
        d6.f519b = root;
        d6.f520c = new C0105f((C0310t) root.f2162J.f2362d);
        d6.f521d = new C0.B(0);
        d6.f522e = new I0.r();
        a6.f2721L = d6;
        a6.f2722M = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(new Configuration(context.getResources().getConfiguration()), null, 2, null);
        a6.f2724N = g() ? new C0.J(a6, a6.getAutofillTree()) : null;
        if (g()) {
            AutofillManager autofillManagerH = coil.decode.a.h(context.getSystemService(coil.decode.a.n()));
            if (autofillManagerH == null) {
                throw com.google.android.recaptcha.internal.a.g("Autofill service could not be located.");
            }
            a6 = this;
            c2306c = new C2306c(new C0.B(autofillManagerH, 28), getSemanticsOwner(), this, getRectManager(), context.getPackageName());
        } else {
            c2306c = null;
        }
        a6.f2725O = c2306c;
        a6.f2727Q = new C0365j(context);
        a6.f2728R = new C0363i(a6.m9getClipboardManager());
        a6.f2729S = new I0.v0(new C0384t(a6, i6));
        a6.f2735a0 = new I0.W(a6.getRoot());
        long j4 = Integer.MAX_VALUE;
        a6.f2737b0 = (j4 & 4294967295L) | (j4 << 32);
        a6.f2739c0 = new int[]{0, 0};
        float[] fArrA = C2692J.a();
        a6.f2741d0 = fArrA;
        a6.e0 = C2692J.a();
        a6.f0 = C2692J.a();
        a6.g0 = -1L;
        a6.f2744i0 = 9187343241974906880L;
        a6.f2746j0 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(null, null, 2, null);
        a6.f2748k0 = SnapshotStateKt.derivedStateOf(new C0386u(a6, i));
        Z0.B b5 = new Z0.B(a6.getView(), a6);
        a6.f2751m0 = b5;
        a6.f2753n0 = new Z0.z(b5);
        a6.f2755o0 = new AtomicReference(null);
        a6.f2757p0 = new C0395y0(a6.getTextInputService());
        a6.f2759q0 = new I0();
        a6.f2761r0 = SnapshotStateKt.mutableStateOf(W.b.V(context), SnapshotStateKt.referentialEqualityPolicy());
        int layoutDirection = context.getResources().getConfiguration().getLayoutDirection();
        int[] iArr = n0.h.f21521a;
        h1.m mVar = layoutDirection != 0 ? layoutDirection != 1 ? null : h1.m.f16629b : h1.m.f16628a;
        a6.f2763s0 = SnapshotStateKt__SnapshotStateKt.mutableStateOf$default(mVar == null ? h1.m.f16628a : mVar, null, 2, null);
        a6.f2765t0 = new C0393x0(a6, 1);
        a6.f2767u0 = new C3261c(a6.isInTouchMode() ? 1 : 2);
        H0.b bVar = new H0.b();
        new MutableVector(new C0283b[16], 0);
        new MutableVector(new AbstractC0872a[16], 0);
        new MutableVector(new I0.H[16], 0);
        new MutableVector(new AbstractC0872a[16], 0);
        a6.f2769v0 = bVar;
        Y y6 = new Y();
        new u4.c(new B0.b(y6, 6));
        EnumC0353d1[] enumC0353d1Arr = EnumC0353d1.f3003a;
        a6.f2771w0 = y6;
        a6.f2777z0 = new T.p(14);
        a6.f2702A0 = new n.J();
        a6.f2708D0 = new I2.K(a6, i6);
        a6.E0 = new RunnableC0369l(a6, i6);
        a6.f2713G0 = new H0(context, new C0384t(a6, i7));
        a6.f2715H0 = new C0386u(a6, i6);
        a6.f2717I0 = i8 < 29 ? new C0374n0(fArrA) : new C0376o0();
        a6.addOnAttachStateChangeListener(a6.f2705C);
        a6.setWillNotDraw(false);
        a6.setFocusable(true);
        if (i8 >= 26) {
            N.f2901a.a(a6, 1, false);
        }
        a6.setFocusableInTouchMode(true);
        a6.setClipChildren(false);
        F1.F.d(a6, g6);
        a6.setOnDragListener(a6.m10getDragAndDropManager());
        a6.getRoot().b(a6);
        if (i8 >= 29) {
            I.f2882a.a(a6);
        }
        if (z6) {
            View view = new View(context);
            view.setLayoutParams(new ViewGroup.LayoutParams(1, 1));
            view.setTag(R.id.hide_in_inspector_tag, Boolean.TRUE);
            a6.f2752n = view;
            a6.addView(view, -1);
        }
        a6.K0 = i8 >= 31 ? new C0.B(15) : null;
        a6.f2723M0 = new C0388v(a6);
    }

    public static final void c(A a6, int i6, AccessibilityNodeInfo accessibilityNodeInfo, String str) {
        int iD;
        G g6 = a6.f2703B;
        if (kotlin.jvm.internal.o.c(str, g6.f2847H)) {
            int iD2 = g6.f2845F.d(i6);
            if (iD2 != -1) {
                accessibilityNodeInfo.getExtras().putInt(str, iD2);
                return;
            }
            return;
        }
        if (!kotlin.jvm.internal.o.c(str, g6.f2848I) || (iD = g6.f2846G.d(i6)) == -1) {
            return;
        }
        accessibilityNodeInfo.getExtras().putInt(str, iD);
    }

    public static boolean g() {
        return Build.VERSION.SDK_INT >= 26;
    }

    /* JADX INFO: Access modifiers changed from: private */
    /* JADX WARN: Multi-variable type inference failed */
    public final C0375o get_viewTreeOwners() {
        return (C0375o) this.f2746j0.getValue();
    }

    public static void h(ViewGroup viewGroup) {
        int childCount = viewGroup.getChildCount();
        for (int i6 = 0; i6 < childCount; i6++) {
            View childAt = viewGroup.getChildAt(i6);
            if (childAt instanceof A) {
                ((A) childAt).x();
            } else if (childAt instanceof ViewGroup) {
                h((ViewGroup) childAt);
            }
        }
    }

    public static long i(int i6) {
        int mode = View.MeasureSpec.getMode(i6);
        int size = View.MeasureSpec.getSize(i6);
        if (mode == Integer.MIN_VALUE) {
            return (((long) 0) << 32) | ((long) size);
        }
        if (mode == 0) {
            return (((long) 0) << 32) | ((long) Integer.MAX_VALUE);
        }
        if (mode != 1073741824) {
            throw new IllegalStateException();
        }
        long j4 = size;
        return (j4 << 32) | j4;
    }

    public static View j(int i6, View view) throws NoSuchMethodException {
        if (Build.VERSION.SDK_INT >= 29) {
            return null;
        }
        Method declaredMethod = View.class.getDeclaredMethod("getAccessibilityViewId", new Class[0]);
        declaredMethod.setAccessible(true);
        if (kotlin.jvm.internal.o.c(declaredMethod.invoke(view, new Object[0]), Integer.valueOf(i6))) {
            return view;
        }
        if (!(view instanceof ViewGroup)) {
            return null;
        }
        ViewGroup viewGroup = (ViewGroup) view;
        int childCount = viewGroup.getChildCount();
        for (int i7 = 0; i7 < childCount; i7++) {
            View viewJ = j(i6, viewGroup.getChildAt(i7));
            if (viewJ != null) {
                return viewJ;
            }
        }
        return null;
    }

    public static void m(I0.H h5) {
        h5.B();
        MutableVector mutableVectorX = h5.x();
        Object[] objArr = mutableVectorX.content;
        int size = mutableVectorX.getSize();
        for (int i6 = 0; i6 < size; i6++) {
            m((I0.H) objArr[i6]);
        }
    }

    public static boolean o(MotionEvent motionEvent) {
        boolean z6 = (Float.floatToRawIntBits(motionEvent.getX()) & Integer.MAX_VALUE) >= 2139095040 || (Float.floatToRawIntBits(motionEvent.getY()) & Integer.MAX_VALUE) >= 2139095040 || (Float.floatToRawIntBits(motionEvent.getRawX()) & Integer.MAX_VALUE) >= 2139095040 || (Float.floatToRawIntBits(motionEvent.getRawY()) & Integer.MAX_VALUE) >= 2139095040;
        if (!z6) {
            int pointerCount = motionEvent.getPointerCount();
            for (int i6 = 1; i6 < pointerCount; i6++) {
                z6 = (Float.floatToRawIntBits(motionEvent.getX(i6)) & Integer.MAX_VALUE) >= 2139095040 || (Float.floatToRawIntBits(motionEvent.getY(i6)) & Integer.MAX_VALUE) >= 2139095040 || (Build.VERSION.SDK_INT >= 29 && !R0.f2942a.a(motionEvent, i6));
                if (z6) {
                    break;
                }
            }
        }
        return z6;
    }

    private void setDensity(h1.c cVar) {
        this.f2750m.setValue(cVar);
    }

    private void setFontFamilyResolver(InterfaceC0807u interfaceC0807u) {
        this.f2761r0.setValue(interfaceC0807u);
    }

    private void setLayoutDirection(h1.m mVar) {
        this.f2763s0.setValue(mVar);
    }

    private final void set_viewTreeOwners(C0375o c0375o) {
        this.f2746j0.setValue(c0375o);
    }

    public final void A(I0.H h5, boolean z6, boolean z7) {
        I0.W w6 = this.f2735a0;
        if (!z6) {
            w6.getClass();
            int iOrdinal = h5.f2163K.f2216d.ordinal();
            if (iOrdinal == 0 || iOrdinal == 1 || iOrdinal == 2 || iOrdinal == 3) {
                return;
            }
            if (iOrdinal != 4) {
                throw new E3.v();
            }
            I0.H hT = h5.t();
            boolean z8 = hT == null || hT.G();
            I0.L l = h5.f2163K;
            if (!z7) {
                if (h5.o()) {
                    return;
                }
                if (h5.n() && h5.G() == z8 && h5.G() == l.f2227p.f2326w) {
                    return;
                }
            }
            I0.Y y6 = l.f2227p;
            y6.f2328y = true;
            y6.f2329z = true;
            if (!h5.f2173U && y6.f2326w && z8) {
                if ((hT == null || !hT.n()) && (hT == null || !hT.o())) {
                    w6.f2289b.f(h5, EnumC0312v.f2466d);
                }
                if (w6.f2291d) {
                    return;
                }
                F(null);
                return;
            }
            return;
        }
        w6.getClass();
        int iOrdinal2 = h5.f2163K.f2216d.ordinal();
        if (iOrdinal2 != 0) {
            if (iOrdinal2 == 1) {
                return;
            }
            if (iOrdinal2 != 2) {
                if (iOrdinal2 == 3) {
                    return;
                }
                if (iOrdinal2 != 4) {
                    throw new E3.v();
                }
            }
        }
        I0.L l6 = h5.f2163K;
        if ((l6.f2217e || l6.f2218f) && !z7) {
            return;
        }
        l6.f2218f = true;
        l6.f2219g = true;
        I0.Y y7 = l6.f2227p;
        y7.f2328y = true;
        y7.f2329z = true;
        if (h5.f2173U) {
            return;
        }
        I0.H hT2 = h5.t();
        boolean zC = kotlin.jvm.internal.o.c(h5.H(), Boolean.TRUE);
        C4.f fVar = w6.f2289b;
        if (zC && ((hT2 == null || !hT2.f2163K.f2217e) && (hT2 == null || !hT2.f2163K.f2218f))) {
            fVar.f(h5, EnumC0312v.f2464b);
        } else if (h5.G() && ((hT2 == null || !hT2.n()) && (hT2 == null || !hT2.o()))) {
            fVar.f(h5, EnumC0312v.f2466d);
        }
        if (w6.f2291d) {
            return;
        }
        F(null);
    }

    public final void B() {
        G g6 = this.f2703B;
        g6.f2841B = true;
        if (g6.v() && !g6.f2852M) {
            g6.f2852M = true;
            g6.f2862m.post(g6.f2854O);
        }
        k0.e eVar = this.f2705C;
        eVar.f19631j = true;
        if (!eVar.f() || eVar.f19637q) {
            return;
        }
        eVar.f19637q = true;
        eVar.l.post(eVar.f19638r);
    }

    public final void C() {
        if (this.h0) {
            return;
        }
        long jCurrentAnimationTimeMillis = AnimationUtils.currentAnimationTimeMillis();
        if (jCurrentAnimationTimeMillis != this.g0) {
            this.g0 = jCurrentAnimationTimeMillis;
            InterfaceC0372m0 interfaceC0372m0 = this.f2717I0;
            float[] fArr = this.e0;
            interfaceC0372m0.a(this, fArr);
            O.p(fArr, this.f0);
            ViewParent parent = getParent();
            View view = this;
            while (parent instanceof ViewGroup) {
                view = (View) parent;
                parent = ((ViewGroup) view).getParent();
            }
            int[] iArr = this.f2739c0;
            view.getLocationOnScreen(iArr);
            float f6 = iArr[0];
            float f7 = iArr[1];
            view.getLocationInWindow(iArr);
            this.f2744i0 = (((long) Float.floatToRawIntBits(f6 - iArr[0])) << 32) | (((long) Float.floatToRawIntBits(f7 - iArr[1])) & 4294967295L);
        }
    }

    public final void D(MotionEvent motionEvent) {
        this.g0 = AnimationUtils.currentAnimationTimeMillis();
        InterfaceC0372m0 interfaceC0372m0 = this.f2717I0;
        float[] fArr = this.e0;
        interfaceC0372m0.a(this, fArr);
        O.p(fArr, this.f0);
        float x6 = motionEvent.getX();
        float y6 = motionEvent.getY();
        long jB = C2692J.b((((long) Float.floatToRawIntBits(x6)) << 32) | (((long) Float.floatToRawIntBits(y6)) & 4294967295L), fArr);
        float rawX = motionEvent.getRawX() - Float.intBitsToFloat((int) (jB >> 32));
        float rawY = motionEvent.getRawY() - Float.intBitsToFloat((int) (jB & 4294967295L));
        this.f2744i0 = (((long) Float.floatToRawIntBits(rawX)) << 32) | (((long) Float.floatToRawIntBits(rawY)) & 4294967295L);
    }

    public final boolean E() {
        if (isFocused()) {
            return true;
        }
        return super.requestFocus(TsExtractor.TS_STREAM_TYPE_HDMV_DTS, null);
    }

    public final void F(I0.H h5) {
        if (isLayoutRequested() || !isAttachedToWindow()) {
            return;
        }
        if (h5 != null) {
            while (h5 != null && h5.p() == I0.F.f2143a) {
                if (!this.f2733W) {
                    I0.H hT = h5.t();
                    if (hT == null) {
                        break;
                    }
                    long j4 = ((C0310t) hT.f2162J.f2362d).f2001d;
                    if (C2069a.f(j4) && C2069a.e(j4)) {
                        break;
                    }
                }
                h5 = h5.t();
            }
            if (h5 == getRoot()) {
                requestLayout();
                return;
            }
        }
        if (getWidth() == 0 || getHeight() == 0) {
            requestLayout();
        } else {
            invalidate();
        }
    }

    public final long G(long j4) {
        C();
        float fIntBitsToFloat = Float.intBitsToFloat((int) (j4 >> 32)) - Float.intBitsToFloat((int) (this.f2744i0 >> 32));
        return C2692J.b((((long) Float.floatToRawIntBits(Float.intBitsToFloat((int) (j4 & 4294967295L)) - Float.intBitsToFloat((int) (this.f2744i0 & 4294967295L)))) & 4294967295L) | (Float.floatToRawIntBits(fIntBitsToFloat) << 32), this.f0);
    }

    public final int H(MotionEvent motionEvent) {
        Object obj;
        if (this.f2719J0) {
            this.f2719J0 = false;
            int metaState = motionEvent.getMetaState();
            this.f2762s.getClass();
            n1.f3039a.setValue(new C0.M(metaState));
        }
        C0112m c0112m = this.f2720K;
        T.p pVarC = c0112m.c(this, motionEvent);
        int actionMasked = motionEvent.getActionMasked();
        C0.D d6 = this.f2721L;
        if (pVarC == null) {
            if (!d6.f518a) {
                ((C2592t) ((C0.B) d6.f521d).f506b).a();
                ((C0105f) d6.f520c).c();
            }
            return 0;
        }
        ArrayList arrayList = (ArrayList) pVarC.f6345b;
        int size = arrayList.size() - 1;
        if (size >= 0) {
            while (true) {
                int i6 = size - 1;
                obj = arrayList.get(size);
                if (((C0.C) obj).f511e && (actionMasked == 0 || actionMasked == 5)) {
                    break;
                }
                if (i6 < 0) {
                    break;
                }
                size = i6;
            }
            obj = null;
        } else {
            obj = null;
        }
        C0.C c6 = (C0.C) obj;
        if (c6 != null) {
            this.f2734a = c6.f510d;
        }
        int iF = d6.f(pVarC, this, p(motionEvent));
        pVarC.f6346c = null;
        if ((actionMasked != 0 && actionMasked != 5) || (iF & 1) != 0) {
            return iF;
        }
        int pointerId = motionEvent.getPointerId(motionEvent.getActionIndex());
        c0112m.f612c.delete(pointerId);
        c0112m.f611b.delete(pointerId);
        return iF;
    }

    public final void I(MotionEvent motionEvent, int i6, long j4, boolean z6) {
        int actionMasked = motionEvent.getActionMasked();
        int i7 = 1;
        int actionIndex = -1;
        if (actionMasked != 1) {
            if (actionMasked == 6) {
                actionIndex = motionEvent.getActionIndex();
            }
        } else if (i6 != 9 && i6 != 10) {
            actionIndex = 0;
        }
        int pointerCount = motionEvent.getPointerCount() - (actionIndex >= 0 ? 1 : 0);
        if (pointerCount == 0) {
            return;
        }
        MotionEvent.PointerProperties[] pointerPropertiesArr = new MotionEvent.PointerProperties[pointerCount];
        for (int i8 = 0; i8 < pointerCount; i8++) {
            pointerPropertiesArr[i8] = new MotionEvent.PointerProperties();
        }
        MotionEvent.PointerCoords[] pointerCoordsArr = new MotionEvent.PointerCoords[pointerCount];
        for (int i9 = 0; i9 < pointerCount; i9++) {
            pointerCoordsArr[i9] = new MotionEvent.PointerCoords();
        }
        int i10 = 0;
        while (i10 < pointerCount) {
            int i11 = ((actionIndex < 0 || i10 < actionIndex) ? 0 : i7) + i10;
            motionEvent.getPointerProperties(i11, pointerPropertiesArr[i10]);
            MotionEvent.PointerCoords pointerCoords = pointerCoordsArr[i10];
            motionEvent.getPointerCoords(i11, pointerCoords);
            long jS = s((((long) Float.floatToRawIntBits(pointerCoords.y)) & 4294967295L) | (((long) Float.floatToRawIntBits(pointerCoords.x)) << 32));
            pointerCoords.x = Float.intBitsToFloat((int) (jS >> 32));
            pointerCoords.y = Float.intBitsToFloat((int) (jS & 4294967295L));
            i10++;
            actionIndex = actionIndex;
            i7 = 1;
        }
        MotionEvent motionEventObtain = MotionEvent.obtain(motionEvent.getDownTime() == motionEvent.getEventTime() ? j4 : motionEvent.getDownTime(), j4, i6, pointerCount, pointerPropertiesArr, pointerCoordsArr, motionEvent.getMetaState(), z6 ? 0 : motionEvent.getButtonState(), motionEvent.getXPrecision(), motionEvent.getYPrecision(), motionEvent.getDeviceId(), motionEvent.getEdgeFlags(), motionEvent.getSource(), motionEvent.getFlags());
        T.p pVarC = this.f2720K.c(this, motionEventObtain);
        kotlin.jvm.internal.o.e(pVarC);
        this.f2721L.f(pVarC, this, true);
        motionEventObtain.recycle();
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void J(T.d dVar, C4.c cVar) {
        C0396z c0396z;
        if (cVar instanceof C0396z) {
            c0396z = (C0396z) cVar;
            int i6 = c0396z.f3133c;
            if ((i6 & Integer.MIN_VALUE) != 0) {
                c0396z.f3133c = i6 - Integer.MIN_VALUE;
            } else {
                c0396z = new C0396z(this, cVar);
            }
        }
        Object obj = c0396z.f3131a;
        B4.a aVar = B4.a.f492a;
        int i7 = c0396z.f3133c;
        if (i7 == 0) {
            AbstractC2467b.l(obj);
            AtomicReference atomicReference = this.f2755o0;
            C0384t c0384t = new C0384t(this, 2);
            c0396z.f3133c = 1;
            if (V4.E.k(new C2258v(c0384t, atomicReference, dVar, null), c0396z) == aVar) {
                return;
            }
        } else {
            if (i7 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        throw new E3.v();
    }

    public final void K(Configuration configuration) {
        MutableState mutableState;
        Configuration configuration2 = getConfiguration();
        if (kotlin.jvm.internal.o.c(configuration2, configuration)) {
            return;
        }
        setConfiguration(new Configuration(configuration));
        if (configuration2.fontScale != configuration.fontScale || configuration2.densityDpi != configuration.densityDpi) {
            setDensity(W.d.d(getContext()));
        }
        if ((configuration2.diff(configuration) & (-1342235264)) != 0 && (mutableState = this.f2762s.f2899b) != null) {
            mutableState.setValue(O.h(this));
        }
        int i6 = Build.VERSION.SDK_INT;
        if ((i6 >= 31 ? configuration2.fontWeightAdjustment : 0) != (i6 >= 31 ? configuration.fontWeightAdjustment : 0)) {
            setFontFamilyResolver(W.b.V(getContext()));
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:12:0x0044  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void L() {
        boolean z6;
        int i6;
        boolean z7;
        int[] iArr = this.f2739c0;
        getLocationOnScreen(iArr);
        long j4 = this.f2737b0;
        int i7 = (int) (j4 >> 32);
        int i8 = (int) (j4 & 4294967295L);
        int i9 = iArr[0];
        if (i7 != i9 || i8 != iArr[1] || this.g0 < 0) {
            this.f2737b0 = (((long) i9) << 32) | (((long) iArr[1]) & 4294967295L);
            if (i7 == Integer.MAX_VALUE || i8 == Integer.MAX_VALUE) {
                z6 = false;
            } else {
                getRoot().f2163K.f2227p.y0();
                z6 = true;
            }
        }
        C();
        View rootView = this.L0;
        if (rootView == null) {
            rootView = getRootView();
            this.L0 = rootView;
        }
        R0.b rectManager = getRectManager();
        long j6 = this.f2737b0;
        long jT = W.c.T(this.f2744i0);
        int width = rootView.getWidth();
        int height = rootView.getHeight();
        rectManager.getClass();
        float[] fArr = this.e0;
        if (fArr.length < 16) {
            i6 = 0;
        } else {
            i6 = (((fArr[0] == 1.0f && fArr[1] == 0.0f && fArr[2] == 0.0f && fArr[4] == 0.0f && fArr[5] == 1.0f && fArr[6] == 0.0f && fArr[8] == 0.0f && fArr[9] == 0.0f && fArr[10] == 1.0f) ? 1 : 0) << 1) | ((fArr[12] == 0.0f && fArr[13] == 0.0f && fArr[14] == 0.0f && fArr[15] == 1.0f) ? 1 : 0);
        }
        if ((i6 & 2) != 0) {
            fArr = null;
        }
        R0.e eVar = rectManager.f6006b;
        if (h1.j.a(jT, eVar.f6033d)) {
            z7 = false;
        } else {
            eVar.f6033d = jT;
            z7 = true;
        }
        if (!h1.j.a(j6, eVar.f6034e)) {
            eVar.f6034e = j6;
            z7 = true;
        }
        if (fArr != null) {
            eVar.f6036g = fArr;
            z7 = true;
        }
        long j7 = (((long) width) << 32) | (((long) height) & 4294967295L);
        if (j7 != eVar.f6035f) {
            eVar.f6035f = j7;
            z7 = true;
        }
        rectManager.f6009e = z7 || rectManager.f6009e;
        this.f2735a0.a(z6);
        getRectManager().a();
    }

    public final void M(float f6) {
        if (this.f2754o) {
            if (f6 > 0.0f) {
                if (Float.isNaN(this.f2704B0) || f6 > this.f2704B0) {
                    this.f2704B0 = f6;
                    return;
                }
                return;
            }
            if (f6 < 0.0f) {
                if (Float.isNaN(this.f2706C0) || f6 < this.f2706C0) {
                    this.f2706C0 = f6;
                }
            }
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void addFocusables(ArrayList arrayList, int i6, int i7) {
        n0.E e6 = ((n0.o) getFocusOwner()).f21532c;
        if (e6.isAttached()) {
            if (!e6.getNode().isAttached()) {
                F0.a.b("visitSubtreeIf called on an unattached node");
            }
            MutableVector mutableVector = new MutableVector(new AbstractC2254r[16], 0);
            AbstractC2254r child$ui = e6.getNode().getChild$ui();
            if (child$ui == null) {
                AbstractC0303l.b(mutableVector, e6.getNode());
            } else {
                mutableVector.add(child$ui);
            }
            while (mutableVector.getSize() != 0) {
                AbstractC2254r abstractC2254r = (AbstractC2254r) AbstractC2761L.e(1, mutableVector);
                if ((abstractC2254r.getAggregateChildKindSet$ui() & 1024) != 0) {
                    for (AbstractC2254r child$ui2 = abstractC2254r; child$ui2 != null && child$ui2.isAttached(); child$ui2 = child$ui2.getChild$ui()) {
                        if ((child$ui2.getKindSet$ui() & 1024) != 0) {
                            AbstractC2254r abstractC2254rE = child$ui2;
                            MutableVector mutableVector2 = null;
                            while (abstractC2254rE != null) {
                                if (abstractC2254rE instanceof n0.E) {
                                    n0.E e7 = (n0.E) abstractC2254rE;
                                    if (e7.isAttached() && e7.v0().f21543a) {
                                        super.addFocusables(arrayList, i6, i7);
                                        n0.E e8 = ((n0.o) getFocusOwner()).f21532c;
                                        if (e8.isAttached()) {
                                            if (!e8.getNode().isAttached()) {
                                                F0.a.b("visitSubtreeIf called on an unattached node");
                                            }
                                            MutableVector mutableVector3 = new MutableVector(new AbstractC2254r[16], 0);
                                            AbstractC2254r child$ui3 = e8.getNode().getChild$ui();
                                            if (child$ui3 == null) {
                                                AbstractC0303l.b(mutableVector3, e8.getNode());
                                            } else {
                                                mutableVector3.add(child$ui3);
                                            }
                                            while (mutableVector3.getSize() != 0) {
                                                AbstractC2254r abstractC2254r2 = (AbstractC2254r) AbstractC2761L.e(1, mutableVector3);
                                                if ((abstractC2254r2.getAggregateChildKindSet$ui() & 1024) != 0) {
                                                    for (AbstractC2254r child$ui4 = abstractC2254r2; child$ui4 != null && child$ui4.isAttached(); child$ui4 = child$ui4.getChild$ui()) {
                                                        if ((child$ui4.getKindSet$ui() & 1024) != 0) {
                                                            AbstractC2254r abstractC2254rE2 = child$ui4;
                                                            MutableVector mutableVector4 = null;
                                                            while (abstractC2254rE2 != null) {
                                                                if (abstractC2254rE2 instanceof n0.E) {
                                                                    n0.E e9 = (n0.E) abstractC2254rE2;
                                                                    if (e9.isAttached()) {
                                                                        n0.t tVarV0 = e9.v0();
                                                                        if (e9.isAttached() && !e9.f21499a && tVarV0.f21543a) {
                                                                            return;
                                                                        }
                                                                    }
                                                                } else if ((abstractC2254rE2.getKindSet$ui() & 1024) != 0 && (abstractC2254rE2 instanceof AbstractC0301k)) {
                                                                    int i8 = 0;
                                                                    for (AbstractC2254r child$ui5 = ((AbstractC0301k) abstractC2254rE2).f2431b; child$ui5 != null; child$ui5 = child$ui5.getChild$ui()) {
                                                                        if ((child$ui5.getKindSet$ui() & 1024) != 0) {
                                                                            i8++;
                                                                            if (i8 == 1) {
                                                                                abstractC2254rE2 = child$ui5;
                                                                            } else {
                                                                                if (mutableVector4 == null) {
                                                                                    mutableVector4 = new MutableVector(new AbstractC2254r[16], 0);
                                                                                }
                                                                                if (abstractC2254rE2 != null) {
                                                                                    mutableVector4.add(abstractC2254rE2);
                                                                                    abstractC2254rE2 = null;
                                                                                }
                                                                                mutableVector4.add(child$ui5);
                                                                            }
                                                                        }
                                                                    }
                                                                    if (i8 == 1) {
                                                                    }
                                                                }
                                                                abstractC2254rE2 = AbstractC0303l.e(mutableVector4);
                                                            }
                                                        }
                                                    }
                                                }
                                                AbstractC0303l.b(mutableVector3, abstractC2254r2);
                                            }
                                        }
                                        if (arrayList != null) {
                                            arrayList.remove(this);
                                            return;
                                        }
                                        return;
                                    }
                                } else if ((abstractC2254rE.getKindSet$ui() & 1024) != 0 && (abstractC2254rE instanceof AbstractC0301k)) {
                                    int i9 = 0;
                                    for (AbstractC2254r child$ui6 = ((AbstractC0301k) abstractC2254rE).f2431b; child$ui6 != null; child$ui6 = child$ui6.getChild$ui()) {
                                        if ((child$ui6.getKindSet$ui() & 1024) != 0) {
                                            i9++;
                                            if (i9 == 1) {
                                                abstractC2254rE = child$ui6;
                                            } else {
                                                if (mutableVector2 == null) {
                                                    mutableVector2 = new MutableVector(new AbstractC2254r[16], 0);
                                                }
                                                if (abstractC2254rE != null) {
                                                    mutableVector2.add(abstractC2254rE);
                                                    abstractC2254rE = null;
                                                }
                                                mutableVector2.add(child$ui6);
                                            }
                                        }
                                    }
                                    if (i9 == 1) {
                                    }
                                }
                                abstractC2254rE = AbstractC0303l.e(mutableVector2);
                            }
                        }
                    }
                }
                AbstractC0303l.b(mutableVector, abstractC2254r);
            }
        }
    }

    @Override // android.view.ViewGroup
    public final void addView(View view) {
        addView(view, -1);
    }

    @Override // android.view.View
    public final void autofill(SparseArray sparseArray) {
        Q0.n nVarV;
        J4.c cVar;
        J4.c cVar2;
        if (g()) {
            C2306c c2306c = this.f2725O;
            if (c2306c != null) {
                int size = sparseArray.size();
                for (int i6 = 0; i6 < size; i6++) {
                    int iKeyAt = sparseArray.keyAt(i6);
                    AutofillValue autofillValueI = coil.decode.a.i(sparseArray.get(iKeyAt));
                    Q0.o oVar = (Q0.o) c2306c.f19435b.f5816c.b(iKeyAt);
                    if (oVar != null && (nVarV = ((I0.H) oVar).v()) != null) {
                        Q0.z zVar = Q0.m.f5780g;
                        n.N n6 = nVarV.f5799a;
                        Object objD = n6.d(zVar);
                        if (objD == null) {
                            objD = null;
                        }
                        C0586a c0586a = (C0586a) objD;
                        if (c0586a != null && (cVar2 = (J4.c) c0586a.f5730b) != null) {
                        }
                        Object objD2 = n6.d(Q0.m.f5781h);
                        C0586a c0586a2 = (C0586a) (objD2 != null ? objD2 : null);
                        if (c0586a2 != null && (cVar = (J4.c) c0586a2.f5730b) != null) {
                        }
                    }
                }
            }
            C0.J j4 = this.f2724N;
            if (j4 != null) {
                C2314k c2314k = (C2314k) j4.f534c;
                if (c2314k.f19446a.isEmpty()) {
                    return;
                }
                int size2 = sparseArray.size();
                for (int i7 = 0; i7 < size2; i7++) {
                    int iKeyAt2 = sparseArray.keyAt(i7);
                    AutofillValue autofillValueI2 = coil.decode.a.i(sparseArray.get(iKeyAt2));
                    if (autofillValueI2.isText()) {
                        autofillValueI2.getTextValue().toString();
                        if (c2314k.f19446a.get(Integer.valueOf(iKeyAt2)) != null) {
                            throw new ClassCastException();
                        }
                    } else {
                        if (autofillValueI2.isDate()) {
                            throw new w4.j("An operation is not implemented: b/138604541: Add onFill() callback for date");
                        }
                        if (autofillValueI2.isList()) {
                            throw new w4.j("An operation is not implemented: b/138604541: Add onFill() callback for list");
                        }
                        if (autofillValueI2.isToggle()) {
                            throw new w4.j("An operation is not implemented: b/138604541:  Add onFill() callback for toggle");
                        }
                    }
                }
            }
        }
    }

    @Override // n0.j
    public final void b(n0.E e6, n0.E e7) {
        C0290e0 c0290e0;
        C0290e0 c0290e02;
        if (e6 != null) {
            n0.E e8 = e6;
            if (!e8.getNode().isAttached()) {
                F0.a.b("visitAncestors called on an unattached node");
            }
            AbstractC2254r node = e8.getNode();
            I0.H hT = AbstractC0303l.t(e6);
            LinkedHashSet linkedHashSet = null;
            ArrayList arrayList = null;
            while (hT != null) {
                if ((((AbstractC2254r) hT.f2162J.f2365g).getAggregateChildKindSet$ui() & 2097152) != 0) {
                    while (node != null) {
                        if ((node.getKindSet$ui() & 2097152) != 0) {
                            AbstractC2254r abstractC2254rE = node;
                            MutableVector mutableVector = null;
                            while (abstractC2254rE != null) {
                                if (abstractC2254rE instanceof InterfaceC3293c) {
                                    if (arrayList == null) {
                                        arrayList = new ArrayList();
                                    }
                                    arrayList.add(abstractC2254rE);
                                } else if ((abstractC2254rE.getKindSet$ui() & 2097152) != 0 && (abstractC2254rE instanceof AbstractC0301k)) {
                                    int i6 = 0;
                                    for (AbstractC2254r child$ui = ((AbstractC0301k) abstractC2254rE).f2431b; child$ui != null; child$ui = child$ui.getChild$ui()) {
                                        if ((child$ui.getKindSet$ui() & 2097152) != 0) {
                                            i6++;
                                            if (i6 == 1) {
                                                abstractC2254rE = child$ui;
                                            } else {
                                                if (mutableVector == null) {
                                                    mutableVector = new MutableVector(new AbstractC2254r[16], 0);
                                                }
                                                if (abstractC2254rE != null) {
                                                    mutableVector.add(abstractC2254rE);
                                                    abstractC2254rE = null;
                                                }
                                                mutableVector.add(child$ui);
                                            }
                                        }
                                    }
                                    if (i6 == 1) {
                                    }
                                }
                                abstractC2254rE = AbstractC0303l.e(mutableVector);
                            }
                        }
                        node = node.getParent$ui();
                    }
                }
                hT = hT.t();
                node = (hT == null || (c0290e02 = hT.f2162J) == null) ? null : (I0.F0) c0290e02.f2364f;
            }
            if (arrayList == null) {
                return;
            }
            if (e7 != null) {
                if (!e7.getNode().isAttached()) {
                    F0.a.b("visitAncestors called on an unattached node");
                }
                AbstractC2254r node2 = e7.getNode();
                I0.H hT2 = AbstractC0303l.t(e7);
                LinkedHashSet linkedHashSet2 = null;
                while (hT2 != null) {
                    if ((((AbstractC2254r) hT2.f2162J.f2365g).getAggregateChildKindSet$ui() & 2097152) != 0) {
                        while (node2 != null) {
                            if ((node2.getKindSet$ui() & 2097152) != 0) {
                                AbstractC2254r abstractC2254rE2 = node2;
                                MutableVector mutableVector2 = null;
                                while (abstractC2254rE2 != null) {
                                    if (abstractC2254rE2 instanceof InterfaceC3293c) {
                                        if (linkedHashSet2 == null) {
                                            linkedHashSet2 = new LinkedHashSet();
                                        }
                                        linkedHashSet2.add(abstractC2254rE2);
                                    } else if ((abstractC2254rE2.getKindSet$ui() & 2097152) != 0 && (abstractC2254rE2 instanceof AbstractC0301k)) {
                                        int i7 = 0;
                                        for (AbstractC2254r child$ui2 = ((AbstractC0301k) abstractC2254rE2).f2431b; child$ui2 != null; child$ui2 = child$ui2.getChild$ui()) {
                                            if ((child$ui2.getKindSet$ui() & 2097152) != 0) {
                                                i7++;
                                                if (i7 == 1) {
                                                    abstractC2254rE2 = child$ui2;
                                                } else {
                                                    if (mutableVector2 == null) {
                                                        mutableVector2 = new MutableVector(new AbstractC2254r[16], 0);
                                                    }
                                                    if (abstractC2254rE2 != null) {
                                                        mutableVector2.add(abstractC2254rE2);
                                                        abstractC2254rE2 = null;
                                                    }
                                                    mutableVector2.add(child$ui2);
                                                }
                                            }
                                        }
                                        if (i7 == 1) {
                                        }
                                    }
                                    abstractC2254rE2 = AbstractC0303l.e(mutableVector2);
                                }
                            }
                            node2 = node2.getParent$ui();
                        }
                    }
                    hT2 = hT2.t();
                    node2 = (hT2 == null || (c0290e0 = hT2.f2162J) == null) ? null : (I0.F0) c0290e0.f2364f;
                }
                linkedHashSet = linkedHashSet2;
            }
            int size = arrayList.size();
            for (int i8 = 0; i8 < size; i8++) {
                InterfaceC3293c interfaceC3293c = (InterfaceC3293c) arrayList.get(i8);
                if (!(linkedHashSet != null ? linkedHashSet.contains(interfaceC3293c) : false)) {
                    interfaceC3293c.X();
                }
            }
        }
    }

    @Override // android.view.View
    public final boolean canScrollHorizontally(int i6) {
        return this.f2703B.m(i6, false, this.f2734a);
    }

    @Override // android.view.View
    public final boolean canScrollVertically(int i6) {
        return this.f2703B.m(i6, true, this.f2734a);
    }

    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$PrimitiveArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    @Override // android.view.ViewGroup, android.view.View
    public final void dispatchDraw(Canvas canvas) {
        if (!isAttachedToWindow()) {
            m(getRoot());
        }
        t(true);
        Snapshot.Companion.notifyObjectsInitialized();
        this.f2716I = true;
        C2713t c2713t = this.f2764t;
        C2696b c2696b = c2713t.f22934a;
        Canvas canvas2 = c2696b.f22900a;
        c2696b.f22900a = canvas;
        getRoot().g(c2696b, null);
        c2713t.f22934a.f22900a = canvas2;
        n.J j4 = this.f2712G;
        if (j4.e()) {
            int i6 = j4.f21377b;
            for (int i7 = 0; i7 < i6; i7++) {
                ((F0) ((I0.r0) j4.b(i7))).f();
            }
        }
        int i8 = l1.f3033a;
        j4.j();
        this.f2716I = false;
        n.J j6 = this.f2714H;
        if (j6 != null) {
            j4.i(j6);
            j6.j();
        }
        if (this.f2754o) {
            AbstractC0368k0.a(this, this.f2704B0);
            View view = this.f2752n;
            if (view == null) {
                kotlin.jvm.internal.o.n("frameRateCategoryView");
                throw null;
            }
            AbstractC0368k0.a(view, this.f2706C0);
            if (!Float.isNaN(this.f2706C0)) {
                view.invalidate();
                drawChild(canvas, view, getDrawingTime());
            }
            this.f2704B0 = Float.NaN;
            this.f2706C0 = Float.NaN;
        }
        getRectManager().a();
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:325:0x053e A[PHI: r6
      0x053e: PHI (r6v45 androidx.compose.runtime.collection.MutableVector) = 
      (r6v44 androidx.compose.runtime.collection.MutableVector)
      (r6v44 androidx.compose.runtime.collection.MutableVector)
      (r6v47 androidx.compose.runtime.collection.MutableVector)
     binds: [B:306:0x04fc, B:308:0x0500, B:323:0x0537] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:457:0x0744 A[PHI: r5
      0x0744: PHI (r5v41 androidx.compose.runtime.collection.MutableVector) = 
      (r5v40 androidx.compose.runtime.collection.MutableVector)
      (r5v40 androidx.compose.runtime.collection.MutableVector)
      (r5v43 androidx.compose.runtime.collection.MutableVector)
     binds: [B:438:0x0706, B:440:0x070a, B:455:0x073f] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Type inference failed for: r31v0 */
    /* JADX WARN: Type inference failed for: r31v1, types: [boolean] */
    /* JADX WARN: Type inference failed for: r31v2 */
    /* JADX WARN: Type inference failed for: r37v0 */
    /* JADX WARN: Type inference failed for: r37v1, types: [boolean] */
    /* JADX WARN: Type inference failed for: r37v2 */
    /* JADX WARN: Type inference failed for: r4v16 */
    /* JADX WARN: Type inference failed for: r4v17 */
    /* JADX WARN: Type inference failed for: r4v26 */
    /* JADX WARN: Type inference failed for: r4v27, types: [i0.r] */
    /* JADX WARN: Type inference failed for: r4v28, types: [i0.r] */
    /* JADX WARN: Type inference failed for: r4v29 */
    /* JADX WARN: Type inference failed for: r4v30, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r4v31 */
    /* JADX WARN: Type inference failed for: r4v32 */
    /* JADX WARN: Type inference failed for: r4v33 */
    /* JADX WARN: Type inference failed for: r4v34 */
    /* JADX WARN: Type inference failed for: r4v36 */
    /* JADX WARN: Type inference failed for: r4v37 */
    /* JADX WARN: Type inference failed for: r4v38 */
    /* JADX WARN: Type inference failed for: r5v125 */
    /* JADX WARN: Type inference failed for: r5v126 */
    /* JADX WARN: Type inference failed for: r5v127 */
    /* JADX WARN: Type inference failed for: r5v52 */
    /* JADX WARN: Type inference failed for: r5v53 */
    /* JADX WARN: Type inference failed for: r5v62 */
    /* JADX WARN: Type inference failed for: r5v63, types: [i0.r] */
    /* JADX WARN: Type inference failed for: r5v64, types: [i0.r] */
    /* JADX WARN: Type inference failed for: r5v65 */
    /* JADX WARN: Type inference failed for: r5v66, types: [java.lang.Object] */
    /* JADX WARN: Type inference failed for: r5v67 */
    /* JADX WARN: Type inference failed for: r5v68 */
    /* JADX WARN: Type inference failed for: r5v69 */
    /* JADX WARN: Type inference failed for: r5v70 */
    /* JADX WARN: Type inference failed for: r6v25 */
    /* JADX WARN: Type inference failed for: r7v52 */
    @Override // android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean dispatchGenericMotionEvent(MotionEvent motionEvent) {
        int i6;
        String str;
        int i7;
        F.f0 f0Var;
        String str2;
        long jValueAt;
        int i8;
        int i9;
        SparseLongArray sparseLongArray;
        int i10;
        char c6;
        C0111l c0111l;
        long j4;
        long jFloatToRawIntBits;
        InterfaceC3293c interfaceC3293c;
        C0290e0 c0290e0;
        ?? r42;
        C0290e0 c0290e02;
        ?? E5;
        InterfaceC3293c interfaceC3293c2;
        boolean z6;
        boolean z7;
        int size;
        int size2;
        C0290e0 c0290e03;
        ?? r5;
        C0290e0 c0290e04;
        ?? E6;
        C0373n c0373n;
        int size3;
        C0290e0 c0290e05;
        AbstractC2254r abstractC2254rE;
        C0290e0 c0290e06;
        int i11 = 1;
        if (this.f2711F0) {
            RunnableC0369l runnableC0369l = this.E0;
            removeCallbacks(runnableC0369l);
            if (motionEvent.getActionMasked() == 8) {
                this.f2711F0 = false;
            } else {
                runnableC0369l.run();
            }
        }
        if (o(motionEvent) || !isAttachedToWindow()) {
            return super.dispatchGenericMotionEvent(motionEvent);
        }
        String str3 = "visitAncestors called on an unattached node";
        if (motionEvent.getActionMasked() == 8) {
            if (!motionEvent.isFromSource(4194304)) {
                return (l(motionEvent) & 1) != 0;
            }
            ViewConfiguration viewConfiguration = ViewConfiguration.get(getContext());
            motionEvent.getAxisValue(26);
            Context context = getContext();
            int i12 = Build.VERSION.SDK_INT;
            if (i12 >= 26) {
                Method method = F1.G.f1369a;
                A1.a.d(viewConfiguration);
            } else {
                F1.G.a(viewConfiguration, context);
            }
            Context context2 = getContext();
            if (i12 >= 26) {
                A1.a.c(viewConfiguration);
            } else {
                F1.G.a(viewConfiguration, context2);
            }
            motionEvent.getEventTime();
            motionEvent.getDeviceId();
            n0.m focusOwner = getFocusOwner();
            C0104e c0104e = new C0104e(4, this, motionEvent);
            n0.o oVar = (n0.o) focusOwner;
            if (oVar.f21533d.f21527e) {
                System.out.println((Object) "FocusRelatedWarning: Dispatching rotary event while the focus system is invalidated.");
                return false;
            }
            n0.E eF = AbstractC2603d.f(oVar.f21532c);
            if (eF != null) {
                if (!eF.getNode().isAttached()) {
                    F0.a.b("visitAncestors called on an unattached node");
                }
                AbstractC2254r node = eF.getNode();
                I0.H hT = AbstractC0303l.t(eF);
                loop0: while (true) {
                    if (hT == null) {
                        abstractC2254rE = null;
                        break;
                    }
                    if ((((AbstractC2254r) hT.f2162J.f2365g).getAggregateChildKindSet$ui() & 16384) != 0) {
                        while (node != null) {
                            if ((node.getKindSet$ui() & 16384) != 0) {
                                abstractC2254rE = node;
                                MutableVector mutableVector = null;
                                while (abstractC2254rE != null) {
                                    if (abstractC2254rE instanceof C0373n) {
                                        break loop0;
                                    }
                                    if ((abstractC2254rE.getKindSet$ui() & 16384) != 0 && (abstractC2254rE instanceof AbstractC0301k)) {
                                        int i13 = 0;
                                        for (AbstractC2254r child$ui = ((AbstractC0301k) abstractC2254rE).f2431b; child$ui != null; child$ui = child$ui.getChild$ui()) {
                                            if ((child$ui.getKindSet$ui() & 16384) != 0) {
                                                i13++;
                                                if (i13 == 1) {
                                                    abstractC2254rE = child$ui;
                                                } else {
                                                    if (mutableVector == null) {
                                                        mutableVector = new MutableVector(new AbstractC2254r[16], 0);
                                                    }
                                                    if (abstractC2254rE != null) {
                                                        mutableVector.add(abstractC2254rE);
                                                        abstractC2254rE = null;
                                                    }
                                                    mutableVector.add(child$ui);
                                                }
                                            }
                                        }
                                        if (i13 == 1) {
                                        }
                                    }
                                    abstractC2254rE = AbstractC0303l.e(mutableVector);
                                }
                            }
                            node = node.getParent$ui();
                        }
                    }
                    hT = hT.t();
                    node = (hT == null || (c0290e06 = hT.f2162J) == null) ? null : (I0.F0) c0290e06.f2364f;
                }
                c0373n = (C0373n) abstractC2254rE;
            } else {
                c0373n = null;
            }
            if (c0373n != null) {
                C0373n c0373n2 = c0373n;
                if (!c0373n2.getNode().isAttached()) {
                    F0.a.b("visitAncestors called on an unattached node");
                }
                AbstractC2254r parent$ui = c0373n2.getNode().getParent$ui();
                I0.H hT2 = AbstractC0303l.t(c0373n);
                ArrayList arrayList = null;
                while (hT2 != null) {
                    if ((((AbstractC2254r) hT2.f2162J.f2365g).getAggregateChildKindSet$ui() & 16384) != 0) {
                        while (parent$ui != null) {
                            if ((parent$ui.getKindSet$ui() & 16384) != 0) {
                                AbstractC2254r abstractC2254rE2 = parent$ui;
                                MutableVector mutableVector2 = null;
                                while (abstractC2254rE2 != null) {
                                    if (abstractC2254rE2 instanceof C0373n) {
                                        if (arrayList == null) {
                                            arrayList = new ArrayList();
                                        }
                                        arrayList.add(abstractC2254rE2);
                                    } else if ((abstractC2254rE2.getKindSet$ui() & 16384) != 0 && (abstractC2254rE2 instanceof AbstractC0301k)) {
                                        int i14 = 0;
                                        for (AbstractC2254r child$ui2 = ((AbstractC0301k) abstractC2254rE2).f2431b; child$ui2 != null; child$ui2 = child$ui2.getChild$ui()) {
                                            if ((child$ui2.getKindSet$ui() & 16384) != 0) {
                                                i14++;
                                                if (i14 == 1) {
                                                    abstractC2254rE2 = child$ui2;
                                                } else {
                                                    if (mutableVector2 == null) {
                                                        mutableVector2 = new MutableVector(new AbstractC2254r[16], 0);
                                                    }
                                                    if (abstractC2254rE2 != null) {
                                                        mutableVector2.add(abstractC2254rE2);
                                                        abstractC2254rE2 = null;
                                                    }
                                                    mutableVector2.add(child$ui2);
                                                }
                                            }
                                        }
                                        if (i14 == 1) {
                                        }
                                    }
                                    abstractC2254rE2 = AbstractC0303l.e(mutableVector2);
                                }
                            }
                            parent$ui = parent$ui.getParent$ui();
                        }
                    }
                    hT2 = hT2.t();
                    parent$ui = (hT2 == null || (c0290e05 = hT2.f2162J) == null) ? null : (I0.F0) c0290e05.f2364f;
                }
                if (arrayList != null && arrayList.size() - 1 >= 0) {
                    while (true) {
                        int i15 = size3 - 1;
                        ((C0373n) arrayList.get(size3)).getClass();
                        if (i15 < 0) {
                            break;
                        }
                        size3 = i15;
                    }
                }
                AbstractC2254r node2 = c0373n2.getNode();
                MutableVector mutableVector3 = null;
                while (node2 != null) {
                    if (node2 instanceof C0373n) {
                    } else if ((node2.getKindSet$ui() & 16384) != 0 && (node2 instanceof AbstractC0301k)) {
                        int i16 = 0;
                        for (AbstractC2254r child$ui3 = ((AbstractC0301k) node2).f2431b; child$ui3 != null; child$ui3 = child$ui3.getChild$ui()) {
                            if ((child$ui3.getKindSet$ui() & 16384) != 0) {
                                i16++;
                                if (i16 == 1) {
                                    node2 = child$ui3;
                                } else {
                                    if (mutableVector3 == null) {
                                        mutableVector3 = new MutableVector(new AbstractC2254r[16], 0);
                                    }
                                    if (node2 != null) {
                                        mutableVector3.add(node2);
                                        node2 = null;
                                    }
                                    mutableVector3.add(child$ui3);
                                }
                            }
                        }
                        if (i16 == 1) {
                        }
                    }
                    node2 = AbstractC0303l.e(mutableVector3);
                }
                if (!((Boolean) c0104e.invoke()).booleanValue()) {
                    AbstractC2254r node3 = c0373n2.getNode();
                    MutableVector mutableVector4 = null;
                    while (node3 != null) {
                        if (node3 instanceof C0373n) {
                        } else if ((node3.getKindSet$ui() & 16384) != 0 && (node3 instanceof AbstractC0301k)) {
                            int i17 = 0;
                            for (AbstractC2254r child$ui4 = ((AbstractC0301k) node3).f2431b; child$ui4 != null; child$ui4 = child$ui4.getChild$ui()) {
                                if ((child$ui4.getKindSet$ui() & 16384) != 0) {
                                    i17++;
                                    if (i17 == 1) {
                                        node3 = child$ui4;
                                    } else {
                                        if (mutableVector4 == null) {
                                            mutableVector4 = new MutableVector(new AbstractC2254r[16], 0);
                                        }
                                        if (node3 != null) {
                                            mutableVector4.add(node3);
                                            node3 = null;
                                        }
                                        mutableVector4.add(child$ui4);
                                    }
                                }
                            }
                            if (i17 == 1) {
                            }
                        }
                        node3 = AbstractC0303l.e(mutableVector4);
                    }
                    if (arrayList != null) {
                        int size4 = arrayList.size();
                        for (int i18 = 0; i18 < size4; i18++) {
                            ((C0373n) arrayList.get(i18)).getClass();
                        }
                    }
                }
            }
        }
        if (!motionEvent.isFromSource(2097152)) {
            return super.dispatchGenericMotionEvent(motionEvent);
        }
        C3291a c3291a = this.f2738c;
        C0112m c0112m = this.f2720K;
        c0112m.getClass();
        int actionMasked = motionEvent.getActionMasked();
        c0112m.b(motionEvent);
        SparseLongArray sparseLongArray2 = c0112m.f611b;
        if (actionMasked == 3) {
            sparseLongArray2.clear();
            c0112m.f612c.clear();
            i6 = 16;
            str = "visitAncestors called on an unattached node";
            f0Var = null;
        } else {
            c0112m.a(motionEvent);
            int actionIndex = actionMasked != 1 ? actionMasked != 6 ? -1 : motionEvent.getActionIndex() : 0;
            boolean z8 = actionMasked == 0 || actionMasked == 2 || actionMasked == 5;
            int pointerCount = motionEvent.getPointerCount();
            i6 = 16;
            ArrayList arrayList2 = new ArrayList(pointerCount);
            int i19 = 0;
            while (i19 < pointerCount) {
                int pointerId = motionEvent.getPointerId(i19);
                int iIndexOfKey = sparseLongArray2.indexOfKey(pointerId);
                if (iIndexOfKey >= 0) {
                    str2 = str3;
                    jValueAt = sparseLongArray2.valueAt(iIndexOfKey);
                    i8 = i11;
                } else {
                    str2 = str3;
                    jValueAt = c0112m.f610a;
                    i8 = i11;
                    c0112m.f610a = jValueAt + 1;
                    sparseLongArray2.put(pointerId, jValueAt);
                }
                int i20 = actionIndex;
                long jFloatToRawIntBits2 = (((long) Float.floatToRawIntBits(motionEvent.getX(i19))) << 32) | (((long) Float.floatToRawIntBits(motionEvent.getY(i19))) & 4294967295L);
                ?? r31 = i19 != i20 ? i8 : 0;
                C2592t c2592t = c0112m.f614e;
                C0111l c0111l2 = (C0111l) c2592t.b(jValueAt);
                if (i19 == i20) {
                    c2592t.f(jValueAt);
                    i9 = i20;
                    sparseLongArray = sparseLongArray2;
                    c6 = ' ';
                    i10 = 65535;
                } else {
                    if (z8) {
                        i10 = 65535;
                        sparseLongArray = sparseLongArray2;
                        i9 = i20;
                        c2592t.e(jValueAt, new C0111l(1 | ((motionEvent.getEventTime() & 2147483647L) << i8) | (((long) ((((short) Float.intBitsToFloat((int) (jFloatToRawIntBits2 & 4294967295L))) & 65535) | (((short) Float.intBitsToFloat((int) (jFloatToRawIntBits2 >> 32))) << 16))) << 32)));
                    } else {
                        i9 = i20;
                        sparseLongArray = sparseLongArray2;
                        i10 = 65535;
                    }
                    c6 = ' ';
                }
                long eventTime = motionEvent.getEventTime();
                float pressure = motionEvent.getPressure(i19);
                long eventTime2 = c0111l2 != null ? (c0111l2.f609a >> i8) & 2147483647L : motionEvent.getEventTime();
                if (c0111l2 != null) {
                    j4 = jValueAt;
                    int i21 = (int) (c0111l2.f609a >>> c6);
                    c0111l = c0111l2;
                    jFloatToRawIntBits = (((long) Float.floatToRawIntBits((short) (i21 & i10))) & 4294967295L) | (((long) Float.floatToRawIntBits((short) (i21 >>> 16))) << c6);
                } else {
                    c0111l = c0111l2;
                    j4 = jValueAt;
                    jFloatToRawIntBits = jFloatToRawIntBits2;
                }
                arrayList2.add(new C3292b(j4, eventTime, jFloatToRawIntBits2, r31, pressure, eventTime2, jFloatToRawIntBits, c0111l != null ? (c0111l.f609a & 1) != 0 ? i8 : 0 : 0));
                i19++;
                sparseLongArray2 = sparseLongArray;
                str3 = str2;
                i11 = i8;
                actionIndex = i9;
            }
            int i22 = i11;
            str = str3;
            c0112m.d(motionEvent);
            if (c3291a != null) {
                i7 = c3291a.f26257a;
            } else {
                if (!motionEvent.isFromSource(2097152)) {
                    throw new IllegalArgumentException("MotionEvent must be a touch navigation source");
                }
                InputDevice device = motionEvent.getDevice();
                if (device != null) {
                    InputDevice.MotionRange motionRange = device.getMotionRange(0);
                    InputDevice.MotionRange motionRange2 = device.getMotionRange(i22);
                    if (motionRange == null || motionRange2 != null) {
                        if (motionRange2 == null || motionRange != null) {
                            if (motionRange != null && motionRange2 != null) {
                                float range = motionRange.getRange();
                                float range2 = motionRange2.getRange();
                                if (range <= range2 || (range2 != 0.0f && range / range2 < 5.0f)) {
                                    if (range2 <= range || (range != 0.0f && range2 / range < 5.0f)) {
                                    }
                                }
                                i7 = 1;
                            }
                            i7 = 0;
                        }
                        i7 = 2;
                    } else {
                        i7 = 1;
                    }
                } else {
                    i7 = 0;
                }
            }
            if (actionMasked == 0 || actionMasked == 1 || actionMasked == 2 || actionMasked != 5) {
            }
            f0Var = new F.f0(arrayList2, i7, motionEvent);
        }
        H0 h0 = this.f2713G0;
        if (f0Var == null) {
            n0.E eG = ((n0.o) getFocusOwner()).g();
            if (eG != null) {
                if (!eG.getNode().isAttached()) {
                    F0.a.b(str);
                }
                AbstractC2254r node4 = eG.getNode();
                I0.H hT3 = AbstractC0303l.t(eG);
                loop26: while (true) {
                    if (hT3 == null) {
                        r42 = 0;
                        break;
                    }
                    int i23 = 2097152;
                    if ((((AbstractC2254r) hT3.f2162J.f2365g).getAggregateChildKindSet$ui() & 2097152) != 0) {
                        while (node4 != null) {
                            if ((node4.getKindSet$ui() & i23) != 0) {
                                r42 = node4;
                                MutableVector mutableVector5 = null;
                                while (r42 != 0) {
                                    if (r42 instanceof InterfaceC3293c) {
                                        break loop26;
                                    }
                                    if ((r42.getKindSet$ui() & i23) == 0 || !(r42 instanceof AbstractC0301k)) {
                                        E5 = AbstractC0303l.e(mutableVector5);
                                    } else {
                                        AbstractC2254r child$ui5 = ((AbstractC0301k) r42).f2431b;
                                        int i24 = 0;
                                        E5 = r42;
                                        while (child$ui5 != null) {
                                            if ((child$ui5.getKindSet$ui() & i23) != 0) {
                                                i24++;
                                                if (i24 == 1) {
                                                    E5 = child$ui5;
                                                } else {
                                                    if (mutableVector5 == null) {
                                                        mutableVector5 = new MutableVector(new AbstractC2254r[16], 0);
                                                    }
                                                    if (E5 != 0) {
                                                        mutableVector5.add(E5);
                                                        E5 = 0;
                                                    }
                                                    mutableVector5.add(child$ui5);
                                                }
                                            }
                                            child$ui5 = child$ui5.getChild$ui();
                                            i23 = 2097152;
                                            E5 = E5;
                                        }
                                        if (i24 == 1) {
                                        }
                                    }
                                    i23 = 2097152;
                                    r42 = E5;
                                }
                            }
                            node4 = node4.getParent$ui();
                            i23 = 2097152;
                        }
                    }
                    hT3 = hT3.t();
                    node4 = (hT3 == null || (c0290e02 = hT3.f2162J) == null) ? null : (I0.F0) c0290e02.f2364f;
                }
                interfaceC3293c = (InterfaceC3293c) r42;
            } else {
                interfaceC3293c = null;
            }
            if (interfaceC3293c != null) {
                AbstractC2254r abstractC2254r = (AbstractC2254r) interfaceC3293c;
                if (!abstractC2254r.getNode().isAttached()) {
                    F0.a.b(str);
                }
                AbstractC2254r parent$ui2 = abstractC2254r.getNode().getParent$ui();
                I0.H hT4 = AbstractC0303l.t(interfaceC3293c);
                ArrayList arrayList3 = null;
                while (hT4 != null) {
                    int i25 = 2097152;
                    if ((((AbstractC2254r) hT4.f2162J.f2365g).getAggregateChildKindSet$ui() & 2097152) != 0) {
                        while (parent$ui2 != null) {
                            if ((parent$ui2.getKindSet$ui() & i25) != 0) {
                                AbstractC2254r abstractC2254rE3 = parent$ui2;
                                MutableVector mutableVector6 = null;
                                while (abstractC2254rE3 != null) {
                                    if (abstractC2254rE3 instanceof InterfaceC3293c) {
                                        if (arrayList3 == null) {
                                            arrayList3 = new ArrayList();
                                        }
                                        arrayList3.add(abstractC2254rE3);
                                    } else if ((abstractC2254rE3.getKindSet$ui() & 2097152) != 0 && (abstractC2254rE3 instanceof AbstractC0301k)) {
                                        int i26 = 0;
                                        for (AbstractC2254r child$ui6 = ((AbstractC0301k) abstractC2254rE3).f2431b; child$ui6 != null; child$ui6 = child$ui6.getChild$ui()) {
                                            if ((child$ui6.getKindSet$ui() & 2097152) != 0) {
                                                i26++;
                                                if (i26 == 1) {
                                                    abstractC2254rE3 = child$ui6;
                                                } else {
                                                    if (mutableVector6 == null) {
                                                        mutableVector6 = new MutableVector(new AbstractC2254r[16], 0);
                                                    }
                                                    if (abstractC2254rE3 != null) {
                                                        mutableVector6.add(abstractC2254rE3);
                                                        abstractC2254rE3 = null;
                                                    }
                                                    mutableVector6.add(child$ui6);
                                                }
                                            }
                                        }
                                        if (i26 == 1) {
                                        }
                                    }
                                    abstractC2254rE3 = AbstractC0303l.e(mutableVector6);
                                }
                            }
                            i25 = 2097152;
                            parent$ui2 = parent$ui2.getParent$ui();
                        }
                    }
                    hT4 = hT4.t();
                    parent$ui2 = (hT4 == null || (c0290e0 = hT4.f2162J) == null) ? null : (I0.F0) c0290e0.f2364f;
                }
                interfaceC3293c.X();
                if (arrayList3 != null) {
                    int size5 = arrayList3.size();
                    for (int i27 = 0; i27 < size5; i27++) {
                        ((InterfaceC3293c) arrayList3.get(i27)).X();
                    }
                }
            }
            h0.f2879b = 0;
            h0.f2880c = true;
            return true;
        }
        n0.o oVar2 = (n0.o) getFocusOwner();
        if (oVar2.f21533d.f21527e) {
            System.out.println((Object) "FocusRelatedWarning: Dispatching indirect pointer event while the focus system is invalidated.");
        } else {
            n0.E eG2 = oVar2.g();
            if (eG2 != null) {
                if (!eG2.getNode().isAttached()) {
                    F0.a.b(str);
                }
                AbstractC2254r node5 = eG2.getNode();
                I0.H hT5 = AbstractC0303l.t(eG2);
                loop14: while (true) {
                    if (hT5 == null) {
                        r5 = 0;
                        break;
                    }
                    int i28 = 2097152;
                    if ((((AbstractC2254r) hT5.f2162J.f2365g).getAggregateChildKindSet$ui() & 2097152) != 0) {
                        while (node5 != null) {
                            if ((node5.getKindSet$ui() & i28) != 0) {
                                r5 = node5;
                                MutableVector mutableVector7 = null;
                                while (r5 != 0) {
                                    if (r5 instanceof InterfaceC3293c) {
                                        break loop14;
                                    }
                                    if ((r5.getKindSet$ui() & i28) == 0 || !(r5 instanceof AbstractC0301k)) {
                                        E6 = AbstractC0303l.e(mutableVector7);
                                    } else {
                                        AbstractC2254r child$ui7 = ((AbstractC0301k) r5).f2431b;
                                        int i29 = 0;
                                        E6 = r5;
                                        while (child$ui7 != null) {
                                            if ((child$ui7.getKindSet$ui() & i28) != 0) {
                                                i29++;
                                                if (i29 == 1) {
                                                    E6 = child$ui7;
                                                } else {
                                                    if (mutableVector7 == null) {
                                                        mutableVector7 = new MutableVector(new AbstractC2254r[i6], 0);
                                                    }
                                                    if (E6 != 0) {
                                                        mutableVector7.add(E6);
                                                        E6 = 0;
                                                    }
                                                    mutableVector7.add(child$ui7);
                                                }
                                            }
                                            child$ui7 = child$ui7.getChild$ui();
                                            i6 = 16;
                                            i28 = 2097152;
                                            E6 = E6;
                                        }
                                        if (i29 == 1) {
                                        }
                                    }
                                    i6 = 16;
                                    i28 = 2097152;
                                    r5 = E6;
                                }
                            }
                            node5 = node5.getParent$ui();
                            i6 = 16;
                            i28 = 2097152;
                        }
                    }
                    hT5 = hT5.t();
                    node5 = (hT5 == null || (c0290e04 = hT5.f2162J) == null) ? null : (I0.F0) c0290e04.f2364f;
                    i6 = 16;
                }
                interfaceC3293c2 = (InterfaceC3293c) r5;
            } else {
                interfaceC3293c2 = null;
            }
            if (interfaceC3293c2 != null) {
                AbstractC2254r abstractC2254r2 = (AbstractC2254r) interfaceC3293c2;
                if (!abstractC2254r2.getNode().isAttached()) {
                    F0.a.b(str);
                }
                AbstractC2254r parent$ui3 = abstractC2254r2.getNode().getParent$ui();
                I0.H hT6 = AbstractC0303l.t(interfaceC3293c2);
                ArrayList arrayList4 = null;
                while (hT6 != null) {
                    int i30 = 2097152;
                    if ((((AbstractC2254r) hT6.f2162J.f2365g).getAggregateChildKindSet$ui() & 2097152) != 0) {
                        while (parent$ui3 != null) {
                            if ((parent$ui3.getKindSet$ui() & i30) != 0) {
                                AbstractC2254r abstractC2254rE4 = parent$ui3;
                                MutableVector mutableVector8 = null;
                                while (abstractC2254rE4 != null) {
                                    if (abstractC2254rE4 instanceof InterfaceC3293c) {
                                        if (arrayList4 == null) {
                                            arrayList4 = new ArrayList();
                                        }
                                        arrayList4.add(abstractC2254rE4);
                                    } else {
                                        int i31 = 2097152;
                                        if ((abstractC2254rE4.getKindSet$ui() & 2097152) != 0 && (abstractC2254rE4 instanceof AbstractC0301k)) {
                                            AbstractC2254r child$ui8 = ((AbstractC0301k) abstractC2254rE4).f2431b;
                                            int i32 = 0;
                                            while (child$ui8 != null) {
                                                if ((child$ui8.getKindSet$ui() & i31) != 0) {
                                                    i32++;
                                                    if (i32 == 1) {
                                                        abstractC2254rE4 = child$ui8;
                                                    } else {
                                                        if (mutableVector8 == null) {
                                                            mutableVector8 = new MutableVector(new AbstractC2254r[16], 0);
                                                        }
                                                        if (abstractC2254rE4 != null) {
                                                            mutableVector8.add(abstractC2254rE4);
                                                            abstractC2254rE4 = null;
                                                        }
                                                        mutableVector8.add(child$ui8);
                                                    }
                                                }
                                                child$ui8 = child$ui8.getChild$ui();
                                                i31 = 2097152;
                                            }
                                            if (i32 == 1) {
                                            }
                                        }
                                    }
                                    abstractC2254rE4 = AbstractC0303l.e(mutableVector8);
                                }
                            }
                            parent$ui3 = parent$ui3.getParent$ui();
                            i30 = 2097152;
                        }
                    }
                    hT6 = hT6.t();
                    parent$ui3 = (hT6 == null || (c0290e03 = hT6.f2162J) == null) ? null : (I0.F0) c0290e03.f2364f;
                }
                if (arrayList4 != null && arrayList4.size() - 1 >= 0) {
                    while (true) {
                        int i33 = size2 - 1;
                        ((InterfaceC3293c) arrayList4.get(size2)).Z(f0Var, C0.r.f633a);
                        if (i33 < 0) {
                            break;
                        }
                        size2 = i33;
                    }
                }
                interfaceC3293c2.Z(f0Var, C0.r.f633a);
                interfaceC3293c2.Z(f0Var, C0.r.f634b);
                if (arrayList4 != null) {
                    int size6 = arrayList4.size();
                    for (int i34 = 0; i34 < size6; i34++) {
                        ((InterfaceC3293c) arrayList4.get(i34)).Z(f0Var, C0.r.f634b);
                    }
                }
                if (arrayList4 != null && arrayList4.size() - 1 >= 0) {
                    while (true) {
                        int i35 = size - 1;
                        ((InterfaceC3293c) arrayList4.get(size)).Z(f0Var, C0.r.f635c);
                        if (i35 < 0) {
                            break;
                        }
                        size = i35;
                    }
                }
                interfaceC3293c2.Z(f0Var, C0.r.f635c);
            }
            ArrayList arrayList5 = (ArrayList) f0Var.f1280c;
            int size7 = arrayList5.size();
            for (int i36 = 0; i36 < size7; i36++) {
                if (((C3292b) arrayList5.get(i36)).f26266i) {
                    z6 = true;
                    z7 = true;
                    break;
                }
            }
        }
        z6 = true;
        z7 = false;
        h0.getClass();
        MotionEvent motionEvent2 = (MotionEvent) f0Var.f1281d;
        int action = motionEvent2.getAction();
        if (action == 0) {
            h0.f2879b = f0Var.f1279b;
            h0.f2880c = false;
        } else if ((action == z6 || action == 2) && z7) {
            h0.f2879b = 0;
            h0.f2880c = z6;
        }
        h0.f2881d.onTouchEvent(motionEvent2);
        return z6;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:72:0x016c A[RETURN] */
    @Override // android.view.ViewGroup, android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final boolean dispatchHoverEvent(MotionEvent motionEvent) {
        boolean z6;
        int i6;
        boolean z7 = this.f2711F0;
        RunnableC0369l runnableC0369l = this.E0;
        if (z7) {
            removeCallbacks(runnableC0369l);
            runnableC0369l.run();
        }
        if (!o(motionEvent) && isAttachedToWindow()) {
            G g6 = this.f2703B;
            AccessibilityManager accessibilityManager = g6.f2860j;
            if (accessibilityManager.isEnabled() && accessibilityManager.isTouchExplorationEnabled()) {
                int action = motionEvent.getAction();
                A a6 = g6.f2857d;
                if (action == 7 || action == 9) {
                    float x6 = motionEvent.getX();
                    float y6 = motionEvent.getY();
                    a6.t(true);
                    I0.r rVar = new I0.r();
                    I0.H root = a6.getRoot();
                    long jFloatToRawIntBits = (((long) Float.floatToRawIntBits(x6)) << 32) | (((long) Float.floatToRawIntBits(y6)) & 4294967295L);
                    C0290e0 c0290e0 = root.f2162J;
                    AbstractC0300j0 abstractC0300j0 = (AbstractC0300j0) c0290e0.f2363e;
                    p0.U u6 = AbstractC0300j0.f2401P;
                    ((AbstractC0300j0) c0290e0.f2363e).a1(AbstractC0300j0.f2405T, abstractC0300j0.S0(jFloatToRawIntBits), rVar, 1, true);
                    for (int iA = AbstractC3252r.A(rVar); -1 < iA; iA--) {
                        Object objB = rVar.f2455a.b(iA);
                        kotlin.jvm.internal.o.f(objB, "null cannot be cast to non-null type androidx.compose.ui.Modifier.Node");
                        I0.H hT = AbstractC0303l.t((AbstractC2254r) objB);
                        if (a6.getAndroidViewsHandler$ui().getLayoutNodeToHolder().get(hT) != null) {
                            break;
                        }
                        if (hT.f2162J.f(8)) {
                            int iA2 = g6.A(hT.f2175b);
                            Q0.s sVarA = Q0.v.a(hT, false);
                            if (Q0.v.f(sVarA)) {
                                if (!sVarA.k().f5799a.b(Q0.w.f5819A)) {
                                    i6 = iA2;
                                    break;
                                }
                            } else {
                                continue;
                            }
                        }
                    }
                    i6 = Integer.MIN_VALUE;
                    a6.getAndroidViewsHandler$ui().dispatchGenericMotionEvent(motionEvent);
                    int i7 = g6.f2858e;
                    if (i7 != i6) {
                        g6.f2858e = i6;
                        G.E(g6, i6, 128, null, 12);
                        G.E(g6, i7, 256, null, 12);
                    }
                } else if (action == 10) {
                    int i8 = g6.f2858e;
                    if (i8 == Integer.MIN_VALUE) {
                        a6.getAndroidViewsHandler$ui().dispatchGenericMotionEvent(motionEvent);
                    } else if (i8 != Integer.MIN_VALUE) {
                        g6.f2858e = Integer.MIN_VALUE;
                        G.E(g6, Integer.MIN_VALUE, 128, null, 12);
                        G.E(g6, i8, 256, null, 12);
                    }
                }
            }
            int actionMasked = motionEvent.getActionMasked();
            if (actionMasked == 7) {
                z6 = 1;
                if (q(motionEvent)) {
                    if ((l(motionEvent) & z6) == 0) {
                    }
                }
            } else if (actionMasked != 10 || !p(motionEvent)) {
                z6 = 1;
                if ((l(motionEvent) & z6) == 0) {
                    return z6;
                }
            } else if (motionEvent.getToolType(0) != 3 || motionEvent.getButtonState() == 0) {
                MotionEvent motionEvent2 = this.f2773x0;
                if (motionEvent2 != null) {
                    motionEvent2.recycle();
                }
                this.f2773x0 = MotionEvent.obtainNoHistory(motionEvent);
                this.f2711F0 = true;
                postDelayed(runnableC0369l, 8L);
                return false;
            }
        }
        return false;
    }

    @Override // android.view.ViewGroup, android.view.View
    public final boolean dispatchKeyEvent(KeyEvent keyEvent) {
        if (!isFocused()) {
            return ((n0.o) getFocusOwner()).e(keyEvent, new C0104e(3, this, keyEvent));
        }
        int metaState = keyEvent.getMetaState();
        this.f2762s.getClass();
        n1.f3039a.setValue(new C0.M(metaState));
        return ((n0.o) getFocusOwner()).e(keyEvent, n0.l.f21528a) || super.dispatchKeyEvent(keyEvent);
    }

    @Override // android.view.ViewGroup, android.view.View
    public final boolean dispatchKeyEventPreIme(KeyEvent keyEvent) {
        C0290e0 c0290e0;
        if (isFocused()) {
            n0.o oVar = (n0.o) getFocusOwner();
            if (oVar.f21533d.f21527e) {
                System.out.println((Object) "FocusRelatedWarning: Dispatching intercepted soft keyboard event while the focus system is invalidated.");
            } else {
                n0.E eF = AbstractC2603d.f(oVar.f21532c);
                if (eF != null) {
                    if (!eF.getNode().isAttached()) {
                        F0.a.b("visitAncestors called on an unattached node");
                    }
                    AbstractC2254r node = eF.getNode();
                    I0.H hT = AbstractC0303l.t(eF);
                    while (hT != null) {
                        if ((((AbstractC2254r) hT.f2162J.f2365g).getAggregateChildKindSet$ui() & 131072) != 0) {
                            while (node != null) {
                                if ((node.getKindSet$ui() & 131072) != 0) {
                                    AbstractC2254r abstractC2254rE = node;
                                    MutableVector mutableVector = null;
                                    while (abstractC2254rE != null) {
                                        if ((abstractC2254rE.getKindSet$ui() & 131072) != 0 && (abstractC2254rE instanceof AbstractC0301k)) {
                                            int i6 = 0;
                                            for (AbstractC2254r child$ui = ((AbstractC0301k) abstractC2254rE).f2431b; child$ui != null; child$ui = child$ui.getChild$ui()) {
                                                if ((child$ui.getKindSet$ui() & 131072) != 0) {
                                                    i6++;
                                                    if (i6 == 1) {
                                                        abstractC2254rE = child$ui;
                                                    } else {
                                                        if (mutableVector == null) {
                                                            mutableVector = new MutableVector(new AbstractC2254r[16], 0);
                                                        }
                                                        if (abstractC2254rE != null) {
                                                            mutableVector.add(abstractC2254rE);
                                                            abstractC2254rE = null;
                                                        }
                                                        mutableVector.add(child$ui);
                                                    }
                                                }
                                            }
                                            if (i6 == 1) {
                                            }
                                        }
                                        abstractC2254rE = AbstractC0303l.e(mutableVector);
                                    }
                                }
                                node = node.getParent$ui();
                            }
                        }
                        hT = hT.t();
                        node = (hT == null || (c0290e0 = hT.f2162J) == null) ? null : (I0.F0) c0290e0.f2364f;
                    }
                }
            }
        }
        return super.dispatchKeyEventPreIme(keyEvent);
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void dispatchProvideStructure(ViewStructure viewStructure) {
        if (Build.VERSION.SDK_INT < 28) {
            H.f2877a.a(viewStructure, getView());
        } else {
            super.dispatchProvideStructure(viewStructure);
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final boolean dispatchTouchEvent(MotionEvent motionEvent) {
        Object c0370l0;
        n0.E eG;
        if (this.f2711F0) {
            RunnableC0369l runnableC0369l = this.E0;
            removeCallbacks(runnableC0369l);
            MotionEvent motionEvent2 = this.f2773x0;
            kotlin.jvm.internal.o.e(motionEvent2);
            if (motionEvent.getActionMasked() == 0 && motionEvent2.getSource() == motionEvent.getSource() && motionEvent2.getToolType(0) == motionEvent.getToolType(0)) {
                this.f2711F0 = false;
            } else {
                runnableC0369l.run();
            }
        }
        if (!o(motionEvent) && isAttachedToWindow() && (motionEvent.getActionMasked() != 2 || q(motionEvent))) {
            int iL = l(motionEvent);
            int i6 = 1;
            if ((iL & 2) != 0) {
                getParent().requestDisallowInterceptTouchEvent(true);
            }
            boolean z6 = motionEvent.getActionMasked() == 0 || motionEvent.getActionMasked() == 5;
            boolean z7 = motionEvent.isFromSource(8194) || motionEvent.isFromSource(1048584);
            if (z6 && z7) {
                Object parent = getParent();
                View view = parent instanceof View ? (View) parent : null;
                if (view == null || (c0370l0 = view.getTag(R.id.auto_clear_focus_behavior_tag)) == null) {
                    c0370l0 = new C0370l0(i6);
                }
                if (c0370l0.equals(new C0370l0(i6)) && (eG = ((n0.o) getFocusOwner()).g()) != null) {
                    AbstractC0300j0 abstractC0300j0S = AbstractC0303l.s(eG);
                    if (!G0.B.i(abstractC0300j0S).d0(abstractC0300j0S, true).a((((long) Float.floatToRawIntBits(motionEvent.getX())) << 32) | (((long) Float.floatToRawIntBits(motionEvent.getY())) & 4294967295L))) {
                        n0.k.a(getFocusOwner());
                    }
                }
            }
            if ((iL & 1) != 0) {
                return true;
            }
        }
        return false;
    }

    public final View findViewByAccessibilityIdTraversal(int i6) throws IllegalAccessException, InvocationTargetException {
        try {
            if (Build.VERSION.SDK_INT < 29) {
                return j(i6, this);
            }
            Method declaredMethod = View.class.getDeclaredMethod("findViewByAccessibilityIdTraversal", Integer.TYPE);
            declaredMethod.setAccessible(true);
            Object objInvoke = declaredMethod.invoke(this, Integer.valueOf(i6));
            if (objInvoke instanceof View) {
                return (View) objInvoke;
            }
            return null;
        } catch (NoSuchMethodException unused) {
            return null;
        }
    }

    @Override // android.view.ViewGroup, android.view.ViewParent
    public final View focusSearch(View view, int i6) {
        C2632c c2632cA;
        if (view == null || this.f2735a0.f2290c) {
            return super.focusSearch(view, i6);
        }
        View rootView = getRootView();
        kotlin.jvm.internal.o.f(rootView, "null cannot be cast to non-null type android.view.ViewGroup");
        View viewFindNextFocus = FocusFinder.getInstance().findNextFocus((ViewGroup) rootView, view, i6);
        if (viewFindNextFocus == null || !O.c(this, viewFindNextFocus)) {
            viewFindNextFocus = null;
        }
        if (view == this) {
            n0.E eF = AbstractC2603d.f(((n0.o) getFocusOwner()).f21532c);
            c2632cA = eF != null ? AbstractC2603d.j(eF) : null;
            if (c2632cA == null) {
                c2632cA = n0.h.a(view, this);
            }
        } else {
            c2632cA = n0.h.a(view, this);
        }
        C2605f c2605fD = n0.h.d(i6);
        int i7 = c2605fD != null ? c2605fD.f21520a : 6;
        kotlin.jvm.internal.C c6 = new kotlin.jvm.internal.C();
        if (((n0.o) getFocusOwner()).f(i7, c2632cA, new B0.k(c6, 2)) == null) {
            return view;
        }
        Object obj = c6.f20115a;
        if (obj == null) {
            if (viewFindNextFocus == null) {
                return super.focusSearch(view, i6);
            }
        } else if (viewFindNextFocus == null || i7 == 1 || i7 == 2 || AbstractC2603d.q(AbstractC2603d.j((n0.E) obj), n0.h.a(viewFindNextFocus, this), c2632cA, i7)) {
            return this;
        }
        return viewFindNextFocus;
    }

    public final C0362h0 getAndroidViewsHandler$ui() {
        if (this.f2731U == null) {
            C0362h0 c0362h0 = new C0362h0(getContext());
            this.f2731U = c0362h0;
            addView(c0362h0, -1);
            requestLayout();
        }
        C0362h0 c0362h02 = this.f2731U;
        kotlin.jvm.internal.o.e(c0362h02);
        return c0362h02;
    }

    public InterfaceC2310g getAutofill() {
        return this.f2724N;
    }

    public AbstractC2313j getAutofillManager() {
        return this.f2725O;
    }

    public C2314k getAutofillTree() {
        return this.f2710F;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public final Configuration getConfiguration() {
        return (Configuration) this.f2722M.getValue();
    }

    public final k0.e getContentCaptureManager$ui() {
        return this.f2705C;
    }

    public A4.j getCoroutineContext() {
        return this.f2758q;
    }

    public h1.c getDensity() {
        return (h1.c) this.f2750m.getValue();
    }

    public C2632c getEmbeddedViewFocusRect() {
        if (isFocused()) {
            n0.E eF = AbstractC2603d.f(((n0.o) getFocusOwner()).f21532c);
            if (eF != null) {
                return AbstractC2603d.j(eF);
            }
            return null;
        }
        View viewFindFocus = findFocus();
        if (viewFindFocus != null) {
            return n0.h.a(viewFindFocus, this);
        }
        return null;
    }

    public n0.m getFocusOwner() {
        return this.f2756p;
    }

    @Override // android.view.View
    public final void getFocusedRect(Rect rect) {
        C2632c embeddedViewFocusRect = getEmbeddedViewFocusRect();
        if (embeddedViewFocusRect != null) {
            rect.left = Math.round(embeddedViewFocusRect.f21787a);
            rect.top = Math.round(embeddedViewFocusRect.f21788b);
            rect.right = Math.round(embeddedViewFocusRect.f21789c);
            rect.bottom = Math.round(embeddedViewFocusRect.f21790d);
            return;
        }
        if (kotlin.jvm.internal.o.c(((n0.o) getFocusOwner()).f(6, null, C0382s.f3055b), Boolean.TRUE)) {
            super.getFocusedRect(rect);
        } else {
            rect.set(Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE, Integer.MIN_VALUE);
        }
    }

    public InterfaceC0807u getFontFamilyResolver() {
        return (InterfaceC0807u) this.f2761r0.getValue();
    }

    public InterfaceC0805s getFontLoader() {
        return this.f2759q0;
    }

    public final O0 getFrameEndScheduler$ui() {
        return this.f2742e;
    }

    public InterfaceC2684B getGraphicsContext() {
        return this.f2709E;
    }

    public InterfaceC3208a getHapticFeedBack() {
        return this.f2765t0;
    }

    public boolean getHasPendingMeasureOrLayout() {
        return this.f2735a0.f2289b.H() || !this.f2747k.isEmpty();
    }

    @Override // android.view.View
    public int getImportantForAutofill() {
        return 1;
    }

    public InterfaceC3260b getInputModeManager() {
        return this.f2767u0;
    }

    public final G0.r getInsetsListener() {
        return this.f2768v;
    }

    public final long getLastMatrixRecalculationAnimationTime$ui() {
        return this.g0;
    }

    /* JADX WARN: Multi-variable type inference failed */
    @Override // android.view.View, android.view.ViewParent
    public h1.m getLayoutDirection() {
        return (h1.m) this.f2763s0.getValue();
    }

    public long getMeasureIteration() {
        I0.W w6 = this.f2735a0;
        if (!w6.f2290c) {
            F0.a.a("measureIteration should be only used during the measure/layout pass");
        }
        return w6.f2294g;
    }

    public H0.b getModifierLocalManager() {
        return this.f2769v0;
    }

    public G0.p0 getPlacementScope() {
        int i6 = G0.r0.f2010b;
        return new G0.X(this, 1);
    }

    public InterfaceC0122x getPointerIconService() {
        return this.f2723M0;
    }

    /* JADX INFO: renamed from: getPrimaryDirectionalMotionAxisOverride-dqNNBbU$ui, reason: not valid java name */
    public final C3291a m5getPrimaryDirectionalMotionAxisOverridedqNNBbU$ui() {
        return this.f2738c;
    }

    public R0.b getRectManager() {
        return this.f2774y;
    }

    public RetainedValuesStore getRetainedValuesStore() {
        return this.f2745j;
    }

    public I0.H getRoot() {
        return this.f2770w;
    }

    public I0.B0 getRootForTest() {
        return this.f2776z;
    }

    /* JADX WARN: Multi-variable type inference failed */
    public final boolean getScrollCaptureInProgress$ui() {
        C0.B b5;
        if (Build.VERSION.SDK_INT < 31 || (b5 = this.K0) == null) {
            return false;
        }
        return ((Boolean) ((MutableState) b5.f506b).getValue()).booleanValue();
    }

    public Q0.u getSemanticsOwner() {
        return this.f2701A;
    }

    public I0.J getSharedDrawScope() {
        return this.f2740d;
    }

    public boolean getShowLayoutBounds() {
        return Build.VERSION.SDK_INT >= 30 ? C0366j0.f3028a.a(this) : this.f2730T;
    }

    public I0.v0 getSnapshotObserver() {
        return this.f2729S;
    }

    public Z0 getSoftwareKeyboardController() {
        return this.f2757p0;
    }

    public Z0.z getTextInputService() {
        return this.f2753n0;
    }

    public InterfaceC0350c1 getTextToolbar() {
        return this.f2771w0;
    }

    public final I0.A0 getUncaughtExceptionHandler$ui() {
        return null;
    }

    public j1 getViewConfiguration() {
        return this.f2766u;
    }

    public final C0375o getViewTreeOwners() {
        return (C0375o) this.f2748k0.getValue();
    }

    public m1 getWindowInfo() {
        return this.f2762s;
    }

    public final C2306c get_autofillManager$ui() {
        return this.f2725O;
    }

    public final void k(I0.H h5, boolean z6) {
        this.f2735a0.f(h5, z6);
    }

    /* JADX WARN: Removed duplicated region for block: B:38:0x007c  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final int l(MotionEvent motionEvent) {
        int actionMasked;
        MotionEvent motionEvent2;
        A a6;
        removeCallbacks(this.f2708D0);
        try {
            D(motionEvent);
            this.h0 = true;
            t(false);
            Trace.beginSection("AndroidOwner:onTouch");
            try {
                int actionMasked2 = motionEvent.getActionMasked();
                MotionEvent motionEvent3 = this.f2773x0;
                boolean z6 = motionEvent3 != null && motionEvent3.getToolType(0) == 3;
                C0.D d6 = this.f2721L;
                if (motionEvent3 != null) {
                    try {
                        if (!((motionEvent3.getSource() == motionEvent.getSource() && motionEvent3.getToolType(0) == motionEvent.getToolType(0)) ? false : true)) {
                            motionEvent2 = motionEvent3;
                        } else if (motionEvent3.getButtonState() != 0 || (actionMasked = motionEvent3.getActionMasked()) == 0 || actionMasked == 2 || actionMasked == 6) {
                            motionEvent2 = motionEvent3;
                            if (!d6.f518a) {
                                ((C2592t) ((C0.B) d6.f521d).f506b).a();
                                ((C0105f) d6.f520c).c();
                            }
                        } else if (motionEvent3.getActionMasked() != 10 && z6) {
                            I(motionEvent3, 10, motionEvent3.getEventTime(), true);
                            motionEvent2 = motionEvent3;
                        }
                    } catch (Throwable th) {
                        th = th;
                        Trace.endSection();
                        throw th;
                    }
                }
                boolean z7 = motionEvent.getToolType(0) == 3;
                if (z6 || !z7 || actionMasked2 == 3 || actionMasked2 == 9 || !p(motionEvent)) {
                    a6 = this;
                } else {
                    a6 = this;
                    a6.I(motionEvent, 9, motionEvent.getEventTime(), true);
                }
                if (motionEvent2 != null) {
                    motionEvent2.recycle();
                }
                MotionEvent motionEvent4 = a6.f2773x0;
                if (motionEvent4 != null && motionEvent4.getAction() == 10) {
                    MotionEvent motionEvent5 = a6.f2773x0;
                    int pointerId = motionEvent5 != null ? motionEvent5.getPointerId(0) : -1;
                    int action = motionEvent.getAction();
                    C0112m c0112m = a6.f2720K;
                    if (action == 9 && motionEvent.getHistorySize() == 0) {
                        if (pointerId >= 0) {
                            c0112m.f612c.delete(pointerId);
                            c0112m.f611b.delete(pointerId);
                        }
                    } else if (motionEvent.getAction() == 0 && motionEvent.getHistorySize() == 0) {
                        MotionEvent motionEvent6 = a6.f2773x0;
                        float x6 = motionEvent6 != null ? motionEvent6.getX() : Float.NaN;
                        MotionEvent motionEvent7 = a6.f2773x0;
                        boolean z8 = (x6 == motionEvent.getX() && (motionEvent7 != null ? motionEvent7.getY() : Float.NaN) == motionEvent.getY()) ? false : true;
                        MotionEvent motionEvent8 = a6.f2773x0;
                        boolean z9 = (motionEvent8 != null ? motionEvent8.getEventTime() : -1L) != motionEvent.getEventTime();
                        if (z8 || z9) {
                            if (pointerId >= 0) {
                                c0112m.f612c.delete(pointerId);
                                c0112m.f611b.delete(pointerId);
                            }
                            C0105f c0105f = (C0105f) d6.f520c;
                            if (c0105f.f595d) {
                                c0105f.f595d = true;
                            } else {
                                c0105f.f598g.f625a.clear();
                            }
                        }
                    }
                }
                a6.f2773x0 = MotionEvent.obtainNoHistory(motionEvent);
                int iH = H(motionEvent);
                Trace.endSection();
                a6.h0 = false;
                return iH;
            } catch (Throwable th2) {
                th = th2;
            }
        } catch (Throwable th3) {
            this.h0 = false;
            throw th3;
        }
    }

    public final void n(I0.H h5) {
        this.f2735a0.p(h5, false);
        MutableVector mutableVectorX = h5.x();
        Object[] objArr = mutableVectorX.content;
        int size = mutableVectorX.getSize();
        for (int i6 = 0; i6 < size; i6++) {
            n((I0.H) objArr[i6]);
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onAttachedToWindow() {
        RetainedValuesStore retainedValuesStore;
        androidx.lifecycle.r lifecycle;
        C0.J j4;
        int i6 = 0;
        super.onAttachedToWindow();
        int i7 = Build.VERSION.SDK_INT;
        if (i7 < 30) {
            setShowLayoutBounds(O.n());
        }
        this.f2768v.onViewAttachedToWindow(this);
        if (i7 > 28) {
            if (f2699R0 == null) {
                RunnableC0371m runnableC0371m = new RunnableC0371m(i6);
                f2699R0 = runnableC0371m;
                StrictMode.VmPolicy vmPolicy = StrictMode.getVmPolicy();
                try {
                    if (f2695N0 == null) {
                        f2695N0 = Class.forName("android.os.SystemProperties");
                    }
                    if (f2697P0 == null) {
                        StrictMode.setVmPolicy(StrictMode.VmPolicy.LAX);
                        Class cls = f2695N0;
                        f2697P0 = cls != null ? cls.getDeclaredMethod("addChangeCallback", Runnable.class) : null;
                    }
                    Method method = f2697P0;
                    if (method != null) {
                        method.invoke(null, runnableC0371m);
                    }
                } catch (Throwable unused) {
                }
                StrictMode.setVmPolicy(vmPolicy);
            }
            n.J j6 = f2698Q0;
            synchronized (j6) {
                j6.g(this);
            }
        }
        this.f2762s.f2900c.setValue(Boolean.valueOf(hasWindowFocus()));
        M0 m02 = this.f2762s;
        C0386u c0386u = new C0386u(this, i6);
        MutableState mutableState = m02.f2899b;
        if (mutableState == null) {
            m02.f2898a = c0386u;
        }
        if (mutableState != null) {
            mutableState.setValue(O.h(this));
        }
        n(getRoot());
        m(getRoot());
        getSnapshotObserver().f2468a.start();
        if (g() && (j4 = this.f2724N) != null) {
            C2312i c2312i = C2312i.f19445a;
            c2312i.getClass();
            ((AutofillManager) j4.f535d).registerCallback(c2312i);
        }
        InterfaceC1113w interfaceC1113wE = androidx.lifecycle.X.e(this);
        InterfaceC2618i interfaceC2618iJ = AbstractC2478m.j(this);
        androidx.lifecycle.j0 j0VarF = androidx.lifecycle.X.f(this);
        O0 o02 = this.f2742e;
        if (interfaceC1113wE == null || j0VarF == null || o02 == null) {
            retainedValuesStore = null;
        } else {
            androidx.lifecycle.i0 store = j0VarF.getViewModelStore();
            androidx.lifecycle.f0 f0Var = new androidx.lifecycle.f0();
            C1864a extras = C1864a.f15009b;
            kotlin.jvm.internal.o.h(store, "store");
            kotlin.jvm.internal.o.h(extras, "extras");
            C0.J j7 = new C0.J(store, f0Var, extras);
            kotlin.jvm.internal.g gVarA = kotlin.jvm.internal.D.a(LifecycleRetainedValuesStoreOwner.class);
            String strB = gVarA.b();
            if (strB == null) {
                throw new IllegalArgumentException("Local and anonymous classes can not be ViewModels");
            }
            LifecycleRetainedValuesStoreOwner lifecycleRetainedValuesStoreOwner = (LifecycleRetainedValuesStoreOwner) j7.g(gVarA, "androidx.lifecycle.ViewModelProvider.DefaultKey:".concat(strB));
            Object parent = getParent();
            kotlin.jvm.internal.o.f(parent, "null cannot be cast to non-null type android.view.View");
            P0 orCreateRetainedValuesStoreEntry = lifecycleRetainedValuesStoreOwner.getOrCreateRetainedValuesStoreEntry(((View) parent).getId());
            this.f2743f = orCreateRetainedValuesStoreEntry;
            retainedValuesStore = orCreateRetainedValuesStoreEntry.f2934b;
        }
        if (retainedValuesStore == null) {
            retainedValuesStore = ForgetfulRetainedValuesStore.INSTANCE;
        }
        this.f2745j = retainedValuesStore;
        C0375o viewTreeOwners = getViewTreeOwners();
        if (viewTreeOwners == null || (interfaceC1113wE != null && interfaceC2618iJ != null && (interfaceC1113wE != viewTreeOwners.f3040a || interfaceC2618iJ != viewTreeOwners.f3041b || j0VarF != viewTreeOwners.f3042c))) {
            if (interfaceC1113wE == null) {
                throw new IllegalStateException("Composed into the View which doesn't propagate ViewTreeLifecycleOwner!");
            }
            if (interfaceC2618iJ == null) {
                throw new IllegalStateException("Composed into the View which doesn't propagateViewTreeSavedStateRegistryOwner!");
            }
            if (viewTreeOwners != null && (lifecycle = viewTreeOwners.f3040a.getLifecycle()) != null) {
                lifecycle.removeObserver(this);
            }
            interfaceC1113wE.getLifecycle().addObserver(this);
            C0375o c0375o = new C0375o(interfaceC1113wE, interfaceC2618iJ, j0VarF);
            set_viewTreeOwners(c0375o);
            J4.c cVar = this.f2749l0;
            if (cVar != null) {
                cVar.invoke(c0375o);
            }
            this.f2749l0 = null;
        }
        C3261c c3261c = this.f2767u0;
        int i8 = isInTouchMode() ? 1 : 2;
        c3261c.getClass();
        c3261c.f26137a.setValue(new C3259a(i8));
        C0375o viewTreeOwners2 = getViewTreeOwners();
        androidx.lifecycle.r lifecycle2 = viewTreeOwners2 != null ? viewTreeOwners2.f3040a.getLifecycle() : null;
        if (lifecycle2 == null) {
            throw com.google.android.recaptcha.internal.a.g("No lifecycle owner exists");
        }
        lifecycle2.addObserver(this);
        lifecycle2.addObserver(this.f2705C);
        getViewTreeObserver().addOnGlobalLayoutListener(this);
        getViewTreeObserver().addOnScrollChangedListener(this);
        getViewTreeObserver().addOnTouchModeChangeListener(this);
        if (Build.VERSION.SDK_INT >= 31) {
            L.f2893a.b(this);
        }
        C2306c c2306c = this.f2725O;
        if (c2306c != null) {
            ((n0.o) getFocusOwner()).f21536g.g(c2306c);
            getSemanticsOwner().f5817d.g(c2306c);
        }
        ((n0.o) getFocusOwner()).f21536g.g(this);
    }

    @Override // android.view.View
    public final boolean onCheckIsTextEditor() {
        C2257u c2257u = (C2257u) this.f2755o0.get();
        X x6 = (X) (c2257u != null ? c2257u.f18822b : null);
        if (x6 == null) {
            return this.f2751m0.f9056d;
        }
        C2257u c2257u2 = (C2257u) x6.f2967d.get();
        J0 j02 = (J0) (c2257u2 != null ? c2257u2.f18822b : null);
        return j02 != null && (j02.f2890e ^ true);
    }

    @Override // android.view.View
    public final void onConfigurationChanged(Configuration configuration) {
        super.onConfigurationChanged(configuration);
        K(configuration);
    }

    @Override // android.view.View
    public final InputConnection onCreateInputConnection(EditorInfo editorInfo) {
        int i6;
        C2257u c2257u = (C2257u) this.f2755o0.get();
        X x6 = (X) (c2257u != null ? c2257u.f18822b : null);
        if (x6 == null) {
            Z0.B b5 = this.f2751m0;
            if (b5.f9056d) {
                Z0.k kVar = b5.f9060h;
                Z0.y yVar = b5.f9059g;
                int i7 = kVar.f9115e;
                boolean z6 = kVar.f9111a;
                if (i7 == 1) {
                    i6 = z6 ? 6 : 0;
                } else if (i7 == 0) {
                    i6 = 1;
                } else if (i7 == 2) {
                    i6 = 2;
                } else if (i7 == 6) {
                    i6 = 5;
                } else if (i7 == 5) {
                    i6 = 7;
                } else if (i7 == 3) {
                    i6 = 3;
                } else if (i7 == 4) {
                    i6 = 4;
                } else {
                    if (i7 != 7) {
                        throw new IllegalStateException("invalid ImeAction");
                    }
                }
                editorInfo.imeOptions = i6;
                int i8 = kVar.f9114d;
                if (i8 == 1) {
                    editorInfo.inputType = 1;
                } else if (i8 == 2) {
                    editorInfo.inputType = 1;
                    editorInfo.imeOptions = Integer.MIN_VALUE | i6;
                } else if (i8 == 3) {
                    editorInfo.inputType = 2;
                } else if (i8 == 4) {
                    editorInfo.inputType = 3;
                } else if (i8 == 5) {
                    editorInfo.inputType = 17;
                } else if (i8 == 6) {
                    editorInfo.inputType = 33;
                } else if (i8 == 7) {
                    editorInfo.inputType = TsExtractor.TS_STREAM_TYPE_AC3;
                } else if (i8 == 8) {
                    editorInfo.inputType = 18;
                } else {
                    if (i8 != 9) {
                        throw new IllegalStateException("Invalid Keyboard Type");
                    }
                    editorInfo.inputType = 8194;
                }
                if (!z6) {
                    int i9 = editorInfo.inputType;
                    if ((i9 & 1) == 1) {
                        editorInfo.inputType = i9 | 131072;
                        if (i7 == 1) {
                            editorInfo.imeOptions |= 1073741824;
                        }
                    }
                }
                int i10 = editorInfo.inputType;
                if ((i10 & 1) == 1) {
                    int i11 = kVar.f9112b;
                    if (i11 == 1) {
                        editorInfo.inputType = i10 | 4096;
                    } else if (i11 == 2) {
                        editorInfo.inputType = i10 | 8192;
                    } else if (i11 == 3) {
                        editorInfo.inputType = i10 | 16384;
                    }
                    if (kVar.f9113c) {
                        editorInfo.inputType |= DecoderReuseEvaluation.DISCARD_REASON_AUDIO_BYPASS_POSSIBLE;
                    }
                }
                long j4 = yVar.f9137b;
                int i12 = T0.N.f6482c;
                editorInfo.initialSelStart = (int) (j4 >> 32);
                editorInfo.initialSelEnd = (int) (j4 & 4294967295L);
                android.support.v4.media.session.b.I(editorInfo, yVar.f9136a.f6510b);
                editorInfo.imeOptions |= 33554432;
                if (T1.h.d()) {
                    T1.h.a().g(editorInfo);
                }
                Z0.u uVar = new Z0.u(b5.f9059g, new C0.B(b5, 21), b5.f9060h.f9113c);
                b5.f9061i.add(new WeakReference(uVar));
                return uVar;
            }
        } else {
            C2257u c2257u2 = (C2257u) x6.f2967d.get();
            J0 j02 = (J0) (c2257u2 != null ? c2257u2.f18822b : null);
            if (j02 != null) {
                synchronized (j02.f2888c) {
                    if (j02.f2890e) {
                        return null;
                    }
                    T.y yVarA = j02.f2886a.a(editorInfo);
                    C0.Z z7 = new C0.Z(j02, 10);
                    int i13 = Build.VERSION.SDK_INT;
                    InputConnection pVar = i13 >= 34 ? new Z0.p(yVarA, z7) : i13 >= 25 ? new Z0.n(yVarA, z7) : new Z0.m(yVarA, z7);
                    j02.f2889d.add(new I0.K0(pVar));
                    return pVar;
                }
            }
        }
        return null;
    }

    @Override // android.view.View
    public final void onCreateVirtualViewTranslationRequests(long[] jArr, int[] iArr, Consumer consumer) {
        Q0.s sVar;
        String strA;
        k0.e eVar = this.f2705C;
        eVar.getClass();
        for (long j4 : jArr) {
            Q0.t tVar = (Q0.t) eVar.e().b((int) j4);
            if (tVar != null && (sVar = tVar.f5812a) != null) {
                androidx.media3.exoplayer.analytics.x.q();
                ViewTranslationRequest.Builder builderO = androidx.media3.exoplayer.analytics.x.o(eVar.f19625a.getAutofillId(), sVar.f5811g);
                Object objD = sVar.f5808d.f5799a.d(Q0.w.f5820B);
                if (objD == null) {
                    objD = null;
                }
                List list = (List) objD;
                if (list != null && (strA = AbstractC2319a.a(list, "\n", null, 62)) != null) {
                    builderO.setValue("android:text", TranslationRequestValue.forText(new C0596g(strA)));
                    consumer.accept(builderO.build());
                }
            }
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        C0.J j4;
        super.onDetachedFromWindow();
        this.f2768v.onViewDetachedFromWindow(this);
        if (this.f2754o) {
            View view = this.f2752n;
            if (view == null) {
                kotlin.jvm.internal.o.n("frameRateCategoryView");
                throw null;
            }
            removeView(view);
        }
        int i6 = Build.VERSION.SDK_INT;
        if (i6 > 28) {
            n.J j6 = f2698Q0;
            synchronized (j6) {
                j6.k(this);
            }
        }
        SnapshotStateObserver snapshotStateObserver = getSnapshotObserver().f2468a;
        snapshotStateObserver.stop();
        snapshotStateObserver.clear();
        M0 m02 = this.f2762s;
        if (m02.f2899b == null) {
            m02.f2898a = null;
        }
        C0375o viewTreeOwners = getViewTreeOwners();
        androidx.lifecycle.r lifecycle = viewTreeOwners != null ? viewTreeOwners.f3040a.getLifecycle() : null;
        if (lifecycle == null) {
            throw com.google.android.recaptcha.internal.a.g("No lifecycle owner exists");
        }
        lifecycle.removeObserver(this.f2705C);
        lifecycle.removeObserver(this);
        if (g() && (j4 = this.f2724N) != null) {
            C2312i c2312i = C2312i.f19445a;
            c2312i.getClass();
            ((AutofillManager) j4.f535d).unregisterCallback(c2312i);
        }
        getViewTreeObserver().removeOnGlobalLayoutListener(this);
        getViewTreeObserver().removeOnScrollChangedListener(this);
        getViewTreeObserver().removeOnTouchModeChangeListener(this);
        P0 p02 = this.f2743f;
        if (p02 != null) {
            p02.f2935c = false;
        }
        this.f2743f = null;
        if (i6 >= 31) {
            L.f2893a.a(this);
        }
        C2306c c2306c = this.f2725O;
        if (c2306c != null) {
            getSemanticsOwner().f5817d.k(c2306c);
            ((n0.o) getFocusOwner()).f21536g.k(c2306c);
        }
        R0.b rectManager = getRectManager();
        F1.r rVar = rectManager.f6011g;
        if (rVar != null) {
            AbstractC2238b.f18793a.removeCallbacks(rVar);
            rectManager.f6011g = null;
        }
        ((n0.o) getFocusOwner()).f21536g.k(this);
    }

    @Override // android.view.View
    public final void onFocusChanged(boolean z6, int i6, Rect rect) {
        super.onFocusChanged(z6, i6, rect);
        if (z6 || hasFocus()) {
            return;
        }
        n0.o oVar = (n0.o) getFocusOwner();
        AbstractC2603d.d(oVar.f21532c, true);
        if (oVar.g() != null) {
            n0.E eG = oVar.g();
            oVar.j(null);
            if (eG != null) {
                eG.u0(n0.C.f21494a, n0.C.f21496c);
            }
        }
    }

    @Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
    public final void onGlobalLayout() {
        this.g0 = 0L;
        L();
        int i6 = Build.VERSION.SDK_INT;
        if (32 > i6 || i6 >= 34) {
            return;
        }
        K(getResources().getConfiguration());
    }

    @Override // android.view.ViewGroup, android.view.View
    public final void onLayout(boolean z6, int i6, int i7, int i8, int i9) {
        this.g0 = 0L;
        this.f2735a0.j(this.f2715H0);
        this.f2732V = null;
        L();
        if (this.f2731U != null) {
            getAndroidViewsHandler$ui().layout(0, 0, i8 - i6, i9 - i7);
        }
    }

    @Override // android.view.View
    public final void onMeasure(int i6, int i7) {
        I0.W w6 = this.f2735a0;
        Trace.beginSection("AndroidOwner:onMeasure");
        try {
            if (!isAttachedToWindow()) {
                n(getRoot());
            }
            long jI = i(i6);
            long jI2 = i(i7);
            long jP = W0.e.p((int) (jI >>> 32), (int) (jI & 4294967295L), (int) (jI2 >>> 32), (int) (4294967295L & jI2));
            C2069a c2069a = this.f2732V;
            if (c2069a == null) {
                this.f2732V = new C2069a(jP);
                this.f2733W = false;
            } else if (!C2069a.b(c2069a.f16612a, jP)) {
                this.f2733W = true;
            }
            w6.q(jP);
            w6.l();
            setMeasuredDimension(getRoot().f2163K.f2227p.f1998a, getRoot().f2163K.f2227p.f1999b);
            if (this.f2731U != null) {
                getAndroidViewsHandler$ui().measure(View.MeasureSpec.makeMeasureSpec(getRoot().f2163K.f2227p.f1998a, 1073741824), View.MeasureSpec.makeMeasureSpec(getRoot().f2163K.f2227p.f1999b, 1073741824));
            }
            Trace.endSection();
        } catch (Throwable th) {
            Trace.endSection();
            throw th;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x00ad  */
    @Override // android.view.View
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final void onProvideAutofillVirtualStructure(ViewStructure viewStructure, int i6) {
        if (!g() || viewStructure == null) {
            return;
        }
        C2306c c2306c = this.f2725O;
        if (c2306c != null) {
            I0.H h5 = c2306c.f19435b.f5814a;
            AutofillId autofillId = c2306c.f19440j;
            String str = c2306c.f19438e;
            R0.b bVar = c2306c.f19437d;
            W0.e.D(viewStructure, h5, autofillId, str, bVar);
            Object[] objArr = n.V.f21378a;
            n.J j4 = new n.J(2);
            j4.g(h5);
            j4.g(viewStructure);
            while (j4.e()) {
                Object objL = j4.l(j4.f21377b - 1);
                kotlin.jvm.internal.o.f(objL, "null cannot be cast to non-null type android.view.ViewStructure");
                ViewStructure viewStructure2 = (ViewStructure) objL;
                Object objL2 = j4.l(j4.f21377b - 1);
                kotlin.jvm.internal.o.f(objL2, "null cannot be cast to non-null type androidx.compose.ui.semantics.SemanticsInfo");
                List listL = ((I0.H) ((Q0.o) objL2)).l();
                int size = listL.size();
                for (int i7 = 0; i7 < size; i7++) {
                    Q0.o oVar = (Q0.o) listL.get(i7);
                    I0.H h6 = (I0.H) oVar;
                    if (!h6.f2173U && h6.F() && h6.G()) {
                        Q0.n nVarV = h6.v();
                        if (nVarV != null) {
                            Q0.z zVar = Q0.m.f5780g;
                            n.N n6 = nVarV.f5799a;
                            if (n6.a(zVar) || n6.a(Q0.m.f5781h) || n6.a(Q0.w.f5850q) || n6.a(Q0.w.f5851r)) {
                                ViewStructure viewStructureNewChild = viewStructure2.newChild(viewStructure2.addChildCount(1));
                                W0.e.D(viewStructureNewChild, oVar, c2306c.f19440j, str, bVar);
                                j4.g(oVar);
                                j4.g(viewStructureNewChild);
                            } else {
                                j4.g(oVar);
                                j4.g(viewStructure2);
                            }
                        }
                    }
                }
            }
        }
        C0.J j6 = this.f2724N;
        if (j6 != null) {
            C2314k c2314k = (C2314k) j6.f534c;
            if (c2314k.f19446a.isEmpty()) {
                return;
            }
            LinkedHashMap linkedHashMap = c2314k.f19446a;
            int iAddChildCount = viewStructure.addChildCount(linkedHashMap.size());
            Iterator it = linkedHashMap.entrySet().iterator();
            if (it.hasNext()) {
                Map.Entry entry = (Map.Entry) it.next();
                int iIntValue = ((Number) entry.getKey()).intValue();
                if (entry.getValue() != null) {
                    throw new ClassCastException();
                }
                ViewStructure viewStructureNewChild2 = viewStructure.newChild(iAddChildCount);
                viewStructureNewChild2.setAutofillId((AutofillId) j6.f536e, iIntValue);
                viewStructureNewChild2.setId(iIntValue, ((A) j6.f533b).getContext().getPackageName(), null, null);
                viewStructureNewChild2.setAutofillType(1);
                throw null;
            }
        }
    }

    @Override // android.view.ViewGroup, android.view.View
    public final PointerIcon onResolvePointerIcon(MotionEvent motionEvent, int i6) {
        InterfaceC0121w interfaceC0121w;
        int toolType = motionEvent.getToolType(i6);
        if (motionEvent.isFromSource(8194) || !motionEvent.isFromSource(16386) || (!(toolType == 2 || toolType == 4) || (interfaceC0121w = ((C0388v) getPointerIconService()).f3082a) == null)) {
            return super.onResolvePointerIcon(motionEvent, i6);
        }
        Context context = getContext();
        return interfaceC0121w instanceof C0100a ? PointerIcon.getSystemIcon(context, ((C0100a) interfaceC0121w).f572b) : PointerIcon.getSystemIcon(context, 1000);
    }

    @Override // androidx.lifecycle.DefaultLifecycleObserver
    public final void onResume(InterfaceC1113w interfaceC1113w) {
        CancellationHandle cancellationHandleScheduleFrameEndCallback;
        if (Build.VERSION.SDK_INT < 30) {
            setShowLayoutBounds(O.n());
        }
        P0 p02 = this.f2743f;
        if (p02 != null) {
            O0 o02 = this.f2742e;
            kotlin.jvm.internal.o.e(o02);
            N0 n02 = p02.f2933a;
            if (n02.f2902a.isRetainingExitedValues()) {
                try {
                    cancellationHandleScheduleFrameEndCallback = ((D1) o02).f2811a.scheduleFrameEndCallback(new B0.b(p02, 7));
                } catch (CancellationException unused) {
                    n02.f2902a.onContentEnteredComposition();
                    cancellationHandleScheduleFrameEndCallback = null;
                }
                CancellationHandle cancellationHandle = p02.f2936d;
                if (cancellationHandle != null) {
                    cancellationHandle.cancel();
                }
                p02.f2936d = cancellationHandleScheduleFrameEndCallback;
            }
        }
    }

    @Override // android.view.View
    public final void onRtlPropertiesChanged(int i6) {
        if (this.f2736b) {
            int[] iArr = n0.h.f21521a;
            h1.m mVar = i6 != 0 ? i6 != 1 ? null : h1.m.f16629b : h1.m.f16628a;
            if (mVar == null) {
                mVar = h1.m.f16628a;
            }
            setLayoutDirection(mVar);
        }
    }

    @Override // android.view.View
    public final void onScrollCaptureSearch(Rect rect, Point point, Consumer consumer) {
        C0.B b5;
        if (Build.VERSION.SDK_INT < 31 || (b5 = this.K0) == null) {
            return;
        }
        Q0.u semanticsOwner = getSemanticsOwner();
        A4.j coroutineContext = getCoroutineContext();
        MutableVector mutableVector = new MutableVector(new P0.l[16], 0);
        A4.g.W(semanticsOwner.a(), 0, new P0.k(1, 8, MutableVector.class, mutableVector, "add", "add(Ljava/lang/Object;)Z"));
        mutableVector.sortWith(new Q0.B(new J4.c[]{P0.d.f5612c, P0.d.f5613d}, 3));
        P0.l lVar = (P0.l) (mutableVector.getSize() == 0 ? null : mutableVector.content[mutableVector.getSize() - 1]);
        if (lVar == null) {
            return;
        }
        a5.c cVarC = V4.E.c(coroutineContext);
        Q0.s sVar = lVar.f5633a;
        h1.k kVar = lVar.f5635c;
        P0.f fVar = new P0.f(sVar, kVar, cVarC, b5, this);
        AbstractC0300j0 abstractC0300j0 = lVar.f5636d;
        C2632c c2632cD0 = G0.B.i(abstractC0300j0).d0(abstractC0300j0, true);
        long jC = kVar.c();
        ScrollCaptureTarget scrollCaptureTargetI = AbstractC0367k.i(this, AbstractC2686D.F(W.d.z(c2632cD0)), new Point((int) (jC >> 32), (int) (jC & 4294967295L)), fVar);
        scrollCaptureTargetI.setScrollBounds(AbstractC2686D.F(kVar));
        consumer.accept(scrollCaptureTargetI);
    }

    @Override // android.view.ViewTreeObserver.OnScrollChangedListener
    public final void onScrollChanged() {
        L();
    }

    @Override // androidx.lifecycle.DefaultLifecycleObserver
    public final void onStop(InterfaceC1113w interfaceC1113w) {
        P0 p02 = this.f2743f;
        if (p02 != null) {
            N0 n02 = p02.f2933a;
            if (!n02.f2902a.isRetainingExitedValues()) {
                n02.f2902a.onContentExitComposition();
                return;
            }
            CancellationHandle cancellationHandle = p02.f2936d;
            if (cancellationHandle != null) {
                cancellationHandle.cancel();
            }
            p02.f2936d = null;
        }
    }

    @Override // android.view.ViewTreeObserver.OnTouchModeChangeListener
    public final void onTouchModeChanged(boolean z6) {
        int i6 = z6 ? 1 : 2;
        C3261c c3261c = this.f2767u0;
        c3261c.getClass();
        c3261c.f26137a.setValue(new C3259a(i6));
    }

    @Override // android.view.View
    public final void onVirtualViewTranslationResponses(LongSparseArray longSparseArray) {
        k0.e eVar = this.f2705C;
        eVar.getClass();
        if (Build.VERSION.SDK_INT < 31) {
            return;
        }
        if (kotlin.jvm.internal.o.c(Looper.getMainLooper().getThread(), Thread.currentThread())) {
            W.d.l(eVar, longSparseArray);
        } else {
            eVar.f19625a.post(new androidx.media3.common.j(15, eVar, longSparseArray));
        }
    }

    @Override // android.view.View
    public final void onWindowFocusChanged(boolean z6) {
        boolean zN;
        this.f2762s.f2900c.setValue(Boolean.valueOf(z6));
        this.f2719J0 = true;
        super.onWindowFocusChanged(z6);
        if (!z6 || Build.VERSION.SDK_INT >= 30 || getShowLayoutBounds() == (zN = O.n())) {
            return;
        }
        setShowLayoutBounds(zN);
        m(getRoot());
    }

    public final boolean p(MotionEvent motionEvent) {
        float x6 = motionEvent.getX();
        float y6 = motionEvent.getY();
        return 0.0f <= x6 && x6 <= ((float) getWidth()) && 0.0f <= y6 && y6 <= ((float) getHeight());
    }

    public final boolean q(MotionEvent motionEvent) {
        MotionEvent motionEvent2;
        return (motionEvent.getPointerCount() == 1 && (motionEvent2 = this.f2773x0) != null && motionEvent2.getPointerCount() == motionEvent.getPointerCount() && motionEvent.getRawX() == motionEvent2.getRawX() && motionEvent.getRawY() == motionEvent2.getRawY()) ? false : true;
    }

    public final void r(float[] fArr) {
        C();
        C2692J.e(fArr, this.e0);
        float fIntBitsToFloat = Float.intBitsToFloat((int) (this.f2744i0 >> 32));
        float fIntBitsToFloat2 = Float.intBitsToFloat((int) (this.f2744i0 & 4294967295L));
        float[] fArr2 = this.f2741d0;
        C2692J.d(fArr2);
        C2692J.f(fArr2, fIntBitsToFloat, fIntBitsToFloat2);
        O.s(fArr, fArr2);
    }

    @Override // android.view.ViewGroup, android.view.View
    public final boolean requestFocus(int i6, Rect rect) {
        if (!isFocused()) {
            C2605f c2605fD = n0.h.d(i6);
            int i7 = c2605fD != null ? c2605fD.f21520a : 7;
            Boolean boolF = ((n0.o) getFocusOwner()).f(i7, rect != null ? AbstractC2686D.K(rect) : null, new C0390w(i7, 0));
            Boolean bool = Boolean.TRUE;
            if (!kotlin.jvm.internal.o.c(boolF, bool)) {
                if (!kotlin.jvm.internal.o.c(((n0.o) getFocusOwner()).f(i7, null, new C0390w(i7, 1)), bool)) {
                    if (!hasFocus()) {
                        return false;
                    }
                    if (i7 == 1 || i7 == 2) {
                        return ((n0.o) getFocusOwner()).i(i7);
                    }
                    return false;
                }
            }
        }
        return true;
    }

    public final long s(long j4) {
        C();
        long jB = C2692J.b(j4, this.e0);
        float fIntBitsToFloat = Float.intBitsToFloat((int) (this.f2744i0 >> 32)) + Float.intBitsToFloat((int) (jB >> 32));
        return (((long) Float.floatToRawIntBits(Float.intBitsToFloat((int) (this.f2744i0 & 4294967295L)) + Float.intBitsToFloat((int) (jB & 4294967295L)))) & 4294967295L) | (Float.floatToRawIntBits(fIntBitsToFloat) << 32);
    }

    public void setAccessibilityEventBatchIntervalMillis(long j4) {
        this.f2703B.f2861k = j4;
    }

    public final void setConfiguration(Configuration configuration) {
        this.f2722M.setValue(configuration);
    }

    public final void setContentCaptureManager$ui(k0.e eVar) {
        this.f2705C = eVar;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r6v7 */
    public void setCoroutineContext(A4.j jVar) {
        this.f2758q = jVar;
        AbstractC2254r abstractC2254r = (AbstractC2254r) getRoot().f2162J.f2365g;
        if (abstractC2254r instanceof C0.b0) {
            ((C0.b0) abstractC2254r).v0();
        }
        if (!abstractC2254r.getNode().isAttached()) {
            F0.a.b("visitSubtreeIf called on an unattached node");
        }
        MutableVector mutableVector = new MutableVector(new AbstractC2254r[16], 0);
        AbstractC2254r child$ui = abstractC2254r.getNode().getChild$ui();
        if (child$ui == null) {
            AbstractC0303l.b(mutableVector, abstractC2254r.getNode());
        } else {
            mutableVector.add(child$ui);
        }
        while (mutableVector.getSize() != 0) {
            AbstractC2254r abstractC2254r2 = (AbstractC2254r) AbstractC2761L.e(1, mutableVector);
            if ((abstractC2254r2.getAggregateChildKindSet$ui() & 16) != 0) {
                for (AbstractC2254r child$ui2 = abstractC2254r2; child$ui2 != null && child$ui2.isAttached(); child$ui2 = child$ui2.getChild$ui()) {
                    if ((child$ui2.getKindSet$ui() & 16) != 0) {
                        AbstractC2254r abstractC2254rE = child$ui2;
                        MutableVector mutableVector2 = null;
                        while (abstractC2254rE != 0) {
                            if (abstractC2254rE instanceof I0.y0) {
                                I0.y0 y0Var = (I0.y0) abstractC2254rE;
                                if (y0Var instanceof C0.b0) {
                                    ((C0.b0) y0Var).v0();
                                }
                            } else if ((abstractC2254rE.getKindSet$ui() & 16) != 0 && (abstractC2254rE instanceof AbstractC0301k)) {
                                AbstractC2254r child$ui3 = ((AbstractC0301k) abstractC2254rE).f2431b;
                                int i6 = 0;
                                abstractC2254rE = abstractC2254rE;
                                while (child$ui3 != null) {
                                    if ((child$ui3.getKindSet$ui() & 16) != 0) {
                                        i6++;
                                        if (i6 == 1) {
                                            abstractC2254rE = child$ui3;
                                        } else {
                                            if (mutableVector2 == null) {
                                                mutableVector2 = new MutableVector(new AbstractC2254r[16], 0);
                                            }
                                            if (abstractC2254rE != 0) {
                                                mutableVector2.add(abstractC2254rE);
                                                abstractC2254rE = 0;
                                            }
                                            mutableVector2.add(child$ui3);
                                        }
                                    }
                                    child$ui3 = child$ui3.getChild$ui();
                                    abstractC2254rE = abstractC2254rE;
                                }
                                if (i6 == 1) {
                                }
                            }
                            abstractC2254rE = AbstractC0303l.e(mutableVector2);
                        }
                    }
                }
            }
            AbstractC0303l.b(mutableVector, abstractC2254r2);
        }
    }

    public final void setFrameEndScheduler$ui(O0 o02) {
        this.f2742e = o02;
    }

    public final void setLastMatrixRecalculationAnimationTime$ui(long j4) {
        this.g0 = j4;
    }

    public final void setOnViewTreeOwnersAvailable(J4.c cVar) {
        C0375o viewTreeOwners = getViewTreeOwners();
        if (viewTreeOwners != null) {
            cVar.invoke(viewTreeOwners);
        }
        if (isAttachedToWindow()) {
            return;
        }
        this.f2749l0 = cVar;
    }

    /* JADX INFO: renamed from: setPrimaryDirectionalMotionAxisOverride-r2epLt8$ui, reason: not valid java name */
    public final void m6setPrimaryDirectionalMotionAxisOverrider2epLt8$ui(C3291a c3291a) {
        this.f2738c = c3291a;
    }

    public void setShowLayoutBounds(boolean z6) {
        this.f2730T = z6;
    }

    public void setUncaughtExceptionHandler(I0.A0 a02) {
        this.f2735a0.getClass();
    }

    @Override // android.view.ViewGroup
    public final boolean shouldDelayChildPressedState() {
        return false;
    }

    public final void t(boolean z6) {
        C0386u c0386u;
        I0.W w6 = this.f2735a0;
        if (w6.f2289b.H() || ((MutableVector) w6.f2292e.f6345b).getSize() != 0) {
            Trace.beginSection("AndroidOwner:measureAndLayout");
            if (z6) {
                try {
                    c0386u = this.f2715H0;
                } catch (Throwable th) {
                    Trace.endSection();
                    throw th;
                }
            } else {
                c0386u = null;
            }
            if (w6.j(c0386u)) {
                requestLayout();
            }
            w6.a(false);
            if (this.f2718J) {
                getViewTreeObserver().dispatchOnGlobalLayout();
                this.f2718J = false;
            }
            Trace.endSection();
        }
    }

    public final void u(I0.H h5, long j4) {
        I0.W w6 = this.f2735a0;
        Trace.beginSection("AndroidOwner:measureAndLayout");
        try {
            w6.k(h5, j4);
            if (!w6.f2289b.H()) {
                w6.a(false);
                if (this.f2718J) {
                    getViewTreeObserver().dispatchOnGlobalLayout();
                    this.f2718J = false;
                }
            }
            getRectManager().a();
        } finally {
            Trace.endSection();
        }
    }

    public final boolean v(int i6) {
        if (i6 == 7 || i6 == 8) {
            return false;
        }
        Integer numC = n0.h.c(i6);
        if (numC == null) {
            throw com.google.android.recaptcha.internal.a.g("Invalid focus direction");
        }
        int iIntValue = numC.intValue();
        n0.E eG = ((n0.o) getFocusOwner()).g();
        if (eG == null) {
            throw new IllegalStateException("findNextViewInEmbeddedView called when owner does not have anything focused.");
        }
        Integer numC2 = n0.h.c(i6);
        if (numC2 == null) {
            throw com.google.android.recaptcha.internal.a.g("Invalid focus direction");
        }
        int iIntValue2 = numC2.intValue();
        k1.y yVar = AbstractC0303l.t(eG).f2188s;
        View interopView = yVar != null ? yVar.getInteropView() : null;
        View viewFindFocus = findFocus();
        FocusFinder focusFinder = FocusFinder.getInstance();
        View rootView = getRootView();
        kotlin.jvm.internal.o.f(rootView, "null cannot be cast to non-null type android.view.ViewGroup");
        View viewFindNextFocus = focusFinder.findNextFocus((ViewGroup) rootView, viewFindFocus, iIntValue2);
        if (viewFindNextFocus == null || interopView == null || !O.c(interopView, viewFindNextFocus)) {
            viewFindNextFocus = null;
        }
        if (viewFindNextFocus != null) {
            return n0.h.b(viewFindNextFocus, Integer.valueOf(iIntValue), null);
        }
        return false;
    }

    public final void w(I0.r0 r0Var, boolean z6) {
        n.J j4 = this.f2712G;
        if (!z6) {
            if (this.f2716I) {
                return;
            }
            j4.k(r0Var);
            n.J j6 = this.f2714H;
            if (j6 != null) {
                j6.k(r0Var);
                return;
            }
            return;
        }
        if (!this.f2716I) {
            j4.g(r0Var);
            return;
        }
        n.J j7 = this.f2714H;
        if (j7 == null) {
            j7 = new n.J();
            this.f2714H = j7;
        }
        j7.g(r0Var);
    }

    public final void x() {
        n.J j4;
        int i6;
        C2306c c2306c;
        if (this.f2726P) {
            getSnapshotObserver().f2468a.clearIf(C0287d.f2346j);
            this.f2726P = false;
        }
        C0362h0 c0362h0 = this.f2731U;
        if (c0362h0 != null) {
            h(c0362h0);
        }
        if (g() && (c2306c = this.f2725O) != null) {
            C2567B c2567b = c2306c.f19441k;
            if (c2567b.f21315d == 0 && c2306c.l) {
                ((AutofillManager) c2306c.f19434a.f506b).commit();
                c2306c.l = false;
            }
            if (c2567b.f21315d != 0) {
                c2306c.l = true;
            }
        }
        loop0: while (true) {
            j4 = this.f2702A0;
            if (!j4.e() || j4.b(0) == null) {
                return;
            }
            int i7 = j4.f21377b;
            i6 = 0;
            while (i6 < i7) {
                J4.a aVar = (J4.a) j4.b(i6);
                if (i6 < 0 || i6 >= j4.f21377b) {
                    break loop0;
                }
                Object[] objArr = j4.f21376a;
                Object obj = objArr[i6];
                objArr[i6] = null;
                if (aVar != null) {
                    aVar.invoke();
                }
                i6++;
            }
            j4.m(0, i7);
        }
        j4.f(i6);
        throw null;
    }

    public final void y(I0.H h5) {
        G g6 = this.f2703B;
        g6.f2841B = true;
        if (g6.v()) {
            g6.w(h5);
        }
        k0.e eVar = this.f2705C;
        eVar.f19631j = true;
        if (eVar.f()) {
            eVar.f19632k.f(C3137A.f25453a);
        }
    }

    public final void z(I0.H h5, boolean z6, boolean z7, boolean z8) {
        I0.H hT;
        I0.H hT2;
        I0.W w6 = this.f2735a0;
        if (!z6) {
            if (w6.p(h5, z7) && z8) {
                F(h5);
                return;
            }
            return;
        }
        w6.getClass();
        if (h5.l == null) {
            F0.a.b("Error: requestLookaheadRemeasure cannot be called on a node outside LookaheadScope");
        }
        I0.L l = h5.f2163K;
        int iOrdinal = l.f2216d.ordinal();
        if (iOrdinal != 0) {
            if (iOrdinal == 1) {
                return;
            }
            if (iOrdinal != 2 && iOrdinal != 3) {
                if (iOrdinal != 4) {
                    throw new E3.v();
                }
                if (!l.f2217e || z7) {
                    l.f2217e = true;
                    l.f2227p.f2327x = true;
                    if (h5.f2173U) {
                        return;
                    }
                    boolean zC = kotlin.jvm.internal.o.c(h5.H(), Boolean.TRUE);
                    C4.f fVar = w6.f2289b;
                    if ((zC || I0.W.h(h5)) && ((hT = h5.t()) == null || !hT.f2163K.f2217e)) {
                        fVar.f(h5, EnumC0312v.f2463a);
                    } else if ((h5.G() || I0.W.i(h5)) && ((hT2 = h5.t()) == null || !hT2.o())) {
                        fVar.f(h5, EnumC0312v.f2465c);
                    }
                    if (w6.f2291d || !z8) {
                        return;
                    }
                    F(h5);
                    return;
                }
                return;
            }
        }
        w6.f2295h.add(new I0.V(h5, true, z7));
    }

    @Override // android.view.ViewGroup
    public final void addView(View view, int i6) {
        kotlin.jvm.internal.o.e(view);
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        if (layoutParams == null) {
            layoutParams = generateDefaultLayoutParams();
        }
        addViewInLayout(view, i6, layoutParams, true);
    }

    public C0361h getAccessibilityManager() {
        return this.f2707D;
    }

    /* JADX INFO: renamed from: getClipboard, reason: merged with bridge method [inline-methods] */
    public C0363i m8getClipboard() {
        return this.f2728R;
    }

    /* JADX INFO: renamed from: getClipboardManager, reason: merged with bridge method [inline-methods] */
    public C0365j m9getClipboardManager() {
        return this.f2727Q;
    }

    /* JADX INFO: renamed from: getDragAndDropManager, reason: merged with bridge method [inline-methods] */
    public l0.b m10getDragAndDropManager() {
        return this.f2760r;
    }

    /* JADX INFO: renamed from: getLayoutNodes, reason: merged with bridge method [inline-methods] */
    public C2566A m11getLayoutNodes() {
        return this.f2772x;
    }

    public A getOutOfFrameExecutor() {
        if (isAttachedToWindow()) {
            return this;
        }
        return null;
    }

    @Override // android.view.ViewGroup
    public final void addView(View view, int i6, int i7) {
        ViewGroup.LayoutParams layoutParamsGenerateDefaultLayoutParams = generateDefaultLayoutParams();
        layoutParamsGenerateDefaultLayoutParams.width = i6;
        layoutParamsGenerateDefaultLayoutParams.height = i7;
        addViewInLayout(view, -1, layoutParamsGenerateDefaultLayoutParams, true);
    }

    @Override // android.view.ViewGroup
    public final void addView(View view, int i6, ViewGroup.LayoutParams layoutParams) {
        addViewInLayout(view, i6, layoutParams, true);
    }

    @Override // android.view.ViewGroup, android.view.ViewManager
    public final void addView(View view, ViewGroup.LayoutParams layoutParams) {
        addViewInLayout(view, -1, layoutParams, true);
    }

    @InterfaceC3141c
    public static /* synthetic */ void getFontLoader$annotations() {
    }

    public static /* synthetic */ void getLastMatrixRecalculationAnimationTime$ui$annotations() {
    }

    /* JADX INFO: renamed from: getPrimaryDirectionalMotionAxisOverride-dqNNBbU$ui$annotations, reason: not valid java name */
    public static /* synthetic */ void m4getPrimaryDirectionalMotionAxisOverridedqNNBbU$ui$annotations() {
    }

    public static /* synthetic */ void getRoot$annotations() {
    }

    public static /* synthetic */ void getShowLayoutBounds$annotations() {
    }

    @InterfaceC3141c
    public static /* synthetic */ void getTextInputService$annotations() {
    }

    public View getView() {
        return this;
    }

    @Override // android.view.View
    public final void onDraw(Canvas canvas) {
    }

    public final void setUncaughtExceptionHandler$ui(I0.A0 a02) {
    }
}
