a.smali

.class public final Lsg/bigo/apm/hprof/a/a;
.super Ljava/lang/Object;
.source "SourceFile"


# instance fields
.field public a:[I

.field public b:I

.field public c:I


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

    const/4 v0, 0x0

    const/4 v1, 0x1

    const/4 v2, 0x0

    invoke-direct {p0, v0, v1, v2}, Lsg/bigo/apm/hprof/a/a;-><init>(IILkotlin/f/b/j;)V

    return-void
.end method

.method public constructor <init>(I)V
    .registers 2

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

    iput p1, p0, Lsg/bigo/apm/hprof/a/a;->c:I

    .line 8
    new-array p1, p1, [I

    iput-object p1, p0, Lsg/bigo/apm/hprof/a/a;->a:[I

    return-void
.end method

.method public synthetic constructor <init>(IILkotlin/f/b/j;)V
    .registers 4

    and-int/lit8 p2, p2, 0x1

    if-eqz p2, :cond_6

    const/16 p1, 0x8

    .line 6
    :cond_6
    invoke-direct {p0, p1}, Lsg/bigo/apm/hprof/a/a;-><init>(I)V

    return-void
.end method


# virtual methods
.method public final a(I)V
    .registers 7

    .line 22
    iget v0, p0, Lsg/bigo/apm/hprof/a/a;->b:I

    add-int/lit8 v0, v0, 0x1

    .line 1027
    iget v1, p0, Lsg/bigo/apm/hprof/a/a;->c:I

    if-le v0, v1, :cond_23

    int-to-double v1, v1

    const-wide/high16 v3, 0x3ff8000000000000L    # 1.5

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

    mul-double v1, v1, v3

    double-to-int v1, v1

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

    move-result v0

    new-array v1, v0, [I

    .line 1029
    iget-object v2, p0, Lsg/bigo/apm/hprof/a/a;->a:[I

    iget v3, p0, Lsg/bigo/apm/hprof/a/a;->b:I

    const/4 v4, 0x0

    invoke-static {v2, v4, v1, v4, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 1030
    iput-object v1, p0, Lsg/bigo/apm/hprof/a/a;->a:[I

    .line 1031
    iput v0, p0, Lsg/bigo/apm/hprof/a/a;->c:I

    .line 23
    :cond_23
    iget-object v0, p0, Lsg/bigo/apm/hprof/a/a;->a:[I

    iget v1, p0, Lsg/bigo/apm/hprof/a/a;->b:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lsg/bigo/apm/hprof/a/a;->b:I

    aput p1, v0, v1

    return-void
.end method