.class public abstract Lo0/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lo0/a$a;,
        Lo0/a$b;
    }
.end annotation


# static fields
.field public static final H:I


# instance fields
.field public A:[F

.field public B:[F

.field public C:Z

.field public D:Z

.field public E:Z

.field public F:Z

.field public G:Z

.field public final r:Lo0/a$a;

.field public final s:Landroid/view/animation/Interpolator;

.field public final t:Landroid/view/View;

.field public u:Ljava/lang/Runnable;

.field public v:[F

.field public w:[F

.field public x:I

.field public y:I

.field public z:[F


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    invoke-static {}, Landroid/view/ViewConfiguration;->getTapTimeout()I

    move-result v0

    sput v0, Lo0/a;->H:I

    return-void
.end method

.method public constructor <init>(Landroid/view/View;)V
    .registers 8

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Lo0/a$a;

    invoke-direct {v0}, Lo0/a$a;-><init>()V

    iput-object v0, p0, Lo0/a;->r:Lo0/a$a;

    new-instance v1, Landroid/view/animation/AccelerateInterpolator;

    invoke-direct {v1}, Landroid/view/animation/AccelerateInterpolator;-><init>()V

    iput-object v1, p0, Lo0/a;->s:Landroid/view/animation/Interpolator;

    const/4 v1, 0x2

    new-array v2, v1, [F

    fill-array-data v2, :array_8c

    iput-object v2, p0, Lo0/a;->v:[F

    new-array v2, v1, [F

    fill-array-data v2, :array_94

    iput-object v2, p0, Lo0/a;->w:[F

    new-array v2, v1, [F

    fill-array-data v2, :array_9c

    iput-object v2, p0, Lo0/a;->z:[F

    new-array v2, v1, [F

    fill-array-data v2, :array_a4

    iput-object v2, p0, Lo0/a;->A:[F

    new-array v1, v1, [F

    fill-array-data v1, :array_ac

    iput-object v1, p0, Lo0/a;->B:[F

    iput-object p1, p0, Lo0/a;->t:Landroid/view/View;

    invoke-static {}, Landroid/content/res/Resources;->getSystem()Landroid/content/res/Resources;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p1

    iget p1, p1, Landroid/util/DisplayMetrics;->density:F

    const v1, 0x44c4e000    # 1575.0f

    mul-float/2addr v1, p1

    const/high16 v2, 0x3f000000    # 0.5f

    add-float/2addr v1, v2

    float-to-int v1, v1

    const v3, 0x439d8000    # 315.0f

    mul-float/2addr p1, v3

    add-float/2addr p1, v2

    float-to-int p1, p1

    int-to-float v1, v1

    .line 1
    iget-object v2, p0, Lo0/a;->B:[F

    const/high16 v3, 0x447a0000    # 1000.0f

    div-float/2addr v1, v3

    const/4 v4, 0x0

    aput v1, v2, v4

    const/4 v5, 0x1

    aput v1, v2, v5

    int-to-float p1, p1

    .line 2
    iget-object v1, p0, Lo0/a;->A:[F

    div-float/2addr p1, v3

    aput p1, v1, v4

    aput p1, v1, v5

    .line 3
    iput v5, p0, Lo0/a;->x:I

    .line 4
    iget-object p1, p0, Lo0/a;->w:[F

    const v1, 0x7f7fffff    # Float.MAX_VALUE

    aput v1, p1, v4

    aput v1, p1, v5

    .line 5
    iget-object p1, p0, Lo0/a;->v:[F

    const v1, 0x3e4ccccd    # 0.2f

    aput v1, p1, v4

    aput v1, p1, v5

    .line 6
    iget-object p1, p0, Lo0/a;->z:[F

    const v1, 0x3a83126f    # 0.001f

    aput v1, p1, v4

    aput v1, p1, v5

    .line 7
    sget p1, Lo0/a;->H:I

    .line 8
    iput p1, p0, Lo0/a;->y:I

    const/16 p1, 0x1f4

    .line 9
    iput p1, v0, Lo0/a$a;->a:I

    .line 10
    iput p1, v0, Lo0/a$a;->b:I

    return-void

    nop

    :array_8c
    .array-data 4
        0x0
        0x0
    .end array-data

    :array_94
    .array-data 4
        0x7f7fffff    # Float.MAX_VALUE
        0x7f7fffff    # Float.MAX_VALUE
    .end array-data

    :array_9c
    .array-data 4
        0x0
        0x0
    .end array-data

    :array_a4
    .array-data 4
        0x0
        0x0
    .end array-data

    :array_ac
    .array-data 4
        0x7f7fffff    # Float.MAX_VALUE
        0x7f7fffff    # Float.MAX_VALUE
    .end array-data
.end method

.method public static b(FFF)F
    .registers 4

    cmpl-float v0, p0, p2

    if-lez v0, :cond_5

    return p2

    :cond_5
    cmpg-float p2, p0, p1

    if-gez p2, :cond_a

    return p1

    :cond_a
    return p0
.end method


# virtual methods
.method public final a(IFFF)F
    .registers 8

    iget-object v0, p0, Lo0/a;->v:[F

    aget v0, v0, p1

    iget-object v1, p0, Lo0/a;->w:[F

    aget v1, v1, p1

    mul-float/2addr v0, p3

    const/4 v2, 0x0

    .line 1
    invoke-static {v0, v2, v1}, Lo0/a;->b(FFF)F

    move-result v0

    invoke-virtual {p0, p2, v0}, Lo0/a;->c(FF)F

    move-result v1

    sub-float/2addr p3, p2

    invoke-virtual {p0, p3, v0}, Lo0/a;->c(FF)F

    move-result p2

    sub-float/2addr p2, v1

    cmpg-float p3, p2, v2

    if-gez p3, :cond_25

    iget-object p3, p0, Lo0/a;->s:Landroid/view/animation/Interpolator;

    neg-float p2, p2

    invoke-interface {p3, p2}, Landroid/view/animation/Interpolator;->getInterpolation(F)F

    move-result p2

    neg-float p2, p2

    goto :goto_2f

    :cond_25
    cmpl-float p3, p2, v2

    if-lez p3, :cond_38

    iget-object p3, p0, Lo0/a;->s:Landroid/view/animation/Interpolator;

    invoke-interface {p3, p2}, Landroid/view/animation/Interpolator;->getInterpolation(F)F

    move-result p2

    :goto_2f
    const/high16 p3, -0x40800000    # -1.0f

    const/high16 v0, 0x3f800000    # 1.0f

    invoke-static {p2, p3, v0}, Lo0/a;->b(FFF)F

    move-result p2

    goto :goto_39

    :cond_38
    move p2, v2

    :goto_39
    cmpl-float p3, p2, v2

    if-nez p3, :cond_3e

    return v2

    .line 2
    :cond_3e
    iget-object v0, p0, Lo0/a;->z:[F

    aget v0, v0, p1

    iget-object v1, p0, Lo0/a;->A:[F

    aget v1, v1, p1

    iget-object v2, p0, Lo0/a;->B:[F

    aget p1, v2, p1

    mul-float/2addr v0, p4

    if-lez p3, :cond_53

    mul-float/2addr p2, v0

    invoke-static {p2, v1, p1}, Lo0/a;->b(FFF)F

    move-result p1

    return p1

    :cond_53
    neg-float p2, p2

    mul-float/2addr p2, v0

    invoke-static {p2, v1, p1}, Lo0/a;->b(FFF)F

    move-result p1

    neg-float p1, p1

    return p1
.end method

.method public final c(FF)F
    .registers 8

    const/4 v0, 0x0

    cmpl-float v1, p2, v0

    if-nez v1, :cond_6

    return v0

    :cond_6
    iget v1, p0, Lo0/a;->x:I

    const/4 v2, 0x1

    if-eqz v1, :cond_18

    if-eq v1, v2, :cond_18

    const/4 v2, 0x2

    if-eq v1, v2, :cond_11

    goto :goto_2c

    :cond_11
    cmpg-float v1, p1, v0

    if-gez v1, :cond_2c

    neg-float p2, p2

    div-float/2addr p1, p2

    return p1

    :cond_18
    cmpg-float v3, p1, p2

    if-gez v3, :cond_2c

    cmpl-float v3, p1, v0

    const/high16 v4, 0x3f800000    # 1.0f

    if-ltz v3, :cond_25

    div-float/2addr p1, p2

    sub-float/2addr v4, p1

    return v4

    :cond_25
    iget-boolean p1, p0, Lo0/a;->F:Z

    if-eqz p1, :cond_2c

    if-ne v1, v2, :cond_2c

    return v4

    :cond_2c
    :goto_2c
    return v0
.end method

.method public final d()V
    .registers 7

    iget-boolean v0, p0, Lo0/a;->D:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_8

    iput-boolean v1, p0, Lo0/a;->F:Z

    goto :goto_2a

    :cond_8
    iget-object v0, p0, Lo0/a;->r:Lo0/a$a;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1
    invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J

    move-result-wide v2

    iget-wide v4, v0, Lo0/a$a;->e:J

    sub-long v4, v2, v4

    long-to-int v4, v4

    iget v5, v0, Lo0/a$a;->b:I

    if-le v4, v5, :cond_1c

    move v1, v5

    goto :goto_20

    :cond_1c
    if-gez v4, :cond_1f

    goto :goto_20

    :cond_1f
    move v1, v4

    :goto_20
    iput v1, v0, Lo0/a$a;->k:I

    invoke-virtual {v0, v2, v3}, Lo0/a$a;->a(J)F

    move-result v1

    iput v1, v0, Lo0/a$a;->j:F

    iput-wide v2, v0, Lo0/a$a;->i:J

    :goto_2a
    return-void
.end method

.method public e()Z
    .registers 10

    iget-object v0, p0, Lo0/a;->r:Lo0/a$a;

    .line 1
    iget v1, v0, Lo0/a$a;->d:F

    invoke-static {v1}, Ljava/lang/Math;->abs(F)F

    move-result v2

    div-float/2addr v1, v2

    float-to-int v1, v1

    .line 2
    iget v0, v0, Lo0/a$a;->c:F

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v2

    div-float/2addr v0, v2

    float-to-int v0, v0

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v1, :cond_53

    .line 3
    move-object v4, p0

    check-cast v4, Lo0/d;

    .line 4
    iget-object v4, v4, Lo0/d;->I:Landroid/widget/ListView;

    invoke-virtual {v4}, Landroid/widget/ListView;->getCount()I

    move-result v5

    if-nez v5, :cond_23

    :cond_21
    :goto_21
    move v1, v3

    goto :goto_51

    :cond_23
    invoke-virtual {v4}, Landroid/widget/ListView;->getChildCount()I

    move-result v6

    invoke-virtual {v4}, Landroid/widget/ListView;->getFirstVisiblePosition()I

    move-result v7

    add-int v8, v7, v6

    if-lez v1, :cond_41

    if-lt v8, v5, :cond_50

    sub-int/2addr v6, v2

    invoke-virtual {v4, v6}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getBottom()I

    move-result v1

    invoke-virtual {v4}, Landroid/widget/ListView;->getHeight()I

    move-result v4

    if-gt v1, v4, :cond_50

    goto :goto_21

    :cond_41
    if-gez v1, :cond_21

    if-gtz v7, :cond_50

    invoke-virtual {v4, v3}, Landroid/widget/ListView;->getChildAt(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1}, Landroid/view/View;->getTop()I

    move-result v1

    if-ltz v1, :cond_50

    goto :goto_21

    :cond_50
    move v1, v2

    :goto_51
    if-nez v1, :cond_54

    :cond_53
    move v2, v3

    :cond_54
    return v2
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .registers 8

    iget-boolean v0, p0, Lo0/a;->G:Z

    const/4 v1, 0x0

    if-nez v0, :cond_6

    return v1

    :cond_6
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v0

    const/4 v2, 0x1

    if-eqz v0, :cond_1a

    if-eq v0, v2, :cond_16

    const/4 v3, 0x2

    if-eq v0, v3, :cond_1e

    const/4 p1, 0x3

    if-eq v0, p1, :cond_16

    goto :goto_7f

    :cond_16
    invoke-virtual {p0}, Lo0/a;->d()V

    goto :goto_7f

    :cond_1a
    iput-boolean v2, p0, Lo0/a;->E:Z

    iput-boolean v1, p0, Lo0/a;->C:Z

    :cond_1e
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    invoke-virtual {p1}, Landroid/view/View;->getWidth()I

    move-result v3

    int-to-float v3, v3

    iget-object v4, p0, Lo0/a;->t:Landroid/view/View;

    invoke-virtual {v4}, Landroid/view/View;->getWidth()I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {p0, v1, v0, v3, v4}, Lo0/a;->a(IFFF)F

    move-result v0

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result p2

    invoke-virtual {p1}, Landroid/view/View;->getHeight()I

    move-result p1

    int-to-float p1, p1

    iget-object v3, p0, Lo0/a;->t:Landroid/view/View;

    invoke-virtual {v3}, Landroid/view/View;->getHeight()I

    move-result v3

    int-to-float v3, v3

    invoke-virtual {p0, v2, p2, p1, v3}, Lo0/a;->a(IFFF)F

    move-result p1

    iget-object p2, p0, Lo0/a;->r:Lo0/a$a;

    .line 1
    iput v0, p2, Lo0/a$a;->c:F

    iput p1, p2, Lo0/a$a;->d:F

    .line 2
    iget-boolean p1, p0, Lo0/a;->F:Z

    if-nez p1, :cond_7f

    invoke-virtual {p0}, Lo0/a;->e()Z

    move-result p1

    if-eqz p1, :cond_7f

    .line 3
    iget-object p1, p0, Lo0/a;->u:Ljava/lang/Runnable;

    if-nez p1, :cond_61

    new-instance p1, Lo0/a$b;

    invoke-direct {p1, p0}, Lo0/a$b;-><init>(Lo0/a;)V

    iput-object p1, p0, Lo0/a;->u:Ljava/lang/Runnable;

    :cond_61
    iput-boolean v2, p0, Lo0/a;->F:Z

    iput-boolean v2, p0, Lo0/a;->D:Z

    iget-boolean p1, p0, Lo0/a;->C:Z

    if-nez p1, :cond_78

    iget p1, p0, Lo0/a;->y:I

    if-lez p1, :cond_78

    iget-object p2, p0, Lo0/a;->t:Landroid/view/View;

    iget-object v0, p0, Lo0/a;->u:Ljava/lang/Runnable;

    int-to-long v3, p1

    sget-object p1, Ll0/u;->a:Ljava/util/WeakHashMap;

    .line 4
    invoke-static {p2, v0, v3, v4}, Ll0/u$d;->n(Landroid/view/View;Ljava/lang/Runnable;J)V

    goto :goto_7d

    .line 5
    :cond_78
    iget-object p1, p0, Lo0/a;->u:Ljava/lang/Runnable;

    invoke-interface {p1}, Ljava/lang/Runnable;->run()V

    :goto_7d
    iput-boolean v2, p0, Lo0/a;->C:Z

    :cond_7f
    :goto_7f
    return v1
.end method
