.class public Lcom/in2wow/sdk/h/d;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/in2wow/sdk/h/d$a;
    }
.end annotation


# static fields
.field protected static final a:Lcom/in2wow/sdk/h/d$a;


# instance fields
.field protected b:I

.field protected c:I

.field protected d:Lcom/in2wow/sdk/h/d$a;

.field protected e:F

.field protected f:D

.field protected g:[I

.field protected h:Z


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 12
    sget-object v0, Lcom/in2wow/sdk/h/d$a;->a:Lcom/in2wow/sdk/h/d$a;

    sput-object v0, Lcom/in2wow/sdk/h/d;->a:Lcom/in2wow/sdk/h/d$a;

    return-void
.end method

.method public constructor <init>()V
    .locals 3

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

    const/4 v0, 0x0

    .line 13
    iput v0, p0, Lcom/in2wow/sdk/h/d;->b:I

    .line 14
    iput v0, p0, Lcom/in2wow/sdk/h/d;->c:I

    .line 15
    sget-object v1, Lcom/in2wow/sdk/h/d;->a:Lcom/in2wow/sdk/h/d$a;

    iput-object v1, p0, Lcom/in2wow/sdk/h/d;->d:Lcom/in2wow/sdk/h/d$a;

    const/high16 v1, 0x3f800000    # 1.0f

    .line 16
    iput v1, p0, Lcom/in2wow/sdk/h/d;->e:F

    const-wide/high16 v1, 0x3ff0000000000000L    # 1.0

    .line 17
    iput-wide v1, p0, Lcom/in2wow/sdk/h/d;->f:D

    const/4 v1, 0x0

    .line 18
    iput-object v1, p0, Lcom/in2wow/sdk/h/d;->g:[I

    .line 19
    iput-boolean v0, p0, Lcom/in2wow/sdk/h/d;->h:Z

    return-void
.end method


# virtual methods
.method protected a(II)D
    .locals 3

    int-to-double v0, p1

    int-to-double p1, p2

    .line 33
    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    invoke-static {p1, p2}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, p1

    .line 34
    new-instance p1, Ljava/math/BigDecimal;

    invoke-direct {p1, v0, v1}, Ljava/math/BigDecimal;-><init>(D)V

    const/4 p2, 0x2

    const/4 v0, 0x4

    .line 35
    invoke-virtual {p1, p2, v0}, Ljava/math/BigDecimal;->setScale(II)Ljava/math/BigDecimal;

    move-result-object p1

    .line 36
    invoke-virtual {p1}, Ljava/math/BigDecimal;->doubleValue()D

    move-result-wide p1

    const-wide v0, 0x3ffc7ae140000000L    # 1.7799999713897705

    cmpl-double v2, p1, v0

    if-ltz v2, :cond_0

    .line 38
    sget-object v0, Lcom/in2wow/sdk/h/d$a;->a:Lcom/in2wow/sdk/h/d$a;

    iput-object v0, p0, Lcom/in2wow/sdk/h/d;->d:Lcom/in2wow/sdk/h/d$a;

    goto :goto_0

    :cond_0
    const-wide v0, 0x3ffab851e0000000L    # 1.6699999570846558

    cmpl-double v2, p1, v0

    if-ltz v2, :cond_1

    .line 41
    sget-object v0, Lcom/in2wow/sdk/h/d$a;->b:Lcom/in2wow/sdk/h/d$a;

    iput-object v0, p0, Lcom/in2wow/sdk/h/d;->d:Lcom/in2wow/sdk/h/d$a;

    goto :goto_0

    :cond_1
    const-wide v0, 0x3ff99999a0000000L    # 1.600000023841858

    cmpl-double v2, p1, v0

    if-ltz v2, :cond_2

    .line 44
    sget-object v0, Lcom/in2wow/sdk/h/d$a;->c:Lcom/in2wow/sdk/h/d$a;

    iput-object v0, p0, Lcom/in2wow/sdk/h/d;->d:Lcom/in2wow/sdk/h/d$a;

    goto :goto_0

    .line 47
    :cond_2
    sget-object v0, Lcom/in2wow/sdk/h/d$a;->d:Lcom/in2wow/sdk/h/d$a;

    iput-object v0, p0, Lcom/in2wow/sdk/h/d;->d:Lcom/in2wow/sdk/h/d$a;

    :goto_0
    return-wide p1
.end method

.method public a()Lcom/in2wow/sdk/h/d$a;
    .locals 1

    .line 21
    iget-object v0, p0, Lcom/in2wow/sdk/h/d;->d:Lcom/in2wow/sdk/h/d$a;

    return-object v0
.end method

.method protected a(I)V
    .locals 4

    .line 52
    iget-object v0, p0, Lcom/in2wow/sdk/h/d;->g:[I

    aget v0, v0, p1

    int-to-double v0, v0

    .line 53
    iget-wide v2, p0, Lcom/in2wow/sdk/h/d;->f:D

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v0, v0, v2

    invoke-static {v0, v1}, Ljava/lang/Math;->floor(D)D

    move-result-wide v0

    double-to-int v0, v0

    .line 54
    iget-object v1, p0, Lcom/in2wow/sdk/h/d;->g:[I

    aput v0, v1, p1

    return-void
.end method

.method public b()I
    .locals 1

    .line 24
    iget v0, p0, Lcom/in2wow/sdk/h/d;->b:I

    return v0
.end method

.method protected b(I)V
    .locals 9

    .line 57
    iget-object v0, p0, Lcom/in2wow/sdk/h/d;->g:[I

    aget v0, v0, p1

    .line 58
    iget-boolean v1, p0, Lcom/in2wow/sdk/h/d;->h:Z

    const/high16 v2, 0x40000000    # 2.0f

    if-eqz v1, :cond_0

    int-to-float v0, v0

    div-float/2addr v0, v2

    mul-float v0, v0, v2

    float-to-double v0, v0

    .line 60
    invoke-static {v0, v1}, Ljava/lang/Math;->floor(D)D

    move-result-wide v0

    double-to-int v0, v0

    .line 61
    iget-object v1, p0, Lcom/in2wow/sdk/h/d;->g:[I

    aput v0, v1, p1

    goto :goto_0

    .line 64
    :cond_0
    iget-wide v3, p0, Lcom/in2wow/sdk/h/d;->f:D

    const-wide/high16 v5, 0x3ff0000000000000L    # 1.0

    cmpl-double v1, v3, v5

    if-ltz v1, :cond_1

    int-to-float v0, v0

    div-float/2addr v0, v2

    .line 65
    iget v1, p0, Lcom/in2wow/sdk/h/d;->e:F

    mul-float v0, v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->floor(D)D

    move-result-wide v0

    double-to-int v0, v0

    .line 66
    iget-object v1, p0, Lcom/in2wow/sdk/h/d;->g:[I

    aput v0, v1, p1

    goto :goto_0

    .line 69
    :cond_1
    iget-wide v3, p0, Lcom/in2wow/sdk/h/d;->f:D

    add-double/2addr v3, v5

    const-wide/high16 v7, 0x4000000000000000L    # 2.0

    div-double/2addr v3, v7

    add-double/2addr v3, v5

    div-double/2addr v3, v7

    int-to-float v0, v0

    div-float/2addr v0, v2

    .line 71
    iget v1, p0, Lcom/in2wow/sdk/h/d;->e:F

    mul-float v0, v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v0, v0, v3

    invoke-static {v0, v1}, Ljava/lang/Math;->floor(D)D

    move-result-wide v0

    double-to-int v0, v0

    .line 72
    iget-object v1, p0, Lcom/in2wow/sdk/h/d;->g:[I

    aput v0, v1, p1

    :goto_0
    return-void
.end method

.method public c()I
    .locals 1

    .line 27
    iget v0, p0, Lcom/in2wow/sdk/h/d;->c:I

    return v0
.end method
