SmartRefreshLayout$b.smali

.class public Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "b"
.end annotation


# instance fields
.field a:I

.field b:I

.field c:I

.field d:F

.field e:F

.field f:J

.field g:J

.field final synthetic h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;


# direct methods
.method constructor <init>(Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;F)V
    .registers 5

    iput-object p1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

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

    const/4 v0, 0x0

    iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->b:I

    const/16 v0, 0xa

    iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->c:I

    const v0, 0x3f7ae148    # 0.98f

    iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->e:F

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->f:J

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

    move-result-wide v0

    iput-wide v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->g:J

    iput p2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->d:F

    iget v0, p1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->a:I

    return-void
.end method


# virtual methods
.method public a()Ljava/lang/Runnable;
    .registers 14

    const/4 v0, 0x0

    const/high16 v12, 0x3f800000    # 1.0f

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->v:Z

    if-eqz v1, :cond_d

    move-object p0, v0

    :goto_c
    return-object p0

    :cond_d
    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    if-eqz v1, :cond_c5

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->u:Z

    if-nez v1, :cond_2f

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->R:Z

    if-eqz v1, :cond_68

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->G:Z

    if-eqz v1, :cond_68

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    invoke-virtual {v1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->j()Z

    move-result v1

    if-eqz v1, :cond_68

    :cond_2f
    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    sget-object v2, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->m:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    if-eq v1, v2, :cond_4b

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->R:Z

    if-eqz v1, :cond_56

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->G:Z

    if-eqz v1, :cond_56

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    invoke-virtual {v1}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->j()Z

    move-result v1

    if-eqz v1, :cond_56

    :cond_4b
    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    iget-object v2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v2, v2, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->ak:I

    neg-int v2, v2

    if-lt v1, v2, :cond_68

    :cond_56
    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    sget-object v2, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->l:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    if-ne v1, v2, :cond_c5

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    iget-object v2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v2, v2, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->ai:I

    if-le v1, v2, :cond_c5

    :cond_68
    const/4 v3, 0x0

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v2, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v4, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->d:F

    :goto_73
    mul-int v5, v4, v2

    if-lez v5, :cond_c5

    float-to-double v6, v1

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->e:F

    float-to-double v8, v1

    add-int/lit8 v3, v3, 0x1

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->c:I

    mul-int/2addr v1, v3

    div-int/lit8 v1, v1, 0xa

    int-to-double v10, v1

    invoke-static {v8, v9, v10, v11}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v8

    mul-double/2addr v6, v8

    double-to-float v1, v6

    iget v5, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->c:I

    int-to-float v5, v5

    mul-float/2addr v5, v12

    const/high16 v6, 0x447a0000    # 1000.0f

    div-float/2addr v5, v6

    mul-float/2addr v5, v1

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

    move-result v6

    cmpg-float v6, v6, v12

    if-gez v6, :cond_c1

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    iget-boolean v1, v1, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->u:Z

    if-eqz v1, :cond_be

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    sget-object v3, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->l:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    if-ne v1, v3, :cond_af

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->ai:I

    if-gt v2, v1, :cond_be

    :cond_af
    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    sget-object v3, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->l:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    if-eq v1, v3, :cond_c5

    iget-object v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, v1, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->ak:I

    neg-int v1, v1

    if-ge v2, v1, :cond_c5

    :cond_be
    move-object p0, v0

    goto/16 :goto_c

    :cond_c1
    int-to-float v2, v2

    add-float/2addr v2, v5

    float-to-int v2, v2

    goto :goto_73

    :cond_c5
    invoke-static {}, Landroid/view/animation/AnimationUtils;->currentAnimationTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->f:J

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->c:I

    int-to-long v2, v1

    invoke-virtual {v0, p0, v2, v3}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->postDelayed(Ljava/lang/Runnable;J)Z

    goto/16 :goto_c
.end method

.method public run()V
    .registers 13

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->aM:Ljava/lang/Runnable;

    if-ne v0, p0, :cond_68

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->az:Lcom/scwang/smartrefresh/layout/constant/RefreshState;

    iget-boolean v0, v0, Lcom/scwang/smartrefresh/layout/constant/RefreshState;->v:Z

    if-nez v0, :cond_68

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

    move-result-wide v0

    iget-wide v2, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->g:J

    sub-long v2, v0, v2

    iget v4, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->d:F

    float-to-double v4, v4

    iget v6, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->e:F

    float-to-double v6, v6

    iget-wide v8, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->f:J

    sub-long v8, v0, v8

    const/16 v10, 0x3e8

    iget v11, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->c:I

    div-int/2addr v10, v11

    int-to-long v10, v10

    div-long/2addr v8, v10

    long-to-double v8, v8

    invoke-static {v6, v7, v8, v9}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    mul-double/2addr v4, v6

    double-to-float v4, v4

    iput v4, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->d:F

    iget v4, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->d:F

    const/high16 v5, 0x3f800000    # 1.0f

    long-to-float v2, v2

    mul-float/2addr v2, v5

    const/high16 v3, 0x447a0000    # 1000.0f

    div-float/2addr v2, v3

    mul-float/2addr v2, v4

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

    move-result v3

    const/high16 v4, 0x3f800000    # 1.0f

    cmpl-float v3, v3, v4

    if-lez v3, :cond_97

    iput-wide v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->g:J

    iget v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->a:I

    int-to-float v0, v0

    add-float/2addr v0, v2

    float-to-int v0, v0

    iput v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->a:I

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->b:I

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->a:I

    mul-int/2addr v0, v1

    if-lez v0, :cond_69

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->ax:Lcom/scwang/smartrefresh/layout/a/g;

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->a:I

    const/4 v2, 0x1

    invoke-interface {v0, v1, v2}, Lcom/scwang/smartrefresh/layout/a/g;->a(IZ)Lcom/scwang/smartrefresh/layout/a/g;

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->c:I

    int-to-long v2, v1

    invoke-virtual {v0, p0, v2, v3}, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_68
    :goto_68
    return-void

    :cond_69
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->aM:Ljava/lang/Runnable;

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->ax:Lcom/scwang/smartrefresh/layout/a/g;

    const/4 v1, 0x0

    const/4 v3, 0x1

    invoke-interface {v0, v1, v3}, Lcom/scwang/smartrefresh/layout/a/g;->a(IZ)Lcom/scwang/smartrefresh/layout/a/g;

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-object v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->au:Lcom/scwang/smartrefresh/layout/a/c;

    invoke-interface {v0}, Lcom/scwang/smartrefresh/layout/a/c;->b()Landroid/view/View;

    move-result-object v0

    iget v1, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->d:F

    neg-float v1, v1

    float-to-int v1, v1

    invoke-static {v0, v1}, Lcom/scwang/smartrefresh/layout/g/e;->a(Landroid/view/View;I)V

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    iget-boolean v0, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->aG:Z

    if-eqz v0, :cond_68

    const/4 v0, 0x0

    cmpl-float v0, v2, v0

    if-lez v0, :cond_68

    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->aG:Z

    goto :goto_68

    :cond_97
    iget-object v0, p0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout$b;->h:Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;

    const/4 v1, 0x0

    iput-object v1, v0, Lcom/scwang/smartrefresh/layout/SmartRefreshLayout;->aM:Ljava/lang/Runnable;

    goto :goto_68
.end method