.class Lcom/moji/lottie/TransformKeyframeAnimation;
.super Ljava/lang/Object;
.source "TransformKeyframeAnimation.java"


# instance fields
.field private final a:Landroid/graphics/Matrix;

.field private final b:Lcom/moji/lottie/BaseKeyframeAnimation;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/moji/lottie/BaseKeyframeAnimation<",
            "*",
            "Landroid/graphics/PointF;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Lcom/moji/lottie/BaseKeyframeAnimation;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/moji/lottie/BaseKeyframeAnimation<",
            "*",
            "Landroid/graphics/PointF;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Lcom/moji/lottie/BaseKeyframeAnimation;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/moji/lottie/BaseKeyframeAnimation<",
            "*",
            "Lcom/moji/lottie/ScaleXY;",
            ">;"
        }
    .end annotation
.end field

.field private final e:Lcom/moji/lottie/BaseKeyframeAnimation;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/moji/lottie/BaseKeyframeAnimation<",
            "*",
            "Ljava/lang/Float;",
            ">;"
        }
    .end annotation
.end field

.field private final f:Lcom/moji/lottie/BaseKeyframeAnimation;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/moji/lottie/BaseKeyframeAnimation<",
            "*",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method constructor <init>(Lcom/moji/lottie/AnimatableTransform;)V
    .locals 1

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

    .line 7
    new-instance v0, Landroid/graphics/Matrix;

    invoke-direct {v0}, Landroid/graphics/Matrix;-><init>()V

    iput-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    .line 16
    invoke-virtual {p1}, Lcom/moji/lottie/AnimatableTransform;->a()Lcom/moji/lottie/AnimatablePathValue;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/lottie/AnimatablePathValue;->b()Lcom/moji/lottie/BaseKeyframeAnimation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->b:Lcom/moji/lottie/BaseKeyframeAnimation;

    .line 17
    invoke-virtual {p1}, Lcom/moji/lottie/AnimatableTransform;->b()Lcom/moji/lottie/AnimatableValue;

    move-result-object v0

    invoke-interface {v0}, Lcom/moji/lottie/AnimatableValue;->b()Lcom/moji/lottie/BaseKeyframeAnimation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->c:Lcom/moji/lottie/BaseKeyframeAnimation;

    .line 18
    invoke-virtual {p1}, Lcom/moji/lottie/AnimatableTransform;->c()Lcom/moji/lottie/AnimatableScaleValue;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/lottie/AnimatableScaleValue;->a()Lcom/moji/lottie/KeyframeAnimation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->d:Lcom/moji/lottie/BaseKeyframeAnimation;

    .line 19
    invoke-virtual {p1}, Lcom/moji/lottie/AnimatableTransform;->d()Lcom/moji/lottie/AnimatableFloatValue;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/lottie/AnimatableFloatValue;->a()Lcom/moji/lottie/KeyframeAnimation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->e:Lcom/moji/lottie/BaseKeyframeAnimation;

    .line 20
    invoke-virtual {p1}, Lcom/moji/lottie/AnimatableTransform;->e()Lcom/moji/lottie/AnimatableIntegerValue;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/lottie/AnimatableIntegerValue;->a()Lcom/moji/lottie/KeyframeAnimation;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->f:Lcom/moji/lottie/BaseKeyframeAnimation;

    return-void
.end method


# virtual methods
.method a()Lcom/moji/lottie/BaseKeyframeAnimation;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/moji/lottie/BaseKeyframeAnimation<",
            "*",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .line 40
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->f:Lcom/moji/lottie/BaseKeyframeAnimation;

    return-object v0
.end method

.method a(Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;)V
    .locals 1

    .line 32
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->b:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0, p1}, Lcom/moji/lottie/BaseKeyframeAnimation;->a(Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;)V

    .line 33
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->c:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0, p1}, Lcom/moji/lottie/BaseKeyframeAnimation;->a(Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;)V

    .line 34
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->d:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0, p1}, Lcom/moji/lottie/BaseKeyframeAnimation;->a(Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;)V

    .line 35
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->e:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0, p1}, Lcom/moji/lottie/BaseKeyframeAnimation;->a(Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;)V

    .line 36
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->f:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0, p1}, Lcom/moji/lottie/BaseKeyframeAnimation;->a(Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;)V

    return-void
.end method

.method a(Lcom/moji/lottie/BaseLayer;)V
    .locals 1

    .line 24
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->b:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {p1, v0}, Lcom/moji/lottie/BaseLayer;->a(Lcom/moji/lottie/BaseKeyframeAnimation;)V

    .line 25
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->c:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {p1, v0}, Lcom/moji/lottie/BaseLayer;->a(Lcom/moji/lottie/BaseKeyframeAnimation;)V

    .line 26
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->d:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {p1, v0}, Lcom/moji/lottie/BaseLayer;->a(Lcom/moji/lottie/BaseKeyframeAnimation;)V

    .line 27
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->e:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {p1, v0}, Lcom/moji/lottie/BaseLayer;->a(Lcom/moji/lottie/BaseKeyframeAnimation;)V

    .line 28
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->f:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {p1, v0}, Lcom/moji/lottie/BaseLayer;->a(Lcom/moji/lottie/BaseKeyframeAnimation;)V

    return-void
.end method

.method b()Landroid/graphics/Matrix;
    .locals 4

    .line 44
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Landroid/graphics/Matrix;->reset()V

    .line 45
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->c:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/BaseKeyframeAnimation;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/PointF;

    .line 46
    iget v1, v0, Landroid/graphics/PointF;->x:F

    const/4 v2, 0x0

    cmpl-float v1, v1, v2

    if-nez v1, :cond_0

    iget v1, v0, Landroid/graphics/PointF;->y:F

    cmpl-float v1, v1, v2

    if-eqz v1, :cond_1

    .line 47
    :cond_0
    iget-object v1, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    iget v3, v0, Landroid/graphics/PointF;->x:F

    iget v0, v0, Landroid/graphics/PointF;->y:F

    invoke-virtual {v1, v3, v0}, Landroid/graphics/Matrix;->preTranslate(FF)Z

    .line 50
    :cond_1
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->e:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/BaseKeyframeAnimation;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    cmpl-float v1, v0, v2

    if-eqz v1, :cond_2

    .line 52
    iget-object v1, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    invoke-virtual {v1, v0}, Landroid/graphics/Matrix;->preRotate(F)Z

    .line 55
    :cond_2
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->d:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/BaseKeyframeAnimation;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/moji/lottie/ScaleXY;

    .line 56
    invoke-virtual {v0}, Lcom/moji/lottie/ScaleXY;->a()F

    move-result v1

    const/high16 v3, 0x3f800000    # 1.0f

    cmpl-float v1, v1, v3

    if-nez v1, :cond_3

    invoke-virtual {v0}, Lcom/moji/lottie/ScaleXY;->b()F

    move-result v1

    cmpl-float v1, v1, v3

    if-eqz v1, :cond_4

    .line 57
    :cond_3
    iget-object v1, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    invoke-virtual {v0}, Lcom/moji/lottie/ScaleXY;->a()F

    move-result v3

    invoke-virtual {v0}, Lcom/moji/lottie/ScaleXY;->b()F

    move-result v0

    invoke-virtual {v1, v3, v0}, Landroid/graphics/Matrix;->preScale(FF)Z

    .line 60
    :cond_4
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->b:Lcom/moji/lottie/BaseKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/BaseKeyframeAnimation;->b()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/graphics/PointF;

    .line 61
    iget v1, v0, Landroid/graphics/PointF;->x:F

    cmpl-float v1, v1, v2

    if-nez v1, :cond_5

    iget v1, v0, Landroid/graphics/PointF;->y:F

    cmpl-float v1, v1, v2

    if-eqz v1, :cond_6

    .line 62
    :cond_5
    iget-object v1, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    iget v2, v0, Landroid/graphics/PointF;->x:F

    neg-float v2, v2

    iget v0, v0, Landroid/graphics/PointF;->y:F

    neg-float v0, v0

    invoke-virtual {v1, v2, v0}, Landroid/graphics/Matrix;->preTranslate(FF)Z

    .line 64
    :cond_6
    iget-object v0, p0, Lcom/moji/lottie/TransformKeyframeAnimation;->a:Landroid/graphics/Matrix;

    return-object v0
.end method
