a$k.smali

.class public final Lcom/scwang/smart/refresh/layout/a$k;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lcom/scwang/smart/refresh/layout/api/e;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/scwang/smart/refresh/layout/a;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "k"
.end annotation


# instance fields
.field public final synthetic a:Lcom/scwang/smart/refresh/layout/a;


# direct methods
.method public constructor <init>(Lcom/scwang/smart/refresh/layout/a;)V
    .registers 2

    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

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

    return-void
.end method


# virtual methods
.method public final a(I)Landroid/animation/ValueAnimator;
    .registers 6

    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a;->z:Lcom/scwang/smart/refresh/layout/util/b;

    iget v2, v0, Lcom/scwang/smart/refresh/layout/a;->f:I

    const/4 v3, 0x0

    invoke-virtual {v0, p1, v3, v1, v2}, Lcom/scwang/smart/refresh/layout/a;->g(IILandroid/view/animation/Interpolator;I)Landroid/animation/ValueAnimator;

    move-result-object p1

    return-object p1
.end method

.method public final b(IZ)Lcom/scwang/smart/refresh/layout/api/e;
    .registers 19

    move-object/from16 v0, p0

    move/from16 v1, p1

    .line 1
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v3, v2, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-ne v3, v1, :cond_21

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v2, :cond_14

    .line 2
    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->f()Z

    move-result v2

    if-nez v2, :cond_21

    :cond_14
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v2, :cond_20

    .line 3
    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->f()Z

    move-result v2

    if-nez v2, :cond_21

    :cond_20
    return-object v0

    .line 4
    :cond_21
    iget-object v8, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    .line 5
    iget v9, v8, Lcom/scwang/smart/refresh/layout/a;->b:I

    .line 6
    iput v1, v8, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-eqz p2, :cond_7d

    .line 7
    iget-object v2, v8, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v3, v2, Lcom/scwang/smart/refresh/layout/constant/b;->isDragging:Z

    if-nez v3, :cond_33

    iget-boolean v2, v2, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-eqz v2, :cond_7d

    :cond_33
    int-to-float v2, v1

    .line 8
    iget v3, v8, Lcom/scwang/smart/refresh/layout/a;->r0:I

    int-to-float v3, v3

    iget v4, v8, Lcom/scwang/smart/refresh/layout/a;->z0:F

    mul-float v3, v3, v4

    cmpl-float v2, v2, v3

    if-lez v2, :cond_4d

    .line 9
    iget-object v2, v8, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToTwoLevel:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v2, v3, :cond_7d

    .line 10
    iget-object v2, v8, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_7d

    :cond_4d
    neg-int v2, v1

    int-to-float v2, v2

    .line 11
    iget v3, v8, Lcom/scwang/smart/refresh/layout/a;->t0:I

    int-to-float v3, v3

    iget v4, v8, Lcom/scwang/smart/refresh/layout/a;->A0:F

    mul-float v3, v3, v4

    cmpl-float v2, v2, v3

    if-lez v2, :cond_66

    iget-boolean v2, v8, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-nez v2, :cond_66

    .line 12
    iget-object v2, v8, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_7d

    :cond_66
    if-gez v1, :cond_74

    .line 13
    iget-boolean v2, v8, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-nez v2, :cond_74

    .line 14
    iget-object v2, v8, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_7d

    :cond_74
    if-lez v1, :cond_7d

    .line 15
    iget-object v2, v8, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    .line 16
    :cond_7d
    :goto_7d
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v3, v2, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    const/4 v10, 0x0

    if-eqz v3, :cond_141

    if-ltz v1, :cond_97

    .line 17
    iget-boolean v3, v2, Lcom/scwang/smart/refresh/layout/a;->N:Z

    iget-object v4, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-virtual {v2, v3, v4}, Lcom/scwang/smart/refresh/layout/a;->n(ZLcom/scwang/smart/refresh/layout/api/a;)Z

    move-result v2

    if-eqz v2, :cond_92

    move v2, v1

    goto :goto_95

    :cond_92
    if-gez v9, :cond_97

    const/4 v2, 0x0

    :goto_95
    const/4 v3, 0x1

    goto :goto_99

    :cond_97
    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_99
    if-gtz v1, :cond_ad

    .line 18
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v5, v4, Lcom/scwang/smart/refresh/layout/a;->O:Z

    iget-object v6, v4, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-virtual {v4, v5, v6}, Lcom/scwang/smart/refresh/layout/a;->n(ZLcom/scwang/smart/refresh/layout/api/a;)Z

    move-result v4

    if-eqz v4, :cond_a9

    move v2, v1

    goto :goto_ac

    :cond_a9
    if-lez v9, :cond_ad

    const/4 v2, 0x0

    :goto_ac
    const/4 v3, 0x1

    :cond_ad
    if-eqz v3, :cond_141

    .line 19
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v4, v3, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    iget v5, v3, Lcom/scwang/smart/refresh/layout/a;->s:I

    iget v3, v3, Lcom/scwang/smart/refresh/layout/a;->t:I

    invoke-virtual {v4, v2, v5, v3}, Lcom/scwang/smart/refresh/layout/wrapper/a;->e(III)V

    .line 20
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eqz v4, :cond_f0

    iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    if-eqz v4, :cond_f0

    iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->P:Z

    if-eqz v4, :cond_f0

    iget-object v3, v3, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    instance-of v4, v3, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v4, :cond_f0

    .line 21
    invoke-interface {v3}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v3

    sget-object v4, Lcom/scwang/smart/refresh/layout/constant/c;->c:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v3, v4, :cond_f0

    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->C:Z

    .line 22
    invoke-virtual {v3, v4}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result v3

    if-eqz v3, :cond_f0

    .line 23
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v3, v3, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v3}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object v3

    invoke-static {v10, v2}, Ljava/lang/Math;->max(II)I

    move-result v4

    int-to-float v4, v4

    invoke-virtual {v3, v4}, Landroid/view/View;->setTranslationY(F)V

    .line 24
    :cond_f0
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v4, v3, Lcom/scwang/smart/refresh/layout/a;->L:Z

    if-eqz v4, :cond_104

    iget-object v3, v3, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v3, :cond_104

    invoke-interface {v3}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v3

    sget-object v4, Lcom/scwang/smart/refresh/layout/constant/c;->d:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v3, v4, :cond_104

    const/4 v3, 0x1

    goto :goto_105

    :cond_104
    const/4 v3, 0x0

    :goto_105
    if-nez v3, :cond_110

    .line 25
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v3, v3, Lcom/scwang/smart/refresh/layout/a;->K0:I

    if-eqz v3, :cond_10e

    goto :goto_110

    :cond_10e
    const/4 v3, 0x0

    goto :goto_111

    :cond_110
    :goto_110
    const/4 v3, 0x1

    .line 26
    :goto_111
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v5, v4, Lcom/scwang/smart/refresh/layout/a;->M:Z

    if-eqz v5, :cond_125

    iget-object v4, v4, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v4, :cond_125

    invoke-interface {v4}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v4

    sget-object v5, Lcom/scwang/smart/refresh/layout/constant/c;->d:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v4, v5, :cond_125

    const/4 v4, 0x1

    goto :goto_126

    :cond_125
    const/4 v4, 0x0

    :goto_126
    if-nez v4, :cond_131

    .line 27
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v4, v4, Lcom/scwang/smart/refresh/layout/a;->L0:I

    if-eqz v4, :cond_12f

    goto :goto_131

    :cond_12f
    const/4 v4, 0x0

    goto :goto_132

    :cond_131
    :goto_131
    const/4 v4, 0x1

    :goto_132
    if-eqz v3, :cond_138

    if-gez v2, :cond_13e

    if-gtz v9, :cond_13e

    :cond_138
    if-eqz v4, :cond_141

    if-lez v2, :cond_13e

    if-gez v9, :cond_141

    .line 28
    :cond_13e
    invoke-virtual {v8}, Landroid/view/View;->invalidate()V

    :cond_141
    const/high16 v12, 0x3f800000    # 1.0f

    const/high16 v13, 0x40000000    # 2.0f

    if-gez v1, :cond_149

    if-lez v9, :cond_238

    .line 29
    :cond_149
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v2, :cond_238

    .line 30
    invoke-static {v1, v10}, Ljava/lang/Math;->max(II)I

    move-result v5

    .line 31
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v6, v2, Lcom/scwang/smart/refresh/layout/a;->r0:I

    int-to-float v3, v6

    .line 32
    iget v4, v2, Lcom/scwang/smart/refresh/layout/a;->x0:F

    mul-float v3, v3, v4

    float-to-int v7, v3

    int-to-float v3, v5

    mul-float v3, v3, v12

    if-nez v6, :cond_164

    const/4 v4, 0x1

    goto :goto_165

    :cond_164
    move v4, v6

    :goto_165
    int-to-float v4, v4

    div-float v4, v3, v4

    .line 33
    iget-boolean v3, v2, Lcom/scwang/smart/refresh/layout/a;->B:Z

    invoke-virtual {v2, v3}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result v2

    if-nez v2, :cond_17a

    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/b;->RefreshFinish:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v2, v3, :cond_234

    if-nez p2, :cond_234

    .line 34
    :cond_17a
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v3, v2, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-eq v9, v3, :cond_20f

    .line 35
    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v2

    sget-object v3, Lcom/scwang/smart/refresh/layout/constant/c;->c:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v2, v3, :cond_1b2

    .line 36
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object v2

    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v3, v3, Lcom/scwang/smart/refresh/layout/a;->b:I

    int-to-float v3, v3

    invoke-virtual {v2, v3}, Landroid/view/View;->setTranslationY(F)V

    .line 37
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v3, v2, Lcom/scwang/smart/refresh/layout/a;->K0:I

    if-eqz v3, :cond_206

    iget-object v3, v2, Lcom/scwang/smart/refresh/layout/a;->E0:Landroid/graphics/Paint;

    if-eqz v3, :cond_206

    iget-boolean v3, v2, Lcom/scwang/smart/refresh/layout/a;->N:Z

    iget-object v14, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-virtual {v2, v3, v14}, Lcom/scwang/smart/refresh/layout/a;->n(ZLcom/scwang/smart/refresh/layout/api/a;)Z

    move-result v2

    if-nez v2, :cond_206

    .line 38
    invoke-virtual {v8}, Landroid/view/View;->invalidate()V

    goto :goto_206

    .line 39
    :cond_1b2
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v2

    iget-boolean v2, v2, Lcom/scwang/smart/refresh/layout/constant/c;->b:Z

    if-eqz v2, :cond_206

    .line 40
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object v2

    .line 41
    invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v3

    .line 42
    instance-of v14, v3, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v14, :cond_1d1

    check-cast v3, Landroid/view/ViewGroup$MarginLayoutParams;

    goto :goto_1d3

    :cond_1d1
    sget-object v3, Lcom/scwang/smart/refresh/layout/a;->V0:Landroid/view/ViewGroup$MarginLayoutParams;

    .line 43
    :goto_1d3
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v14

    invoke-static {v14, v13}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v14

    .line 44
    iget-object v15, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v15, v15, Lcom/scwang/smart/refresh/layout/a;->b:I

    iget v11, v3, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int/2addr v15, v11

    iget v11, v3, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    sub-int/2addr v15, v11

    invoke-static {v15, v10}, Ljava/lang/Math;->max(II)I

    move-result v11

    invoke-static {v11, v13}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v11

    invoke-virtual {v2, v14, v11}, Landroid/view/View;->measure(II)V

    .line 45
    iget v11, v3, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    .line 46
    iget v3, v3, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    iget-object v14, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v14, v14, Lcom/scwang/smart/refresh/layout/a;->v0:I

    add-int/2addr v3, v14

    .line 47
    invoke-virtual {v2}, Landroid/view/View;->getMeasuredWidth()I

    move-result v14

    add-int/2addr v14, v11

    invoke-virtual {v2}, Landroid/view/View;->getMeasuredHeight()I

    move-result v15

    add-int/2addr v15, v3

    invoke-virtual {v2, v11, v3, v14, v15}, Landroid/view/View;->layout(IIII)V

    .line 48
    :cond_206
    :goto_206
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    move/from16 v3, p2

    invoke-interface/range {v2 .. v7}, Lcom/scwang/smart/refresh/layout/api/a;->i(ZFIII)V

    :cond_20f
    if-eqz p2, :cond_234

    .line 49
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-interface {v2}, Lcom/scwang/smart/refresh/layout/api/a;->f()Z

    move-result v2

    if-eqz v2, :cond_234

    .line 50
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v2, v2, Lcom/scwang/smart/refresh/layout/a;->j:F

    float-to-int v2, v2

    .line 51
    invoke-virtual {v8}, Landroid/view/View;->getWidth()I

    move-result v3

    .line 52
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v5, v4, Lcom/scwang/smart/refresh/layout/a;->j:F

    if-nez v3, :cond_22c

    const/4 v6, 0x1

    goto :goto_22d

    :cond_22c
    move v6, v3

    :goto_22d
    int-to-float v6, v6

    div-float/2addr v5, v6

    .line 53
    iget-object v4, v4, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    invoke-interface {v4, v5, v2, v3}, Lcom/scwang/smart/refresh/layout/api/a;->e(FII)V

    .line 54
    :cond_234
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v2, v2, Lcom/scwang/smart/refresh/layout/a;->b:I

    :cond_238
    if-lez v1, :cond_23c

    if-gez v9, :cond_333

    .line 55
    :cond_23c
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v2, v2, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v2, :cond_333

    .line 56
    invoke-static {v1, v10}, Ljava/lang/Math;->min(II)I

    move-result v1

    neg-int v4, v1

    .line 57
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v5, v1, Lcom/scwang/smart/refresh/layout/a;->t0:I

    int-to-float v2, v5

    .line 58
    iget v3, v1, Lcom/scwang/smart/refresh/layout/a;->y0:F

    mul-float v2, v2, v3

    float-to-int v6, v2

    int-to-float v2, v4

    mul-float v2, v2, v12

    if-nez v5, :cond_258

    const/4 v3, 0x1

    goto :goto_259

    :cond_258
    move v3, v5

    :goto_259
    int-to-float v3, v3

    div-float v3, v2, v3

    .line 59
    iget-boolean v2, v1, Lcom/scwang/smart/refresh/layout/a;->C:Z

    invoke-virtual {v1, v2}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result v1

    if-nez v1, :cond_26e

    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/b;->LoadFinish:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v1, v2, :cond_32f

    if-nez p2, :cond_32f

    .line 60
    :cond_26e
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v2, v1, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-eq v9, v2, :cond_30a

    .line 61
    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v1}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v1

    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/c;->c:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v1, v2, :cond_2a6

    .line 62
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v1}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object v1

    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v2, v2, Lcom/scwang/smart/refresh/layout/a;->b:I

    int-to-float v2, v2

    invoke-virtual {v1, v2}, Landroid/view/View;->setTranslationY(F)V

    .line 63
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v2, v1, Lcom/scwang/smart/refresh/layout/a;->L0:I

    if-eqz v2, :cond_301

    iget-object v2, v1, Lcom/scwang/smart/refresh/layout/a;->E0:Landroid/graphics/Paint;

    if-eqz v2, :cond_301

    iget-boolean v2, v1, Lcom/scwang/smart/refresh/layout/a;->O:Z

    iget-object v7, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-virtual {v1, v2, v7}, Lcom/scwang/smart/refresh/layout/a;->n(ZLcom/scwang/smart/refresh/layout/api/a;)Z

    move-result v1

    if-nez v1, :cond_301

    .line 64
    invoke-virtual {v8}, Landroid/view/View;->invalidate()V

    goto :goto_301

    .line 65
    :cond_2a6
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v1}, Lcom/scwang/smart/refresh/layout/api/a;->getSpinnerStyle()Lcom/scwang/smart/refresh/layout/constant/c;

    move-result-object v1

    iget-boolean v1, v1, Lcom/scwang/smart/refresh/layout/constant/c;->b:Z

    if-eqz v1, :cond_301

    .line 66
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v1}, Lcom/scwang/smart/refresh/layout/api/a;->getView()Landroid/view/View;

    move-result-object v1

    .line 67
    invoke-virtual {v1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v2

    .line 68
    instance-of v7, v2, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v7, :cond_2c5

    check-cast v2, Landroid/view/ViewGroup$MarginLayoutParams;

    goto :goto_2c7

    :cond_2c5
    sget-object v2, Lcom/scwang/smart/refresh/layout/a;->V0:Landroid/view/ViewGroup$MarginLayoutParams;

    .line 69
    :goto_2c7
    invoke-virtual {v1}, Landroid/view/View;->getMeasuredWidth()I

    move-result v7

    invoke-static {v7, v13}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v7

    .line 70
    iget-object v9, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v9, v9, Lcom/scwang/smart/refresh/layout/a;->b:I

    neg-int v9, v9

    iget v11, v2, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int/2addr v9, v11

    iget v11, v2, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    sub-int/2addr v9, v11

    invoke-static {v9, v10}, Ljava/lang/Math;->max(II)I

    move-result v9

    invoke-static {v9, v13}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v9

    invoke-virtual {v1, v7, v9}, Landroid/view/View;->measure(II)V

    .line 71
    iget v7, v2, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    .line 72
    iget v2, v2, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    invoke-virtual {v8}, Landroid/view/View;->getMeasuredHeight()I

    move-result v9

    add-int/2addr v9, v2

    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v2, v2, Lcom/scwang/smart/refresh/layout/a;->w0:I

    sub-int/2addr v9, v2

    .line 73
    invoke-virtual {v1}, Landroid/view/View;->getMeasuredHeight()I

    move-result v2

    sub-int v2, v9, v2

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

    move-result v10

    add-int/2addr v10, v7

    invoke-virtual {v1, v7, v2, v10, v9}, Landroid/view/View;->layout(IIII)V

    .line 74
    :cond_301
    :goto_301
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    move/from16 v2, p2

    invoke-interface/range {v1 .. v6}, Lcom/scwang/smart/refresh/layout/api/a;->i(ZFIII)V

    :cond_30a
    if-eqz p2, :cond_32f

    .line 75
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v1}, Lcom/scwang/smart/refresh/layout/api/a;->f()Z

    move-result v1

    if-eqz v1, :cond_32f

    .line 76
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v1, v1, Lcom/scwang/smart/refresh/layout/a;->j:F

    float-to-int v1, v1

    .line 77
    invoke-virtual {v8}, Landroid/view/View;->getWidth()I

    move-result v2

    .line 78
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v4, v3, Lcom/scwang/smart/refresh/layout/a;->j:F

    if-nez v2, :cond_327

    const/4 v11, 0x1

    goto :goto_328

    :cond_327
    move v11, v2

    :goto_328
    int-to-float v5, v11

    div-float/2addr v4, v5

    .line 79
    iget-object v3, v3, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-interface {v3, v4, v1, v2}, Lcom/scwang/smart/refresh/layout/api/a;->e(FII)V

    .line 80
    :cond_32f
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget v1, v1, Lcom/scwang/smart/refresh/layout/a;->b:I

    :cond_333
    return-object v0
.end method

.method public final c(Lcom/scwang/smart/refresh/layout/constant/b;)V
    .registers 4

    .line 1
    sget-object v0, Lcom/scwang/smart/refresh/layout/a$a;->a:[I

    invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I

    move-result v1

    aget v0, v0, v1

    const/4 v1, 0x1

    packed-switch v0, :pswitch_data_19e

    .line 2
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    invoke-virtual {v0, p1}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 3
    :pswitch_13
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    invoke-virtual {p1, v1}, Lcom/scwang/smart/refresh/layout/a;->setStateLoading(Z)V

    goto/16 :goto_19d

    .line 4
    :pswitch_1a
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    invoke-virtual {p1, v1}, Lcom/scwang/smart/refresh/layout/a;->setStateRefreshing(Z)V

    goto/16 :goto_19d

    .line 5
    :pswitch_21
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_3a

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->C:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_3a

    .line 6
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->LoadReleased:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 7
    :cond_3a
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->LoadReleased:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 8
    :pswitch_43
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_5c

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->B:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_5c

    .line 9
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->RefreshReleased:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 10
    :cond_5c
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->RefreshReleased:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 11
    :pswitch_65
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_7e

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->B:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_7e

    .line 12
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToTwoLevel:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 13
    :cond_7e
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToTwoLevel:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 14
    :pswitch_87
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->C:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_b0

    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v1, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v1, :cond_b0

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isFinishing:Z

    if-nez v0, :cond_b0

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eqz v0, :cond_a9

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->P:Z

    if-eqz v0, :cond_a9

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    if-nez v0, :cond_b0

    .line 15
    :cond_a9
    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 16
    :cond_b0
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 17
    :pswitch_b9
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_d2

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->B:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_d2

    .line 18
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 19
    :cond_d2
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 20
    :pswitch_db
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->C:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_105

    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_105

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eqz v0, :cond_f9

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->P:Z

    if-eqz v0, :cond_f9

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    if-nez v0, :cond_105

    .line 21
    :cond_f9
    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpCanceled:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    .line 22
    sget-object p1, Lcom/scwang/smart/refresh/layout/constant/b;->None:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 23
    :cond_105
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpCanceled:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 24
    :pswitch_10e
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_12c

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->B:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_12c

    .line 25
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownCanceled:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    .line 26
    sget-object p1, Lcom/scwang/smart/refresh/layout/constant/b;->None:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 27
    :cond_12c
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownCanceled:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto/16 :goto_19d

    .line 28
    :pswitch_135
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->C:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_15d

    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v1, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v1, :cond_15d

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isFinishing:Z

    if-nez v0, :cond_15d

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eqz v0, :cond_157

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->P:Z

    if-eqz v0, :cond_157

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    if-nez v0, :cond_15d

    .line 29
    :cond_157
    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_19d

    .line 30
    :cond_15d
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_19d

    .line 31
    :pswitch_165
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v0, v0, Lcom/scwang/smart/refresh/layout/constant/b;->isOpening:Z

    if-nez v0, :cond_17d

    iget-boolean v0, p1, Lcom/scwang/smart/refresh/layout/a;->B:Z

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result p1

    if-eqz p1, :cond_17d

    .line 32
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_19d

    .line 33
    :cond_17d
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    invoke-virtual {p1, v0}, Lcom/scwang/smart/refresh/layout/a;->setViceState(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_19d

    .line 34
    :pswitch_185
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a$k;->a:Lcom/scwang/smart/refresh/layout/a;

    iget-object v0, p1, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/b;->None:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v0, v1, :cond_195

    iget v0, p1, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-nez v0, :cond_195

    .line 35
    invoke-virtual {p1, v1}, Lcom/scwang/smart/refresh/layout/a;->p(Lcom/scwang/smart/refresh/layout/constant/b;)V

    goto :goto_19d

    .line 36
    :cond_195
    iget p1, p1, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-eqz p1, :cond_19d

    const/4 p1, 0x0

    .line 37
    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    :cond_19d
    :goto_19d
    return-void

    :pswitch_data_19e
    .packed-switch 0x1
        :pswitch_185
        :pswitch_165
        :pswitch_135
        :pswitch_10e
        :pswitch_db
        :pswitch_b9
        :pswitch_87
        :pswitch_65
        :pswitch_43
        :pswitch_21
        :pswitch_1a
        :pswitch_13
    .end packed-switch
.end method