.class public Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;
.super Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ParticleValue;
.source "ParticleEmitter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "GradientColorValue"
.end annotation


# static fields
.field private static d:[F


# instance fields
.field a:[F

.field private e:[F


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

    const/4 v0, 0x4

    .line 1341
    new-array v0, v0, [F

    sput-object v0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    return-void
.end method

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

    .line 1346
    invoke-direct {p0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ParticleValue;-><init>()V

    const/4 v0, 0x3

    .line 1343
    new-array v0, v0, [F

    fill-array-data v0, :array_0

    iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    const/4 v0, 0x1

    .line 1344
    new-array v1, v0, [F

    const/4 v2, 0x0

    const/4 v3, 0x0

    aput v3, v1, v2

    iput-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    .line 1347
    iput-boolean v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->c:Z

    return-void

    nop

    :array_0
    .array-data 4
        0x3f800000    # 1.0f
        0x3f800000    # 1.0f
        0x3f800000    # 1.0f
    .end array-data
.end method


# virtual methods
.method public a(Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;)V
    .locals 4

    .line 1422
    invoke-super {p0, p1}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ParticleValue;->a(Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ParticleValue;)V

    .line 1423
    iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    array-length v0, v0

    new-array v0, v0, [F

    iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    .line 1424
    iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    array-length v2, v2

    const/4 v3, 0x0

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

    .line 1425
    iget-object v0, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    array-length v0, v0

    new-array v0, v0, [F

    iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    .line 1426
    iget-object p1, p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    iget-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    array-length v1, v1

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

    return-void
.end method

.method public a(Ljava/io/BufferedReader;)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1411
    invoke-super {p0, p1}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$ParticleValue;->a(Ljava/io/BufferedReader;)V

    .line 1412
    iget-boolean v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->b:Z

    if-nez v0, :cond_0

    return-void

    :cond_0
    const-string v0, "colorsCount"

    .line 1413
    invoke-static {p1, v0}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->c(Ljava/io/BufferedReader;Ljava/lang/String;)I

    move-result v0

    new-array v0, v0, [F

    iput-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 1414
    :goto_0
    iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    array-length v2, v2

    if-ge v1, v2, :cond_1

    .line 1415
    iget-object v2, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "colors"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {p1, v3}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->d(Ljava/io/BufferedReader;Ljava/lang/String;)F

    move-result v3

    aput v3, v2, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    const-string v1, "timelineCount"

    .line 1416
    invoke-static {p1, v1}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->c(Ljava/io/BufferedReader;Ljava/lang/String;)I

    move-result v1

    new-array v1, v1, [F

    iput-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    .line 1417
    :goto_1
    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    array-length v1, v1

    if-ge v0, v1, :cond_2

    .line 1418
    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "timeline"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {p1, v2}, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter;->d(Ljava/io/BufferedReader;Ljava/lang/String;)F

    move-result v2

    aput v2, v1, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_2
    return-void
.end method

.method public a(F)[F
    .locals 12

    .line 1370
    iget-object v0, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->a:[F

    .line 1371
    array-length v1, v0

    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v4, 0x1

    const/4 v5, 0x0

    :goto_0
    const/4 v6, -0x1

    if-ge v4, v1, :cond_1

    .line 1373
    aget v7, v0, v4

    cmpl-float v7, v7, p1

    if-lez v7, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 v5, v4, 0x1

    move v11, v5

    move v5, v4

    move v4, v11

    goto :goto_0

    :cond_1
    const/4 v4, -0x1

    .line 1380
    :goto_1
    aget v1, v0, v5

    mul-int/lit8 v5, v5, 0x3

    .line 1382
    iget-object v7, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    aget v7, v7, v5

    .line 1383
    iget-object v8, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    add-int/lit8 v9, v5, 0x1

    aget v8, v8, v9

    .line 1384
    iget-object v9, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    const/4 v10, 0x2

    add-int/2addr v5, v10

    aget v5, v9, v5

    if-ne v4, v6, :cond_2

    .line 1386
    sget-object p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    aput v7, p1, v2

    .line 1387
    sget-object p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    aput v8, p1, v3

    .line 1388
    sget-object p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    aput v5, p1, v10

    .line 1389
    sget-object p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    return-object p1

    :cond_2
    sub-float/2addr p1, v1

    .line 1391
    aget v0, v0, v4

    sub-float/2addr v0, v1

    div-float/2addr p1, v0

    mul-int/lit8 v4, v4, 0x3

    .line 1393
    sget-object v0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    aget v1, v1, v4

    sub-float/2addr v1, v7

    mul-float v1, v1, p1

    add-float/2addr v7, v1

    aput v7, v0, v2

    .line 1394
    sget-object v0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    add-int/lit8 v2, v4, 0x1

    aget v1, v1, v2

    sub-float/2addr v1, v8

    mul-float v1, v1, p1

    add-float/2addr v8, v1

    aput v8, v0, v3

    .line 1395
    sget-object v0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    iget-object v1, p0, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->e:[F

    add-int/2addr v4, v10

    aget v1, v1, v4

    sub-float/2addr v1, v5

    mul-float v1, v1, p1

    add-float/2addr v5, v1

    aput v5, v0, v10

    .line 1396
    sget-object p1, Lcom/badlogic/gdx/graphics/g2d/ParticleEmitter$GradientColorValue;->d:[F

    return-object p1
.end method
