SVGAVideoShapeEntity.smali

.class public final Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;
.super Ljava/lang/Object;
.source "SVGAVideoShapeEntity.kt"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;,
        Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;
    }
.end annotation


# instance fields
.field private a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

.field private b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "+",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private c:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;

.field private d:Landroid/graphics/Matrix;

.field private e:Landroid/graphics/Path;


# direct methods
.method public constructor <init>(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V
    .registers 3

    const-string v0, "obj"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->d(Ljava/lang/Object;Ljava/lang/String;)V

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

    .line 8
    sget-object v0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->shape:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    .line 9
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->d(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V

    .line 10
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V

    .line 11
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V

    .line 12
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->c(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V

    return-void
.end method

.method public constructor <init>(Lorg/json/JSONObject;)V
    .registers 3

    const-string v0, "obj"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/i;->d(Ljava/lang/Object;Ljava/lang/String;)V

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

    .line 2
    sget-object v0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->shape:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    .line 3
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->d(Lorg/json/JSONObject;)V

    .line 4
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a(Lorg/json/JSONObject;)V

    .line 5
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b(Lorg/json/JSONObject;)V

    .line 6
    invoke-direct {p0, p1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->c(Lorg/json/JSONObject;)V

    return-void
.end method

.method private final a(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V
    .registers 9

    .line 8
    new-instance v0, Ljava/util/HashMap;

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

    .line 9
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity;->shape:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeArgs;

    if-eqz v1, :cond_12

    .line 10
    iget-object v1, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeArgs;->d:Ljava/lang/String;

    if-eqz v1, :cond_12

    const-string v2, "d"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 11
    :cond_12
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity;->ellipse:Lcom/opensource/svgaplayer/proto/ShapeEntity$EllipseArgs;

    const-string v2, "y"

    const-string v3, "x"

    const/4 v4, 0x0

    if-eqz v1, :cond_4f

    .line 12
    iget-object v5, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$EllipseArgs;->x:Ljava/lang/Float;

    if-eqz v5, :cond_20

    goto :goto_24

    :cond_20
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v5

    :goto_24
    invoke-virtual {v0, v3, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 13
    iget-object v5, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$EllipseArgs;->y:Ljava/lang/Float;

    if-eqz v5, :cond_2c

    goto :goto_30

    :cond_2c
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v5

    :goto_30
    invoke-virtual {v0, v2, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 14
    iget-object v5, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$EllipseArgs;->radiusX:Ljava/lang/Float;

    if-eqz v5, :cond_38

    goto :goto_3c

    :cond_38
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v5

    :goto_3c
    const-string v6, "radiusX"

    invoke-virtual {v0, v6, v5}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 15
    iget-object v1, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$EllipseArgs;->radiusY:Ljava/lang/Float;

    if-eqz v1, :cond_46

    goto :goto_4a

    :cond_46
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    :goto_4a
    const-string v5, "radiusY"

    invoke-virtual {v0, v5, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 16
    :cond_4f
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity;->rect:Lcom/opensource/svgaplayer/proto/ShapeEntity$RectArgs;

    if-eqz p1, :cond_95

    .line 17
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$RectArgs;->x:Ljava/lang/Float;

    if-eqz v1, :cond_58

    goto :goto_5c

    :cond_58
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    :goto_5c
    invoke-virtual {v0, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 18
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$RectArgs;->y:Ljava/lang/Float;

    if-eqz v1, :cond_64

    goto :goto_68

    :cond_64
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    :goto_68
    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 19
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$RectArgs;->width:Ljava/lang/Float;

    if-eqz v1, :cond_70

    goto :goto_74

    :cond_70
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    :goto_74
    const-string v2, "width"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 20
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$RectArgs;->height:Ljava/lang/Float;

    if-eqz v1, :cond_7e

    goto :goto_82

    :cond_7e
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    :goto_82
    const-string v2, "height"

    invoke-virtual {v0, v2, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 21
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$RectArgs;->cornerRadius:Ljava/lang/Float;

    if-eqz p1, :cond_8c

    goto :goto_90

    :cond_8c
    invoke-static {v4}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object p1

    :goto_90
    const-string v1, "cornerRadius"

    invoke-virtual {v0, v1, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 22
    :cond_95
    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    return-void
.end method

.method private final a(Lorg/json/JSONObject;)V
    .registers 6

    .line 1
    new-instance v0, Ljava/util/HashMap;

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

    const-string v1, "args"

    .line 2
    invoke-virtual {p1, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object p1

    if-eqz p1, :cond_2e

    .line 3
    invoke-virtual {p1}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v1

    const-string v2, "values.keys()"

    invoke-static {v1, v2}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;Ljava/lang/String;)V

    .line 4
    :cond_16
    :goto_16
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2c

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 5
    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    if-eqz v3, :cond_16

    .line 6
    invoke-virtual {v0, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_16

    .line 7
    :cond_2c
    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    :cond_2e
    return-void
.end method

.method private final b(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V
    .registers 10

    .line 19
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity;->styles:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;

    if-eqz p1, :cond_120

    .line 20
    new-instance v0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;

    invoke-direct {v0}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;-><init>()V

    .line 21
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->fill:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;

    const/16 v2, 0xff

    const/4 v3, 0x0

    if-eqz v1, :cond_4c

    .line 22
    iget-object v4, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->a:Ljava/lang/Float;

    if-eqz v4, :cond_19

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

    move-result v4

    goto :goto_1a

    :cond_19
    const/4 v4, 0x0

    :goto_1a
    int-to-float v5, v2

    mul-float v4, v4, v5

    float-to-int v4, v4

    iget-object v6, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->r:Ljava/lang/Float;

    if-eqz v6, :cond_27

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

    move-result v6

    goto :goto_28

    :cond_27
    const/4 v6, 0x0

    :goto_28
    mul-float v6, v6, v5

    float-to-int v6, v6

    iget-object v7, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->g:Ljava/lang/Float;

    if-eqz v7, :cond_34

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

    move-result v7

    goto :goto_35

    :cond_34
    const/4 v7, 0x0

    :goto_35
    mul-float v7, v7, v5

    float-to-int v7, v7

    iget-object v1, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->b:Ljava/lang/Float;

    if-eqz v1, :cond_41

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

    move-result v1

    goto :goto_42

    :cond_41
    const/4 v1, 0x0

    :goto_42
    mul-float v1, v1, v5

    float-to-int v1, v1

    invoke-static {v4, v6, v7, v1}, Landroid/graphics/Color;->argb(IIII)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(I)V

    .line 23
    :cond_4c
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->stroke:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;

    if-eqz v1, :cond_8c

    .line 24
    iget-object v4, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->a:Ljava/lang/Float;

    if-eqz v4, :cond_59

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

    move-result v4

    goto :goto_5a

    :cond_59
    const/4 v4, 0x0

    :goto_5a
    int-to-float v2, v2

    mul-float v4, v4, v2

    float-to-int v4, v4

    iget-object v5, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->r:Ljava/lang/Float;

    if-eqz v5, :cond_67

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

    move-result v5

    goto :goto_68

    :cond_67
    const/4 v5, 0x0

    :goto_68
    mul-float v5, v5, v2

    float-to-int v5, v5

    iget-object v6, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->g:Ljava/lang/Float;

    if-eqz v6, :cond_74

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

    move-result v6

    goto :goto_75

    :cond_74
    const/4 v6, 0x0

    :goto_75
    mul-float v6, v6, v2

    float-to-int v6, v6

    iget-object v1, v1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$RGBAColor;->b:Ljava/lang/Float;

    if-eqz v1, :cond_81

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

    move-result v1

    goto :goto_82

    :cond_81
    const/4 v1, 0x0

    :goto_82
    mul-float v1, v1, v2

    float-to-int v1, v1

    invoke-static {v4, v5, v6, v1}, Landroid/graphics/Color;->argb(IIII)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->c(I)V

    .line 25
    :cond_8c
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->strokeWidth:Ljava/lang/Float;

    if-eqz v1, :cond_95

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

    move-result v1

    goto :goto_96

    :cond_95
    const/4 v1, 0x0

    :goto_96
    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(F)V

    .line 26
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->lineCap:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$LineCap;

    const-string v2, "round"

    const/4 v4, 0x3

    const/4 v5, 0x2

    const/4 v6, 0x1

    if-eqz v1, :cond_c0

    .line 27
    sget-object v7, Lcom/opensource/svgaplayer/entities/d;->b:[I

    invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I

    move-result v1

    aget v1, v7, v1

    if-eq v1, v6, :cond_bb

    if-eq v1, v5, :cond_b7

    if-eq v1, v4, :cond_b1

    goto :goto_c0

    :cond_b1
    const-string v1, "square"

    .line 28
    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(Ljava/lang/String;)V

    goto :goto_c0

    .line 29
    :cond_b7
    invoke-virtual {v0, v2}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(Ljava/lang/String;)V

    goto :goto_c0

    :cond_bb
    const-string v1, "butt"

    .line 30
    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(Ljava/lang/String;)V

    .line 31
    :cond_c0
    :goto_c0
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->lineJoin:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle$LineJoin;

    if-eqz v1, :cond_e2

    .line 32
    sget-object v7, Lcom/opensource/svgaplayer/entities/d;->c:[I

    invoke-virtual {v1}, Ljava/lang/Enum;->ordinal()I

    move-result v1

    aget v1, v7, v1

    if-eq v1, v6, :cond_dd

    if-eq v1, v5, :cond_d7

    if-eq v1, v4, :cond_d3

    goto :goto_e2

    .line 33
    :cond_d3
    invoke-virtual {v0, v2}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->b(Ljava/lang/String;)V

    goto :goto_e2

    :cond_d7
    const-string v1, "miter"

    .line 34
    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->b(Ljava/lang/String;)V

    goto :goto_e2

    :cond_dd
    const-string v1, "bevel"

    .line 35
    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->b(Ljava/lang/String;)V

    .line 36
    :cond_e2
    :goto_e2
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->miterLimit:Ljava/lang/Float;

    if-eqz v1, :cond_ea

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

    move-result v3

    :cond_ea
    float-to-int v1, v3

    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->b(I)V

    .line 37
    new-array v1, v4, [F

    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a([F)V

    .line 38
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->lineDashI:Ljava/lang/Float;

    if-eqz v1, :cond_102

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

    move-result v1

    invoke-virtual {v0}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->c()[F

    move-result-object v2

    const/4 v3, 0x0

    aput v1, v2, v3

    .line 39
    :cond_102
    iget-object v1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->lineDashII:Ljava/lang/Float;

    if-eqz v1, :cond_110

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

    move-result v1

    invoke-virtual {v0}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->c()[F

    move-result-object v2

    aput v1, v2, v6

    .line 40
    :cond_110
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeStyle;->lineDashIII:Ljava/lang/Float;

    if-eqz p1, :cond_11e

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

    move-result p1

    invoke-virtual {v0}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->c()[F

    move-result-object v1

    aput p1, v1, v5

    .line 41
    :cond_11e
    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->c:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;

    :cond_120
    return-void
.end method

.method private final b(Lorg/json/JSONObject;)V
    .registers 18

    const-string v0, "styles"

    move-object/from16 v1, p1

    .line 2
    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    if-eqz v0, :cond_f1

    .line 3
    new-instance v1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;

    invoke-direct {v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;-><init>()V

    const-string v2, "fill"

    .line 4
    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    const/4 v3, 0x2

    const/16 v4, 0xff

    const/4 v5, 0x3

    const/4 v6, 0x4

    const/4 v7, 0x1

    const/4 v8, 0x0

    if-eqz v2, :cond_54

    .line 5
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ne v9, v6, :cond_54

    .line 6
    invoke-virtual {v2, v5}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v9

    int-to-double v11, v4

    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v9, v9, v11

    double-to-int v9, v9

    invoke-virtual {v2, v8}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v13

    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v13, v13, v11

    double-to-int v10, v13

    invoke-virtual {v2, v7}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v13

    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v13, v13, v11

    double-to-int v13, v13

    invoke-virtual {v2, v3}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v14

    invoke-static {v11, v12}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v14, v14, v11

    double-to-int v2, v14

    invoke-static {v9, v10, v13, v2}, Landroid/graphics/Color;->argb(IIII)I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(I)V

    :cond_54
    const-string v2, "stroke"

    .line 7
    invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    if-eqz v2, :cond_92

    .line 8
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v9

    if-ne v9, v6, :cond_92

    .line 9
    invoke-virtual {v2, v5}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v5

    int-to-double v9, v4

    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v5, v5, v9

    double-to-int v4, v5

    invoke-virtual {v2, v8}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v5

    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v5, v5, v9

    double-to-int v5, v5

    invoke-virtual {v2, v7}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v6

    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v6, v6, v9

    double-to-int v6, v6

    invoke-virtual {v2, v3}, Lorg/json/JSONArray;->optDouble(I)D

    move-result-wide v2

    invoke-static {v9, v10}, Ljava/lang/Double;->isNaN(D)Z

    mul-double v2, v2, v9

    double-to-int v2, v2

    invoke-static {v4, v5, v6, v2}, Landroid/graphics/Color;->argb(IIII)I

    move-result v2

    invoke-virtual {v1, v2}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->c(I)V

    :cond_92
    const-wide/16 v2, 0x0

    const-string v4, "strokeWidth"

    .line 10
    invoke-virtual {v0, v4, v2, v3}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v4

    double-to-float v4, v4

    invoke-virtual {v1, v4}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(F)V

    const-string v4, "lineCap"

    const-string v5, "butt"

    .line 11
    invoke-virtual {v0, v4, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "it.optString(\"lineCap\", \"butt\")"

    invoke-static {v4, v5}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v1, v4}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a(Ljava/lang/String;)V

    const-string v4, "lineJoin"

    const-string v5, "miter"

    .line 12
    invoke-virtual {v0, v4, v5}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const-string v5, "it.optString(\"lineJoin\", \"miter\")"

    invoke-static {v4, v5}, Lkotlin/jvm/internal/i;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v1, v4}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->b(Ljava/lang/String;)V

    const-string v4, "miterLimit"

    .line 13
    invoke-virtual {v0, v4, v8}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I

    move-result v4

    invoke-virtual {v1, v4}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->b(I)V

    const-string v4, "lineDash"

    .line 14
    invoke-virtual {v0, v4}, Lorg/json/JSONObject;->optJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v0

    if-eqz v0, :cond_ec

    .line 15
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v4

    new-array v4, v4, [F

    invoke-virtual {v1, v4}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->a([F)V

    .line 16
    invoke-virtual {v0}, Lorg/json/JSONArray;->length()I

    move-result v4

    :goto_dc
    if-ge v8, v4, :cond_ec

    .line 17
    invoke-virtual {v1}, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;->c()[F

    move-result-object v5

    invoke-virtual {v0, v8, v2, v3}, Lorg/json/JSONArray;->optDouble(ID)D

    move-result-wide v6

    double-to-float v6, v6

    aput v6, v5, v8

    add-int/lit8 v8, v8, 0x1

    goto :goto_dc

    :cond_ec
    move-object/from16 v0, p0

    .line 18
    iput-object v1, v0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->c:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;

    goto :goto_f3

    :cond_f1
    move-object/from16 v0, p0

    :goto_f3
    return-void
.end method

.method private final c(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V
    .registers 12

    .line 13
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity;->transform:Lcom/opensource/svgaplayer/proto/Transform;

    if-eqz p1, :cond_6f

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

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

    const/16 v1, 0x9

    .line 15
    new-array v1, v1, [F

    .line 16
    iget-object v2, p1, Lcom/opensource/svgaplayer/proto/Transform;->a:Ljava/lang/Float;

    const/high16 v3, 0x3f800000    # 1.0f

    if-eqz v2, :cond_18

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

    move-result v2

    goto :goto_1a

    :cond_18
    const/high16 v2, 0x3f800000    # 1.0f

    .line 17
    :goto_1a
    iget-object v4, p1, Lcom/opensource/svgaplayer/proto/Transform;->b:Ljava/lang/Float;

    const/4 v5, 0x0

    if-eqz v4, :cond_24

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

    move-result v4

    goto :goto_25

    :cond_24
    const/4 v4, 0x0

    .line 18
    :goto_25
    iget-object v6, p1, Lcom/opensource/svgaplayer/proto/Transform;->c:Ljava/lang/Float;

    if-eqz v6, :cond_2e

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

    move-result v6

    goto :goto_2f

    :cond_2e
    const/4 v6, 0x0

    .line 19
    :goto_2f
    iget-object v7, p1, Lcom/opensource/svgaplayer/proto/Transform;->d:Ljava/lang/Float;

    if-eqz v7, :cond_38

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

    move-result v7

    goto :goto_3a

    :cond_38
    const/high16 v7, 0x3f800000    # 1.0f

    .line 20
    :goto_3a
    iget-object v8, p1, Lcom/opensource/svgaplayer/proto/Transform;->tx:Ljava/lang/Float;

    if-eqz v8, :cond_43

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

    move-result v8

    goto :goto_44

    :cond_43
    const/4 v8, 0x0

    .line 21
    :goto_44
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/Transform;->ty:Ljava/lang/Float;

    if-eqz p1, :cond_4d

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

    move-result p1

    goto :goto_4e

    :cond_4d
    const/4 p1, 0x0

    :goto_4e
    const/4 v9, 0x0

    aput v2, v1, v9

    const/4 v2, 0x1

    aput v6, v1, v2

    const/4 v2, 0x2

    aput v8, v1, v2

    const/4 v2, 0x3

    aput v4, v1, v2

    const/4 v2, 0x4

    aput v7, v1, v2

    const/4 v2, 0x5

    aput p1, v1, v2

    const/4 p1, 0x6

    aput v5, v1, p1

    const/4 p1, 0x7

    aput v5, v1, p1

    const/16 p1, 0x8

    aput v3, v1, p1

    .line 22
    invoke-virtual {v0, v1}, Landroid/graphics/Matrix;->setValues([F)V

    .line 23
    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->d:Landroid/graphics/Matrix;

    :cond_6f
    return-void
.end method

.method private final c(Lorg/json/JSONObject;)V
    .registers 18

    const-string v0, "transform"

    move-object/from16 v1, p1

    .line 2
    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v0

    if-eqz v0, :cond_6d

    .line 3
    new-instance v1, Landroid/graphics/Matrix;

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

    const/16 v2, 0x9

    .line 4
    new-array v2, v2, [F

    const-wide/high16 v3, 0x3ff0000000000000L    # 1.0

    const-string v5, "a"

    .line 5
    invoke-virtual {v0, v5, v3, v4}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v5

    const-wide/16 v7, 0x0

    const-string v9, "b"

    .line 6
    invoke-virtual {v0, v9, v7, v8}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v9

    const-string v11, "c"

    .line 7
    invoke-virtual {v0, v11, v7, v8}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v11

    const-string v13, "d"

    .line 8
    invoke-virtual {v0, v13, v3, v4}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v13

    const-string v15, "tx"

    .line 9
    invoke-virtual {v0, v15, v7, v8}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v3

    const-string v15, "ty"

    move-object/from16 p1, v1

    .line 10
    invoke-virtual {v0, v15, v7, v8}, Lorg/json/JSONObject;->optDouble(Ljava/lang/String;D)D

    move-result-wide v0

    const/4 v15, 0x0

    double-to-float v5, v5

    aput v5, v2, v15

    const/4 v5, 0x1

    double-to-float v6, v11

    aput v6, v2, v5

    const/4 v5, 0x2

    double-to-float v3, v3

    aput v3, v2, v5

    const/4 v3, 0x3

    double-to-float v4, v9

    aput v4, v2, v3

    const/4 v3, 0x4

    double-to-float v4, v13

    aput v4, v2, v3

    const/4 v3, 0x5

    double-to-float v0, v0

    aput v0, v2, v3

    const/4 v0, 0x6

    double-to-float v1, v7

    aput v1, v2, v0

    const/4 v0, 0x7

    aput v1, v2, v0

    const/16 v0, 0x8

    const-wide/high16 v3, 0x3ff0000000000000L    # 1.0

    double-to-float v1, v3

    aput v1, v2, v0

    move-object/from16 v0, p1

    .line 11
    invoke-virtual {v0, v2}, Landroid/graphics/Matrix;->setValues([F)V

    move-object/from16 v1, p0

    .line 12
    iput-object v0, v1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->d:Landroid/graphics/Matrix;

    goto :goto_6f

    :cond_6d
    move-object/from16 v1, p0

    :goto_6f
    return-void
.end method

.method private final d(Lcom/opensource/svgaplayer/proto/ShapeEntity;)V
    .registers 3

    .line 7
    iget-object p1, p1, Lcom/opensource/svgaplayer/proto/ShapeEntity;->type:Lcom/opensource/svgaplayer/proto/ShapeEntity$ShapeType;

    if-eqz p1, :cond_2b

    .line 8
    sget-object v0, Lcom/opensource/svgaplayer/entities/d;->a:[I

    invoke-virtual {p1}, Ljava/lang/Enum;->ordinal()I

    move-result p1

    aget p1, v0, p1

    const/4 v0, 0x1

    if-eq p1, v0, :cond_27

    const/4 v0, 0x2

    if-eq p1, v0, :cond_24

    const/4 v0, 0x3

    if-eq p1, v0, :cond_21

    const/4 v0, 0x4

    if-ne p1, v0, :cond_1b

    .line 9
    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->keep:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    goto :goto_29

    :cond_1b
    new-instance p1, Lkotlin/NoWhenBranchMatchedException;

    invoke-direct {p1}, Lkotlin/NoWhenBranchMatchedException;-><init>()V

    throw p1

    .line 10
    :cond_21
    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->ellipse:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    goto :goto_29

    .line 11
    :cond_24
    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->rect:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    goto :goto_29

    .line 12
    :cond_27
    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->shape:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    .line 13
    :goto_29
    iput-object p1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    :cond_2b
    return-void
.end method

.method private final d(Lorg/json/JSONObject;)V
    .registers 4

    const-string v0, "type"

    .line 2
    invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    if-eqz p1, :cond_3c

    const/4 v0, 0x1

    const-string v1, "shape"

    .line 3
    invoke-static {p1, v1, v0}, Lkotlin/text/f;->b(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_16

    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->shape:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    iput-object p1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    goto :goto_3c

    :cond_16
    const-string v1, "rect"

    .line 4
    invoke-static {p1, v1, v0}, Lkotlin/text/f;->b(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_23

    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->rect:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    iput-object p1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    goto :goto_3c

    :cond_23
    const-string v1, "ellipse"

    .line 5
    invoke-static {p1, v1, v0}, Lkotlin/text/f;->b(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_30

    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->ellipse:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    iput-object p1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    goto :goto_3c

    :cond_30
    const-string v1, "keep"

    .line 6
    invoke-static {p1, v1, v0}, Lkotlin/text/f;->b(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result p1

    if-eqz p1, :cond_3c

    sget-object p1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->keep:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    iput-object p1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    :cond_3c
    :goto_3c
    return-void
.end method


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

    .line 23
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->e:Landroid/graphics/Path;

    if-eqz v0, :cond_5

    return-void

    .line 24
    :cond_5
    invoke-static {}, Lcom/opensource/svgaplayer/entities/e;->a()Landroid/graphics/Path;

    move-result-object v0

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

    .line 25
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    sget-object v1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->shape:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    const/4 v2, 0x0

    if-ne v0, v1, :cond_36

    .line 26
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v0, :cond_1e

    const-string v1, "d"

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

    move-result-object v0

    goto :goto_1f

    :cond_1e
    move-object v0, v2

    :goto_1f
    instance-of v1, v0, Ljava/lang/String;

    if-nez v1, :cond_24

    move-object v0, v2

    :cond_24
    check-cast v0, Ljava/lang/String;

    if-eqz v0, :cond_146

    .line 27
    new-instance v1, Lcom/opensource/svgaplayer/entities/b;

    invoke-direct {v1, v0}, Lcom/opensource/svgaplayer/entities/b;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcom/opensource/svgaplayer/entities/e;->a()Landroid/graphics/Path;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/opensource/svgaplayer/entities/b;->a(Landroid/graphics/Path;)V

    goto/16 :goto_146

    .line 28
    :cond_36
    sget-object v1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->ellipse:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    const-string v3, "y"

    const-string v4, "x"

    if-ne v0, v1, :cond_b6

    .line 29
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v0, :cond_47

    invoke-interface {v0, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_48

    :cond_47
    move-object v0, v2

    :goto_48
    instance-of v1, v0, Ljava/lang/Number;

    if-nez v1, :cond_4d

    move-object v0, v2

    :cond_4d
    check-cast v0, Ljava/lang/Number;

    if-eqz v0, :cond_b5

    .line 30
    iget-object v1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v1, :cond_5a

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    goto :goto_5b

    :cond_5a
    move-object v1, v2

    :goto_5b
    instance-of v3, v1, Ljava/lang/Number;

    if-nez v3, :cond_60

    move-object v1, v2

    :cond_60
    check-cast v1, Ljava/lang/Number;

    if-eqz v1, :cond_b5

    .line 31
    iget-object v3, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v3, :cond_6f

    const-string v4, "radiusX"

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    goto :goto_70

    :cond_6f
    move-object v3, v2

    :goto_70
    instance-of v4, v3, Ljava/lang/Number;

    if-nez v4, :cond_75

    move-object v3, v2

    :cond_75
    check-cast v3, Ljava/lang/Number;

    if-eqz v3, :cond_b5

    .line 32
    iget-object v4, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v4, :cond_84

    const-string v5, "radiusY"

    invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    goto :goto_85

    :cond_84
    move-object v4, v2

    :goto_85
    instance-of v5, v4, Ljava/lang/Number;

    if-nez v5, :cond_8a

    goto :goto_8b

    :cond_8a
    move-object v2, v4

    :goto_8b
    check-cast v2, Ljava/lang/Number;

    if-eqz v2, :cond_b5

    .line 33
    invoke-virtual {v0}, Ljava/lang/Number;->floatValue()F

    move-result v0

    .line 34
    invoke-virtual {v1}, Ljava/lang/Number;->floatValue()F

    move-result v1

    .line 35
    invoke-virtual {v3}, Ljava/lang/Number;->floatValue()F

    move-result v3

    .line 36
    invoke-virtual {v2}, Ljava/lang/Number;->floatValue()F

    move-result v2

    .line 37
    invoke-static {}, Lcom/opensource/svgaplayer/entities/e;->a()Landroid/graphics/Path;

    move-result-object v4

    new-instance v5, Landroid/graphics/RectF;

    sub-float v6, v0, v3

    sub-float v7, v1, v2

    add-float/2addr v0, v3

    add-float/2addr v1, v2

    invoke-direct {v5, v6, v7, v0, v1}, Landroid/graphics/RectF;-><init>(FFFF)V

    sget-object v0, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;

    invoke-virtual {v4, v5, v0}, Landroid/graphics/Path;->addOval(Landroid/graphics/RectF;Landroid/graphics/Path$Direction;)V

    goto/16 :goto_146

    :cond_b5
    return-void

    .line 38
    :cond_b6
    sget-object v1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->rect:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    if-ne v0, v1, :cond_146

    .line 39
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v0, :cond_c3

    invoke-interface {v0, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    goto :goto_c4

    :cond_c3
    move-object v0, v2

    :goto_c4
    instance-of v1, v0, Ljava/lang/Number;

    if-nez v1, :cond_c9

    move-object v0, v2

    :cond_c9
    check-cast v0, Ljava/lang/Number;

    if-eqz v0, :cond_145

    .line 40
    iget-object v1, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v1, :cond_d6

    invoke-interface {v1, v3}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    goto :goto_d7

    :cond_d6
    move-object v1, v2

    :goto_d7
    instance-of v3, v1, Ljava/lang/Number;

    if-nez v3, :cond_dc

    move-object v1, v2

    :cond_dc
    check-cast v1, Ljava/lang/Number;

    if-eqz v1, :cond_145

    .line 41
    iget-object v3, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v3, :cond_eb

    const-string v4, "width"

    invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    goto :goto_ec

    :cond_eb
    move-object v3, v2

    :goto_ec
    instance-of v4, v3, Ljava/lang/Number;

    if-nez v4, :cond_f1

    move-object v3, v2

    :cond_f1
    check-cast v3, Ljava/lang/Number;

    if-eqz v3, :cond_145

    .line 42
    iget-object v4, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v4, :cond_100

    const-string v5, "height"

    invoke-interface {v4, v5}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    goto :goto_101

    :cond_100
    move-object v4, v2

    :goto_101
    instance-of v5, v4, Ljava/lang/Number;

    if-nez v5, :cond_106

    move-object v4, v2

    :cond_106
    check-cast v4, Ljava/lang/Number;

    if-eqz v4, :cond_145

    .line 43
    iget-object v5, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->b:Ljava/util/Map;

    if-eqz v5, :cond_115

    const-string v6, "cornerRadius"

    invoke-interface {v5, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    goto :goto_116

    :cond_115
    move-object v5, v2

    :goto_116
    instance-of v6, v5, Ljava/lang/Number;

    if-nez v6, :cond_11b

    goto :goto_11c

    :cond_11b
    move-object v2, v5

    :goto_11c
    check-cast v2, Ljava/lang/Number;

    if-eqz v2, :cond_145

    .line 44
    invoke-virtual {v0}, Ljava/lang/Number;->floatValue()F

    move-result v0

    .line 45
    invoke-virtual {v1}, Ljava/lang/Number;->floatValue()F

    move-result v1

    .line 46
    invoke-virtual {v3}, Ljava/lang/Number;->floatValue()F

    move-result v3

    .line 47
    invoke-virtual {v4}, Ljava/lang/Number;->floatValue()F

    move-result v4

    .line 48
    invoke-virtual {v2}, Ljava/lang/Number;->floatValue()F

    move-result v2

    .line 49
    invoke-static {}, Lcom/opensource/svgaplayer/entities/e;->a()Landroid/graphics/Path;

    move-result-object v5

    new-instance v6, Landroid/graphics/RectF;

    add-float/2addr v3, v0

    add-float/2addr v4, v1

    invoke-direct {v6, v0, v1, v3, v4}, Landroid/graphics/RectF;-><init>(FFFF)V

    sget-object v0, Landroid/graphics/Path$Direction;->CW:Landroid/graphics/Path$Direction;

    invoke-virtual {v5, v6, v2, v2, v0}, Landroid/graphics/Path;->addRoundRect(Landroid/graphics/RectF;FFLandroid/graphics/Path$Direction;)V

    goto :goto_146

    :cond_145
    return-void

    .line 50
    :cond_146
    :goto_146
    new-instance v0, Landroid/graphics/Path;

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

    iput-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->e:Landroid/graphics/Path;

    .line 51
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->e:Landroid/graphics/Path;

    if-eqz v0, :cond_158

    invoke-static {}, Lcom/opensource/svgaplayer/entities/e;->a()Landroid/graphics/Path;

    move-result-object v1

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

    :cond_158
    return-void
.end method

.method public final b()Landroid/graphics/Path;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->e:Landroid/graphics/Path;

    return-object v0
.end method

.method public final c()Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->c:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$a;

    return-object v0
.end method

.method public final d()Landroid/graphics/Matrix;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->d:Landroid/graphics/Matrix;

    return-object v0
.end method

.method public final e()Z
    .registers 3

    .line 1
    iget-object v0, p0, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity;->a:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    sget-object v1, Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;->keep:Lcom/opensource/svgaplayer/entities/SVGAVideoShapeEntity$Type;

    if-ne v0, v1, :cond_8

    const/4 v0, 0x1

    goto :goto_9

    :cond_8
    const/4 v0, 0x0

    :goto_9
    return v0
.end method