a.smali

.class public abstract Lcom/airbnb/lottie/animation/keyframe/a;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/airbnb/lottie/animation/keyframe/a$d;,
        Lcom/airbnb/lottie/animation/keyframe/a$e;,
        Lcom/airbnb/lottie/animation/keyframe/a$b;,
        Lcom/airbnb/lottie/animation/keyframe/a$c;,
        Lcom/airbnb/lottie/animation/keyframe/a$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<K:",
        "Ljava/lang/Object;",
        "A:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field public final a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/airbnb/lottie/animation/keyframe/a$a;",
            ">;"
        }
    .end annotation
.end field

.field public b:Z

.field public final c:Lcom/airbnb/lottie/animation/keyframe/a$c;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/airbnb/lottie/animation/keyframe/a$c<",
            "TK;>;"
        }
    .end annotation
.end field

.field public d:F

.field public e:Lcom/airbnb/lottie/value/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/airbnb/lottie/value/b;"
        }
    .end annotation
.end field

.field public f:Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "TA;"
        }
    .end annotation
.end field

.field public g:F

.field public h:F


# direct methods
.method public constructor <init>(Ljava/util/List;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "+",
            "Lcom/airbnb/lottie/value/a<",
            "TK;>;>;)V"
        }
    .end annotation

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

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->a:Ljava/util/ArrayList;

    const/4 v0, 0x0

    .line 3
    iput-boolean v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->b:Z

    const/4 v0, 0x0

    .line 4
    iput v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->d:F

    const/4 v0, 0x0

    .line 5
    iput-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->f:Ljava/lang/Object;

    const/high16 v0, -0x40800000    # -1.0f

    .line 6
    iput v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->g:F

    .line 7
    iput v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->h:F

    .line 8
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_26

    .line 9
    new-instance p1, Lcom/airbnb/lottie/animation/keyframe/a$b;

    invoke-direct {p1}, Lcom/airbnb/lottie/animation/keyframe/a$b;-><init>()V

    goto :goto_38

    .line 10
    :cond_26
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-ne v0, v1, :cond_32

    .line 11
    new-instance v0, Lcom/airbnb/lottie/animation/keyframe/a$e;

    invoke-direct {v0, p1}, Lcom/airbnb/lottie/animation/keyframe/a$e;-><init>(Ljava/util/List;)V

    goto :goto_37

    .line 12
    :cond_32
    new-instance v0, Lcom/airbnb/lottie/animation/keyframe/a$d;

    invoke-direct {v0, p1}, Lcom/airbnb/lottie/animation/keyframe/a$d;-><init>(Ljava/util/List;)V

    :goto_37
    move-object p1, v0

    .line 13
    :goto_38
    iput-object p1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    return-void
.end method


# virtual methods
.method public final a(Lcom/airbnb/lottie/animation/keyframe/a$a;)V
    .registers 3

    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public final b()Lcom/airbnb/lottie/value/a;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/airbnb/lottie/value/a<",
            "TK;>;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {v0}, Lcom/airbnb/lottie/animation/keyframe/a$c;->a()Lcom/airbnb/lottie/value/a;

    move-result-object v0

    .line 2
    invoke-static {}, Lcom/airbnb/lottie/c;->n()V

    return-object v0
.end method

.method public c()F
    .registers 3

    .line 1
    iget v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->h:F

    const/high16 v1, -0x40800000    # -1.0f

    cmpl-float v0, v0, v1

    if-nez v0, :cond_10

    .line 2
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {v0}, Lcom/airbnb/lottie/animation/keyframe/a$c;->e()F

    move-result v0

    iput v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->h:F

    .line 3
    :cond_10
    iget v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->h:F

    return v0
.end method

.method public final d()F
    .registers 3

    .line 1
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->b()Lcom/airbnb/lottie/value/a;

    move-result-object v0

    .line 2
    invoke-virtual {v0}, Lcom/airbnb/lottie/value/a;->c()Z

    move-result v1

    if-eqz v1, :cond_c

    const/4 v0, 0x0

    return v0

    .line 3
    :cond_c
    iget-object v0, v0, Lcom/airbnb/lottie/value/a;->d:Landroid/view/animation/Interpolator;

    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->e()F

    move-result v1

    invoke-interface {v0, v1}, Landroid/animation/TimeInterpolator;->getInterpolation(F)F

    move-result v0

    return v0
.end method

.method public final e()F
    .registers 4

    .line 1
    iget-boolean v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->b:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_6

    return v1

    .line 2
    :cond_6
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->b()Lcom/airbnb/lottie/value/a;

    move-result-object v0

    .line 3
    invoke-virtual {v0}, Lcom/airbnb/lottie/value/a;->c()Z

    move-result v2

    if-eqz v2, :cond_11

    return v1

    .line 4
    :cond_11
    iget v1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->d:F

    invoke-virtual {v0}, Lcom/airbnb/lottie/value/a;->b()F

    move-result v2

    sub-float/2addr v1, v2

    .line 5
    invoke-virtual {v0}, Lcom/airbnb/lottie/value/a;->a()F

    move-result v2

    invoke-virtual {v0}, Lcom/airbnb/lottie/value/a;->b()F

    move-result v0

    sub-float/2addr v2, v0

    div-float/2addr v1, v2

    return v1
.end method

.method public f()Ljava/lang/Object;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()TA;"
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->d()F

    move-result v0

    .line 2
    iget-object v1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->e:Lcom/airbnb/lottie/value/b;

    if-nez v1, :cond_13

    iget-object v1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {v1, v0}, Lcom/airbnb/lottie/animation/keyframe/a$c;->c(F)Z

    move-result v1

    if-eqz v1, :cond_13

    .line 3
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->f:Ljava/lang/Object;

    return-object v0

    .line 4
    :cond_13
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->b()Lcom/airbnb/lottie/value/a;

    move-result-object v1

    .line 5
    invoke-virtual {p0, v1, v0}, Lcom/airbnb/lottie/animation/keyframe/a;->g(Lcom/airbnb/lottie/value/a;F)Ljava/lang/Object;

    move-result-object v0

    .line 6
    iput-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->f:Ljava/lang/Object;

    return-object v0
.end method

.method public abstract g(Lcom/airbnb/lottie/value/a;F)Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/airbnb/lottie/value/a<",
            "TK;>;F)TA;"
        }
    .end annotation
.end method

.method public h()V
    .registers 3

    const/4 v0, 0x0

    .line 1
    :goto_1
    iget-object v1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_17

    .line 2
    iget-object v1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/airbnb/lottie/animation/keyframe/a$a;

    invoke-interface {v1}, Lcom/airbnb/lottie/animation/keyframe/a$a;->e()V

    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_17
    return-void
.end method

.method public i(F)V
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {v0}, Lcom/airbnb/lottie/animation/keyframe/a$c;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_9

    return-void

    .line 2
    :cond_9
    iget v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->g:F

    const/high16 v1, -0x40800000    # -1.0f

    cmpl-float v0, v0, v1

    if-nez v0, :cond_19

    .line 3
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {v0}, Lcom/airbnb/lottie/animation/keyframe/a$c;->b()F

    move-result v0

    iput v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->g:F

    .line 4
    :cond_19
    iget v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->g:F

    cmpg-float v2, p1, v0

    if-gez v2, :cond_2e

    cmpl-float p1, v0, v1

    if-nez p1, :cond_2b

    .line 5
    iget-object p1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {p1}, Lcom/airbnb/lottie/animation/keyframe/a$c;->b()F

    move-result p1

    iput p1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->g:F

    .line 6
    :cond_2b
    iget p1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->g:F

    goto :goto_3a

    .line 7
    :cond_2e
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->c()F

    move-result v0

    cmpl-float v0, p1, v0

    if-lez v0, :cond_3a

    .line 8
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->c()F

    move-result p1

    .line 9
    :cond_3a
    :goto_3a
    iget v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->d:F

    cmpl-float v0, p1, v0

    if-nez v0, :cond_41

    return-void

    .line 10
    :cond_41
    iput p1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->d:F

    .line 11
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->c:Lcom/airbnb/lottie/animation/keyframe/a$c;

    invoke-interface {v0, p1}, Lcom/airbnb/lottie/animation/keyframe/a$c;->d(F)Z

    move-result p1

    if-eqz p1, :cond_4e

    .line 12
    invoke-virtual {p0}, Lcom/airbnb/lottie/animation/keyframe/a;->h()V

    :cond_4e
    return-void
.end method

.method public final j(Lcom/airbnb/lottie/value/b;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/airbnb/lottie/value/b;",
            ")V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/airbnb/lottie/animation/keyframe/a;->e:Lcom/airbnb/lottie/value/b;

    if-eqz v0, :cond_7

    const/4 v1, 0x0

    .line 2
    iput-object v1, v0, Lcom/airbnb/lottie/value/b;->b:Ljava/lang/Object;

    .line 3
    :cond_7
    iput-object p1, p0, Lcom/airbnb/lottie/animation/keyframe/a;->e:Lcom/airbnb/lottie/value/b;

    if-eqz p1, :cond_d

    .line 4
    iput-object p0, p1, Lcom/airbnb/lottie/value/b;->b:Ljava/lang/Object;

    :cond_d
    return-void
.end method