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

# interfaces
.implements Lcom/moji/lottie/BaseKeyframeAnimation$AnimationListener;
.implements Lcom/moji/lottie/DrawingContent;
.implements Lcom/moji/lottie/PathContent;


# static fields
.field private static final a:Ljava/lang/String; = "ContentGroup"


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

.field private final c:Landroid/graphics/Path;

.field private final d:Landroid/graphics/RectF;

.field private final e:Ljava/lang/String;

.field private final f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/lottie/Content;",
            ">;"
        }
    .end annotation
.end field

.field private final g:Lcom/moji/lottie/LottieDrawable;

.field private h:Ljava/util/List;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/moji/lottie/PathContent;",
            ">;"
        }
    .end annotation
.end field

.field private i:Lcom/moji/lottie/TransformKeyframeAnimation;
    .annotation build Landroid/support/annotation/Nullable;
    .end annotation
.end field


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

    return-void
.end method

.method constructor <init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/ShapeGroup;)V
    .locals 4

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

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

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

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

    .line 19
    new-instance v0, Landroid/graphics/Path;

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

    iput-object v0, p0, Lcom/moji/lottie/ContentGroup;->c:Landroid/graphics/Path;

    .line 20
    new-instance v0, Landroid/graphics/RectF;

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

    iput-object v0, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

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

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

    iput-object v0, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    .line 31
    invoke-virtual {p3}, Lcom/moji/lottie/ShapeGroup;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/lottie/ContentGroup;->e:Ljava/lang/String;

    .line 32
    iput-object p1, p0, Lcom/moji/lottie/ContentGroup;->g:Lcom/moji/lottie/LottieDrawable;

    .line 33
    invoke-virtual {p3}, Lcom/moji/lottie/ShapeGroup;->b()Ljava/util/List;

    move-result-object p3

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

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 38
    :cond_0
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-interface {p3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    .line 39
    instance-of v1, v0, Lcom/moji/lottie/AnimatableTransform;

    if-eqz v1, :cond_1

    .line 40
    check-cast v0, Lcom/moji/lottie/AnimatableTransform;

    invoke-virtual {v0}, Lcom/moji/lottie/AnimatableTransform;->f()Lcom/moji/lottie/TransformKeyframeAnimation;

    move-result-object v0

    iput-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    .line 42
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

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

    .line 43
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

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

    :cond_1
    const/4 v0, 0x0

    .line 46
    :goto_0
    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_e

    .line 47
    invoke-interface {p3, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    .line 48
    instance-of v2, v1, Lcom/moji/lottie/ShapeFill;

    if-eqz v2, :cond_2

    .line 49
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/FillContent;

    check-cast v1, Lcom/moji/lottie/ShapeFill;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/FillContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/ShapeFill;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 50
    :cond_2
    instance-of v2, v1, Lcom/moji/lottie/GradientFill;

    if-eqz v2, :cond_3

    .line 51
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/GradientFillContent;

    check-cast v1, Lcom/moji/lottie/GradientFill;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/GradientFillContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/GradientFill;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 52
    :cond_3
    instance-of v2, v1, Lcom/moji/lottie/ShapeStroke;

    if-eqz v2, :cond_4

    .line 53
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/StrokeContent;

    check-cast v1, Lcom/moji/lottie/ShapeStroke;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/StrokeContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/ShapeStroke;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 54
    :cond_4
    instance-of v2, v1, Lcom/moji/lottie/GradientStroke;

    if-eqz v2, :cond_5

    .line 55
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/GradientStrokeContent;

    check-cast v1, Lcom/moji/lottie/GradientStroke;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/GradientStrokeContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/GradientStroke;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 56
    :cond_5
    instance-of v2, v1, Lcom/moji/lottie/ShapeGroup;

    if-eqz v2, :cond_6

    .line 57
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/ContentGroup;

    check-cast v1, Lcom/moji/lottie/ShapeGroup;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/ContentGroup;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/ShapeGroup;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_1

    .line 58
    :cond_6
    instance-of v2, v1, Lcom/moji/lottie/RectangleShape;

    if-eqz v2, :cond_7

    .line 59
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/RectangleContent;

    check-cast v1, Lcom/moji/lottie/RectangleShape;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/RectangleContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/RectangleShape;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 60
    :cond_7
    instance-of v2, v1, Lcom/moji/lottie/CircleShape;

    if-eqz v2, :cond_8

    .line 61
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/EllipseContent;

    check-cast v1, Lcom/moji/lottie/CircleShape;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/EllipseContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/CircleShape;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 62
    :cond_8
    instance-of v2, v1, Lcom/moji/lottie/ShapePath;

    if-eqz v2, :cond_9

    .line 63
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/ShapeContent;

    check-cast v1, Lcom/moji/lottie/ShapePath;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/ShapeContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/ShapePath;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 64
    :cond_9
    instance-of v2, v1, Lcom/moji/lottie/PolystarShape;

    if-eqz v2, :cond_a

    .line 65
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/PolystarContent;

    check-cast v1, Lcom/moji/lottie/PolystarShape;

    invoke-direct {v3, p1, p2, v1}, Lcom/moji/lottie/PolystarContent;-><init>(Lcom/moji/lottie/LottieDrawable;Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/PolystarShape;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 66
    :cond_a
    instance-of v2, v1, Lcom/moji/lottie/ShapeTrimPath;

    if-eqz v2, :cond_b

    .line 67
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/TrimPathContent;

    check-cast v1, Lcom/moji/lottie/ShapeTrimPath;

    invoke-direct {v3, p2, v1}, Lcom/moji/lottie/TrimPathContent;-><init>(Lcom/moji/lottie/BaseLayer;Lcom/moji/lottie/ShapeTrimPath;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 69
    :cond_b
    instance-of v2, v1, Lcom/moji/lottie/MergePaths;

    if-eqz v2, :cond_d

    .line 70
    invoke-virtual {p1}, Lcom/moji/lottie/LottieDrawable;->a()Z

    move-result v2

    if-eqz v2, :cond_c

    .line 71
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    new-instance v3, Lcom/moji/lottie/MergePathsContent;

    check-cast v1, Lcom/moji/lottie/MergePaths;

    invoke-direct {v3, v1}, Lcom/moji/lottie/MergePathsContent;-><init>(Lcom/moji/lottie/MergePaths;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 73
    :cond_c
    sget-object v1, Lcom/moji/lottie/ContentGroup;->a:Ljava/lang/String;

    const-string v2, "Animation contains merge paths but they are disabled."

    invoke-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    :cond_d
    :goto_1
    add-int/lit8 v0, v0, 0x1

    goto/16 :goto_0

    .line 78
    :cond_e
    new-instance p1, Ljava/util/ArrayList;

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

    const/4 p2, 0x0

    .line 80
    iget-object p3, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {p3}, Ljava/util/List;->size()I

    move-result p3

    add-int/lit8 p3, p3, -0x1

    :goto_2
    if-ltz p3, :cond_11

    .line 81
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v0, p3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

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

    .line 82
    instance-of v1, v0, Lcom/moji/lottie/MergePathsContent;

    if-eqz v1, :cond_f

    .line 83
    move-object p2, v0

    check-cast p2, Lcom/moji/lottie/MergePathsContent;

    :cond_f
    if-eqz p2, :cond_10

    if-eq v0, p2, :cond_10

    .line 86
    invoke-virtual {p2, v0}, Lcom/moji/lottie/MergePathsContent;->a(Lcom/moji/lottie/Content;)V

    .line 87
    invoke-interface {p1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_10
    add-int/lit8 p3, p3, -0x1

    goto :goto_2

    .line 91
    :cond_11
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    .line 92
    :cond_12
    :goto_3
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    if-eqz p3, :cond_13

    .line 93
    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Lcom/moji/lottie/Content;

    .line 94
    invoke-interface {p1, p3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_12

    .line 95
    invoke-interface {p2}, Ljava/util/Iterator;->remove()V

    goto :goto_3

    :cond_13
    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 102
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->g:Lcom/moji/lottie/LottieDrawable;

    invoke-virtual {v0}, Lcom/moji/lottie/LottieDrawable;->invalidateSelf()V

    return-void
.end method

.method public a(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V
    .locals 2

    .line 179
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

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

    .line 181
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    if-eqz p2, :cond_0

    .line 182
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/TransformKeyframeAnimation;->b()Landroid/graphics/Matrix;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/graphics/Matrix;->preConcat(Landroid/graphics/Matrix;)Z

    .line 183
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    .line 184
    invoke-virtual {p2}, Lcom/moji/lottie/TransformKeyframeAnimation;->a()Lcom/moji/lottie/BaseKeyframeAnimation;

    move-result-object p2

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

    move-result-object p2

    check-cast p2, Ljava/lang/Integer;

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    int-to-float p2, p2

    const/high16 v0, 0x42c80000    # 100.0f

    div-float/2addr p2, v0

    int-to-float p3, p3

    mul-float p2, p2, p3

    const/high16 p3, 0x437f0000    # 255.0f

    div-float/2addr p2, p3

    mul-float p2, p2, p3

    float-to-int p3, p2

    .line 190
    :cond_0
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result p2

    add-int/lit8 p2, p2, -0x1

    :goto_0
    if-ltz p2, :cond_2

    .line 191
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    .line 192
    instance-of v1, v0, Lcom/moji/lottie/DrawingContent;

    if-eqz v1, :cond_1

    .line 193
    check-cast v0, Lcom/moji/lottie/DrawingContent;

    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    invoke-interface {v0, p1, v1, p3}, Lcom/moji/lottie/DrawingContent;->a(Landroid/graphics/Canvas;Landroid/graphics/Matrix;I)V

    :cond_1
    add-int/lit8 p2, p2, -0x1

    goto :goto_0

    :cond_2
    return-void
.end method

.method public a(Landroid/graphics/RectF;Landroid/graphics/Matrix;)V
    .locals 5

    .line 200
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

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

    .line 201
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    if-eqz p2, :cond_0

    .line 202
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/TransformKeyframeAnimation;->b()Landroid/graphics/Matrix;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/graphics/Matrix;->preConcat(Landroid/graphics/Matrix;)Z

    .line 204
    :cond_0
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    const/4 v0, 0x0

    invoke-virtual {p2, v0, v0, v0, v0}, Landroid/graphics/RectF;->set(FFFF)V

    .line 205
    iget-object p2, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {p2}, Ljava/util/List;->size()I

    move-result p2

    add-int/lit8 p2, p2, -0x1

    :goto_0
    if-ltz p2, :cond_3

    .line 206
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

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

    .line 207
    instance-of v1, v0, Lcom/moji/lottie/DrawingContent;

    if-eqz v1, :cond_2

    .line 208
    check-cast v0, Lcom/moji/lottie/DrawingContent;

    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    invoke-interface {v0, v1, v2}, Lcom/moji/lottie/DrawingContent;->a(Landroid/graphics/RectF;Landroid/graphics/Matrix;)V

    .line 209
    invoke-virtual {p1}, Landroid/graphics/RectF;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 210
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    invoke-virtual {p1, v0}, Landroid/graphics/RectF;->set(Landroid/graphics/RectF;)V

    goto :goto_1

    .line 212
    :cond_1
    iget v0, p1, Landroid/graphics/RectF;->left:F

    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    iget v1, v1, Landroid/graphics/RectF;->left:F

    .line 213
    invoke-static {v0, v1}, Ljava/lang/Math;->min(FF)F

    move-result v0

    iget v1, p1, Landroid/graphics/RectF;->top:F

    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    iget v2, v2, Landroid/graphics/RectF;->top:F

    .line 214
    invoke-static {v1, v2}, Ljava/lang/Math;->min(FF)F

    move-result v1

    iget v2, p1, Landroid/graphics/RectF;->right:F

    iget-object v3, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    iget v3, v3, Landroid/graphics/RectF;->right:F

    .line 215
    invoke-static {v2, v3}, Ljava/lang/Math;->max(FF)F

    move-result v2

    iget v3, p1, Landroid/graphics/RectF;->bottom:F

    iget-object v4, p0, Lcom/moji/lottie/ContentGroup;->d:Landroid/graphics/RectF;

    iget v4, v4, Landroid/graphics/RectF;->bottom:F

    .line 216
    invoke-static {v3, v4}, Ljava/lang/Math;->max(FF)F

    move-result v3

    .line 212
    invoke-virtual {p1, v0, v1, v2, v3}, Landroid/graphics/RectF;->set(FFFF)V

    :cond_2
    :goto_1
    add-int/lit8 p2, p2, -0x1

    goto :goto_0

    :cond_3
    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorFilter;)V
    .locals 3
    .param p1    # Ljava/lang/String;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .param p2    # Ljava/lang/String;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param
    .param p3    # Landroid/graphics/ColorFilter;
        .annotation build Landroid/support/annotation/Nullable;
        .end annotation
    .end param

    const/4 v0, 0x0

    .line 113
    :goto_0
    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_3

    .line 114
    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

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

    move-result-object v1

    check-cast v1, Lcom/moji/lottie/Content;

    .line 115
    instance-of v2, v1, Lcom/moji/lottie/DrawingContent;

    if-eqz v2, :cond_2

    .line 116
    move-object v2, v1

    check-cast v2, Lcom/moji/lottie/DrawingContent;

    if-eqz p2, :cond_1

    .line 117
    invoke-interface {v1}, Lcom/moji/lottie/Content;->e()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_1

    .line 120
    :cond_0
    invoke-interface {v2, p1, p2, p3}, Lcom/moji/lottie/DrawingContent;->a(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorFilter;)V

    goto :goto_2

    :cond_1
    :goto_1
    const/4 v1, 0x0

    .line 118
    invoke-interface {v2, p1, v1, p3}, Lcom/moji/lottie/DrawingContent;->a(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/ColorFilter;)V

    :cond_2
    :goto_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_3
    return-void
.end method

.method public a(Ljava/util/List;Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/moji/lottie/Content;",
            ">;",
            "Ljava/util/List<",
            "Lcom/moji/lottie/Content;",
            ">;)V"
        }
    .end annotation

    .line 129
    new-instance p2, Ljava/util/ArrayList;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    add-int/2addr v0, v1

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

    .line 130
    invoke-interface {p2, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 132
    iget-object p1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p1

    add-int/lit8 p1, p1, -0x1

    :goto_0
    if-ltz p1, :cond_0

    .line 133
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

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

    .line 134
    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    const/4 v2, 0x0

    invoke-interface {v1, v2, p1}, Ljava/util/List;->subList(II)Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, p2, v1}, Lcom/moji/lottie/Content;->a(Ljava/util/List;Ljava/util/List;)V

    .line 135
    invoke-interface {p2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 p1, p1, -0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method b()Ljava/util/List;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/moji/lottie/PathContent;",
            ">;"
        }
    .end annotation

    .line 140
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->h:Ljava/util/List;

    if-nez v0, :cond_1

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

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

    iput-object v0, p0, Lcom/moji/lottie/ContentGroup;->h:Ljava/util/List;

    const/4 v0, 0x0

    .line 142
    :goto_0
    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 143
    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

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

    move-result-object v1

    check-cast v1, Lcom/moji/lottie/Content;

    .line 144
    instance-of v2, v1, Lcom/moji/lottie/PathContent;

    if-eqz v2, :cond_0

    .line 145
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->h:Ljava/util/List;

    check-cast v1, Lcom/moji/lottie/PathContent;

    invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 149
    :cond_1
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->h:Ljava/util/List;

    return-object v0
.end method

.method c()Landroid/graphics/Matrix;
    .locals 1

    .line 153
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    if-eqz v0, :cond_0

    .line 154
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    invoke-virtual {v0}, Lcom/moji/lottie/TransformKeyframeAnimation;->b()Landroid/graphics/Matrix;

    move-result-object v0

    return-object v0

    .line 156
    :cond_0
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

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

    .line 157
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    return-object v0
.end method

.method public d()Landroid/graphics/Path;
    .locals 4

    .line 163
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

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

    .line 164
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    if-eqz v0, :cond_0

    .line 165
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->i:Lcom/moji/lottie/TransformKeyframeAnimation;

    invoke-virtual {v1}, Lcom/moji/lottie/TransformKeyframeAnimation;->b()Landroid/graphics/Matrix;

    move-result-object v1

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

    .line 167
    :cond_0
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->c:Landroid/graphics/Path;

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

    .line 168
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    :goto_0
    if-ltz v0, :cond_2

    .line 169
    iget-object v1, p0, Lcom/moji/lottie/ContentGroup;->f:Ljava/util/List;

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

    move-result-object v1

    check-cast v1, Lcom/moji/lottie/Content;

    .line 170
    instance-of v2, v1, Lcom/moji/lottie/PathContent;

    if-eqz v2, :cond_1

    .line 171
    iget-object v2, p0, Lcom/moji/lottie/ContentGroup;->c:Landroid/graphics/Path;

    check-cast v1, Lcom/moji/lottie/PathContent;

    invoke-interface {v1}, Lcom/moji/lottie/PathContent;->d()Landroid/graphics/Path;

    move-result-object v1

    iget-object v3, p0, Lcom/moji/lottie/ContentGroup;->b:Landroid/graphics/Matrix;

    invoke-virtual {v2, v1, v3}, Landroid/graphics/Path;->addPath(Landroid/graphics/Path;Landroid/graphics/Matrix;)V

    :cond_1
    add-int/lit8 v0, v0, -0x1

    goto :goto_0

    .line 174
    :cond_2
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->c:Landroid/graphics/Path;

    return-object v0
.end method

.method public e()Ljava/lang/String;
    .locals 1

    .line 107
    iget-object v0, p0, Lcom/moji/lottie/ContentGroup;->e:Ljava/lang/String;

    return-object v0
.end method
