package x;

import android.content.Context;
import android.util.Log;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.ViewGroup;
import android.view.animation.Interpolator;
import android.widget.OverScroller;
import androidx.core.view.y;
import java.util.Arrays;

/* JADX INFO: compiled from: ViewDragHelper.java */
/* JADX INFO: loaded from: classes.dex */
public class c {

    /* JADX INFO: renamed from: x, reason: collision with root package name */
    private static final Interpolator f5912x = new a();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private int f5913a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private int f5914b;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private float[] f5916d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private float[] f5917e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private float[] f5918f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private float[] f5919g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private int[] f5920h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private int[] f5921i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private int[] f5922j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private int f5923k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    private VelocityTracker f5924l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private float f5925m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    private float f5926n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    private int f5927o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    private final int f5928p;

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

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    private OverScroller f5930r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    private final AbstractC0087c f5931s;

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    private View f5932t;

    /* JADX INFO: renamed from: u, reason: collision with root package name */
    private boolean f5933u;

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    private final ViewGroup f5934v;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private int f5915c = -1;

    /* JADX INFO: renamed from: w, reason: collision with root package name */
    private final Runnable f5935w = new b();

    /* JADX INFO: compiled from: ViewDragHelper.java */
    class a implements Interpolator {
        a() {
        }

        @Override // android.animation.TimeInterpolator
        public float getInterpolation(float f3) {
            float f4 = f3 - 1.0f;
            return (f4 * f4 * f4 * f4 * f4) + 1.0f;
        }
    }

    /* JADX INFO: compiled from: ViewDragHelper.java */
    class b implements Runnable {
        b() {
        }

        @Override // java.lang.Runnable
        public void run() {
            c.this.E(0);
        }
    }

    /* JADX INFO: renamed from: x.c$c, reason: collision with other inner class name */
    /* JADX INFO: compiled from: ViewDragHelper.java */
    public static abstract class AbstractC0087c {
        public abstract int a(View view, int i3, int i4);

        public abstract int b(View view, int i3, int i4);

        public int c(int i3) {
            return i3;
        }

        public int d(View view) {
            return 0;
        }

        public int e(View view) {
            return 0;
        }

        public void f(int i3, int i4) {
        }

        public boolean g(int i3) {
            return false;
        }

        public void h(int i3, int i4) {
        }

        public void i(View view, int i3) {
        }

        public abstract void j(int i3);

        public abstract void k(View view, int i3, int i4, int i5, int i6);

        public abstract void l(View view, float f3, float f4);

        public abstract boolean m(View view, int i3);
    }

    private c(Context context, ViewGroup viewGroup, AbstractC0087c abstractC0087c) {
        if (viewGroup == null) {
            throw new IllegalArgumentException("Parent view may not be null");
        }
        if (abstractC0087c == null) {
            throw new IllegalArgumentException("Callback may not be null");
        }
        this.f5934v = viewGroup;
        this.f5931s = abstractC0087c;
        ViewConfiguration viewConfiguration = ViewConfiguration.get(context);
        int i3 = (int) ((context.getResources().getDisplayMetrics().density * 20.0f) + 0.5f);
        this.f5928p = i3;
        this.f5927o = i3;
        this.f5914b = viewConfiguration.getScaledTouchSlop();
        this.f5925m = viewConfiguration.getScaledMaximumFlingVelocity();
        this.f5926n = viewConfiguration.getScaledMinimumFlingVelocity();
        this.f5930r = new OverScroller(context, f5912x);
    }

    private void A() {
        this.f5924l.computeCurrentVelocity(1000, this.f5925m);
        n(e(this.f5924l.getXVelocity(this.f5915c), this.f5926n, this.f5925m), e(this.f5924l.getYVelocity(this.f5915c), this.f5926n, this.f5925m));
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Type inference failed for: r0v11 */
    /* JADX WARN: Type inference failed for: r0v12 */
    /* JADX WARN: Type inference failed for: r0v13 */
    /* JADX WARN: Type inference failed for: r0v14 */
    /* JADX WARN: Type inference failed for: r0v15 */
    /* JADX WARN: Type inference failed for: r0v16 */
    /* JADX WARN: Type inference failed for: r0v2 */
    /* JADX WARN: Type inference failed for: r0v3 */
    /* JADX WARN: Type inference failed for: r0v4, types: [int] */
    /* JADX WARN: Type inference failed for: r2v1, types: [x.c$c] */
    /* JADX WARN: Type inference fix 'apply assigned field type' failed
    java.lang.UnsupportedOperationException: ArgType.getObject(), call class: class jadx.core.dex.instructions.args.ArgType$UnknownArg
    	at jadx.core.dex.instructions.args.ArgType.getObject(ArgType.java:593)
    	at jadx.core.dex.attributes.nodes.ClassTypeVarsAttr.getTypeVarsMapFor(ClassTypeVarsAttr.java:35)
    	at jadx.core.dex.nodes.utils.TypeUtils.replaceClassGenerics(TypeUtils.java:177)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.insertExplicitUseCast(FixTypesVisitor.java:397)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.tryFieldTypeWithNewCasts(FixTypesVisitor.java:359)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.applyFieldType(FixTypesVisitor.java:309)
    	at jadx.core.dex.visitors.typeinference.FixTypesVisitor.visit(FixTypesVisitor.java:94)
     */
    private void B(float f3, float f4, int i3) {
        boolean zC = c(f3, f4, i3, 1);
        ?? r02 = zC;
        if (c(f4, f3, i3, 4)) {
            r02 = (zC ? 1 : 0) | 4;
        }
        ?? r03 = r02;
        if (c(f3, f4, i3, 2)) {
            r03 = (r02 == true ? 1 : 0) | 2;
        }
        ?? r04 = r03;
        if (c(f4, f3, i3, 8)) {
            r04 = (r03 == true ? 1 : 0) | 8;
        }
        if (r04 != 0) {
            int[] iArr = this.f5921i;
            iArr[i3] = iArr[i3] | r04;
            this.f5931s.f(r04, i3);
        }
    }

    private void C(float f3, float f4, int i3) {
        q(i3);
        float[] fArr = this.f5916d;
        this.f5918f[i3] = f3;
        fArr[i3] = f3;
        float[] fArr2 = this.f5917e;
        this.f5919g[i3] = f4;
        fArr2[i3] = f4;
        this.f5920h[i3] = t((int) f3, (int) f4);
        this.f5923k |= 1 << i3;
    }

    private void D(MotionEvent motionEvent) {
        int pointerCount = motionEvent.getPointerCount();
        for (int i3 = 0; i3 < pointerCount; i3++) {
            int pointerId = motionEvent.getPointerId(i3);
            if (x(pointerId)) {
                float x2 = motionEvent.getX(i3);
                float y2 = motionEvent.getY(i3);
                this.f5918f[pointerId] = x2;
                this.f5919g[pointerId] = y2;
            }
        }
    }

    private boolean c(float f3, float f4, int i3, int i4) {
        float fAbs = Math.abs(f3);
        float fAbs2 = Math.abs(f4);
        if ((this.f5920h[i3] & i4) != i4 || (this.f5929q & i4) == 0 || (this.f5922j[i3] & i4) == i4 || (this.f5921i[i3] & i4) == i4) {
            return false;
        }
        int i5 = this.f5914b;
        if (fAbs <= i5 && fAbs2 <= i5) {
            return false;
        }
        if (fAbs >= fAbs2 * 0.5f || !this.f5931s.g(i4)) {
            return (this.f5921i[i3] & i4) == 0 && fAbs > ((float) this.f5914b);
        }
        int[] iArr = this.f5922j;
        iArr[i3] = iArr[i3] | i4;
        return false;
    }

    private boolean d(View view, float f3, float f4) {
        if (view == null) {
            return false;
        }
        boolean z2 = this.f5931s.d(view) > 0;
        boolean z3 = this.f5931s.e(view) > 0;
        if (!z2 || !z3) {
            return z2 ? Math.abs(f3) > ((float) this.f5914b) : z3 && Math.abs(f4) > ((float) this.f5914b);
        }
        float f5 = (f3 * f3) + (f4 * f4);
        int i3 = this.f5914b;
        return f5 > ((float) (i3 * i3));
    }

    private float e(float f3, float f4, float f5) {
        float fAbs = Math.abs(f3);
        if (fAbs < f4) {
            return 0.0f;
        }
        return fAbs > f5 ? f3 > 0.0f ? f5 : -f5 : f3;
    }

    private int f(int i3, int i4, int i5) {
        int iAbs = Math.abs(i3);
        if (iAbs < i4) {
            return 0;
        }
        return iAbs > i5 ? i3 > 0 ? i5 : -i5 : i3;
    }

    private void g() {
        float[] fArr = this.f5916d;
        if (fArr == null) {
            return;
        }
        Arrays.fill(fArr, 0.0f);
        Arrays.fill(this.f5917e, 0.0f);
        Arrays.fill(this.f5918f, 0.0f);
        Arrays.fill(this.f5919g, 0.0f);
        Arrays.fill(this.f5920h, 0);
        Arrays.fill(this.f5921i, 0);
        Arrays.fill(this.f5922j, 0);
        this.f5923k = 0;
    }

    private void h(int i3) {
        if (this.f5916d == null || !w(i3)) {
            return;
        }
        this.f5916d[i3] = 0.0f;
        this.f5917e[i3] = 0.0f;
        this.f5918f[i3] = 0.0f;
        this.f5919g[i3] = 0.0f;
        this.f5920h[i3] = 0;
        this.f5921i[i3] = 0;
        this.f5922j[i3] = 0;
        this.f5923k = (~(1 << i3)) & this.f5923k;
    }

    private int i(int i3, int i4, int i5) {
        if (i3 == 0) {
            return 0;
        }
        int width = this.f5934v.getWidth();
        float f3 = width / 2;
        float fO = f3 + (o(Math.min(1.0f, Math.abs(i3) / width)) * f3);
        int iAbs = Math.abs(i4);
        return Math.min(iAbs > 0 ? Math.round(Math.abs(fO / iAbs) * 1000.0f) * 4 : (int) (((Math.abs(i3) / i5) + 1.0f) * 256.0f), 600);
    }

    private int j(View view, int i3, int i4, int i5, int i6) {
        float f3;
        float f4;
        float f5;
        float f6;
        int iF = f(i5, (int) this.f5926n, (int) this.f5925m);
        int iF2 = f(i6, (int) this.f5926n, (int) this.f5925m);
        int iAbs = Math.abs(i3);
        int iAbs2 = Math.abs(i4);
        int iAbs3 = Math.abs(iF);
        int iAbs4 = Math.abs(iF2);
        int i7 = iAbs3 + iAbs4;
        int i8 = iAbs + iAbs2;
        if (iF != 0) {
            f3 = iAbs3;
            f4 = i7;
        } else {
            f3 = iAbs;
            f4 = i8;
        }
        float f7 = f3 / f4;
        if (iF2 != 0) {
            f5 = iAbs4;
            f6 = i7;
        } else {
            f5 = iAbs2;
            f6 = i8;
        }
        return (int) ((i(i3, iF, this.f5931s.d(view)) * f7) + (i(i4, iF2, this.f5931s.e(view)) * (f5 / f6)));
    }

    public static c l(ViewGroup viewGroup, float f3, AbstractC0087c abstractC0087c) {
        c cVarM = m(viewGroup, abstractC0087c);
        cVarM.f5914b = (int) (cVarM.f5914b * (1.0f / f3));
        return cVarM;
    }

    public static c m(ViewGroup viewGroup, AbstractC0087c abstractC0087c) {
        return new c(viewGroup.getContext(), viewGroup, abstractC0087c);
    }

    private void n(float f3, float f4) {
        this.f5933u = true;
        this.f5931s.l(this.f5932t, f3, f4);
        this.f5933u = false;
        if (this.f5913a == 1) {
            E(0);
        }
    }

    private float o(float f3) {
        return (float) Math.sin((f3 - 0.5f) * 0.47123894f);
    }

    private void p(int i3, int i4, int i5, int i6) {
        int left = this.f5932t.getLeft();
        int top = this.f5932t.getTop();
        if (i5 != 0) {
            i3 = this.f5931s.a(this.f5932t, i3, i5);
            y.b0(this.f5932t, i3 - left);
        }
        int i7 = i3;
        if (i6 != 0) {
            i4 = this.f5931s.b(this.f5932t, i4, i6);
            y.c0(this.f5932t, i4 - top);
        }
        int i8 = i4;
        if (i5 == 0 && i6 == 0) {
            return;
        }
        this.f5931s.k(this.f5932t, i7, i8, i7 - left, i8 - top);
    }

    private void q(int i3) {
        float[] fArr = this.f5916d;
        if (fArr == null || fArr.length <= i3) {
            int i4 = i3 + 1;
            float[] fArr2 = new float[i4];
            float[] fArr3 = new float[i4];
            float[] fArr4 = new float[i4];
            float[] fArr5 = new float[i4];
            int[] iArr = new int[i4];
            int[] iArr2 = new int[i4];
            int[] iArr3 = new int[i4];
            if (fArr != null) {
                System.arraycopy(fArr, 0, fArr2, 0, fArr.length);
                float[] fArr6 = this.f5917e;
                System.arraycopy(fArr6, 0, fArr3, 0, fArr6.length);
                float[] fArr7 = this.f5918f;
                System.arraycopy(fArr7, 0, fArr4, 0, fArr7.length);
                float[] fArr8 = this.f5919g;
                System.arraycopy(fArr8, 0, fArr5, 0, fArr8.length);
                int[] iArr4 = this.f5920h;
                System.arraycopy(iArr4, 0, iArr, 0, iArr4.length);
                int[] iArr5 = this.f5921i;
                System.arraycopy(iArr5, 0, iArr2, 0, iArr5.length);
                int[] iArr6 = this.f5922j;
                System.arraycopy(iArr6, 0, iArr3, 0, iArr6.length);
            }
            this.f5916d = fArr2;
            this.f5917e = fArr3;
            this.f5918f = fArr4;
            this.f5919g = fArr5;
            this.f5920h = iArr;
            this.f5921i = iArr2;
            this.f5922j = iArr3;
        }
    }

    private boolean s(int i3, int i4, int i5, int i6) {
        int left = this.f5932t.getLeft();
        int top = this.f5932t.getTop();
        int i7 = i3 - left;
        int i8 = i4 - top;
        if (i7 == 0 && i8 == 0) {
            this.f5930r.abortAnimation();
            E(0);
            return false;
        }
        this.f5930r.startScroll(left, top, i7, i8, j(this.f5932t, i7, i8, i5, i6));
        E(2);
        return true;
    }

    private int t(int i3, int i4) {
        int i5 = i3 < this.f5934v.getLeft() + this.f5927o ? 1 : 0;
        if (i4 < this.f5934v.getTop() + this.f5927o) {
            i5 |= 4;
        }
        if (i3 > this.f5934v.getRight() - this.f5927o) {
            i5 |= 2;
        }
        return i4 > this.f5934v.getBottom() - this.f5927o ? i5 | 8 : i5;
    }

    private boolean x(int i3) {
        if (w(i3)) {
            return true;
        }
        Log.e("ViewDragHelper", "Ignoring pointerId=" + i3 + " because ACTION_DOWN was not received for this pointer before ACTION_MOVE. It likely happened because  ViewDragHelper did not receive all the events in the event stream.");
        return false;
    }

    void E(int i3) {
        this.f5934v.removeCallbacks(this.f5935w);
        if (this.f5913a != i3) {
            this.f5913a = i3;
            this.f5931s.j(i3);
            if (this.f5913a == 0) {
                this.f5932t = null;
            }
        }
    }

    public boolean F(int i3, int i4) {
        if (this.f5933u) {
            return s(i3, i4, (int) this.f5924l.getXVelocity(this.f5915c), (int) this.f5924l.getYVelocity(this.f5915c));
        }
        throw new IllegalStateException("Cannot settleCapturedViewAt outside of a call to Callback#onViewReleased");
    }

    /* JADX WARN: Removed duplicated region for block: B:54:0x00e6  */
    /* JADX WARN: Removed duplicated region for block: B:63:0x00ff  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public boolean G(android.view.MotionEvent r17) {
        /*
            Method dump skipped, instruction units count: 315
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: x.c.G(android.view.MotionEvent):boolean");
    }

    public boolean H(View view, int i3, int i4) {
        this.f5932t = view;
        this.f5915c = -1;
        boolean zS = s(i3, i4, 0, 0);
        if (!zS && this.f5913a == 0 && this.f5932t != null) {
            this.f5932t = null;
        }
        return zS;
    }

    boolean I(View view, int i3) {
        if (view == this.f5932t && this.f5915c == i3) {
            return true;
        }
        if (view == null || !this.f5931s.m(view, i3)) {
            return false;
        }
        this.f5915c = i3;
        b(view, i3);
        return true;
    }

    public void a() {
        this.f5915c = -1;
        g();
        VelocityTracker velocityTracker = this.f5924l;
        if (velocityTracker != null) {
            velocityTracker.recycle();
            this.f5924l = null;
        }
    }

    public void b(View view, int i3) {
        if (view.getParent() == this.f5934v) {
            this.f5932t = view;
            this.f5915c = i3;
            this.f5931s.i(view, i3);
            E(1);
            return;
        }
        throw new IllegalArgumentException("captureChildView: parameter must be a descendant of the ViewDragHelper's tracked parent view (" + this.f5934v + ")");
    }

    public boolean k(boolean z2) {
        if (this.f5913a == 2) {
            boolean zComputeScrollOffset = this.f5930r.computeScrollOffset();
            int currX = this.f5930r.getCurrX();
            int currY = this.f5930r.getCurrY();
            int left = currX - this.f5932t.getLeft();
            int top = currY - this.f5932t.getTop();
            if (left != 0) {
                y.b0(this.f5932t, left);
            }
            if (top != 0) {
                y.c0(this.f5932t, top);
            }
            if (left != 0 || top != 0) {
                this.f5931s.k(this.f5932t, currX, currY, left, top);
            }
            if (zComputeScrollOffset && currX == this.f5930r.getFinalX() && currY == this.f5930r.getFinalY()) {
                this.f5930r.abortAnimation();
                zComputeScrollOffset = false;
            }
            if (!zComputeScrollOffset) {
                if (z2) {
                    this.f5934v.post(this.f5935w);
                } else {
                    E(0);
                }
            }
        }
        return this.f5913a == 2;
    }

    public View r(int i3, int i4) {
        for (int childCount = this.f5934v.getChildCount() - 1; childCount >= 0; childCount--) {
            View childAt = this.f5934v.getChildAt(this.f5931s.c(childCount));
            if (i3 >= childAt.getLeft() && i3 < childAt.getRight() && i4 >= childAt.getTop() && i4 < childAt.getBottom()) {
                return childAt;
            }
        }
        return null;
    }

    public int u() {
        return this.f5914b;
    }

    public boolean v(int i3, int i4) {
        return y(this.f5932t, i3, i4);
    }

    public boolean w(int i3) {
        return (this.f5923k & (1 << i3)) != 0;
    }

    public boolean y(View view, int i3, int i4) {
        return view != null && i3 >= view.getLeft() && i3 < view.getRight() && i4 >= view.getTop() && i4 < view.getBottom();
    }

    public void z(MotionEvent motionEvent) {
        int i3;
        int actionMasked = motionEvent.getActionMasked();
        int actionIndex = motionEvent.getActionIndex();
        if (actionMasked == 0) {
            a();
        }
        if (this.f5924l == null) {
            this.f5924l = VelocityTracker.obtain();
        }
        this.f5924l.addMovement(motionEvent);
        int i4 = 0;
        if (actionMasked == 0) {
            float x2 = motionEvent.getX();
            float y2 = motionEvent.getY();
            int pointerId = motionEvent.getPointerId(0);
            View viewR = r((int) x2, (int) y2);
            C(x2, y2, pointerId);
            I(viewR, pointerId);
            int i5 = this.f5920h[pointerId];
            int i6 = this.f5929q;
            if ((i5 & i6) != 0) {
                this.f5931s.h(i5 & i6, pointerId);
                return;
            }
            return;
        }
        if (actionMasked == 1) {
            if (this.f5913a == 1) {
                A();
            }
            a();
            return;
        }
        if (actionMasked == 2) {
            if (this.f5913a == 1) {
                if (x(this.f5915c)) {
                    int iFindPointerIndex = motionEvent.findPointerIndex(this.f5915c);
                    float x3 = motionEvent.getX(iFindPointerIndex);
                    float y3 = motionEvent.getY(iFindPointerIndex);
                    float[] fArr = this.f5918f;
                    int i7 = this.f5915c;
                    int i8 = (int) (x3 - fArr[i7]);
                    int i9 = (int) (y3 - this.f5919g[i7]);
                    p(this.f5932t.getLeft() + i8, this.f5932t.getTop() + i9, i8, i9);
                    D(motionEvent);
                    return;
                }
                return;
            }
            int pointerCount = motionEvent.getPointerCount();
            while (i4 < pointerCount) {
                int pointerId2 = motionEvent.getPointerId(i4);
                if (x(pointerId2)) {
                    float x4 = motionEvent.getX(i4);
                    float y4 = motionEvent.getY(i4);
                    float f3 = x4 - this.f5916d[pointerId2];
                    float f4 = y4 - this.f5917e[pointerId2];
                    B(f3, f4, pointerId2);
                    if (this.f5913a != 1) {
                        View viewR2 = r((int) x4, (int) y4);
                        if (d(viewR2, f3, f4) && I(viewR2, pointerId2)) {
                            break;
                        }
                    } else {
                        break;
                    }
                }
                i4++;
            }
            D(motionEvent);
            return;
        }
        if (actionMasked == 3) {
            if (this.f5913a == 1) {
                n(0.0f, 0.0f);
            }
            a();
            return;
        }
        if (actionMasked == 5) {
            int pointerId3 = motionEvent.getPointerId(actionIndex);
            float x5 = motionEvent.getX(actionIndex);
            float y5 = motionEvent.getY(actionIndex);
            C(x5, y5, pointerId3);
            if (this.f5913a != 0) {
                if (v((int) x5, (int) y5)) {
                    I(this.f5932t, pointerId3);
                    return;
                }
                return;
            } else {
                I(r((int) x5, (int) y5), pointerId3);
                int i10 = this.f5920h[pointerId3];
                int i11 = this.f5929q;
                if ((i10 & i11) != 0) {
                    this.f5931s.h(i10 & i11, pointerId3);
                    return;
                }
                return;
            }
        }
        if (actionMasked != 6) {
            return;
        }
        int pointerId4 = motionEvent.getPointerId(actionIndex);
        if (this.f5913a == 1 && pointerId4 == this.f5915c) {
            int pointerCount2 = motionEvent.getPointerCount();
            while (true) {
                if (i4 >= pointerCount2) {
                    i3 = -1;
                    break;
                }
                int pointerId5 = motionEvent.getPointerId(i4);
                if (pointerId5 != this.f5915c) {
                    View viewR3 = r((int) motionEvent.getX(i4), (int) motionEvent.getY(i4));
                    View view = this.f5932t;
                    if (viewR3 == view && I(view, pointerId5)) {
                        i3 = this.f5915c;
                        break;
                    }
                }
                i4++;
            }
            if (i3 == -1) {
                A();
            }
        }
        h(pointerId4);
    }
}
