f.smali

.class public Lcom/scwang/smartrefresh/layout/g/f;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/animation/Interpolator;


# static fields
.field private static final a:F

.field private static final b:F


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

    const/high16 v2, 0x3f800000    # 1.0f

    invoke-static {v2}, Lcom/scwang/smartrefresh/layout/g/f;->a(F)F

    move-result v0

    div-float v0, v2, v0

    sput v0, Lcom/scwang/smartrefresh/layout/g/f;->a:F

    sget v0, Lcom/scwang/smartrefresh/layout/g/f;->a:F

    invoke-static {v2}, Lcom/scwang/smartrefresh/layout/g/f;->a(F)F

    move-result v1

    mul-float/2addr v0, v1

    sub-float v0, v2, v0

    sput v0, Lcom/scwang/smartrefresh/layout/g/f;->b:F

    return-void
.end method

.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method private static a(F)F
    .registers 6

    const/high16 v4, 0x3f800000    # 1.0f

    const/high16 v0, 0x41000000    # 8.0f

    mul-float/2addr v0, p0

    cmpg-float v1, v0, v4

    if-gez v1, :cond_14

    neg-float v1, v0

    float-to-double v2, v1

    invoke-static {v2, v3}, Ljava/lang/Math;->exp(D)D

    move-result-wide v2

    double-to-float v1, v2

    sub-float v1, v4, v1

    sub-float/2addr v0, v1

    :goto_13
    return v0

    :cond_14
    const v1, 0x3ebc5ab2

    sub-float v0, v4, v0

    float-to-double v2, v0

    invoke-static {v2, v3}, Ljava/lang/Math;->exp(D)D

    move-result-wide v2

    double-to-float v0, v2

    sub-float v0, v4, v0

    sub-float v2, v4, v1

    mul-float/2addr v0, v2

    add-float/2addr v0, v1

    goto :goto_13
.end method


# virtual methods
.method public getInterpolation(F)F
    .registers 4

    sget v0, Lcom/scwang/smartrefresh/layout/g/f;->a:F

    invoke-static {p1}, Lcom/scwang/smartrefresh/layout/g/f;->a(F)F

    move-result v1

    mul-float/2addr v0, v1

    const/4 v1, 0x0

    cmpl-float v1, v0, v1

    if-lez v1, :cond_f

    sget v1, Lcom/scwang/smartrefresh/layout/g/f;->b:F

    add-float/2addr v0, v1

    :cond_f
    return v0
.end method