Easing$10.smali

.class final Lcom/github/mikephil/charting/animation/Easing$10;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/github/mikephil/charting/animation/Easing$EasingFunction;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/github/mikephil/charting/animation/Easing;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation


# direct methods
.method constructor <init>()V
    .registers 1

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

    return-void
.end method


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

    const/high16 v0, 0x40000000    # 2.0f

    mul-float p1, p1, v0

    const-wide/high16 v1, 0x4010000000000000L    # 4.0

    const/high16 v3, 0x3f800000    # 1.0f

    cmpg-float v3, p1, v3

    if-gez v3, :cond_17

    const/high16 v0, 0x3f000000    # 0.5f

    float-to-double v3, p1

    invoke-static {v3, v4, v1, v2}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v1

    double-to-float p1, v1

    mul-float p1, p1, v0

    return p1

    :cond_17
    sub-float/2addr p1, v0

    const/high16 v3, -0x41000000    # -0.5f

    float-to-double v4, p1

    invoke-static {v4, v5, v1, v2}, Ljava/lang/Math;->pow(DD)D

    move-result-wide v1

    double-to-float p1, v1

    sub-float/2addr p1, v0

    mul-float p1, p1, v3

    return p1
.end method