a.smali

.class public Lcom/scwang/smart/refresh/layout/a;
.super Landroid/view/ViewGroup;
.source "SourceFile"

# interfaces
.implements Lcom/scwang/smart/refresh/layout/api/f;
.implements Landroidx/core/view/n;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "RestrictedApi"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/scwang/smart/refresh/layout/a$k;,
        Lcom/scwang/smart/refresh/layout/a$j;,
        Lcom/scwang/smart/refresh/layout/a$h;,
        Lcom/scwang/smart/refresh/layout/a$i;
    }
.end annotation


# static fields
.field public static S0:Lcom/scwang/smart/refresh/layout/listener/b;

.field public static T0:Lcom/scwang/smart/refresh/layout/listener/c;

.field public static U0:Lcom/scwang/smart/refresh/layout/listener/d;

.field public static V0:Landroid/view/ViewGroup$MarginLayoutParams;


# instance fields
.field public A:[I

.field public A0:F

.field public B:Z

.field public B0:Lcom/scwang/smart/refresh/layout/api/d;

.field public C:Z

.field public C0:Lcom/scwang/smart/refresh/layout/api/c;

.field public D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

.field public E0:Landroid/graphics/Paint;

.field public F0:Landroid/os/Handler;

.field public G0:Lcom/scwang/smart/refresh/layout/a$k;

.field public H0:Lcom/scwang/smart/refresh/layout/constant/b;

.field public I0:Lcom/scwang/smart/refresh/layout/constant/b;

.field public J0:J

.field public K0:I

.field public L:Z

.field public L0:I

.field public M:Z

.field public M0:Z

.field public N:Z

.field public N0:Z

.field public O:Z

.field public O0:Z

.field public P:Z

.field public P0:Landroid/view/MotionEvent;

.field public Q:Z

.field public Q0:Ljava/lang/Runnable;

.field public R:Z

.field public R0:Landroid/animation/ValueAnimator;

.field public S:Z

.field public T:Z

.field public U:Z

.field public V:Z

.field public W:Z

.field public a:I

.field public a0:Z

.field public b:I

.field public b0:Z

.field public c:I

.field public c0:Z

.field public d:I

.field public d0:Z

.field public e:I

.field public e0:Z

.field public f:I

.field public f0:Z

.field public g:I

.field public g0:Z

.field public h:F

.field public h0:Z

.field public i:F

.field public i0:Z

.field public j:F

.field public j0:Lcom/scwang/smart/refresh/layout/listener/f;

.field public k:F

.field public k0:Lcom/scwang/smart/refresh/layout/listener/e;

.field public l:F

.field public l0:Lcom/scwang/smart/refresh/layout/simple/a;

.field public m:C

.field public m0:I

.field public n:Z

.field public n0:Z

.field public o:Z

.field public o0:[I

.field public p:Z

.field public p0:Landroidx/core/view/k;

.field public q:I

.field public q0:Landroidx/core/view/o;

.field public r:I

.field public r0:I

.field public s:I

.field public s0:Lcom/scwang/smart/refresh/layout/constant/a;

.field public t:I

.field public t0:I

.field public u:I

.field public u0:Lcom/scwang/smart/refresh/layout/constant/a;

.field public v:I

.field public v0:I

.field public w:I

.field public w0:I

.field public x:Landroid/widget/Scroller;

.field public x0:F

.field public y:Landroid/view/VelocityTracker;

.field public y0:F

.field public z:Lcom/scwang/smart/refresh/layout/util/b;

.field public z0:F


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

    new-instance v0, Landroid/view/ViewGroup$MarginLayoutParams;

    const/4 v1, -0x1

    invoke-direct {v0, v1, v1}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(II)V

    sput-object v0, Lcom/scwang/smart/refresh/layout/a;->V0:Landroid/view/ViewGroup$MarginLayoutParams;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 12

    .line 1
    invoke-direct {p0, p1, p2}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/16 v0, 0x12c

    .line 2
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->e:I

    .line 3
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->f:I

    const/high16 v0, 0x3f000000    # 0.5f

    .line 4
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->l:F

    const/16 v0, 0x6e

    .line 5
    iput-char v0, p0, Lcom/scwang/smart/refresh/layout/a;->m:C

    const/4 v0, -0x1

    .line 6
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->q:I

    .line 7
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->r:I

    .line 8
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->s:I

    .line 9
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->t:I

    const/4 v0, 0x1

    .line 10
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->B:Z

    const/4 v1, 0x0

    .line 11
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    .line 12
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->L:Z

    .line 13
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->M:Z

    .line 14
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->N:Z

    .line 15
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->O:Z

    .line 16
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->P:Z

    .line 17
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->Q:Z

    .line 18
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->R:Z

    .line 19
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    .line 20
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    .line 21
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->U:Z

    .line 22
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->V:Z

    .line 23
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->W:Z

    .line 24
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->a0:Z

    .line 25
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->b0:Z

    .line 26
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->c0:Z

    .line 27
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->d0:Z

    .line 28
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    .line 29
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    .line 30
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    .line 31
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->h0:Z

    .line 32
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->i0:Z

    const/4 v2, 0x2

    new-array v3, v2, [I

    .line 33
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->o0:[I

    .line 34
    new-instance v3, Landroidx/core/view/k;

    invoke-direct {v3, p0}, Landroidx/core/view/k;-><init>(Landroid/view/View;)V

    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->p0:Landroidx/core/view/k;

    .line 35
    new-instance v3, Landroidx/core/view/o;

    invoke-direct {v3}, Landroidx/core/view/o;-><init>()V

    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->q0:Landroidx/core/view/o;

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

    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    .line 37
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    const/high16 v3, 0x40200000    # 2.5f

    .line 38
    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->x0:F

    .line 39
    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->y0:F

    const/high16 v3, 0x3f800000    # 1.0f

    .line 40
    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->z0:F

    .line 41
    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->A0:F

    .line 42
    new-instance v3, Lcom/scwang/smart/refresh/layout/a$k;

    invoke-direct {v3, p0}, Lcom/scwang/smart/refresh/layout/a$k;-><init>(Lcom/scwang/smart/refresh/layout/a;)V

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

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

    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    .line 44
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    const-wide/16 v3, 0x0

    .line 45
    iput-wide v3, p0, Lcom/scwang/smart/refresh/layout/a;->J0:J

    .line 46
    iput v1, p0, Lcom/scwang/smart/refresh/layout/a;->K0:I

    .line 47
    iput v1, p0, Lcom/scwang/smart/refresh/layout/a;->L0:I

    .line 48
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    .line 49
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->O0:Z

    const/4 v3, 0x0

    .line 50
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    .line 51
    invoke-static {p1}, Landroid/view/ViewConfiguration;->get(Landroid/content/Context;)Landroid/view/ViewConfiguration;

    move-result-object v3

    .line 52
    new-instance v4, Landroid/os/Handler;

    invoke-direct {v4}, Landroid/os/Handler;-><init>()V

    iput-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;

    .line 53
    new-instance v4, Landroid/widget/Scroller;

    invoke-direct {v4, p1}, Landroid/widget/Scroller;-><init>(Landroid/content/Context;)V

    iput-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    .line 54
    invoke-static {}, Landroid/view/VelocityTracker;->obtain()Landroid/view/VelocityTracker;

    move-result-object v4

    iput-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    .line 55
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v4

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

    move-result-object v4

    iget v4, v4, Landroid/util/DisplayMetrics;->heightPixels:I

    iput v4, p0, Lcom/scwang/smart/refresh/layout/a;->g:I

    .line 56
    new-instance v4, Lcom/scwang/smart/refresh/layout/util/b;

    sget v5, Lcom/scwang/smart/refresh/layout/util/b;->a:F

    invoke-direct {v4}, Lcom/scwang/smart/refresh/layout/util/b;-><init>()V

    iput-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->z:Lcom/scwang/smart/refresh/layout/util/b;

    .line 57
    invoke-virtual {v3}, Landroid/view/ViewConfiguration;->getScaledTouchSlop()I

    move-result v4

    iput v4, p0, Lcom/scwang/smart/refresh/layout/a;->a:I

    .line 58
    invoke-virtual {v3}, Landroid/view/ViewConfiguration;->getScaledMinimumFlingVelocity()I

    move-result v4

    iput v4, p0, Lcom/scwang/smart/refresh/layout/a;->u:I

    .line 59
    invoke-virtual {v3}, Landroid/view/ViewConfiguration;->getScaledMaximumFlingVelocity()I

    move-result v3

    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->v:I

    const/high16 v3, 0x42700000    # 60.0f

    .line 60
    invoke-static {v3}, Lcom/scwang/smart/refresh/layout/util/b;->c(F)I

    move-result v3

    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    const/high16 v3, 0x42c80000    # 100.0f

    .line 61
    invoke-static {v3}, Lcom/scwang/smart/refresh/layout/util/b;->c(F)I

    move-result v3

    iput v3, p0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    .line 62
    sget-object v3, Landroidx/appcompat/f;->a:[I

    invoke-virtual {p1, p2, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[I)Landroid/content/res/TypedArray;

    move-result-object p2

    .line 63
    invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v3

    if-nez v3, :cond_e9

    .line 64
    invoke-super {p0, v1}, Landroid/view/ViewGroup;->setClipToPadding(Z)V

    .line 65
    :cond_e9
    invoke-virtual {p2, v1}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v3

    if-nez v3, :cond_f2

    .line 66
    invoke-super {p0, v1}, Landroid/view/ViewGroup;->setClipChildren(Z)V

    .line 67
    :cond_f2
    sget-object v3, Lcom/scwang/smart/refresh/layout/a;->U0:Lcom/scwang/smart/refresh/layout/listener/d;

    if-eqz v3, :cond_fb

    .line 68
    check-cast v3, Lcom/scwang/smart/refresh/horizontal/SmartRefreshHorizontal$a;

    invoke-virtual {v3, p1, p0}, Lcom/scwang/smart/refresh/horizontal/SmartRefreshHorizontal$a;->a(Landroid/content/Context;Lcom/scwang/smart/refresh/layout/api/f;)V

    :cond_fb
    const/4 p1, 0x5

    .line 69
    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->l:F

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->l:F

    const/16 p1, 0x20

    .line 70
    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->x0:F

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->x0:F

    const/16 p1, 0x1b

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

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->y0:F

    const/16 p1, 0x22

    .line 72
    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->z0:F

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->z0:F

    const/16 p1, 0x1d

    .line 73
    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->A0:F

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getFloat(IF)F

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->A0:F

    const/16 p1, 0x14

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

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

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

    const/16 p1, 0x24

    .line 75
    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->f:I

    invoke-virtual {p2, p1, v3}, Landroid/content/res/TypedArray;->getInt(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->f:I

    .line 76
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    const/16 v3, 0xd

    invoke-virtual {p2, v3, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

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

    .line 77
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    const/16 v4, 0x1e

    invoke-virtual {p2, v4, p1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    .line 78
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    const/16 v5, 0x19

    invoke-virtual {p2, v5, p1}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    const/16 p1, 0x1f

    .line 79
    iget v6, p0, Lcom/scwang/smart/refresh/layout/a;->v0:I

    invoke-virtual {p2, p1, v6}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->v0:I

    const/16 p1, 0x1a

    .line 80
    iget v6, p0, Lcom/scwang/smart/refresh/layout/a;->w0:I

    invoke-virtual {p2, p1, v6}, Landroid/content/res/TypedArray;->getDimensionPixelOffset(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->w0:I

    const/4 p1, 0x4

    .line 81
    iget-boolean v6, p0, Lcom/scwang/smart/refresh/layout/a;->c0:Z

    invoke-virtual {p2, p1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->c0:Z

    const/4 p1, 0x3

    .line 82
    iget-boolean v6, p0, Lcom/scwang/smart/refresh/layout/a;->d0:Z

    invoke-virtual {p2, p1, v6}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->d0:Z

    .line 83
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->N:Z

    const/16 v6, 0xc

    invoke-virtual {p2, v6, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->N:Z

    .line 84
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->O:Z

    const/16 v7, 0xb

    invoke-virtual {p2, v7, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->O:Z

    const/16 p1, 0x12

    .line 85
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->Q:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->Q:Z

    const/4 p1, 0x6

    .line 86
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    const/16 p1, 0x10

    .line 87
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->R:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->R:Z

    const/16 p1, 0x13

    .line 88
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->U:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->U:Z

    const/16 p1, 0x15

    .line 89
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->V:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->V:Z

    const/16 p1, 0x16

    .line 90
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->W:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->W:Z

    const/16 p1, 0xe

    .line 91
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->a0:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->a0:Z

    const/16 p1, 0x9

    .line 92
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->P:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

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

    const/16 v8, 0xa

    .line 93
    invoke-virtual {p2, v8, p1}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

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

    const/16 p1, 0x8

    .line 94
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->L:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->L:Z

    const/4 p1, 0x7

    .line 95
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->M:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->M:Z

    const/16 p1, 0x11

    .line 96
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    const/16 p1, 0x18

    .line 97
    iget v8, p0, Lcom/scwang/smart/refresh/layout/a;->q:I

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->q:I

    const/16 p1, 0x17

    .line 98
    iget v8, p0, Lcom/scwang/smart/refresh/layout/a;->r:I

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->r:I

    const/16 p1, 0x21

    .line 99
    iget v8, p0, Lcom/scwang/smart/refresh/layout/a;->s:I

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->s:I

    const/16 p1, 0x1c

    .line 100
    iget v8, p0, Lcom/scwang/smart/refresh/layout/a;->t:I

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getResourceId(II)I

    move-result p1

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->t:I

    const/16 p1, 0xf

    .line 101
    iget-boolean v8, p0, Lcom/scwang/smart/refresh/layout/a;->b0:Z

    invoke-virtual {p2, p1, v8}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->b0:Z

    .line 102
    iget-object v8, p0, Lcom/scwang/smart/refresh/layout/a;->p0:Landroidx/core/view/k;

    invoke-virtual {v8, p1}, Landroidx/core/view/k;->j(Z)V

    .line 103
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    if-nez p1, :cond_250

    invoke-virtual {p2, v3}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result p1

    if-eqz p1, :cond_24e

    goto :goto_250

    :cond_24e
    const/4 p1, 0x0

    goto :goto_251

    :cond_250
    :goto_250
    const/4 p1, 0x1

    :goto_251
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    .line 104
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->h0:Z

    if-nez p1, :cond_260

    invoke-virtual {p2, v6}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result p1

    if-eqz p1, :cond_25e

    goto :goto_260

    :cond_25e
    const/4 p1, 0x0

    goto :goto_261

    :cond_260
    :goto_260
    const/4 p1, 0x1

    :goto_261
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->h0:Z

    .line 105
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->i0:Z

    if-nez p1, :cond_270

    invoke-virtual {p2, v7}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result p1

    if-eqz p1, :cond_26e

    goto :goto_270

    :cond_26e
    const/4 p1, 0x0

    goto :goto_271

    :cond_270
    :goto_270
    const/4 p1, 0x1

    :goto_271
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->i0:Z

    .line 106
    invoke-virtual {p2, v4}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result p1

    if-eqz p1, :cond_27c

    sget-object p1, Lcom/scwang/smart/refresh/layout/constant/a;->f:Lcom/scwang/smart/refresh/layout/constant/a;

    goto :goto_27e

    :cond_27c
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    :goto_27e
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    .line 107
    invoke-virtual {p2, v5}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result p1

    if-eqz p1, :cond_289

    sget-object p1, Lcom/scwang/smart/refresh/layout/constant/a;->f:Lcom/scwang/smart/refresh/layout/constant/a;

    goto :goto_28b

    :cond_289
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    :goto_28b
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    .line 108
    invoke-virtual {p2, v2, v1}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result p1

    const/16 v3, 0x23

    .line 109
    invoke-virtual {p2, v3, v1}, Landroid/content/res/TypedArray;->getColor(II)I

    move-result v3

    if-eqz v3, :cond_2ab

    if-eqz p1, :cond_2a4

    new-array v2, v2, [I

    aput v3, v2, v1

    aput p1, v2, v0

    .line 110
    iput-object v2, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    goto :goto_2b5

    :cond_2a4
    new-array p1, v0, [I

    aput v3, p1, v1

    .line 111
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    goto :goto_2b5

    :cond_2ab
    if-eqz p1, :cond_2b5

    new-array v2, v2, [I

    aput v1, v2, v1

    aput p1, v2, v0

    .line 112
    iput-object v2, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    .line 113
    :cond_2b5
    :goto_2b5
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->U:Z

    if-eqz p1, :cond_2c3

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

    if-nez p1, :cond_2c3

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

    if-nez p1, :cond_2c3

    .line 114
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    .line 115
    :cond_2c3
    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    return-void
.end method

.method public static synthetic a(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
    .registers 2

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p0

    return p0
.end method

.method public static synthetic b(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
    .registers 2

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p0

    return p0
.end method

.method public static synthetic c(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
    .registers 2

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p0

    return p0
.end method

.method public static synthetic d(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
    .registers 2

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p0

    return p0
.end method

.method public static synthetic e(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
    .registers 2

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p0

    return p0
.end method

.method public static synthetic f(Lcom/scwang/smart/refresh/layout/a;Landroid/view/MotionEvent;)Z
    .registers 2

    invoke-super {p0, p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result p0

    return p0
.end method

.method public static setDefaultRefreshFooterCreator(Lcom/scwang/smart/refresh/layout/listener/b;)V
    .registers 1

    sput-object p0, Lcom/scwang/smart/refresh/layout/a;->S0:Lcom/scwang/smart/refresh/layout/listener/b;

    return-void
.end method

.method public static setDefaultRefreshHeaderCreator(Lcom/scwang/smart/refresh/layout/listener/c;)V
    .registers 1

    sput-object p0, Lcom/scwang/smart/refresh/layout/a;->T0:Lcom/scwang/smart/refresh/layout/listener/c;

    return-void
.end method

.method public static setDefaultRefreshInitializer(Lcom/scwang/smart/refresh/layout/listener/d;)V
    .registers 1

    sput-object p0, Lcom/scwang/smart/refresh/layout/a;->U0:Lcom/scwang/smart/refresh/layout/listener/d;

    return-void
.end method


# virtual methods
.method public computeScroll()V
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrY()I

    .line 2
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->computeScrollOffset()Z

    move-result v0

    if-eqz v0, :cond_c3

    .line 3
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getFinalY()I

    move-result v0

    const/4 v1, 0x1

    if-gez v0, :cond_26

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

    if-nez v2, :cond_1e

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

    if-eqz v2, :cond_26

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

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

    move-result v2

    if-nez v2, :cond_38

    :cond_26
    if-lez v0, :cond_be

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

    if-nez v2, :cond_30

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

    if-eqz v2, :cond_be

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

    .line 5
    invoke-virtual {v2}, Lcom/scwang/smart/refresh/layout/wrapper/a;->b()Z

    move-result v2

    if-eqz v2, :cond_be

    .line 6
    :cond_38
    iget-boolean v2, p0, Lcom/scwang/smart/refresh/layout/a;->O0:Z

    if-eqz v2, :cond_b8

    if-lez v0, :cond_46

    .line 7
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrVelocity()F

    move-result v0

    neg-float v0, v0

    goto :goto_4c

    :cond_46
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v0}, Landroid/widget/Scroller;->getCurrVelocity()F

    move-result v0

    .line 8
    :goto_4c
    iget-object v2, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    if-nez v2, :cond_b8

    const/4 v2, 0x0

    cmpl-float v3, v0, v2

    if-lez v3, :cond_69

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

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

    if-eq v3, v4, :cond_5f

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

    if-ne v3, v4, :cond_69

    .line 10
    :cond_5f
    new-instance v2, Lcom/scwang/smart/refresh/layout/a$h;

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

    invoke-direct {v2, p0, v0, v3}, Lcom/scwang/smart/refresh/layout/a$h;-><init>(Lcom/scwang/smart/refresh/layout/a;FI)V

    iput-object v2, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    goto :goto_b8

    :cond_69
    cmpg-float v2, v0, v2

    if-gez v2, :cond_a8

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

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

    if-eq v2, v3, :cond_9d

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

    if-eqz v2, :cond_87

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

    if-eqz v2, :cond_87

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

    if-eqz v2, :cond_87

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

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

    move-result v2

    if-nez v2, :cond_9d

    :cond_87
    iget-boolean v2, p0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    if-eqz v2, :cond_a8

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

    if-nez v2, :cond_a8

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

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

    move-result v2

    if-eqz v2, :cond_a8

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

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

    if-eq v2, v3, :cond_a8

    .line 14
    :cond_9d
    new-instance v2, Lcom/scwang/smart/refresh/layout/a$h;

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

    neg-int v3, v3

    invoke-direct {v2, p0, v0, v3}, Lcom/scwang/smart/refresh/layout/a$h;-><init>(Lcom/scwang/smart/refresh/layout/a;FI)V

    iput-object v2, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    goto :goto_b8

    .line 15
    :cond_a8
    iget v2, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-nez v2, :cond_b8

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

    if-eqz v2, :cond_b8

    .line 16
    new-instance v2, Lcom/scwang/smart/refresh/layout/a$h;

    const/4 v3, 0x0

    invoke-direct {v2, p0, v0, v3}, Lcom/scwang/smart/refresh/layout/a$h;-><init>(Lcom/scwang/smart/refresh/layout/a;FI)V

    iput-object v2, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    .line 17
    :cond_b8
    :goto_b8
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v0, v1}, Landroid/widget/Scroller;->forceFinished(Z)V

    goto :goto_c3

    .line 18
    :cond_be
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->O0:Z

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

    :cond_c3
    :goto_c3
    return-void
.end method

.method public final dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .registers 25

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    .line 1
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getActionMasked()I

    move-result v6

    const/4 v10, 0x1

    const/4 v11, 0x0

    const/4 v2, 0x6

    if-ne v6, v2, :cond_f

    const/4 v3, 0x1

    goto :goto_10

    :cond_f
    const/4 v3, 0x0

    :goto_10
    if-eqz v3, :cond_17

    .line 2
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getActionIndex()I

    move-result v4

    goto :goto_18

    :cond_17
    const/4 v4, -0x1

    .line 3
    :goto_18
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getPointerCount()I

    move-result v5

    const/4 v7, 0x0

    const/4 v8, 0x0

    const/4 v9, 0x0

    const/4 v12, 0x0

    :goto_20
    if-ge v8, v5, :cond_32

    if-ne v4, v8, :cond_25

    goto :goto_2f

    .line 4
    :cond_25
    invoke-virtual {v1, v8}, Landroid/view/MotionEvent;->getX(I)F

    move-result v13

    add-float/2addr v9, v13

    .line 5
    invoke-virtual {v1, v8}, Landroid/view/MotionEvent;->getY(I)F

    move-result v13

    add-float/2addr v12, v13

    :goto_2f
    add-int/lit8 v8, v8, 0x1

    goto :goto_20

    :cond_32
    if-eqz v3, :cond_36

    add-int/lit8 v5, v5, -0x1

    :cond_36
    int-to-float v3, v5

    div-float/2addr v9, v3

    div-float v8, v12, v3

    if-eq v6, v2, :cond_3f

    const/4 v2, 0x5

    if-ne v6, v2, :cond_4c

    .line 6
    :cond_3f
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    if-eqz v2, :cond_4c

    .line 7
    iget v2, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

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

    sub-float v3, v8, v3

    add-float/2addr v3, v2

    iput v3, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    .line 8
    :cond_4c
    iput v9, v0, Lcom/scwang/smart/refresh/layout/a;->j:F

    .line 9
    iput v8, v0, Lcom/scwang/smart/refresh/layout/a;->k:F

    .line 10
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->n0:Z

    const/4 v3, 0x2

    if-eqz v2, :cond_a8

    .line 11
    iget v2, v0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    .line 12
    invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    if-ne v6, v3, :cond_a7

    .line 13
    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    if-ne v2, v3, :cond_a7

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

    float-to-int v2, v2

    .line 15
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getWidth()I

    move-result v3

    .line 16
    iget v4, v0, Lcom/scwang/smart/refresh/layout/a;->j:F

    if-nez v3, :cond_6d

    goto :goto_6e

    :cond_6d
    move v10, v3

    :goto_6e
    int-to-float v5, v10

    div-float/2addr v4, v5

    .line 17
    iget-boolean v5, v0, Lcom/scwang/smart/refresh/layout/a;->B:Z

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

    move-result v5

    if-eqz v5, :cond_8c

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

    if-lez v5, :cond_8c

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

    if-eqz v5, :cond_8c

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

    move-result v5

    if-eqz v5, :cond_8c

    .line 18
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    goto :goto_a7

    .line 19
    :cond_8c
    iget-boolean v5, v0, Lcom/scwang/smart/refresh/layout/a;->C:Z

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

    move-result v5

    if-eqz v5, :cond_a7

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

    if-gez v5, :cond_a7

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

    if-eqz v5, :cond_a7

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

    move-result v5

    if-eqz v5, :cond_a7

    .line 20
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    :cond_a7
    :goto_a7
    return v1

    .line 21
    :cond_a8
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->isEnabled()Z

    move-result v2

    if-eqz v2, :cond_371

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

    if-nez v2, :cond_ba

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

    if-nez v2, :cond_ba

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

    if-eqz v2, :cond_371

    .line 22
    :cond_ba
    invoke-virtual {v0, v6}, Lcom/scwang/smart/refresh/layout/a;->l(I)Z

    move-result v2

    if-nez v2, :cond_370

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

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

    if-nez v4, :cond_370

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

    if-ne v2, v4, :cond_ce

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

    if-nez v5, :cond_370

    :cond_ce
    sget-object v5, Lcom/scwang/smart/refresh/layout/constant/b;->Refreshing:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v2, v5, :cond_d8

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

    if-eqz v2, :cond_d8

    goto/16 :goto_370

    :cond_d8
    const/16 v2, 0x68

    const/4 v5, 0x0

    if-eqz v6, :cond_2f3

    if-eq v6, v10, :cond_2a5

    const/4 v12, 0x3

    if-eq v6, v3, :cond_e6

    if-eq v6, v12, :cond_2c0

    goto/16 :goto_2ee

    .line 23
    :cond_e6
    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->h:F

    sub-float/2addr v9, v3

    .line 24
    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    sub-float v3, v8, v3

    .line 25
    iget-object v6, v0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    invoke-virtual {v6, v1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 26
    iget-boolean v6, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    if-nez v6, :cond_1bd

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

    if-nez v6, :cond_1bd

    iget-char v6, v0, Lcom/scwang/smart/refresh/layout/a;->m:C

    if-eq v6, v2, :cond_1bd

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

    if-eqz v13, :cond_1bd

    const/16 v13, 0x76

    if-eq v6, v13, :cond_13d

    .line 27
    invoke-static {v3}, Ljava/lang/Math;->abs(F)F

    move-result v6

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

    int-to-float v14, v14

    cmpl-float v6, v6, v14

    if-ltz v6, :cond_11e

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

    move-result v6

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

    move-result v14

    cmpg-float v6, v6, v14

    if-gez v6, :cond_11e

    goto :goto_13d

    .line 28
    :cond_11e
    invoke-static {v9}, Ljava/lang/Math;->abs(F)F

    move-result v4

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

    int-to-float v6, v6

    cmpl-float v4, v4, v6

    if-ltz v4, :cond_1bd

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

    move-result v4

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

    move-result v6

    cmpl-float v4, v4, v6

    if-lez v4, :cond_1bd

    iget-char v4, v0, Lcom/scwang/smart/refresh/layout/a;->m:C

    if-eq v4, v13, :cond_1bd

    .line 29
    iput-char v2, v0, Lcom/scwang/smart/refresh/layout/a;->m:C

    goto/16 :goto_1bd

    .line 30
    :cond_13d
    :goto_13d
    iput-char v13, v0, Lcom/scwang/smart/refresh/layout/a;->m:C

    cmpl-float v2, v3, v7

    if-lez v2, :cond_161

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

    if-ltz v2, :cond_157

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

    if-nez v2, :cond_14f

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

    if-eqz v2, :cond_161

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

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

    move-result v2

    if-eqz v2, :cond_161

    .line 32
    :cond_157
    iput-boolean v10, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

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

    int-to-float v2, v2

    sub-float v2, v8, v2

    iput v2, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    goto :goto_189

    :cond_161
    cmpg-float v2, v3, v7

    if-gez v2, :cond_189

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

    if-gtz v2, :cond_181

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

    if-nez v2, :cond_171

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

    if-eqz v2, :cond_189

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

    if-ne v2, v4, :cond_179

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

    if-nez v2, :cond_181

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

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

    move-result v2

    if-eqz v2, :cond_189

    .line 35
    :cond_181
    iput-boolean v10, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

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

    int-to-float v2, v2

    add-float/2addr v2, v8

    iput v2, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    .line 37
    :cond_189
    :goto_189
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    if-eqz v2, :cond_1bd

    .line 38
    iget v2, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    sub-float v3, v8, v2

    .line 39
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->o:Z

    if-eqz v2, :cond_19b

    .line 40
    invoke-virtual {v1, v12}, Landroid/view/MotionEvent;->setAction(I)V

    .line 41
    invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

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

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

    if-gtz v4, :cond_1ab

    if-nez v4, :cond_1a8

    cmpl-float v4, v3, v7

    if-lez v4, :cond_1a8

    goto :goto_1ab

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

    goto :goto_1ad

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

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

    .line 43
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v2

    .line 44
    instance-of v4, v2, Landroid/view/ViewGroup;

    if-eqz v4, :cond_1bd

    .line 45
    check-cast v2, Landroid/view/ViewGroup;

    invoke-virtual {v2, v10}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V

    .line 46
    :cond_1bd
    :goto_1bd
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    if-eqz v2, :cond_293

    float-to-int v2, v3

    .line 47
    iget v4, v0, Lcom/scwang/smart/refresh/layout/a;->d:I

    add-int/2addr v2, v4

    .line 48
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    iget-boolean v6, v4, Lcom/scwang/smart/refresh/layout/constant/b;->isHeader:Z

    if-eqz v6, :cond_1d1

    if-ltz v2, :cond_1db

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

    if-ltz v6, :cond_1db

    :cond_1d1
    iget-boolean v4, v4, Lcom/scwang/smart/refresh/layout/constant/b;->isFooter:Z

    if-eqz v4, :cond_28e

    if-gtz v2, :cond_1db

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

    if-lez v4, :cond_28e

    .line 49
    :cond_1db
    iput v2, v0, Lcom/scwang/smart/refresh/layout/a;->c:I

    .line 50
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getEventTime()J

    move-result-wide v21

    .line 51
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    if-nez v1, :cond_1fe

    const/16 v17, 0x0

    .line 52
    iget v1, v0, Lcom/scwang/smart/refresh/layout/a;->h:F

    add-float v18, v1, v9

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

    const/16 v20, 0x0

    move-wide/from16 v13, v21

    move-wide/from16 v15, v21

    move/from16 v19, v1

    invoke-static/range {v13 .. v20}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;

    move-result-object v1

    iput-object v1, v0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    .line 53
    invoke-super {v0, v1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    :cond_1fe
    const/16 v17, 0x2

    .line 54
    iget v1, v0, Lcom/scwang/smart/refresh/layout/a;->h:F

    add-float v18, v1, v9

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

    int-to-float v4, v2

    add-float v19, v1, v4

    const/16 v20, 0x0

    move-wide/from16 v13, v21

    move-wide/from16 v15, v21

    invoke-static/range {v13 .. v20}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;

    move-result-object v1

    .line 55
    invoke-super {v0, v1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    .line 56
    iget-boolean v4, v0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    if-eqz v4, :cond_227

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

    int-to-float v4, v4

    cmpl-float v3, v3, v4

    if-lez v3, :cond_227

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

    if-gez v3, :cond_227

    .line 57
    iput-boolean v11, v0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    :cond_227
    if-lez v2, :cond_247

    .line 58
    iget-boolean v3, v0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    if-nez v3, :cond_231

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

    if-eqz v3, :cond_247

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

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

    move-result v3

    if-eqz v3, :cond_247

    .line 59
    iput v8, v0, Lcom/scwang/smart/refresh/layout/a;->k:F

    iput v8, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    .line 60
    iput v11, v0, Lcom/scwang/smart/refresh/layout/a;->d:I

    .line 61
    iget-object v2, v0, 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

    goto :goto_268

    :cond_247
    if-gez v2, :cond_267

    .line 62
    iget-boolean v3, v0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    if-nez v3, :cond_251

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

    if-eqz v3, :cond_267

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

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

    move-result v3

    if-eqz v3, :cond_267

    .line 63
    iput v8, v0, Lcom/scwang/smart/refresh/layout/a;->k:F

    iput v8, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    .line 64
    iput v11, v0, Lcom/scwang/smart/refresh/layout/a;->d:I

    .line 65
    iget-object v2, v0, 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_268

    :cond_267
    move v11, v2

    .line 66
    :goto_268
    iget-object v2, v0, 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;->isHeader:Z

    if-eqz v3, :cond_270

    if-ltz v11, :cond_276

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

    if-eqz v2, :cond_27e

    if-lez v11, :cond_27e

    .line 67
    :cond_276
    iget v1, v0, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-eqz v1, :cond_27d

    .line 68
    invoke-virtual {v0, v7}, Lcom/scwang/smart/refresh/layout/a;->o(F)V

    :cond_27d
    return v10

    .line 69
    :cond_27e
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    if-eqz v2, :cond_28a

    .line 70
    iput-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    .line 71
    invoke-virtual {v1, v12}, Landroid/view/MotionEvent;->setAction(I)V

    .line 72
    invoke-super {v0, v1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    .line 73
    :cond_28a
    invoke-virtual {v1}, Landroid/view/MotionEvent;->recycle()V

    move v2, v11

    :cond_28e
    int-to-float v1, v2

    .line 74
    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a;->o(F)V

    return v10

    .line 75
    :cond_293
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    if-eqz v2, :cond_2ee

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

    int-to-float v2, v2

    cmpl-float v2, v3, v2

    if-lez v2, :cond_2ee

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

    if-gez v2, :cond_2ee

    .line 76
    iput-boolean v11, v0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    goto :goto_2ee

    .line 77
    :cond_2a5
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    invoke-virtual {v2, v1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 78
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    const/16 v3, 0x3e8

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

    int-to-float v4, v4

    invoke-virtual {v2, v3, v4}, Landroid/view/VelocityTracker;->computeCurrentVelocity(IF)V

    .line 79
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    invoke-virtual {v2}, Landroid/view/VelocityTracker;->getYVelocity()F

    move-result v2

    float-to-int v2, v2

    iput v2, v0, Lcom/scwang/smart/refresh/layout/a;->w:I

    .line 80
    invoke-virtual {v0, v7}, Lcom/scwang/smart/refresh/layout/a;->w(F)Z

    .line 81
    :cond_2c0
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    invoke-virtual {v2}, Landroid/view/VelocityTracker;->clear()V

    const/16 v2, 0x6e

    .line 82
    iput-char v2, v0, Lcom/scwang/smart/refresh/layout/a;->m:C

    .line 83
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    if-eqz v2, :cond_2e4

    .line 84
    invoke-virtual {v2}, Landroid/view/MotionEvent;->recycle()V

    .line 85
    iput-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->P0:Landroid/view/MotionEvent;

    .line 86
    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getEventTime()J

    move-result-wide v4

    .line 87
    iget v7, v0, Lcom/scwang/smart/refresh/layout/a;->h:F

    const/4 v9, 0x0

    move-wide v2, v4

    invoke-static/range {v2 .. v9}, Landroid/view/MotionEvent;->obtain(JJIFFI)Landroid/view/MotionEvent;

    move-result-object v2

    .line 88
    invoke-super {v0, v2}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    .line 89
    invoke-virtual {v2}, Landroid/view/MotionEvent;->recycle()V

    .line 90
    :cond_2e4
    invoke-virtual/range {p0 .. p0}, Lcom/scwang/smart/refresh/layout/a;->q()V

    .line 91
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    if-eqz v2, :cond_2ee

    .line 92
    iput-boolean v11, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    return v10

    .line 93
    :cond_2ee
    :goto_2ee
    invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    return v1

    .line 94
    :cond_2f3
    iput v11, v0, Lcom/scwang/smart/refresh/layout/a;->w:I

    .line 95
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a;->y:Landroid/view/VelocityTracker;

    invoke-virtual {v3, v1}, Landroid/view/VelocityTracker;->addMovement(Landroid/view/MotionEvent;)V

    .line 96
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {v3, v10}, Landroid/widget/Scroller;->forceFinished(Z)V

    .line 97
    iput v9, v0, Lcom/scwang/smart/refresh/layout/a;->h:F

    .line 98
    iput v8, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    .line 99
    iput v11, v0, Lcom/scwang/smart/refresh/layout/a;->c:I

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

    iput v3, v0, Lcom/scwang/smart/refresh/layout/a;->d:I

    .line 101
    iput-boolean v11, v0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    .line 102
    iput-boolean v11, v0, Lcom/scwang/smart/refresh/layout/a;->p:Z

    .line 103
    invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v3

    iput-boolean v3, v0, Lcom/scwang/smart/refresh/layout/a;->o:Z

    .line 104
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    if-ne v3, v4, :cond_330

    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->i:F

    const/high16 v4, 0x40a00000    # 5.0f

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

    move-result v6

    int-to-float v6, v6

    mul-float v6, v6, v4

    const/high16 v4, 0x40c00000    # 6.0f

    div-float/2addr v6, v4

    cmpg-float v3, v3, v6

    if-gez v3, :cond_330

    .line 105
    iput-char v2, v0, Lcom/scwang/smart/refresh/layout/a;->m:C

    .line 106
    iget-boolean v1, v0, Lcom/scwang/smart/refresh/layout/a;->o:Z

    return v1

    .line 107
    :cond_330
    iget-object v2, v0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    if-eqz v2, :cond_36f

    .line 108
    new-instance v3, Landroid/graphics/PointF;

    invoke-virtual/range {p1 .. p1}, Landroid/view/MotionEvent;->getX()F

    move-result v4

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

    move-result v1

    invoke-direct {v3, v4, v1}, Landroid/graphics/PointF;-><init>(FF)V

    .line 109
    iget-object v1, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

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

    move-result v1

    neg-int v1, v1

    int-to-float v1, v1

    iget-object v4, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

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

    move-result v4

    neg-int v4, v4

    int-to-float v4, v4

    invoke-virtual {v3, v1, v4}, Landroid/graphics/PointF;->offset(FF)V

    .line 110
    iget-object v1, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->c:Landroid/view/View;

    iget-object v4, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    if-eq v1, v4, :cond_360

    .line 111
    invoke-virtual {v2, v4, v3, v1}, Lcom/scwang/smart/refresh/layout/wrapper/a;->d(Landroid/view/View;Landroid/graphics/PointF;Landroid/view/View;)Landroid/view/View;

    move-result-object v1

    iput-object v1, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->c:Landroid/view/View;

    .line 112
    :cond_360
    iget-object v1, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->c:Landroid/view/View;

    iget-object v4, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    if-ne v1, v4, :cond_36b

    .line 113
    iget-object v1, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->i:Lcom/scwang/smart/refresh/layout/simple/a;

    iput-object v5, v1, Lcom/scwang/smart/refresh/layout/simple/a;->a:Landroid/graphics/PointF;

    goto :goto_36f

    .line 114
    :cond_36b
    iget-object v1, v2, Lcom/scwang/smart/refresh/layout/wrapper/a;->i:Lcom/scwang/smart/refresh/layout/simple/a;

    iput-object v3, v1, Lcom/scwang/smart/refresh/layout/simple/a;->a:Landroid/graphics/PointF;

    :cond_36f
    :goto_36f
    return v10

    :cond_370
    :goto_370
    return v11

    .line 115
    :cond_371
    invoke-super/range {p0 .. p1}, Landroid/view/ViewGroup;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v1

    return v1
.end method

.method public final drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z
    .registers 14

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    if-eqz v0, :cond_7

    .line 2
    iget-object v0, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    goto :goto_8

    :cond_7
    const/4 v0, 0x0

    .line 3
    :goto_8
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    const/4 v2, 0x1

    if-eqz v1, :cond_ad

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

    move-result-object v1

    if-ne v1, p2, :cond_ad

    .line 4
    iget-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->B:Z

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

    move-result v1

    if-eqz v1, :cond_ac

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

    if-nez v1, :cond_27

    invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z

    move-result v1

    if-eqz v1, :cond_27

    goto/16 :goto_ac

    :cond_27
    if-eqz v0, :cond_ad

    .line 5
    invoke-virtual {v0}, Landroid/view/View;->getTop()I

    move-result v1

    invoke-virtual {v0}, Landroid/view/View;->getPaddingTop()I

    move-result v3

    add-int/2addr v3, v1

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

    add-int/2addr v3, v1

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

    move-result v1

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

    move-result v1

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

    if-eqz v3, :cond_7a

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

    if-eqz v4, :cond_7a

    .line 7
    invoke-virtual {v4, v3}, Landroid/graphics/Paint;->setColor(I)V

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

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

    move-result-object v3

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

    if-eqz v3, :cond_57

    .line 9
    invoke-virtual {p2}, Landroid/view/View;->getBottom()I

    move-result v1

    goto :goto_68

    .line 10
    :cond_57
    iget-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    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_68

    .line 11
    invoke-virtual {p2}, Landroid/view/View;->getBottom()I

    move-result v1

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

    add-int/2addr v1, v3

    :cond_68
    :goto_68
    const/4 v4, 0x0

    .line 12
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v3

    int-to-float v5, v3

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

    move-result v3

    int-to-float v6, v3

    int-to-float v7, v1

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

    move-object v3, p1

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 13
    :cond_7a
    iget-boolean v3, p0, Lcom/scwang/smart/refresh/layout/a;->L:Z

    if-eqz v3, :cond_88

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

    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-eq v3, v4, :cond_92

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

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

    move-result-object v3

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

    if-eqz v3, :cond_ad

    .line 14
    :cond_92
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 15
    invoke-virtual {p2}, Landroid/view/View;->getLeft()I

    move-result v0

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

    move-result v2

    invoke-virtual {p2}, Landroid/view/View;->getRight()I

    move-result v3

    invoke-virtual {p1, v0, v2, v3, v1}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    .line 16
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    move-result p2

    .line 17
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    return p2

    :cond_ac
    :goto_ac
    return v2

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

    if-eqz v1, :cond_151

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

    move-result-object v1

    if-ne v1, p2, :cond_151

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

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

    move-result v1

    if-eqz v1, :cond_150

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

    if-nez v1, :cond_cb

    invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z

    move-result v1

    if-eqz v1, :cond_cb

    goto/16 :goto_150

    :cond_cb
    if-eqz v0, :cond_151

    .line 20
    invoke-virtual {v0}, Landroid/view/View;->getBottom()I

    move-result v1

    invoke-virtual {v0}, Landroid/view/View;->getPaddingBottom()I

    move-result v0

    sub-int/2addr v1, v0

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

    add-int/2addr v1, v0

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

    move-result v0

    invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    .line 21
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->L0:I

    if-eqz v1, :cond_11e

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

    if-eqz v2, :cond_11e

    .line 22
    invoke-virtual {v2, v1}, Landroid/graphics/Paint;->setColor(I)V

    .line 23
    iget-object v1, p0, 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_fb

    .line 24
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v0

    goto :goto_10c

    .line 25
    :cond_fb
    iget-object v1, p0, 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_10c

    .line 26
    invoke-virtual {p2}, Landroid/view/View;->getTop()I

    move-result v0

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

    add-int/2addr v0, v1

    :cond_10c
    :goto_10c
    const/4 v2, 0x0

    int-to-float v3, v0

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

    move-result v1

    int-to-float v4, v1

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

    move-result v1

    int-to-float v5, v1

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

    move-object v1, p1

    invoke-virtual/range {v1 .. v6}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 28
    :cond_11e
    iget-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->M:Z

    if-eqz v1, :cond_12c

    iget-object v1, p0, 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;->d:Lcom/scwang/smart/refresh/layout/constant/c;

    if-eq v1, v2, :cond_136

    :cond_12c
    iget-object v1, p0, 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_151

    .line 29
    :cond_136
    invoke-virtual {p1}, Landroid/graphics/Canvas;->save()I

    .line 30
    invoke-virtual {p2}, Landroid/view/View;->getLeft()I

    move-result v1

    invoke-virtual {p2}, Landroid/view/View;->getRight()I

    move-result v2

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

    move-result v3

    invoke-virtual {p1, v1, v0, v2, v3}, Landroid/graphics/Canvas;->clipRect(IIII)Z

    .line 31
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    move-result p2

    .line 32
    invoke-virtual {p1}, Landroid/graphics/Canvas;->restore()V

    return p2

    :cond_150
    :goto_150
    return v2

    .line 33
    :cond_151
    invoke-super {p0, p1, p2, p3, p4}, Landroid/view/ViewGroup;->drawChild(Landroid/graphics/Canvas;Landroid/view/View;J)Z

    move-result p1

    return p1
.end method

.method public final g(IILandroid/view/animation/Interpolator;I)Landroid/animation/ValueAnimator;
    .registers 9

    .line 1
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

    const/4 v1, 0x0

    if-eq v0, p1, :cond_53

    .line 2
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    if-eqz v0, :cond_15

    const-wide/16 v2, 0x0

    .line 3
    invoke-virtual {v0, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 4
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    invoke-virtual {v0}, Landroid/animation/ValueAnimator;->cancel()V

    .line 5
    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    .line 6
    :cond_15
    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    const/4 v0, 0x2

    new-array v0, v0, [I

    const/4 v1, 0x0

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

    aput v2, v0, v1

    const/4 v1, 0x1

    aput p1, v0, v1

    invoke-static {v0}, Landroid/animation/ValueAnimator;->ofInt([I)Landroid/animation/ValueAnimator;

    move-result-object p1

    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    int-to-long v0, p4

    .line 8
    invoke-virtual {p1, v0, v1}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 9
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    invoke-virtual {p1, p3}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V

    .line 10
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    new-instance p3, Lcom/scwang/smart/refresh/layout/a$d;

    invoke-direct {p3, p0}, Lcom/scwang/smart/refresh/layout/a$d;-><init>(Lcom/scwang/smart/refresh/layout/a;)V

    invoke-virtual {p1, p3}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 11
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    new-instance p3, Lcom/scwang/smart/refresh/layout/a$e;

    invoke-direct {p3, p0}, Lcom/scwang/smart/refresh/layout/a$e;-><init>(Lcom/scwang/smart/refresh/layout/a;)V

    invoke-virtual {p1, p3}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V

    .line 12
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    int-to-long p2, p2

    invoke-virtual {p1, p2, p3}, Landroid/animation/ValueAnimator;->setStartDelay(J)V

    .line 13
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V

    .line 14
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    return-object p1

    :cond_53
    return-object v1
.end method

.method public final generateLayoutParams(Landroid/util/AttributeSet;)Landroid/view/ViewGroup$LayoutParams;
    .registers 4

    new-instance v0, Lcom/scwang/smart/refresh/layout/a$j;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1, p1}, Lcom/scwang/smart/refresh/layout/a$j;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-object v0
.end method

.method public getLayout()Landroid/view/ViewGroup;
    .registers 1

    return-object p0
.end method

.method public getNestedScrollAxes()I
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->q0:Landroidx/core/view/o;

    .line 2
    iget v1, v0, Landroidx/core/view/o;->a:I

    iget v0, v0, Landroidx/core/view/o;->b:I

    or-int/2addr v0, v1

    return v0
.end method

.method public getRefreshFooter()Lcom/scwang/smart/refresh/layout/api/c;
    .registers 3

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

    instance-of v1, v0, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v1, :cond_7

    goto :goto_8

    :cond_7
    const/4 v0, 0x0

    :goto_8
    return-object v0
.end method

.method public getRefreshHeader()Lcom/scwang/smart/refresh/layout/api/d;
    .registers 3

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

    instance-of v1, v0, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_7

    goto :goto_8

    :cond_7
    const/4 v0, 0x0

    :goto_8
    return-object v0
.end method

.method public getState()Lcom/scwang/smart/refresh/layout/constant/b;
    .registers 2

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

    return-object v0
.end method

.method public final h()Lcom/scwang/smart/refresh/layout/api/f;
    .registers 5

    .line 1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/scwang/smart/refresh/layout/a;->J0:J

    sub-long/2addr v0, v2

    long-to-int v1, v0

    const/16 v0, 0x12c

    rsub-int v1, v1, 0x12c

    const/4 v2, 0x0

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

    move-result v1

    invoke-static {v1, v0}, Ljava/lang/Math;->min(II)I

    move-result v0

    shl-int/lit8 v0, v0, 0x10

    invoke-virtual {p0, v0, v2}, Lcom/scwang/smart/refresh/layout/a;->i(IZ)Lcom/scwang/smart/refresh/layout/api/f;

    return-object p0
.end method

.method public final i(IZ)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 7

    shr-int/lit8 v0, p1, 0x10

    shl-int/lit8 p1, p1, 0x10

    shr-int/lit8 p1, p1, 0x10

    .line 1
    new-instance v1, Lcom/scwang/smart/refresh/layout/b;

    invoke-direct {v1, p0, v0, p2}, Lcom/scwang/smart/refresh/layout/b;-><init>(Lcom/scwang/smart/refresh/layout/a;IZ)V

    if-lez p1, :cond_14

    .line 2
    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;

    int-to-long v2, p1

    invoke-virtual {p2, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_17

    .line 3
    :cond_14
    invoke-virtual {v1}, Lcom/scwang/smart/refresh/layout/b;->run()V

    :goto_17
    return-object p0
.end method

.method public final isNestedScrollingEnabled()Z
    .registers 2

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

    if-eqz v0, :cond_12

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

    if-nez v0, :cond_10

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

    if-nez v0, :cond_10

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

    if-eqz v0, :cond_12

    :cond_10
    const/4 v0, 0x1

    goto :goto_13

    :cond_12
    const/4 v0, 0x0

    :goto_13
    return v0
.end method

.method public final j()Lcom/scwang/smart/refresh/layout/api/f;
    .registers 6

    const/4 v0, 0x0

    .line 1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iget-wide v3, p0, Lcom/scwang/smart/refresh/layout/a;->J0:J

    sub-long/2addr v1, v3

    long-to-int v2, v1

    const/16 v1, 0x12c

    rsub-int v2, v2, 0x12c

    .line 2
    invoke-static {v0, v2}, Ljava/lang/Math;->max(II)I

    move-result v0

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    shl-int/lit8 v0, v0, 0x10

    const/4 v1, 0x1

    .line 3
    sget-object v2, Ljava/lang/Boolean;->FALSE:Ljava/lang/Boolean;

    invoke-virtual {p0, v0, v1, v2}, Lcom/scwang/smart/refresh/layout/a;->k(IZLjava/lang/Boolean;)Lcom/scwang/smart/refresh/layout/api/f;

    return-object p0
.end method

.method public final k(IZLjava/lang/Boolean;)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 8

    shr-int/lit8 v0, p1, 0x10

    shl-int/lit8 p1, p1, 0x10

    shr-int/lit8 p1, p1, 0x10

    .line 1
    new-instance v1, Lcom/scwang/smart/refresh/layout/a$g;

    invoke-direct {v1, p0, v0, p3, p2}, Lcom/scwang/smart/refresh/layout/a$g;-><init>(Lcom/scwang/smart/refresh/layout/a;ILjava/lang/Boolean;Z)V

    if-lez p1, :cond_14

    .line 2
    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;

    int-to-long v2, p1

    invoke-virtual {p2, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_17

    .line 3
    :cond_14
    invoke-virtual {v1}, Lcom/scwang/smart/refresh/layout/a$g;->run()V

    :goto_17
    return-object p0
.end method

.method public final l(I)Z
    .registers 6

    const/4 v0, 0x1

    if-nez p1, :cond_44

    .line 1
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    const/4 v1, 0x0

    if-eqz p1, :cond_42

    .line 2
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    if-nez v2, :cond_41

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

    if-eq p1, v2, :cond_41

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

    if-eq p1, v2, :cond_41

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

    if-ne p1, v2, :cond_1b

    goto :goto_41

    .line 3
    :cond_1b
    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownCanceled:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne p1, v2, :cond_27

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

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

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

    goto :goto_32

    .line 5
    :cond_27
    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpCanceled:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne p1, v2, :cond_32

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

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

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

    .line 7
    :cond_32
    :goto_32
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    const-wide/16 v2, 0x0

    invoke-virtual {p1, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 8
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    invoke-virtual {p1}, Landroid/animation/ValueAnimator;->cancel()V

    .line 9
    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    goto :goto_42

    :cond_41
    :goto_41
    return v0

    .line 10
    :cond_42
    :goto_42
    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    .line 11
    :cond_44
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    if-eqz p1, :cond_49

    goto :goto_4a

    :cond_49
    const/4 v0, 0x0

    :goto_4a
    return v0
.end method

.method public final m(Z)Z
    .registers 2

    if-eqz p1, :cond_8

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

    if-nez p1, :cond_8

    const/4 p1, 0x1

    goto :goto_9

    :cond_8
    const/4 p1, 0x0

    :goto_9
    return p1
.end method

.method public final n(ZLcom/scwang/smart/refresh/layout/api/a;)Z
    .registers 3

    if-nez p1, :cond_13

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

    if-nez p1, :cond_13

    if-eqz p2, :cond_13

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

    move-result-object p1

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

    if-ne p1, p2, :cond_11

    goto :goto_13

    :cond_11
    const/4 p1, 0x0

    goto :goto_14

    :cond_13
    :goto_13
    const/4 p1, 0x1

    :goto_14
    return p1
.end method

.method public final o(F)V
    .registers 19

    move-object/from16 v0, p0

    .line 1
    iget-boolean v1, v0, Lcom/scwang/smart/refresh/layout/a;->n0:Z

    const/4 v2, 0x0

    if-eqz v1, :cond_19

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

    if-nez v1, :cond_19

    cmpg-float v1, p1, v2

    if-gez v1, :cond_19

    .line 2
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

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

    move-result v1

    if-nez v1, :cond_19

    const/4 v1, 0x0

    goto :goto_1b

    :cond_19
    move/from16 v1, p1

    .line 3
    :goto_1b
    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->g:I

    mul-int/lit8 v3, v3, 0x5

    int-to-float v3, v3

    const/4 v4, 0x0

    cmpl-float v3, v1, v3

    if-lez v3, :cond_5a

    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v3

    if-nez v3, :cond_5a

    const v3, 0x7f0a08e0

    invoke-virtual {v0, v3}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v5

    if-nez v5, :cond_5a

    iget v5, v0, Lcom/scwang/smart/refresh/layout/a;->k:F

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

    int-to-float v6, v6

    const/high16 v7, 0x40c00000    # 6.0f

    div-float v7, v6, v7

    cmpg-float v5, v5, v7

    if-gez v5, :cond_5a

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

    const/high16 v7, 0x41800000    # 16.0f

    div-float/2addr v6, v7

    cmpg-float v5, v5, v6

    if-gez v5, :cond_5a

    const-string v5, "\u4f60\u8fd9\u4e48\u6b7b\u62c9\uff0c\u81e3\u59be\u505a\u4e0d\u5230\u554a\uff01"

    .line 4
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v6

    invoke-static {v6, v5, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v6

    invoke-virtual {v6}, Landroid/widget/Toast;->show()V

    .line 5
    invoke-virtual {v0, v3, v5}, Landroid/view/View;->setTag(ILjava/lang/Object;)V

    .line 6
    :cond_5a
    iget-object v3, v0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    sget-object v5, Lcom/scwang/smart/refresh/layout/constant/b;->TwoLevel:Lcom/scwang/smart/refresh/layout/constant/b;

    const/4 v6, 0x1

    if-ne v3, v5, :cond_75

    cmpl-float v5, v1, v2

    if-lez v5, :cond_75

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

    float-to-int v5, v1

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

    move-result v7

    invoke-static {v5, v7}, Ljava/lang/Math;->min(II)I

    move-result v5

    invoke-virtual {v3, v5, v6}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    goto/16 :goto_1d0

    .line 8
    :cond_75
    sget-object v5, Lcom/scwang/smart/refresh/layout/constant/b;->Refreshing:Lcom/scwang/smart/refresh/layout/constant/b;

    const/high16 v7, 0x3f800000    # 1.0f

    const-wide/16 v8, 0x0

    const-wide/high16 v10, 0x4059000000000000L    # 100.0

    const-wide/high16 v12, 0x3ff0000000000000L    # 1.0

    if-ne v3, v5, :cond_d6

    cmpl-float v5, v1, v2

    if-ltz v5, :cond_d6

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

    int-to-float v3, v3

    cmpg-float v5, v1, v3

    if-gez v5, :cond_94

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

    float-to-int v5, v1

    invoke-virtual {v3, v5, v6}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    goto/16 :goto_1d0

    .line 11
    :cond_94
    iget v5, v0, Lcom/scwang/smart/refresh/layout/a;->x0:F

    sub-float/2addr v5, v7

    mul-float v5, v5, v3

    float-to-double v14, v5

    .line 12
    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->g:I

    mul-int/lit8 v3, v3, 0x4

    div-int/lit8 v3, v3, 0x3

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

    move-result v5

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

    move-result v3

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

    sub-int/2addr v3, v5

    int-to-double v6, v3

    int-to-float v3, v5

    sub-float v3, v1, v3

    .line 13
    iget v5, v0, Lcom/scwang/smart/refresh/layout/a;->l:F

    mul-float v3, v3, v5

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

    move-result v3

    float-to-double v4, v3

    neg-double v2, v4

    cmpl-double v16, v6, v8

    if-nez v16, :cond_be

    move-wide v6, v12

    :cond_be
    div-double/2addr v2, v6

    .line 14
    invoke-static {v10, v11, v2, v3}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v2

    sub-double/2addr v12, v2

    mul-double v12, v12, v14

    invoke-static {v12, v13, v4, v5}, Ljava/lang/Math;->min(DD)D

    move-result-wide v2

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

    double-to-int v2, v2

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

    add-int/2addr v2, v3

    const/4 v3, 0x1

    invoke-virtual {v4, v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    goto/16 :goto_1d0

    :cond_d6
    cmpg-float v4, v1, v2

    if-gez v4, :cond_158

    .line 16
    sget-object v2, Lcom/scwang/smart/refresh/layout/constant/b;->Loading:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v3, v2, :cond_102

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

    if-eqz v2, :cond_f2

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

    if-eqz v2, :cond_f2

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

    if-eqz v2, :cond_f2

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

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

    move-result v2

    if-nez v2, :cond_102

    :cond_f2
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    if-eqz v2, :cond_158

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

    if-nez v2, :cond_158

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

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

    move-result v2

    if-eqz v2, :cond_158

    .line 19
    :cond_102
    iget v2, v0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    neg-int v3, v2

    int-to-float v3, v3

    cmpl-float v3, v1, v3

    if-lez v3, :cond_113

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

    float-to-int v3, v1

    const/4 v4, 0x1

    invoke-virtual {v2, v3, v4}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    goto/16 :goto_1d0

    .line 21
    :cond_113
    iget v3, v0, Lcom/scwang/smart/refresh/layout/a;->y0:F

    sub-float/2addr v3, v7

    int-to-float v2, v2

    mul-float v3, v3, v2

    float-to-double v2, v3

    .line 22
    iget v4, v0, Lcom/scwang/smart/refresh/layout/a;->g:I

    mul-int/lit8 v4, v4, 0x4

    div-int/lit8 v4, v4, 0x3

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

    move-result v5

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

    move-result v4

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

    sub-int/2addr v4, v5

    int-to-double v6, v4

    int-to-float v4, v5

    add-float/2addr v4, v1

    .line 23
    iget v5, v0, Lcom/scwang/smart/refresh/layout/a;->l:F

    mul-float v4, v4, v5

    const/4 v5, 0x0

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

    move-result v4

    neg-float v4, v4

    float-to-double v4, v4

    neg-double v14, v4

    cmpl-double v16, v6, v8

    if-nez v16, :cond_13f

    move-wide v6, v12

    :cond_13f
    div-double/2addr v14, v6

    .line 24
    invoke-static {v10, v11, v14, v15}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v6

    sub-double/2addr v12, v6

    mul-double v12, v12, v2

    invoke-static {v12, v13, v4, v5}, Ljava/lang/Math;->min(DD)D

    move-result-wide v2

    neg-double v2, v2

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

    double-to-int v2, v2

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

    sub-int/2addr v2, v3

    const/4 v3, 0x1

    invoke-virtual {v4, v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    goto/16 :goto_1d0

    :cond_158
    const/4 v2, 0x0

    cmpl-float v3, v1, v2

    if-ltz v3, :cond_196

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

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

    int-to-float v3, v3

    mul-float v2, v2, v3

    float-to-double v2, v2

    .line 27
    iget v4, v0, Lcom/scwang/smart/refresh/layout/a;->g:I

    div-int/lit8 v4, v4, 0x2

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

    move-result v5

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

    move-result v4

    int-to-double v4, v4

    .line 28
    iget v6, v0, Lcom/scwang/smart/refresh/layout/a;->l:F

    mul-float v6, v6, v1

    const/4 v7, 0x0

    invoke-static {v7, v6}, Ljava/lang/Math;->max(FF)F

    move-result v6

    float-to-double v6, v6

    neg-double v14, v6

    cmpl-double v16, v4, v8

    if-nez v16, :cond_182

    move-wide v4, v12

    :cond_182
    div-double/2addr v14, v4

    .line 29
    invoke-static {v10, v11, v14, v15}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v4

    sub-double/2addr v12, v4

    mul-double v12, v12, v2

    invoke-static {v12, v13, v6, v7}, Ljava/lang/Math;->min(DD)D

    move-result-wide v2

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

    double-to-int v2, v2

    const/4 v3, 0x1

    invoke-virtual {v4, v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    goto :goto_1d0

    .line 31
    :cond_196
    iget v2, v0, Lcom/scwang/smart/refresh/layout/a;->y0:F

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

    int-to-float v3, v3

    mul-float v2, v2, v3

    float-to-double v2, v2

    .line 32
    iget v4, v0, Lcom/scwang/smart/refresh/layout/a;->g:I

    div-int/lit8 v4, v4, 0x2

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

    move-result v5

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

    move-result v4

    int-to-double v4, v4

    .line 33
    iget v6, v0, Lcom/scwang/smart/refresh/layout/a;->l:F

    mul-float v6, v6, v1

    const/4 v7, 0x0

    invoke-static {v7, v6}, Ljava/lang/Math;->min(FF)F

    move-result v6

    neg-float v6, v6

    float-to-double v6, v6

    neg-double v14, v6

    cmpl-double v16, v4, v8

    if-nez v16, :cond_1bc

    move-wide v4, v12

    :cond_1bc
    div-double/2addr v14, v4

    .line 34
    invoke-static {v10, v11, v14, v15}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v4

    sub-double/2addr v12, v4

    mul-double v12, v12, v2

    invoke-static {v12, v13, v6, v7}, Ljava/lang/Math;->min(DD)D

    move-result-wide v2

    neg-double v2, v2

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

    double-to-int v2, v2

    const/4 v3, 0x1

    invoke-virtual {v4, v2, v3}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

    .line 36
    :goto_1d0
    iget-boolean v2, v0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    if-eqz v2, :cond_213

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

    if-nez v2, :cond_213

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

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

    move-result v2

    if-eqz v2, :cond_213

    const/4 v2, 0x0

    cmpg-float v1, v1, v2

    if-gez v1, :cond_213

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

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

    if-eq v1, v2, :cond_213

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

    if-eq v1, v2, :cond_213

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

    if-eq v1, v2, :cond_213

    .line 37
    iget-boolean v1, v0, Lcom/scwang/smart/refresh/layout/a;->d0:Z

    if-eqz v1, :cond_202

    const/4 v1, 0x0

    .line 38
    iput-object v1, v0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

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

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

    neg-int v2, v2

    invoke-virtual {v1, v2}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    :cond_202
    const/4 v1, 0x0

    .line 40
    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a;->setStateDirectLoading(Z)V

    .line 41
    iget-object v1, v0, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;

    new-instance v2, Lcom/scwang/smart/refresh/layout/a$f;

    invoke-direct {v2, v0}, Lcom/scwang/smart/refresh/layout/a$f;-><init>(Lcom/scwang/smart/refresh/layout/a;)V

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

    int-to-long v3, v3

    invoke-virtual {v1, v2, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :cond_213
    return-void
.end method

.method public onAttachedToWindow()V
    .registers 7

    .line 1
    invoke-super {p0}, Landroid/view/ViewGroup;->onAttachedToWindow()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->M0:Z

    .line 3
    invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z

    move-result v1

    if-nez v1, :cond_db

    .line 4
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    const/4 v2, 0x0

    if-nez v1, :cond_1f

    .line 5
    sget-object v1, Lcom/scwang/smart/refresh/layout/a;->T0:Lcom/scwang/smart/refresh/layout/listener/c;

    if-eqz v1, :cond_1f

    .line 6
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

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

    move-result-object v1

    .line 7
    invoke-virtual {p0, v1, v2, v2}, Lcom/scwang/smart/refresh/layout/a;->v(Lcom/scwang/smart/refresh/layout/api/d;II)Lcom/scwang/smart/refresh/layout/api/f;

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

    if-nez v1, :cond_32

    .line 9
    sget-object v0, Lcom/scwang/smart/refresh/layout/a;->S0:Lcom/scwang/smart/refresh/layout/listener/b;

    if-eqz v0, :cond_3e

    .line 10
    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    invoke-interface {v0}, Lcom/scwang/smart/refresh/layout/listener/b;->a()Lcom/scwang/smart/refresh/layout/api/c;

    move-result-object v0

    .line 11
    invoke-virtual {p0, v0, v2, v2}, Lcom/scwang/smart/refresh/layout/a;->u(Lcom/scwang/smart/refresh/layout/api/c;II)Lcom/scwang/smart/refresh/layout/api/f;

    goto :goto_3e

    .line 12
    :cond_32
    iget-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    if-nez v1, :cond_3c

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

    if-nez v1, :cond_3b

    goto :goto_3c

    :cond_3b
    const/4 v0, 0x0

    :cond_3c
    :goto_3c
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    .line 13
    :cond_3e
    :goto_3e
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    if-nez v0, :cond_6b

    .line 14
    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x0

    :goto_47
    if-ge v1, v0, :cond_6b

    .line 15
    invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v3

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

    if-eqz v4, :cond_57

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

    move-result-object v4

    if-eq v3, v4, :cond_68

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

    if-eqz v4, :cond_61

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

    move-result-object v4

    if-eq v3, v4, :cond_68

    .line 18
    :cond_61
    new-instance v4, Lcom/scwang/smart/refresh/layout/wrapper/a;

    invoke-direct {v4, v3}, Lcom/scwang/smart/refresh/layout/wrapper/a;-><init>(Landroid/view/View;)V

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

    :cond_68
    add-int/lit8 v1, v1, 0x1

    goto :goto_47

    .line 19
    :cond_6b
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    if-nez v0, :cond_a7

    const/high16 v0, 0x41a00000    # 20.0f

    .line 20
    invoke-static {v0}, Lcom/scwang/smart/refresh/layout/util/b;->c(F)I

    move-result v1

    .line 21
    new-instance v3, Landroid/widget/TextView;

    invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    const v4, -0x9a00

    .line 22
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextColor(I)V

    const/16 v4, 0x11

    .line 23
    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setGravity(I)V

    .line 24
    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setTextSize(F)V

    const v0, 0x7f121121

    .line 25
    invoke-virtual {v3, v0}, Landroid/widget/TextView;->setText(I)V

    .line 26
    new-instance v0, Lcom/scwang/smart/refresh/layout/a$j;

    const/4 v4, -0x1

    invoke-direct {v0, v4, v4}, Lcom/scwang/smart/refresh/layout/a$j;-><init>(II)V

    invoke-super {p0, v3, v2, v0}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 27
    new-instance v0, Lcom/scwang/smart/refresh/layout/wrapper/a;

    invoke-direct {v0, v3}, Lcom/scwang/smart/refresh/layout/wrapper/a;-><init>(Landroid/view/View;)V

    iput-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    .line 28
    iget-object v0, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    .line 29
    invoke-virtual {v0, v1, v1, v1, v1}, Landroid/view/View;->setPadding(IIII)V

    .line 30
    :cond_a7
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->q:I

    invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 31
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->r:I

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

    move-result-object v1

    .line 32
    iget-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    iget-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->l0:Lcom/scwang/smart/refresh/layout/simple/a;

    invoke-virtual {v3, v4}, Lcom/scwang/smart/refresh/layout/wrapper/a;->f(Lcom/scwang/smart/refresh/layout/simple/a;)V

    .line 33
    iget-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

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

    .line 34
    iget-object v5, v3, Lcom/scwang/smart/refresh/layout/wrapper/a;->i:Lcom/scwang/smart/refresh/layout/simple/a;

    iput-boolean v4, v5, Lcom/scwang/smart/refresh/layout/simple/a;->c:Z

    .line 35
    iget-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;

    invoke-virtual {v3, v4, v0, v1}, Lcom/scwang/smart/refresh/layout/wrapper/a;->g(Lcom/scwang/smart/refresh/layout/api/e;Landroid/view/View;Landroid/view/View;)V

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

    if-eqz v0, :cond_db

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

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

    .line 38
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

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

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

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

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

    .line 39
    :cond_db
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    if-eqz v0, :cond_ef

    .line 40
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_e6

    .line 41
    invoke-interface {v1, v0}, Lcom/scwang/smart/refresh/layout/api/a;->setPrimaryColors([I)V

    .line 42
    :cond_e6
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v0, :cond_ef

    .line 43
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    invoke-interface {v0, v1}, Lcom/scwang/smart/refresh/layout/api/a;->setPrimaryColors([I)V

    .line 44
    :cond_ef
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    if-eqz v0, :cond_f8

    .line 45
    iget-object v0, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    .line 46
    invoke-super {p0, v0}, Landroid/view/ViewGroup;->bringChildToFront(Landroid/view/View;)V

    .line 47
    :cond_f8
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v0, :cond_10d

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

    move-result-object v0

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

    if-eqz v0, :cond_10d

    .line 48
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object v0

    invoke-super {p0, v0}, Landroid/view/ViewGroup;->bringChildToFront(Landroid/view/View;)V

    .line 49
    :cond_10d
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v0, :cond_122

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

    move-result-object v0

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

    if-eqz v0, :cond_122

    .line 50
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object v0

    invoke-super {p0, v0}, Landroid/view/ViewGroup;->bringChildToFront(Landroid/view/View;)V

    :cond_122
    return-void
.end method

.method public final onDetachedFromWindow()V
    .registers 7

    .line 1
    invoke-super {p0}, Landroid/view/ViewGroup;->onDetachedFromWindow()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->M0:Z

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

    const/4 v2, 0x1

    invoke-virtual {v1, v0, v2}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

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

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

    .line 5
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;

    const/4 v3, 0x0

    if-eqz v1, :cond_19

    .line 6
    invoke-virtual {v1, v3}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 7
    :cond_19
    iput-boolean v2, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    .line 8
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    .line 9
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    if-eqz v1, :cond_37

    .line 10
    invoke-virtual {v1}, Landroid/animation/Animator;->removeAllListeners()V

    .line 11
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    invoke-virtual {v1}, Landroid/animation/ValueAnimator;->removeAllUpdateListeners()V

    .line 12
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    const-wide/16 v4, 0x0

    invoke-virtual {v1, v4, v5}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    .line 13
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    invoke-virtual {v1}, Landroid/animation/ValueAnimator;->cancel()V

    .line 14
    iput-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    .line 15
    :cond_37
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    return-void
.end method

.method public final onFinishInflate()V
    .registers 12

    .line 1
    invoke-super {p0}, Landroid/view/View;->onFinishInflate()V

    .line 2
    invoke-super {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v0

    const/4 v1, 0x3

    if-gt v0, v1, :cond_9e

    const/4 v2, -0x1

    const/4 v3, 0x0

    const/4 v4, 0x0

    const/4 v5, -0x1

    const/4 v6, 0x0

    :goto_f
    const/4 v7, 0x2

    const/4 v8, 0x1

    if-ge v4, v0, :cond_33

    .line 3
    invoke-super {p0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v9

    .line 4
    invoke-static {v9}, Lcom/scwang/smart/refresh/layout/util/b;->d(Landroid/view/View;)Z

    move-result v10

    if-eqz v10, :cond_24

    if-lt v6, v7, :cond_21

    if-ne v4, v8, :cond_24

    :cond_21
    move v5, v4

    const/4 v6, 0x2

    goto :goto_30

    .line 5
    :cond_24
    instance-of v7, v9, Lcom/scwang/smart/refresh/layout/api/a;

    if-nez v7, :cond_30

    if-ge v6, v8, :cond_30

    if-lez v4, :cond_2e

    const/4 v6, 0x1

    goto :goto_2f

    :cond_2e
    const/4 v6, 0x0

    :goto_2f
    move v5, v4

    :cond_30
    :goto_30
    add-int/lit8 v4, v4, 0x1

    goto :goto_f

    :cond_33
    if-ltz v5, :cond_4d

    .line 6
    new-instance v4, Lcom/scwang/smart/refresh/layout/wrapper/a;

    invoke-super {p0, v5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v6

    invoke-direct {v4, v6}, Lcom/scwang/smart/refresh/layout/wrapper/a;-><init>(Landroid/view/View;)V

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

    if-ne v5, v8, :cond_48

    if-ne v0, v1, :cond_46

    const/4 v1, 0x0

    goto :goto_4f

    :cond_46
    const/4 v1, 0x0

    goto :goto_4e

    :cond_48
    if-ne v0, v7, :cond_4d

    const/4 v1, -0x1

    const/4 v7, 0x1

    goto :goto_4f

    :cond_4d
    const/4 v1, -0x1

    :goto_4e
    const/4 v7, -0x1

    :goto_4f
    const/4 v4, 0x0

    :goto_50
    if-ge v4, v0, :cond_9d

    .line 7
    invoke-super {p0, v4}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v5

    if-eq v4, v1, :cond_8b

    if-eq v4, v7, :cond_65

    if-ne v1, v2, :cond_65

    .line 8
    iget-object v6, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-nez v6, :cond_65

    instance-of v6, v5, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v6, :cond_65

    goto :goto_8b

    :cond_65
    if-eq v4, v7, :cond_6d

    if-ne v7, v2, :cond_9a

    .line 9
    instance-of v6, v5, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v6, :cond_9a

    .line 10
    :cond_6d
    iget-boolean v6, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    if-nez v6, :cond_78

    iget-boolean v6, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    if-nez v6, :cond_76

    goto :goto_78

    :cond_76
    const/4 v6, 0x0

    goto :goto_79

    :cond_78
    :goto_78
    const/4 v6, 0x1

    :goto_79
    iput-boolean v6, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    .line 11
    instance-of v6, v5, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v6, :cond_82

    check-cast v5, Lcom/scwang/smart/refresh/layout/api/c;

    goto :goto_88

    :cond_82
    new-instance v6, Lcom/scwang/smart/refresh/layout/wrapper/b;

    invoke-direct {v6, v5}, Lcom/scwang/smart/refresh/layout/wrapper/b;-><init>(Landroid/view/View;)V

    move-object v5, v6

    :goto_88
    iput-object v5, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    goto :goto_9a

    .line 12
    :cond_8b
    :goto_8b
    instance-of v6, v5, Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v6, :cond_92

    check-cast v5, Lcom/scwang/smart/refresh/layout/api/d;

    goto :goto_98

    :cond_92
    new-instance v6, Lcom/scwang/smart/refresh/layout/wrapper/c;

    invoke-direct {v6, v5}, Lcom/scwang/smart/refresh/layout/wrapper/c;-><init>(Landroid/view/View;)V

    move-object v5, v6

    :goto_98
    iput-object v5, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    :cond_9a
    :goto_9a
    add-int/lit8 v4, v4, 0x1

    goto :goto_50

    :cond_9d
    return-void

    .line 13
    :cond_9e
    new-instance v0, Ljava/lang/RuntimeException;

    const-string v1, "\u6700\u591a\u53ea\u652f\u63013\u4e2a\u5b50View\uff0cMost only support three sub view"

    invoke-direct {v0, v1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method public onLayout(ZIIII)V
    .registers 15

    .line 1
    invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I

    move-result p1

    .line 2
    invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I

    move-result p2

    .line 3
    invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I

    .line 4
    invoke-super {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result p3

    const/4 p4, 0x0

    const/4 p5, 0x0

    :goto_11
    if-ge p5, p3, :cond_1a0

    .line 5
    invoke-super {p0, p5}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v0

    .line 6
    invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

    move-result v1

    const/16 v2, 0x8

    if-eq v1, v2, :cond_19c

    const v1, 0x7f0a08e0

    invoke-virtual {v0, v1}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v1

    const-string v2, "GONE"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_30

    goto/16 :goto_19c

    .line 7
    :cond_30
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    const/4 v2, 0x1

    if-eqz v1, :cond_86

    .line 8
    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    if-ne v1, v0, :cond_86

    .line 9
    invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z

    move-result v1

    if-eqz v1, :cond_51

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

    if-eqz v1, :cond_51

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

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

    move-result v1

    if-eqz v1, :cond_51

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

    if-eqz v1, :cond_51

    const/4 v1, 0x1

    goto :goto_52

    :cond_51
    const/4 v1, 0x0

    .line 10
    :goto_52
    iget-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    .line 11
    iget-object v3, v3, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

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

    move-result-object v4

    .line 13
    instance-of v5, v4, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v5, :cond_61

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

    goto :goto_63

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

    .line 14
    :goto_63
    iget v5, v4, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    add-int/2addr v5, p1

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

    add-int/2addr v4, p2

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

    move-result v6

    add-int/2addr v6, v5

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

    move-result v7

    add-int/2addr v7, v4

    if-eqz v1, :cond_83

    .line 18
    iget-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->N:Z

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

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

    move-result v1

    if-eqz v1, :cond_83

    .line 19
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    add-int/2addr v4, v1

    add-int/2addr v7, v1

    .line 20
    :cond_83
    invoke-virtual {v3, v5, v4, v6, v7}, Landroid/view/View;->layout(IIII)V

    .line 21
    :cond_86
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_dc

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

    move-result-object v1

    if-ne v1, v0, :cond_dc

    .line 22
    invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z

    move-result v1

    if-eqz v1, :cond_a4

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

    if-eqz v1, :cond_a4

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

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

    move-result v1

    if-eqz v1, :cond_a4

    const/4 v1, 0x1

    goto :goto_a5

    :cond_a4
    const/4 v1, 0x0

    .line 23
    :goto_a5
    iget-object v3, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object v3

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

    move-result-object v4

    .line 25
    instance-of v5, v4, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v5, :cond_b6

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

    goto :goto_b8

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

    .line 26
    :goto_b8
    iget v5, v4, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

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

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

    add-int/2addr v4, v6

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

    move-result v6

    add-int/2addr v6, v5

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

    move-result v7

    add-int/2addr v7, v4

    if-nez v1, :cond_d9

    .line 30
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object v1

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

    if-ne v1, v8, :cond_d9

    .line 31
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    sub-int/2addr v4, v1

    sub-int/2addr v7, v1

    .line 32
    :cond_d9
    invoke-virtual {v3, v5, v4, v6, v7}, Landroid/view/View;->layout(IIII)V

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

    if-eqz v1, :cond_19c

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

    move-result-object v1

    if-ne v1, v0, :cond_19c

    .line 34
    invoke-virtual {p0}, Landroid/view/View;->isInEditMode()Z

    move-result v0

    if-eqz v0, :cond_f9

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

    if-eqz v0, :cond_f9

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

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

    move-result v0

    if-eqz v0, :cond_f9

    goto :goto_fa

    :cond_f9
    const/4 v2, 0x0

    .line 35
    :goto_fa
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object v0

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

    move-result-object v1

    .line 37
    instance-of v3, v1, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v3, :cond_10b

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

    goto :goto_10d

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

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

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

    move-result-object v3

    .line 39
    iget v4, v1, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    .line 40
    iget v5, v1, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

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

    move-result v6

    add-int/2addr v6, v5

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

    sub-int/2addr v6, v5

    .line 41
    iget-boolean v5, p0, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eqz v5, :cond_15c

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

    if-eqz v5, :cond_15c

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

    if-eqz v5, :cond_15c

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

    if-eqz v5, :cond_15c

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

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

    move-result-object v5

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

    if-ne v5, v7, :cond_15c

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

    .line 43
    invoke-virtual {p0, v5}, Lcom/scwang/smart/refresh/layout/a;->m(Z)Z

    move-result v5

    if-eqz v5, :cond_15c

    .line 44
    iget-object v5, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    .line 45
    iget-object v5, v5, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

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

    move-result-object v6

    .line 47
    instance-of v7, v6, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v7, :cond_152

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

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

    goto :goto_153

    :cond_152
    const/4 v6, 0x0

    :goto_153
    add-int v7, p2, p2

    add-int/2addr v7, v6

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

    move-result v5

    add-int v6, v5, v7

    .line 49
    :cond_15c
    sget-object v5, Lcom/scwang/smart/refresh/layout/constant/c;->f:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v3, v5, :cond_167

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

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

    sub-int v6, v1, v2

    goto :goto_18f

    :cond_167
    if-nez v2, :cond_18c

    .line 51
    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/c;->e:Lcom/scwang/smart/refresh/layout/constant/c;

    if-eq v3, v1, :cond_18c

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

    if-ne v3, v1, :cond_172

    goto :goto_18c

    .line 52
    :cond_172
    iget-boolean v1, v3, Lcom/scwang/smart/refresh/layout/constant/c;->b:Z

    if-eqz v1, :cond_18f

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

    if-gez v1, :cond_18f

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

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

    move-result v1

    if-eqz v1, :cond_186

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

    neg-int v1, v1

    goto :goto_187

    :cond_186
    const/4 v1, 0x0

    :goto_187
    invoke-static {v1, p4}, Ljava/lang/Math;->max(II)I

    move-result v1

    goto :goto_18e

    .line 54
    :cond_18c
    :goto_18c
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    :goto_18e
    sub-int/2addr v6, v1

    .line 55
    :cond_18f
    :goto_18f
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v1

    add-int/2addr v1, v4

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

    move-result v2

    add-int/2addr v2, v6

    .line 57
    invoke-virtual {v0, v4, v6, v1, v2}, Landroid/view/View;->layout(IIII)V

    :cond_19c
    :goto_19c
    add-int/lit8 p5, p5, 0x1

    goto/16 :goto_11

    :cond_1a0
    return-void
.end method

.method public onMeasure(II)V
    .registers 20

    move-object/from16 v0, p0

    move/from16 v1, p1

    move/from16 v2, p2

    .line 1
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->isInEditMode()Z

    move-result v3

    if-eqz v3, :cond_12

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

    if-eqz v3, :cond_12

    const/4 v3, 0x1

    goto :goto_13

    :cond_12
    const/4 v3, 0x0

    .line 2
    :goto_13
    invoke-super/range {p0 .. p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result v6

    const/4 v7, 0x0

    const/4 v8, 0x0

    :goto_19
    if-ge v7, v6, :cond_2fa

    .line 3
    invoke-super {v0, v7}, Landroid/view/ViewGroup;->getChildAt(I)Landroid/view/View;

    move-result-object v9

    .line 4
    invoke-virtual {v9}, Landroid/view/View;->getVisibility()I

    move-result v10

    const/16 v11, 0x8

    if-eq v10, v11, :cond_2f4

    const v10, 0x7f0a08e0

    invoke-virtual {v9, v10}, Landroid/view/View;->getTag(I)Ljava/lang/Object;

    move-result-object v10

    const-string v11, "GONE"

    invoke-virtual {v11, v10}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_38

    goto/16 :goto_2f4

    .line 5
    :cond_38
    iget-object v10, v0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    const/4 v11, 0x6

    if-eqz v10, :cond_14a

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

    move-result-object v10

    if-ne v10, v9, :cond_14a

    .line 6
    iget-object v10, v0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object v10

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

    move-result-object v4

    .line 8
    instance-of v12, v4, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v12, :cond_55

    move-object v12, v4

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

    goto :goto_57

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

    .line 9
    :goto_57
    iget v15, v12, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    iget v13, v12, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    add-int/2addr v15, v13

    iget v13, v4, Landroid/view/ViewGroup$LayoutParams;->width:I

    invoke-static {v1, v15, v13}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I

    move-result v13

    .line 10
    iget v15, v0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    .line 11
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

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

    if-ge v14, v11, :cond_d2

    .line 12
    iget v14, v4, Landroid/view/ViewGroup$LayoutParams;->height:I

    if-lez v14, :cond_89

    .line 13
    iget v15, v12, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v14, v15

    iget v15, v12, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v14, v15

    .line 14
    sget-object v15, Lcom/scwang/smart/refresh/layout/constant/a;->e:Lcom/scwang/smart/refresh/layout/constant/a;

    invoke-virtual {v5, v15}, Lcom/scwang/smart/refresh/layout/constant/a;->a(Lcom/scwang/smart/refresh/layout/constant/a;)Z

    move-result v5

    if-eqz v5, :cond_d3

    .line 15
    iget v4, v4, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget v5, v12, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v4, v5

    iget v5, v12, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v4, v5

    iput v4, v0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    .line 16
    iput-object v15, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    goto :goto_d3

    :cond_89
    const/4 v4, -0x2

    if-ne v14, v4, :cond_d2

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

    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;->f:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v4, v5, :cond_9c

    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

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

    if-nez v4, :cond_d2

    .line 18
    :cond_9c
    invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v4

    iget v5, v12, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int/2addr v4, v5

    iget v5, v12, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    sub-int/2addr v4, v5

    const/4 v5, 0x0

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

    move-result v4

    const/high16 v5, -0x80000000

    .line 19
    invoke-static {v4, v5}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v14

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

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

    move-result v5

    if-lez v5, :cond_d2

    if-eq v5, v4, :cond_d0

    .line 21
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    sget-object v14, Lcom/scwang/smart/refresh/layout/constant/a;->d:Lcom/scwang/smart/refresh/layout/constant/a;

    invoke-virtual {v4, v14}, Lcom/scwang/smart/refresh/layout/constant/a;->a(Lcom/scwang/smart/refresh/layout/constant/a;)Z

    move-result v4

    if-eqz v4, :cond_d0

    .line 22
    iget v4, v12, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v5, v4

    iget v4, v12, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v5, v4

    iput v5, v0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    .line 23
    iput-object v14, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    :cond_d0
    const/4 v14, -0x1

    goto :goto_d3

    :cond_d2
    move v14, v15

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

    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;->f:Lcom/scwang/smart/refresh/layout/constant/c;

    if-ne v4, v5, :cond_e4

    .line 25
    invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v4

    const/4 v5, 0x0

    :goto_e2
    const/4 v14, -0x1

    goto :goto_105

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

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

    move-result-object v4

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

    if-eqz v4, :cond_102

    if-nez v3, :cond_102

    .line 27
    iget-boolean v4, v0, Lcom/scwang/smart/refresh/layout/a;->B:Z

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

    move-result v4

    if-eqz v4, :cond_fb

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

    goto :goto_fc

    :cond_fb
    const/4 v4, 0x0

    :goto_fc
    const/4 v5, 0x0

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

    move-result v14

    goto :goto_103

    :cond_102
    const/4 v5, 0x0

    :goto_103
    move v4, v14

    goto :goto_e2

    :goto_105
    if-eq v4, v14, :cond_11a

    .line 28
    iget v14, v12, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int/2addr v4, v14

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

    sub-int/2addr v4, v12

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

    move-result v4

    const/high16 v5, 0x40000000    # 2.0f

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

    move-result v4

    invoke-virtual {v10, v13, v4}, Landroid/view/View;->measure(II)V

    .line 29
    :cond_11a
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

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

    if-nez v5, :cond_13b

    if-nez v5, :cond_12a

    .line 30
    sget-object v5, Lcom/scwang/smart/refresh/layout/constant/a;->h:[Lcom/scwang/smart/refresh/layout/constant/a;

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

    const/4 v12, 0x1

    add-int/2addr v4, v12

    aget-object v4, v5, v4

    .line 31
    :cond_12a
    iput-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

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

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

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

    iget v13, v0, Lcom/scwang/smart/refresh/layout/a;->x0:F

    int-to-float v14, v12

    mul-float v13, v13, v14

    float-to-int v13, v13

    invoke-interface {v4, v5, v12, v13}, Lcom/scwang/smart/refresh/layout/api/a;->h(Lcom/scwang/smart/refresh/layout/api/e;II)V

    :cond_13b
    if-eqz v3, :cond_14a

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

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

    move-result v4

    if-eqz v4, :cond_14a

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

    move-result v4

    add-int/2addr v8, v4

    .line 35
    :cond_14a
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v4, :cond_260

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

    move-result-object v4

    if-ne v4, v9, :cond_260

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

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

    move-result-object v4

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

    move-result-object v5

    .line 38
    instance-of v10, v5, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v10, :cond_166

    move-object v10, v5

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

    goto :goto_168

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

    .line 39
    :goto_168
    iget v12, v10, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    iget v13, v10, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    add-int/2addr v12, v13

    iget v13, v5, Landroid/view/ViewGroup$LayoutParams;->width:I

    invoke-static {v1, v12, v13}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I

    move-result v12

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

    .line 41
    iget-object v13, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

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

    if-ge v15, v11, :cond_1e2

    .line 42
    iget v11, v5, Landroid/view/ViewGroup$LayoutParams;->height:I

    if-lez v11, :cond_19a

    .line 43
    iget v14, v10, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v11, v14

    iget v14, v10, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v14, v11

    .line 44
    sget-object v11, Lcom/scwang/smart/refresh/layout/constant/a;->e:Lcom/scwang/smart/refresh/layout/constant/a;

    invoke-virtual {v13, v11}, Lcom/scwang/smart/refresh/layout/constant/a;->a(Lcom/scwang/smart/refresh/layout/constant/a;)Z

    move-result v13

    if-eqz v13, :cond_1e2

    .line 45
    iget v5, v5, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget v13, v10, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v5, v13

    iget v13, v10, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v5, v13

    iput v5, v0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    .line 46
    iput-object v11, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    goto :goto_1e2

    :cond_19a
    const/4 v5, -0x2

    if-ne v11, v5, :cond_1e2

    .line 47
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object v5

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

    if-ne v5, v11, :cond_1ad

    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

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

    if-nez v5, :cond_1e2

    .line 48
    :cond_1ad
    invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v5

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

    sub-int/2addr v5, v11

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

    sub-int/2addr v5, v11

    const/4 v11, 0x0

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

    move-result v5

    const/high16 v11, -0x80000000

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

    move-result v11

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

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

    move-result v11

    if-lez v11, :cond_1e2

    if-eq v11, v5, :cond_1e1

    .line 51
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    sget-object v13, Lcom/scwang/smart/refresh/layout/constant/a;->d:Lcom/scwang/smart/refresh/layout/constant/a;

    invoke-virtual {v5, v13}, Lcom/scwang/smart/refresh/layout/constant/a;->a(Lcom/scwang/smart/refresh/layout/constant/a;)Z

    move-result v5

    if-eqz v5, :cond_1e1

    .line 52
    iget v5, v10, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v11, v5

    iget v5, v10, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v11, v5

    iput v11, v0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    .line 53
    iput-object v13, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    :cond_1e1
    const/4 v14, -0x1

    .line 54
    :cond_1e2
    :goto_1e2
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object v5

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

    if-ne v5, v11, :cond_1f3

    .line 55
    invoke-static/range {p2 .. p2}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v5

    const/4 v11, 0x0

    :goto_1f1
    const/4 v13, -0x1

    goto :goto_215

    .line 56
    :cond_1f3
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object v5

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

    if-eqz v5, :cond_212

    if-nez v3, :cond_212

    .line 57
    iget-boolean v5, v0, Lcom/scwang/smart/refresh/layout/a;->C:Z

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

    move-result v5

    if-eqz v5, :cond_20b

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

    neg-int v5, v5

    goto :goto_20c

    :cond_20b
    const/4 v5, 0x0

    :goto_20c
    const/4 v11, 0x0

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

    move-result v14

    goto :goto_213

    :cond_212
    const/4 v11, 0x0

    :goto_213
    move v5, v14

    goto :goto_1f1

    :goto_215
    if-eq v5, v13, :cond_22a

    .line 58
    iget v13, v10, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    sub-int/2addr v5, v13

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

    sub-int/2addr v5, v10

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

    move-result v5

    const/high16 v10, 0x40000000    # 2.0f

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

    move-result v5

    invoke-virtual {v4, v12, v5}, Landroid/view/View;->measure(II)V

    .line 59
    :cond_22a
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    iget-boolean v10, v5, Lcom/scwang/smart/refresh/layout/constant/a;->b:Z

    if-nez v10, :cond_24e

    if-nez v10, :cond_23b

    .line 60
    sget-object v10, Lcom/scwang/smart/refresh/layout/constant/a;->h:[Lcom/scwang/smart/refresh/layout/constant/a;

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

    const/4 v12, 0x1

    add-int/2addr v5, v12

    aget-object v5, v10, v5

    goto :goto_23c

    :cond_23b
    const/4 v12, 0x1

    .line 61
    :goto_23c
    iput-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    .line 62
    iget-object v5, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

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

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

    int-to-float v15, v13

    mul-float v14, v14, v15

    float-to-int v14, v14

    invoke-interface {v5, v10, v13, v14}, Lcom/scwang/smart/refresh/layout/api/a;->h(Lcom/scwang/smart/refresh/layout/api/e;II)V

    goto :goto_24f

    :cond_24e
    const/4 v12, 0x1

    :goto_24f
    if-eqz v3, :cond_262

    .line 63
    iget-boolean v5, v0, Lcom/scwang/smart/refresh/layout/a;->C:Z

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

    move-result v5

    if-eqz v5, :cond_262

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

    move-result v4

    add-int/2addr v4, v8

    move v8, v4

    goto :goto_262

    :cond_260
    const/4 v11, 0x0

    const/4 v12, 0x1

    .line 65
    :cond_262
    :goto_262
    iget-object v4, v0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    if-eqz v4, :cond_2f6

    .line 66
    iget-object v4, v4, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    if-ne v4, v9, :cond_2f6

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

    move-result-object v5

    .line 68
    instance-of v9, v5, Landroid/view/ViewGroup$MarginLayoutParams;

    if-eqz v9, :cond_276

    move-object v9, v5

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

    goto :goto_278

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

    .line 69
    :goto_278
    iget-object v10, v0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v10, :cond_290

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

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

    move-result v10

    if-eqz v10, :cond_290

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

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

    invoke-virtual {v0, v10, v13}, Lcom/scwang/smart/refresh/layout/a;->n(ZLcom/scwang/smart/refresh/layout/api/a;)Z

    move-result v10

    if-eqz v10, :cond_290

    const/4 v10, 0x1

    goto :goto_291

    :cond_290
    const/4 v10, 0x0

    .line 70
    :goto_291
    iget-object v13, v0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v13, :cond_2a9

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

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

    move-result v13

    if-eqz v13, :cond_2a9

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

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

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

    move-result v13

    if-eqz v13, :cond_2a9

    const/4 v13, 0x1

    goto :goto_2aa

    :cond_2a9
    const/4 v13, 0x0

    .line 71
    :goto_2aa
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getPaddingLeft()I

    move-result v14

    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getPaddingRight()I

    move-result v15

    add-int/2addr v15, v14

    iget v14, v9, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I

    add-int/2addr v15, v14

    iget v14, v9, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I

    add-int/2addr v15, v14

    iget v14, v5, Landroid/view/ViewGroup$LayoutParams;->width:I

    .line 72
    invoke-static {v1, v15, v14}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I

    move-result v14

    .line 73
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getPaddingTop()I

    move-result v15

    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getPaddingBottom()I

    move-result v16

    add-int v16, v16, v15

    iget v15, v9, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int v16, v16, v15

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

    add-int v16, v16, v9

    if-eqz v3, :cond_2d8

    if-eqz v10, :cond_2d8

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

    goto :goto_2d9

    :cond_2d8
    const/4 v9, 0x0

    :goto_2d9
    add-int v16, v16, v9

    if-eqz v3, :cond_2e2

    if-eqz v13, :cond_2e2

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

    goto :goto_2e3

    :cond_2e2
    const/4 v9, 0x0

    :goto_2e3
    add-int v9, v16, v9

    iget v5, v5, Landroid/view/ViewGroup$LayoutParams;->height:I

    .line 74
    invoke-static {v2, v9, v5}, Landroid/view/ViewGroup;->getChildMeasureSpec(III)I

    move-result v5

    .line 75
    invoke-virtual {v4, v14, v5}, Landroid/view/View;->measure(II)V

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

    move-result v4

    add-int/2addr v8, v4

    goto :goto_2f6

    :cond_2f4
    :goto_2f4
    const/4 v11, 0x0

    const/4 v12, 0x1

    :cond_2f6
    :goto_2f6
    add-int/lit8 v7, v7, 0x1

    goto/16 :goto_19

    .line 77
    :cond_2fa
    invoke-super/range {p0 .. p0}, Landroid/view/View;->getSuggestedMinimumWidth()I

    move-result v3

    invoke-static {v3, v1}, Landroid/view/View;->resolveSize(II)I

    move-result v1

    .line 78
    invoke-static {v8, v2}, Landroid/view/View;->resolveSize(II)I

    move-result v2

    .line 79
    invoke-super {v0, v1, v2}, Landroid/view/View;->setMeasuredDimension(II)V

    .line 80
    invoke-virtual/range {p0 .. p0}, Landroid/view/View;->getMeasuredWidth()I

    move-result v1

    int-to-float v1, v1

    const/high16 v2, 0x40000000    # 2.0f

    div-float/2addr v1, v2

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

    return-void
.end method

.method public final onNestedFling(Landroid/view/View;FFZ)Z
    .registers 5

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

    invoke-virtual {p1, p2, p3, p4}, Landroidx/core/view/k;->a(FFZ)Z

    move-result p1

    return p1
.end method

.method public final onNestedPreFling(Landroid/view/View;FF)Z
    .registers 4

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

    if-eqz p1, :cond_9

    const/4 p1, 0x0

    cmpl-float p1, p3, p1

    if-gtz p1, :cond_1b

    :cond_9
    neg-float p1, p3

    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a;->w(F)Z

    move-result p1

    if-nez p1, :cond_1b

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

    invoke-virtual {p1, p2, p3}, Landroidx/core/view/k;->b(FF)Z

    move-result p1

    if-eqz p1, :cond_19

    goto :goto_1b

    :cond_19
    const/4 p1, 0x0

    goto :goto_1c

    :cond_1b
    :goto_1b
    const/4 p1, 0x1

    :goto_1c
    return p1
.end method

.method public final onNestedPreScroll(Landroid/view/View;II[I)V
    .registers 7

    .line 1
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    mul-int v0, p3, p1

    const/4 v1, 0x0

    if-lez v0, :cond_26

    .line 2
    invoke-static {p3}, Ljava/lang/Math;->abs(I)I

    move-result p1

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

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

    move-result v0

    if-le p1, v0, :cond_19

    .line 3
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    .line 4
    iput v1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    move v1, p1

    goto :goto_1f

    .line 5
    :cond_19
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    sub-int/2addr p1, p3

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    move v1, p3

    .line 6
    :goto_1f
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    int-to-float p1, p1

    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a;->o(F)V

    goto :goto_34

    :cond_26
    if-lez p3, :cond_34

    .line 7
    iget-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    if-eqz v0, :cond_34

    sub-int/2addr p1, p3

    .line 8
    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    int-to-float p1, p1

    .line 9
    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a;->o(F)V

    move v1, p3

    .line 10
    :cond_34
    :goto_34
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->p0:Landroidx/core/view/k;

    sub-int/2addr p3, v1

    const/4 v0, 0x0

    invoke-virtual {p1, p2, p3, p4, v0}, Landroidx/core/view/k;->c(II[I[I)Z

    const/4 p1, 0x1

    .line 11
    aget p2, p4, p1

    add-int/2addr p2, v1

    aput p2, p4, p1

    return-void
.end method

.method public final onNestedScroll(Landroid/view/View;IIII)V
    .registers 12

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->p0:Landroidx/core/view/k;

    iget-object v5, p0, Lcom/scwang/smart/refresh/layout/a;->o0:[I

    move v1, p2

    move v2, p3

    move v3, p4

    move v4, p5

    invoke-virtual/range {v0 .. v5}, Landroidx/core/view/k;->e(IIII[I)Z

    move-result p1

    .line 2
    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/a;->o0:[I

    const/4 p4, 0x1

    aget p2, p2, p4

    add-int/2addr p5, p2

    if-gez p5, :cond_2e

    .line 3
    iget-boolean p2, p0, Lcom/scwang/smart/refresh/layout/a;->B:Z

    if-nez p2, :cond_1c

    iget-boolean p2, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    if-eqz p2, :cond_2e

    :cond_1c
    iget p2, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    if-nez p2, :cond_4a

    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/a;->l0:Lcom/scwang/smart/refresh/layout/simple/a;

    if-eqz p2, :cond_4a

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

    .line 4
    iget-object v0, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    .line 5
    invoke-virtual {p2, v0}, Lcom/scwang/smart/refresh/layout/simple/a;->b(Landroid/view/View;)Z

    move-result p2

    if-nez p2, :cond_4a

    :cond_2e
    if-lez p5, :cond_74

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

    if-nez p2, :cond_38

    iget-boolean p2, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    if-eqz p2, :cond_74

    :cond_38
    iget p2, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    if-nez p2, :cond_4a

    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/a;->l0:Lcom/scwang/smart/refresh/layout/simple/a;

    if-eqz p2, :cond_4a

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

    .line 6
    iget-object v0, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    .line 7
    invoke-virtual {p2, v0}, Lcom/scwang/smart/refresh/layout/simple/a;->a(Landroid/view/View;)Z

    move-result p2

    if-eqz p2, :cond_74

    .line 8
    :cond_4a
    iget-object p2, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    if-eq p2, v0, :cond_54

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

    if-eqz p2, :cond_6b

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

    if-lez p5, :cond_5b

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

    goto :goto_5d

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

    :goto_5d
    invoke-virtual {p2, v0}, Lcom/scwang/smart/refresh/layout/a$k;->c(Lcom/scwang/smart/refresh/layout/constant/b;)V

    if-nez p1, :cond_6b

    .line 10
    invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object p1

    if-eqz p1, :cond_6b

    .line 11
    invoke-interface {p1, p4}, Landroid/view/ViewParent;->requestDisallowInterceptTouchEvent(Z)V

    .line 12
    :cond_6b
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    sub-int/2addr p1, p5

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    int-to-float p1, p1

    invoke-virtual {p0, p1}, Lcom/scwang/smart/refresh/layout/a;->o(F)V

    .line 13
    :cond_74
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    if-eqz p1, :cond_7d

    if-gez p3, :cond_7d

    const/4 p1, 0x0

    .line 14
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    :cond_7d
    return-void
.end method

.method public final onNestedScrollAccepted(Landroid/view/View;Landroid/view/View;I)V
    .registers 4

    .line 1
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->q0:Landroidx/core/view/o;

    const/4 p2, 0x0

    .line 2
    invoke-virtual {p1, p3, p2}, Landroidx/core/view/o;->a(II)V

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

    and-int/lit8 p3, p3, 0x2

    invoke-virtual {p1, p3}, Landroidx/core/view/k;->k(I)Z

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

    iput p1, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    const/4 p1, 0x1

    .line 5
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->n0:Z

    .line 6
    invoke-virtual {p0, p2}, Lcom/scwang/smart/refresh/layout/a;->l(I)Z

    return-void
.end method

.method public final onStartNestedScroll(Landroid/view/View;Landroid/view/View;I)Z
    .registers 5

    .line 1
    invoke-virtual {p0}, Landroid/view/View;->isEnabled()Z

    move-result p1

    const/4 p2, 0x0

    const/4 v0, 0x1

    if-eqz p1, :cond_14

    invoke-virtual {p0}, Lcom/scwang/smart/refresh/layout/a;->isNestedScrollingEnabled()Z

    move-result p1

    if-eqz p1, :cond_14

    and-int/lit8 p1, p3, 0x2

    if-eqz p1, :cond_14

    const/4 p1, 0x1

    goto :goto_15

    :cond_14
    const/4 p1, 0x0

    :goto_15
    if-eqz p1, :cond_24

    .line 2
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    if-nez p1, :cond_23

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

    if-nez p1, :cond_23

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

    if-eqz p1, :cond_24

    :cond_23
    const/4 p2, 0x1

    :cond_24
    return p2
.end method

.method public final onStopNestedScroll(Landroid/view/View;)V
    .registers 3

    .line 1
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->q0:Landroidx/core/view/o;

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p1, v0}, Landroidx/core/view/o;->b(I)V

    .line 3
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->n0:Z

    .line 4
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->m0:I

    .line 5
    invoke-virtual {p0}, Lcom/scwang/smart/refresh/layout/a;->q()V

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

    .line 7
    invoke-virtual {p1, v0}, Landroidx/core/view/k;->m(I)V

    return-void
.end method

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

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v0, p1, :cond_1e

    .line 2
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    .line 3
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    .line 4
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    if-eqz v1, :cond_11

    .line 6
    invoke-interface {v1, p0, v0, p1}, Lcom/scwang/smart/refresh/layout/listener/h;->b(Lcom/scwang/smart/refresh/layout/api/f;Lcom/scwang/smart/refresh/layout/constant/b;Lcom/scwang/smart/refresh/layout/constant/b;)V

    :cond_11
    if-eqz v2, :cond_16

    .line 7
    invoke-interface {v2, p0, v0, p1}, Lcom/scwang/smart/refresh/layout/listener/h;->b(Lcom/scwang/smart/refresh/layout/api/f;Lcom/scwang/smart/refresh/layout/constant/b;Lcom/scwang/smart/refresh/layout/constant/b;)V

    .line 8
    :cond_16
    sget-object v0, Lcom/scwang/smart/refresh/layout/constant/b;->LoadFinish:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne p1, v0, :cond_24

    const/4 p1, 0x0

    .line 9
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    goto :goto_24

    .line 10
    :cond_1e
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq p1, v0, :cond_24

    .line 11
    iput-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    :cond_24
    :goto_24
    return-void
.end method

.method public final q()V
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    const/4 v2, 0x0

    if-ne v0, v1, :cond_5e

    .line 2
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->w:I

    const/16 v3, -0x3e8

    if-le v0, v3, :cond_2b

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

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

    move-result v3

    div-int/lit8 v3, v3, 0x2

    if-le v0, v3, :cond_2b

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

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

    move-result v1

    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    move-result-object v0

    if-eqz v0, :cond_110

    .line 4
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->e:I

    int-to-long v1, v1

    invoke-virtual {v0, v1, v2}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    goto/16 :goto_110

    .line 5
    :cond_2b
    iget-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->n:Z

    if-eqz v0, :cond_110

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

    .line 7
    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;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v4, v1, :cond_110

    .line 8
    iget-object v1, v3, Lcom/scwang/smart/refresh/layout/a;->G0:Lcom/scwang/smart/refresh/layout/a$k;

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

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

    .line 9
    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

    if-nez v1, :cond_50

    .line 10
    invoke-virtual {v0, v2, v2}, Lcom/scwang/smart/refresh/layout/a$k;->b(IZ)Lcom/scwang/smart/refresh/layout/api/e;

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

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

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

    goto/16 :goto_110

    .line 12
    :cond_50
    invoke-virtual {v0, v2}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    move-result-object v1

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

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

    int-to-long v2, v0

    invoke-virtual {v1, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;

    goto/16 :goto_110

    .line 13
    :cond_5e
    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/b;->Loading:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v0, v1, :cond_fc

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

    if-eqz v0, :cond_7c

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

    if-eqz v0, :cond_7c

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

    if-eqz v0, :cond_7c

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

    if-gez v0, :cond_7c

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

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

    move-result v0

    if-eqz v0, :cond_7c

    goto/16 :goto_fc

    .line 15
    :cond_7c
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    if-ne v0, v3, :cond_98

    .line 16
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

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

    if-le v0, v1, :cond_8f

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

    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    goto/16 :goto_110

    :cond_8f
    if-gez v0, :cond_110

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

    invoke-virtual {v0, v2}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    goto/16 :goto_110

    .line 19
    :cond_98
    sget-object v4, Lcom/scwang/smart/refresh/layout/constant/b;->PullDownToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v4, :cond_a5

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

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

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

    goto/16 :goto_110

    .line 21
    :cond_a5
    sget-object v4, Lcom/scwang/smart/refresh/layout/constant/b;->PullUpToLoad:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v4, :cond_b1

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

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

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

    goto :goto_110

    .line 23
    :cond_b1
    sget-object v4, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToRefresh:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v4, :cond_bb

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

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

    goto :goto_110

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

    if-ne v0, v3, :cond_c5

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

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

    goto :goto_110

    .line 27
    :cond_c5
    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/b;->ReleaseToTwoLevel:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v1, :cond_d1

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

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

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

    goto :goto_110

    .line 29
    :cond_d1
    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/b;->RefreshReleased:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v1, :cond_e1

    .line 30
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    if-nez v0, :cond_110

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

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

    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    goto :goto_110

    .line 32
    :cond_e1
    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/b;->LoadReleased:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v1, :cond_f2

    .line 33
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->R0:Landroid/animation/ValueAnimator;

    if-nez v0, :cond_110

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

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

    neg-int v1, v1

    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    goto :goto_110

    .line 35
    :cond_f2
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

    if-eqz v0, :cond_110

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

    invoke-virtual {v0, v2}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    goto :goto_110

    .line 37
    :cond_fc
    :goto_fc
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

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

    neg-int v1, v1

    if-ge v0, v1, :cond_109

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

    invoke-virtual {v0, v1}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    goto :goto_110

    :cond_109
    if-lez v0, :cond_110

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

    invoke-virtual {v0, v2}, Lcom/scwang/smart/refresh/layout/a$k;->a(I)Landroid/animation/ValueAnimator;

    :cond_110
    :goto_110
    return-void
.end method

.method public final r(Z)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 3

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    .line 2
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    return-object p0
.end method

.method public final requestDisallowInterceptTouchEvent(Z)V
    .registers 4

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    .line 2
    iget-object v0, v0, Lcom/scwang/smart/refresh/layout/wrapper/a;->c:Landroid/view/View;

    .line 3
    sget-object v1, Landroidx/core/view/y;->a:Ljava/util/WeakHashMap;

    .line 4
    invoke-static {v0}, Landroidx/core/view/y$h;->p(Landroid/view/View;)Z

    move-result v0

    if-eqz v0, :cond_11

    .line 5
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->p:Z

    .line 6
    invoke-super {p0, p1}, Landroid/view/ViewGroup;->requestDisallowInterceptTouchEvent(Z)V

    :cond_11
    return-void
.end method

.method public final s(Z)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 9

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    const/16 v2, 0x12c

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-ne v0, v1, :cond_27

    if-eqz p1, :cond_27

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v5, p0, Lcom/scwang/smart/refresh/layout/a;->J0:J

    sub-long/2addr v0, v5

    long-to-int p1, v0

    rsub-int p1, p1, 0x12c

    .line 3
    invoke-static {v4, p1}, Ljava/lang/Math;->max(II)I

    move-result p1

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

    move-result p1

    shl-int/lit8 p1, p1, 0x10

    sget-object v0, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {p0, p1, v3, v0}, Lcom/scwang/smart/refresh/layout/a;->k(IZLjava/lang/Boolean;)Lcom/scwang/smart/refresh/layout/api/f;

    goto/16 :goto_a9

    .line 4
    :cond_27
    sget-object v1, Lcom/scwang/smart/refresh/layout/constant/b;->Loading:Lcom/scwang/smart/refresh/layout/constant/b;

    if-ne v0, v1, :cond_45

    if-eqz p1, :cond_45

    .line 5
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v5, p0, Lcom/scwang/smart/refresh/layout/a;->J0:J

    sub-long/2addr v0, v5

    long-to-int p1, v0

    rsub-int p1, p1, 0x12c

    .line 6
    invoke-static {v4, p1}, Ljava/lang/Math;->max(II)I

    move-result p1

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

    move-result p1

    shl-int/lit8 p1, p1, 0x10

    invoke-virtual {p0, p1, v3}, Lcom/scwang/smart/refresh/layout/a;->i(IZ)Lcom/scwang/smart/refresh/layout/api/f;

    goto :goto_a9

    .line 7
    :cond_45
    iget-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eq v0, p1, :cond_a9

    .line 8
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    .line 9
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    instance-of v1, v0, Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v1, :cond_a9

    .line 10
    invoke-interface {v0, p1}, Lcom/scwang/smart/refresh/layout/api/c;->a(Z)Z

    move-result p1

    if-eqz p1, :cond_8e

    .line 11
    iput-boolean v3, p0, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    .line 12
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->e0:Z

    if-eqz p1, :cond_a9

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

    if-eqz p1, :cond_a9

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

    if-lez p1, :cond_a9

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

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

    move-result-object p1

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

    if-ne p1, v0, :cond_a9

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

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

    move-result p1

    if-eqz p1, :cond_a9

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

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

    .line 15
    invoke-virtual {p0, p1, v0}, Lcom/scwang/smart/refresh/layout/a;->n(ZLcom/scwang/smart/refresh/layout/api/a;)Z

    move-result p1

    if-eqz p1, :cond_a9

    .line 16
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object p1

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

    int-to-float v0, v0

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

    goto :goto_a9

    .line 17
    :cond_8e
    iput-boolean v4, p0, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    const-string p1, "Footer:"

    .line 18
    invoke-static {p1}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object p1

    .line 19
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v0, " NoMoreData is not supported.(\u4e0d\u652f\u6301NoMoreData\uff0c\u8bf7\u4f7f\u7528[ClassicsFooter]\u6216\u8005[\u81ea\u5b9a\u4e49Footer\u5e76\u5b9e\u73b0setNoMoreData\u65b9\u6cd5\u4e14\u8fd4\u56detrue])"

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 20
    new-instance v0, Ljava/lang/RuntimeException;

    invoke-direct {v0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    :cond_a9
    :goto_a9
    return-object p0
.end method

.method public setNestedScrollingEnabled(Z)V
    .registers 3

    .line 1
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->b0:Z

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

    invoke-virtual {v0, p1}, Landroidx/core/view/k;->j(Z)V

    return-void
.end method

.method public setStateDirectLoading(Z)V
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    if-eq v0, v1, :cond_31

    .line 2
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/scwang/smart/refresh/layout/a;->J0:J

    const/4 v0, 0x1

    .line 3
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

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

    .line 5
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->k0:Lcom/scwang/smart/refresh/layout/listener/e;

    if-eqz v0, :cond_1c

    if-eqz p1, :cond_22

    .line 6
    invoke-interface {v0, p0}, Lcom/scwang/smart/refresh/layout/listener/e;->b(Lcom/scwang/smart/refresh/layout/api/f;)V

    goto :goto_22

    :cond_1c
    const/16 p1, 0x7d0

    const/4 v0, 0x0

    .line 7
    invoke-virtual {p0, p1, v0}, Lcom/scwang/smart/refresh/layout/a;->i(IZ)Lcom/scwang/smart/refresh/layout/api/f;

    .line 8
    :cond_22
    :goto_22
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz p1, :cond_31

    .line 9
    iget v0, p0, Lcom/scwang/smart/refresh/layout/a;->t0:I

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

    int-to-float v2, v0

    mul-float v1, v1, v2

    float-to-int v1, v1

    invoke-interface {p1, p0, v0, v1}, Lcom/scwang/smart/refresh/layout/api/a;->c(Lcom/scwang/smart/refresh/layout/api/f;II)V

    :cond_31
    return-void
.end method

.method public setStateLoading(Z)V
    .registers 7

    .line 1
    new-instance v0, Lcom/scwang/smart/refresh/layout/a$b;

    invoke-direct {v0, p0, p1}, Lcom/scwang/smart/refresh/layout/a$b;-><init>(Lcom/scwang/smart/refresh/layout/a;Z)V

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

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

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

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

    neg-int v1, v1

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

    move-result-object p1

    if-eqz p1, :cond_18

    .line 4
    invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

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

    if-eqz v1, :cond_27

    .line 6
    iget v2, p0, Lcom/scwang/smart/refresh/layout/a;->t0:I

    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->y0:F

    int-to-float v4, v2

    mul-float v3, v3, v4

    float-to-int v3, v3

    invoke-interface {v1, p0, v2, v3}, Lcom/scwang/smart/refresh/layout/api/a;->d(Lcom/scwang/smart/refresh/layout/api/f;II)V

    :cond_27
    if-nez p1, :cond_2d

    const/4 p1, 0x0

    .line 7
    invoke-virtual {v0, p1}, Lcom/scwang/smart/refresh/layout/a$b;->onAnimationEnd(Landroid/animation/Animator;)V

    :cond_2d
    return-void
.end method

.method public setStateRefreshing(Z)V
    .registers 7

    .line 1
    new-instance v0, Lcom/scwang/smart/refresh/layout/a$c;

    invoke-direct {v0, p0, p1}, Lcom/scwang/smart/refresh/layout/a$c;-><init>(Lcom/scwang/smart/refresh/layout/a;Z)V

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

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

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

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

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

    move-result-object p1

    if-eqz p1, :cond_17

    .line 4
    invoke-virtual {p1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 5
    :cond_17
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_26

    .line 6
    iget v2, p0, Lcom/scwang/smart/refresh/layout/a;->r0:I

    iget v3, p0, Lcom/scwang/smart/refresh/layout/a;->x0:F

    int-to-float v4, v2

    mul-float v3, v3, v4

    float-to-int v3, v3

    invoke-interface {v1, p0, v2, v3}, Lcom/scwang/smart/refresh/layout/api/a;->d(Lcom/scwang/smart/refresh/layout/api/f;II)V

    :cond_26
    if-nez p1, :cond_2c

    const/4 p1, 0x0

    .line 7
    invoke-virtual {v0, p1}, Lcom/scwang/smart/refresh/layout/a$c;->onAnimationEnd(Landroid/animation/Animator;)V

    :cond_2c
    return-void
.end method

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

    .line 1
    iget-object v0, p0, 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;->isDragging:Z

    if-eqz v1, :cond_11

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

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

    if-eq v0, v1, :cond_11

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

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

    .line 3
    :cond_11
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v0, p1, :cond_17

    .line 4
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->I0:Lcom/scwang/smart/refresh/layout/constant/b;

    :cond_17
    return-void
.end method

.method public final t(Lcom/scwang/smart/refresh/layout/listener/g;)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 2

    .line 1
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->j0:Lcom/scwang/smart/refresh/layout/listener/f;

    .line 2
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->k0:Lcom/scwang/smart/refresh/layout/listener/e;

    .line 3
    iget-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    if-nez p1, :cond_f

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

    if-nez p1, :cond_d

    goto :goto_f

    :cond_d
    const/4 p1, 0x0

    goto :goto_10

    :cond_f
    :goto_f
    const/4 p1, 0x1

    :goto_10
    iput-boolean p1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

    return-object p0
.end method

.method public final u(Lcom/scwang/smart/refresh/layout/api/c;II)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    if-eqz v0, :cond_b

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

    move-result-object v0

    invoke-super {p0, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 3
    :cond_b
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

    const/4 v0, 0x0

    .line 4
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->N0:Z

    .line 5
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->L0:I

    .line 6
    iput-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->f0:Z

    .line 7
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    invoke-virtual {v1}, Lcom/scwang/smart/refresh/layout/constant/a;->b()Lcom/scwang/smart/refresh/layout/constant/a;

    move-result-object v1

    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->u0:Lcom/scwang/smart/refresh/layout/constant/a;

    .line 8
    iget-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->g0:Z

    if-eqz v1, :cond_27

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

    if-eqz v1, :cond_25

    goto :goto_27

    :cond_25
    const/4 v1, 0x0

    goto :goto_28

    :cond_27
    :goto_27
    const/4 v1, 0x1

    :goto_28
    iput-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->C:Z

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

    if-eqz v1, :cond_74

    if-nez p2, :cond_31

    const/4 p2, -0x1

    :cond_31
    if-nez p3, :cond_34

    const/4 p3, -0x2

    .line 10
    :cond_34
    new-instance v1, Lcom/scwang/smart/refresh/layout/a$j;

    invoke-direct {v1, p2, p3}, Lcom/scwang/smart/refresh/layout/a$j;-><init>(II)V

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

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    .line 12
    instance-of p2, p1, Lcom/scwang/smart/refresh/layout/a$j;

    if-eqz p2, :cond_48

    .line 13
    move-object v1, p1

    check-cast v1, Lcom/scwang/smart/refresh/layout/a$j;

    .line 14
    :cond_48
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object p1

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

    if-eqz p1, :cond_60

    .line 15
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object p1

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result p2

    invoke-super {p0, p1, p2, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    goto :goto_69

    .line 16
    :cond_60
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->C0:Lcom/scwang/smart/refresh/layout/api/c;

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

    move-result-object p1

    invoke-super {p0, p1, v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 17
    :goto_69
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    if-eqz p1, :cond_74

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

    if-eqz p2, :cond_74

    .line 18
    invoke-interface {p2, p1}, Lcom/scwang/smart/refresh/layout/api/a;->setPrimaryColors([I)V

    :cond_74
    return-object p0
.end method

.method public final v(Lcom/scwang/smart/refresh/layout/api/d;II)Lcom/scwang/smart/refresh/layout/api/f;
    .registers 6

    .line 1
    iget-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v0, :cond_b

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

    move-result-object v0

    invoke-super {p0, v0}, Landroid/view/ViewGroup;->removeView(Landroid/view/View;)V

    .line 3
    :cond_b
    iput-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    const/4 v0, 0x0

    .line 4
    iput v0, p0, Lcom/scwang/smart/refresh/layout/a;->K0:I

    .line 5
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    invoke-virtual {v1}, Lcom/scwang/smart/refresh/layout/constant/a;->b()Lcom/scwang/smart/refresh/layout/constant/a;

    move-result-object v1

    iput-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->s0:Lcom/scwang/smart/refresh/layout/constant/a;

    .line 6
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

    if-eqz v1, :cond_62

    if-nez p2, :cond_1f

    const/4 p2, -0x1

    :cond_1f
    if-nez p3, :cond_22

    const/4 p3, -0x2

    .line 7
    :cond_22
    new-instance v1, Lcom/scwang/smart/refresh/layout/a$j;

    invoke-direct {v1, p2, p3}, Lcom/scwang/smart/refresh/layout/a$j;-><init>(II)V

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

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object p1

    .line 9
    instance-of p2, p1, Lcom/scwang/smart/refresh/layout/a$j;

    if-eqz p2, :cond_36

    .line 10
    move-object v1, p1

    check-cast v1, Lcom/scwang/smart/refresh/layout/a$j;

    .line 11
    :cond_36
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object p1

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

    if-eqz p1, :cond_4e

    .line 12
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object p1

    invoke-virtual {p0}, Landroid/view/ViewGroup;->getChildCount()I

    move-result p2

    invoke-super {p0, p1, p2, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    goto :goto_57

    .line 13
    :cond_4e
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->B0:Lcom/scwang/smart/refresh/layout/api/d;

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

    move-result-object p1

    invoke-super {p0, p1, v0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 14
    :goto_57
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->A:[I

    if-eqz p1, :cond_62

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

    if-eqz p2, :cond_62

    .line 15
    invoke-interface {p2, p1}, Lcom/scwang/smart/refresh/layout/api/a;->setPrimaryColors([I)V

    :cond_62
    return-object p0
.end method

.method public final w(F)Z
    .registers 15

    const/4 v0, 0x0

    cmpl-float v1, p1, v0

    if-nez v1, :cond_8

    .line 1
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->w:I

    int-to-float p1, p1

    .line 2
    :cond_8
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x1b

    if-le v1, v2, :cond_2c

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

    if-eqz v1, :cond_2c

    .line 3
    invoke-virtual {p0}, Landroid/view/View;->getScaleY()F

    .line 4
    iget-object v1, p0, Lcom/scwang/smart/refresh/layout/a;->D0:Lcom/scwang/smart/refresh/layout/wrapper/a;

    .line 5
    iget-object v1, v1, Lcom/scwang/smart/refresh/layout/wrapper/a;->a:Landroid/view/View;

    .line 6
    invoke-virtual {p0}, Landroid/view/View;->getScaleY()F

    move-result v2

    const/high16 v3, -0x40800000    # -1.0f

    cmpl-float v2, v2, v3

    if-nez v2, :cond_2c

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

    move-result v1

    cmpl-float v1, v1, v3

    if-nez v1, :cond_2c

    neg-float p1, p1

    .line 7
    :cond_2c
    invoke-static {p1}, Ljava/lang/Math;->abs(F)F

    move-result v1

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

    int-to-float v2, v2

    const/4 v3, 0x0

    cmpl-float v1, v1, v2

    if-lez v1, :cond_166

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

    int-to-float v2, v1

    mul-float v2, v2, p1

    cmpg-float v2, v2, v0

    if-gez v2, :cond_10c

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

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

    const/4 v5, 0x1

    if-eq v2, v4, :cond_58

    sget-object v6, Lcom/scwang/smart/refresh/layout/constant/b;->Loading:Lcom/scwang/smart/refresh/layout/constant/b;

    if-eq v2, v6, :cond_58

    if-gez v1, :cond_53

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

    if-eqz v6, :cond_53

    goto :goto_58

    .line 10
    :cond_53
    iget-boolean v2, v2, Lcom/scwang/smart/refresh/layout/constant/b;->isReleaseToOpening:Z

    if-eqz v2, :cond_10c

    return v5

    .line 11
    :cond_58
    :goto_58
    new-instance v0, Lcom/scwang/smart/refresh/layout/a$i;

    invoke-direct {v0, p0, p1}, Lcom/scwang/smart/refresh/layout/a$i;-><init>(Lcom/scwang/smart/refresh/layout/a;F)V

    .line 12
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->H0:Lcom/scwang/smart/refresh/layout/constant/b;

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

    const/4 v2, 0x0

    if-eqz v1, :cond_66

    goto/16 :goto_f5

    .line 13
    :cond_66
    iget v1, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

    const/16 v6, 0xa

    if-eqz v1, :cond_fb

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

    if-nez p1, :cond_84

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

    if-eqz p1, :cond_af

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

    if-eqz p1, :cond_af

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

    if-eqz p1, :cond_af

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

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

    move-result p1

    if-eqz p1, :cond_af

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

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

    if-eq p1, v1, :cond_9e

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

    if-eqz p1, :cond_a5

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

    if-eqz p1, :cond_a5

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

    if-eqz p1, :cond_a5

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

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

    move-result p1

    if-eqz p1, :cond_a5

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

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

    neg-int v1, v1

    if-lt p1, v1, :cond_af

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

    if-ne p1, v4, :cond_fb

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

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

    if-le p1, v1, :cond_fb

    .line 15
    :cond_af
    iget p1, p0, Lcom/scwang/smart/refresh/layout/a;->b:I

    .line 16
    iget v1, v0, Lcom/scwang/smart/refresh/layout/a$i;->b:F

    move v4, p1

    :goto_b4
    mul-int v7, p1, v4

    if-lez v7, :cond_fb

    float-to-double v7, v1

    const v1, 0x3f7ae148    # 0.98f

    float-to-double v9, v1

    add-int/2addr v3, v5

    mul-int/lit8 v1, v3, 0xa

    int-to-float v1, v1

    const/high16 v11, 0x41200000    # 10.0f

    div-float/2addr v1, v11

    float-to-double v11, v1

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

    move-result-wide v9

    mul-double v9, v9, v7

    double-to-float v1, v9

    int-to-float v7, v6

    const/high16 v8, 0x3f800000    # 1.0f

    mul-float v7, v7, v8

    const/high16 v9, 0x447a0000    # 1000.0f

    div-float/2addr v7, v9

    mul-float v7, v7, v1

    .line 18
    invoke-static {v7}, Ljava/lang/Math;->abs(F)F

    move-result v9

    cmpg-float v8, v9, v8

    if-gez v8, :cond_f7

    .line 19
    iget-object p1, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;

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

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

    if-eqz v3, :cond_f5

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

    if-ne v1, v3, :cond_ee

    iget v7, p1, Lcom/scwang/smart/refresh/layout/a;->r0:I

    if-gt v4, v7, :cond_f5

    :cond_ee
    if-eq v1, v3, :cond_fb

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

    neg-int p1, p1

    if-ge v4, p1, :cond_fb

    :cond_f5
    :goto_f5
    move-object v0, v2

    goto :goto_109

    :cond_f7
    int-to-float v4, v4

    add-float/2addr v4, v7

    float-to-int v4, v4

    goto :goto_b4

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

    move-result-wide v1

    iput-wide v1, v0, Lcom/scwang/smart/refresh/layout/a$i;->c:J

    .line 21
    iget-object p1, v0, Lcom/scwang/smart/refresh/layout/a$i;->e:Lcom/scwang/smart/refresh/layout/a;

    iget-object p1, p1, Lcom/scwang/smart/refresh/layout/a;->F0:Landroid/os/Handler;

    int-to-long v1, v6

    invoke-virtual {p1, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 22
    :goto_109
    iput-object v0, p0, Lcom/scwang/smart/refresh/layout/a;->Q0:Ljava/lang/Runnable;

    return v5

    :cond_10c
    cmpg-float v2, p1, v0

    if-gez v2, :cond_130

    .line 23
    iget-boolean v2, p0, Lcom/scwang/smart/refresh/layout/a;->R:Z

    if-eqz v2, :cond_11c

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

    if-nez v2, :cond_14a

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

    if-nez v2, :cond_14a

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

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

    if-ne v2, v4, :cond_124

    if-gez v1, :cond_14a

    :cond_124
    iget-boolean v1, p0, Lcom/scwang/smart/refresh/layout/a;->T:Z

    if-eqz v1, :cond_130

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

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

    move-result v1

    if-nez v1, :cond_14a

    :cond_130
    cmpl-float v0, p1, v0

    if-lez v0, :cond_166

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

    if-eqz v0, :cond_13c

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

    if-nez v0, :cond_14a

    :cond_13c
    iget-boolean v0, p0, Lcom/scwang/smart/refresh/layout/a;->S:Z

    if-nez v0, :cond_14a

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

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

    if-ne v0, v1, :cond_166

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

    if-gtz v0, :cond_166

    .line 24
    :cond_14a
    iput-boolean v3, p0, Lcom/scwang/smart/refresh/layout/a;->O0:Z

    .line 25
    iget-object v4, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    neg-float p1, p1

    float-to-int v8, p1

    const/4 v9, 0x0

    const/4 v10, 0x0

    const v11, -0x7fffffff

    const v12, 0x7fffffff

    invoke-virtual/range {v4 .. v12}, Landroid/widget/Scroller;->fling(IIIIIIII)V

    .line 26
    iget-object p1, p0, Lcom/scwang/smart/refresh/layout/a;->x:Landroid/widget/Scroller;

    invoke-virtual {p1}, Landroid/widget/Scroller;->computeScrollOffset()Z

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

    :cond_166
    return v3
.end method