960 lines
21 KiB
Smali
960 lines
21 KiB
Smali
.class public final Lcom/airbnb/lottie/e/t;
|
|
.super Ljava/lang/Object;
|
|
.source "LottieCompositionMoshiParser.java"
|
|
|
|
|
|
# static fields
|
|
.field private static final mO:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
.field static nh:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
.field private static final ni:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
.field private static final nj:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 13
|
|
|
|
const/16 v0, 0xb
|
|
|
|
new-array v0, v0, [Ljava/lang/String;
|
|
|
|
const-string v1, "w"
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const-string v3, "h"
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v3, v0, v4
|
|
|
|
const/4 v5, 0x2
|
|
|
|
const-string v6, "ip"
|
|
|
|
aput-object v6, v0, v5
|
|
|
|
const/4 v6, 0x3
|
|
|
|
const-string v7, "op"
|
|
|
|
aput-object v7, v0, v6
|
|
|
|
const/4 v7, 0x4
|
|
|
|
const-string v8, "fr"
|
|
|
|
aput-object v8, v0, v7
|
|
|
|
const/4 v8, 0x5
|
|
|
|
const-string v9, "v"
|
|
|
|
aput-object v9, v0, v8
|
|
|
|
const-string v9, "layers"
|
|
|
|
const/4 v10, 0x6
|
|
|
|
aput-object v9, v0, v10
|
|
|
|
const/4 v11, 0x7
|
|
|
|
const-string v12, "assets"
|
|
|
|
aput-object v12, v0, v11
|
|
|
|
const/16 v11, 0x8
|
|
|
|
const-string v12, "fonts"
|
|
|
|
aput-object v12, v0, v11
|
|
|
|
const/16 v11, 0x9
|
|
|
|
const-string v12, "chars"
|
|
|
|
aput-object v12, v0, v11
|
|
|
|
const/16 v11, 0xa
|
|
|
|
const-string v12, "markers"
|
|
|
|
aput-object v12, v0, v11
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/a/c$a;->a([Ljava/lang/String;)Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/t;->mO:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
new-array v0, v10, [Ljava/lang/String;
|
|
|
|
const-string v10, "id"
|
|
|
|
aput-object v10, v0, v2
|
|
|
|
aput-object v9, v0, v4
|
|
|
|
aput-object v1, v0, v5
|
|
|
|
aput-object v3, v0, v6
|
|
|
|
const-string v1, "p"
|
|
|
|
aput-object v1, v0, v7
|
|
|
|
const-string v1, "u"
|
|
|
|
aput-object v1, v0, v8
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/a/c$a;->a([Ljava/lang/String;)Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/t;->nh:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
new-array v0, v4, [Ljava/lang/String;
|
|
|
|
const-string v1, "list"
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/a/c$a;->a([Ljava/lang/String;)Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/t;->ni:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
new-array v0, v6, [Ljava/lang/String;
|
|
|
|
const-string v1, "cm"
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
const-string v1, "tm"
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
const-string v1, "dr"
|
|
|
|
aput-object v1, v0, v5
|
|
|
|
invoke-static {v0}, Lcom/airbnb/lottie/e/a/c$a;->a([Ljava/lang/String;)Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/airbnb/lottie/e/t;->nj:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;Landroidx/collection/SparseArrayCompat;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/e/a/c;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"Landroidx/collection/SparseArrayCompat<",
|
|
"Lcom/airbnb/lottie/c/d;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/j;->j(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/d;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/airbnb/lottie/c/d;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {p2, v1, v0}, Landroidx/collection/SparseArrayCompat;->put(ILjava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;Ljava/util/List;Landroidx/collection/LongSparseArray;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/e/a/c;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/c/c/d;",
|
|
">;",
|
|
"Landroidx/collection/LongSparseArray<",
|
|
"Lcom/airbnb/lottie/c/c/d;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/s;->m(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/c/d;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, v1, Lcom/airbnb/lottie/c/c/d;->lY:Lcom/airbnb/lottie/c/c/d$a;
|
|
|
|
sget-object v3, Lcom/airbnb/lottie/c/c/d$a;->mo:Lcom/airbnb/lottie/c/c/d$a;
|
|
|
|
if-ne v2, v3, :cond_1
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
:cond_1
|
|
invoke-interface {p2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-wide v2, v1, Lcom/airbnb/lottie/c/c/d;->lX:J
|
|
|
|
invoke-virtual {p3, v2, v3, v1}, Landroidx/collection/LongSparseArray;->put(JLjava/lang/Object;)V
|
|
|
|
const/4 v1, 0x4
|
|
|
|
if-le v0, v1, :cond_0
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "You have "
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, " images. Lottie should primarily be used with shapes. If you are using Adobe Illustrator, convert the Illustrator layers to shape layers."
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/airbnb/lottie/f/d;->warning(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;Ljava/util/Map;Ljava/util/Map;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/e/a/c;",
|
|
"Lcom/airbnb/lottie/d;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/c/c/d;",
|
|
">;>;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/airbnb/lottie/g;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_9
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v1, Landroidx/collection/LongSparseArray;
|
|
|
|
invoke-direct {v1}, Landroidx/collection/LongSparseArray;-><init>()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginObject()V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move-object v7, v3
|
|
|
|
move-object v8, v7
|
|
|
|
move-object v9, v8
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
sget-object v2, Lcom/airbnb/lottie/e/t;->nh:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {p0, v2}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
const/4 v3, 0x1
|
|
|
|
if-eq v2, v3, :cond_4
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-eq v2, v3, :cond_3
|
|
|
|
const/4 v3, 0x3
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
const/4 v3, 0x4
|
|
|
|
if-eq v2, v3, :cond_1
|
|
|
|
const/4 v3, 0x5
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bD()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
:goto_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
invoke-static {p0, p1}, Lcom/airbnb/lottie/e/s;->m(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;)Lcom/airbnb/lottie/c/c/d;
|
|
|
|
move-result-object v2
|
|
|
|
iget-wide v3, v2, Lcom/airbnb/lottie/c/c/d;->lX:J
|
|
|
|
invoke-virtual {v1, v3, v4, v2}, Landroidx/collection/LongSparseArray;->put(JLjava/lang/Object;)V
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endObject()V
|
|
|
|
if-eqz v8, :cond_8
|
|
|
|
new-instance v0, Lcom/airbnb/lottie/g;
|
|
|
|
move-object v4, v0
|
|
|
|
invoke-direct/range {v4 .. v9}, Lcom/airbnb/lottie/g;-><init>(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object v1, v0, Lcom/airbnb/lottie/g;->id:Ljava/lang/String;
|
|
|
|
invoke-interface {p3, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_8
|
|
invoke-interface {p2, v7, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_9
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Lcom/airbnb/lottie/e/a/c;Ljava/util/List;)V
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/e/a/c;",
|
|
"Ljava/util/List<",
|
|
"Lcom/airbnb/lottie/c/h;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginObject()V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
sget-object v3, Lcom/airbnb/lottie/e/t;->nj:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {p0, v3}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eq v3, v4, :cond_1
|
|
|
|
const/4 v4, 0x2
|
|
|
|
if-eq v3, v4, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bD()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v2
|
|
|
|
double-to-float v2, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v3
|
|
|
|
double-to-float v1, v3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endObject()V
|
|
|
|
new-instance v3, Lcom/airbnb/lottie/c/h;
|
|
|
|
invoke-direct {v3, v0, v1, v2}, Lcom/airbnb/lottie/c/h;-><init>(Ljava/lang/String;FF)V
|
|
|
|
invoke-interface {p1, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Lcom/airbnb/lottie/e/a/c;Ljava/util/Map;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/airbnb/lottie/e/a/c;",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/String;",
|
|
"Lcom/airbnb/lottie/c/c;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginObject()V
|
|
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
sget-object v0, Lcom/airbnb/lottie/e/t;->ni:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {p0, v0}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->bD()V
|
|
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->beginArray()V
|
|
|
|
:goto_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {p0}, Lcom/airbnb/lottie/e/k;->a(Lcom/airbnb/lottie/e/a/c;)Lcom/airbnb/lottie/c/c;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v0, Lcom/airbnb/lottie/c/c;->name:Ljava/lang/String;
|
|
|
|
invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endArray()V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-virtual {p0}, Lcom/airbnb/lottie/e/a/c;->endObject()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static d(Lcom/airbnb/lottie/e/a/c;)Lcom/airbnb/lottie/d;
|
|
.locals 19
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
invoke-static {}, Lcom/airbnb/lottie/f/h;->bJ()F
|
|
|
|
move-result v1
|
|
|
|
new-instance v2, Landroidx/collection/LongSparseArray;
|
|
|
|
invoke-direct {v2}, Landroidx/collection/LongSparseArray;-><init>()V
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v4, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v4}, Ljava/util/HashMap;-><init>()V
|
|
|
|
new-instance v5, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v5}, Ljava/util/HashMap;-><init>()V
|
|
|
|
new-instance v6, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v6}, Ljava/util/HashMap;-><init>()V
|
|
|
|
new-instance v7, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v8, Landroidx/collection/SparseArrayCompat;
|
|
|
|
invoke-direct {v8}, Landroidx/collection/SparseArrayCompat;-><init>()V
|
|
|
|
new-instance v9, Lcom/airbnb/lottie/d;
|
|
|
|
invoke-direct {v9}, Lcom/airbnb/lottie/d;-><init>()V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->beginObject()V
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
const/4 v12, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
:goto_0
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->hasNext()Z
|
|
|
|
move-result v16
|
|
|
|
if-eqz v16, :cond_1
|
|
|
|
sget-object v11, Lcom/airbnb/lottie/e/t;->mO:Lcom/airbnb/lottie/e/a/c$a;
|
|
|
|
invoke-virtual {v0, v11}, Lcom/airbnb/lottie/e/a/c;->a(Lcom/airbnb/lottie/e/a/c$a;)I
|
|
|
|
move-result v11
|
|
|
|
packed-switch v11, :pswitch_data_0
|
|
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->bD()V
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->skipValue()V
|
|
|
|
goto/16 :goto_2
|
|
|
|
:pswitch_0
|
|
invoke-static {v0, v7}, Lcom/airbnb/lottie/e/t;->a(Lcom/airbnb/lottie/e/a/c;Ljava/util/List;)V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_1
|
|
invoke-static {v0, v9, v8}, Lcom/airbnb/lottie/e/t;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;Landroidx/collection/SparseArrayCompat;)V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_2
|
|
invoke-static {v0, v6}, Lcom/airbnb/lottie/e/t;->a(Lcom/airbnb/lottie/e/a/c;Ljava/util/Map;)V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_3
|
|
invoke-static {v0, v9, v4, v5}, Lcom/airbnb/lottie/e/t;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;Ljava/util/Map;Ljava/util/Map;)V
|
|
|
|
goto :goto_1
|
|
|
|
:pswitch_4
|
|
invoke-static {v0, v9, v3, v2}, Lcom/airbnb/lottie/e/t;->a(Lcom/airbnb/lottie/e/a/c;Lcom/airbnb/lottie/d;Ljava/util/List;Landroidx/collection/LongSparseArray;)V
|
|
|
|
:goto_1
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
goto/16 :goto_2
|
|
|
|
:pswitch_5
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->nextString()Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
const-string v0, "\\."
|
|
|
|
invoke-virtual {v11, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v11, 0x0
|
|
|
|
aget-object v17, v0, v11
|
|
|
|
invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v11
|
|
|
|
const/16 v17, 0x1
|
|
|
|
aget-object v17, v0, v17
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-static/range {v17 .. v17}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v7
|
|
|
|
const/16 v17, 0x2
|
|
|
|
aget-object v0, v0, v17
|
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
invoke-static {v11, v7, v0}, Lcom/airbnb/lottie/f/h;->a(III)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "Lottie only supports bodymovin >= 4.4.0"
|
|
|
|
invoke-virtual {v9, v0}, Lcom/airbnb/lottie/d;->r(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
move-object v0, v6
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_6
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v6
|
|
|
|
double-to-float v15, v6
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_7
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v6
|
|
|
|
double-to-float v6, v6
|
|
|
|
const v7, 0x3c23d70a # 0.01f
|
|
|
|
sub-float v14, v6, v7
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_8
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->nextDouble()D
|
|
|
|
move-result-wide v6
|
|
|
|
double-to-float v13, v6
|
|
|
|
goto :goto_2
|
|
|
|
:pswitch_9
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v12
|
|
|
|
goto :goto_3
|
|
|
|
:pswitch_a
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/airbnb/lottie/e/a/c;->nextInt()I
|
|
|
|
move-result v10
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
move-object v6, v0
|
|
|
|
move-object/from16 v7, v18
|
|
|
|
:goto_3
|
|
move-object/from16 v0, p0
|
|
|
|
goto/16 :goto_0
|
|
|
|
:cond_1
|
|
move-object v0, v6
|
|
|
|
move-object/from16 v18, v7
|
|
|
|
int-to-float v6, v10
|
|
|
|
mul-float v6, v6, v1
|
|
|
|
float-to-int v6, v6
|
|
|
|
int-to-float v7, v12
|
|
|
|
mul-float v7, v7, v1
|
|
|
|
float-to-int v1, v7
|
|
|
|
new-instance v7, Landroid/graphics/Rect;
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-direct {v7, v10, v10, v6, v1}, Landroid/graphics/Rect;-><init>(IIII)V
|
|
|
|
iput-object v7, v9, Lcom/airbnb/lottie/d;->fO:Landroid/graphics/Rect;
|
|
|
|
iput v13, v9, Lcom/airbnb/lottie/d;->fP:F
|
|
|
|
iput v14, v9, Lcom/airbnb/lottie/d;->fQ:F
|
|
|
|
iput v15, v9, Lcom/airbnb/lottie/d;->fR:F
|
|
|
|
iput-object v3, v9, Lcom/airbnb/lottie/d;->fN:Ljava/util/List;
|
|
|
|
iput-object v2, v9, Lcom/airbnb/lottie/d;->fM:Landroidx/collection/LongSparseArray;
|
|
|
|
iput-object v4, v9, Lcom/airbnb/lottie/d;->fH:Ljava/util/Map;
|
|
|
|
iput-object v5, v9, Lcom/airbnb/lottie/d;->fI:Ljava/util/Map;
|
|
|
|
iput-object v8, v9, Lcom/airbnb/lottie/d;->fL:Landroidx/collection/SparseArrayCompat;
|
|
|
|
iput-object v0, v9, Lcom/airbnb/lottie/d;->fJ:Ljava/util/Map;
|
|
|
|
move-object/from16 v0, v18
|
|
|
|
iput-object v0, v9, Lcom/airbnb/lottie/d;->fK:Ljava/util/List;
|
|
|
|
return-object v9
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|