q.smali
.class public final Lcom/horcrux/svg/q;
.super Lcom/horcrux/svg/RenderableView;
.source "SourceFile"
# annotations
.annotation build Landroid/annotation/SuppressLint;
value = {
"ViewConstructor"
}
.end annotation
# instance fields
.field public a:Landroid/graphics/Path;
# direct methods
.method public constructor <init>(Lcom/facebook/react/bridge/ReactContext;)V
.registers 2
.line 1
invoke-direct {p0, p1}, Lcom/horcrux/svg/RenderableView;-><init>(Lcom/facebook/react/bridge/ReactContext;)V
.line 2
iget p1, p0, Lcom/horcrux/svg/VirtualView;->mScale:F
sput p1, Lcom/shopee/live/livewrapper/datastore/b;->c:F
.line 3
new-instance p1, Landroid/graphics/Path;
invoke-direct {p1}, Landroid/graphics/Path;-><init>()V
iput-object p1, p0, Lcom/horcrux/svg/q;->a:Landroid/graphics/Path;
return-void
.end method
# virtual methods
.method public final getPath(Landroid/graphics/Canvas;Landroid/graphics/Paint;)Landroid/graphics/Path;
.registers 3
iget-object p1, p0, Lcom/horcrux/svg/q;->a:Landroid/graphics/Path;
return-object p1
.end method
.method public setD(Ljava/lang/String;)V
.registers 33
.annotation runtime Lcom/facebook/react/uimanager/annotations/ReactProp;
name = "d"
.end annotation
move-object/from16 v0, p0
.line 1
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
sput-object v1, Lcom/shopee/live/livewrapper/datastore/b;->h:Ljava/util/ArrayList;
.line 2
new-instance v1, Landroid/graphics/Path;
invoke-direct {v1}, Landroid/graphics/Path;-><init>()V
sput-object v1, Lcom/shopee/live/livewrapper/datastore/b;->g:Landroid/graphics/Path;
.line 3
invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I
move-result v1
sput v1, Lcom/shopee/live/livewrapper/datastore/b;->e:I
.line 4
sput-object p1, Lcom/shopee/live/livewrapper/datastore/b;->f:Ljava/lang/String;
const/4 v1, 0x0
.line 5
sput v1, Lcom/shopee/live/livewrapper/datastore/b;->d:I
const/4 v2, 0x0
.line 6
sput v2, Lcom/shopee/live/livewrapper/datastore/b;->i:F
.line 7
sput v2, Lcom/shopee/live/livewrapper/datastore/b;->j:F
.line 8
sput v2, Lcom/shopee/live/livewrapper/datastore/b;->k:F
.line 9
sput v2, Lcom/shopee/live/livewrapper/datastore/b;->l:F
.line 10
sput v2, Lcom/shopee/live/livewrapper/datastore/b;->m:F
.line 11
sput v2, Lcom/shopee/live/livewrapper/datastore/b;->n:F
.line 12
sput-boolean v1, Lcom/shopee/live/livewrapper/datastore/b;->o:Z
const/16 v3, 0x20
const/16 v4, 0x20
.line 13
:goto_2e
sget v5, Lcom/shopee/live/livewrapper/datastore/b;->d:I
sget v6, Lcom/shopee/live/livewrapper/datastore/b;->e:I
if-ge v5, v6, :cond_2a9
.line 14
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->F()V
.line 15
sget v5, Lcom/shopee/live/livewrapper/datastore/b;->d:I
sget v6, Lcom/shopee/live/livewrapper/datastore/b;->e:I
if-lt v5, v6, :cond_3f
goto/16 :goto_2a9
:cond_3f
const/4 v6, 0x1
if-eq v4, v3, :cond_44
const/4 v7, 0x1
goto :goto_45
:cond_44
const/4 v7, 0x0
.line 16
:goto_45
sget-object v8, Lcom/shopee/live/livewrapper/datastore/b;->f:Ljava/lang/String;
invoke-virtual {v8, v5}, Ljava/lang/String;->charAt(I)C
move-result v5
const-string v8, "UnexpectedData"
const/16 v9, 0x4d
const/16 v10, 0x6d
if-nez v7, :cond_5e
if-eq v5, v9, :cond_5e
if-ne v5, v10, :cond_58
goto :goto_5e
.line 17
:cond_58
new-instance v1, Ljava/lang/Error;
invoke-direct {v1, v8}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw v1
:cond_5e
:goto_5e
sparse-switch v5, :sswitch_data_2b6
const/4 v11, 0x0
goto :goto_64
:sswitch_63
const/4 v11, 0x1
:goto_64
if-eqz v11, :cond_6d
.line 18
sget v4, Lcom/shopee/live/livewrapper/datastore/b;->d:I
add-int/2addr v4, v6
sput v4, Lcom/shopee/live/livewrapper/datastore/b;->d:I
move v4, v5
goto :goto_96
:cond_6d
const/16 v11, 0x30
if-lt v5, v11, :cond_75
const/16 v11, 0x39
if-le v5, v11, :cond_84
:cond_75
const/16 v11, 0x2e
if-eq v5, v11, :cond_84
const/16 v11, 0x2d
if-eq v5, v11, :cond_84
const/16 v11, 0x2b
if-ne v5, v11, :cond_82
goto :goto_84
:cond_82
const/4 v5, 0x0
goto :goto_85
:cond_84
:goto_84
const/4 v5, 0x1
:goto_85
if-eqz v5, :cond_2a3
if-eqz v7, :cond_2a3
const/16 v5, 0x5a
if-eq v4, v5, :cond_29d
const/16 v5, 0x7a
if-eq v4, v5, :cond_29d
if-eq v4, v9, :cond_98
if-ne v4, v10, :cond_96
goto :goto_98
:cond_96
:goto_96
const/4 v5, 0x0
goto :goto_a4
.line 19
:cond_98
:goto_98
invoke-static {v4}, Ljava/lang/Character;->isUpperCase(C)Z
move-result v4
if-eqz v4, :cond_a1
const/16 v4, 0x4c
goto :goto_a3
:cond_a1
const/16 v4, 0x6c
:goto_a3
const/4 v5, 0x1
.line 20
:goto_a4
invoke-static {v4}, Ljava/lang/Character;->isUpperCase(C)Z
move-result v7
const/high16 v11, 0x40000000 # 2.0f
sparse-switch v4, :sswitch_data_308
.line 21
new-instance v1, Ljava/lang/Error;
invoke-direct {v1, v8}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw v1
.line 22
:sswitch_b3
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {v2, v6}, Lcom/shopee/live/livewrapper/datastore/b;->q(FF)V
goto/16 :goto_1c6
.line 23
:sswitch_bc
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
.line 24
sget v12, Lcom/shopee/live/livewrapper/datastore/b;->i:F
add-float/2addr v6, v12
sget v13, Lcom/shopee/live/livewrapper/datastore/b;->j:F
add-float/2addr v8, v13
mul-float v12, v12, v11
.line 25
sget v14, Lcom/shopee/live/livewrapper/datastore/b;->k:F
sub-float/2addr v12, v14
mul-float v13, v13, v11
.line 26
sget v11, Lcom/shopee/live/livewrapper/datastore/b;->l:F
sub-float/2addr v13, v11
.line 27
invoke-static {v12, v13, v6, v8}, Lcom/shopee/live/livewrapper/datastore/b;->z(FFFF)V
goto/16 :goto_1c6
.line 28
:sswitch_d9
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v11
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v12
.line 29
sget v13, Lcom/shopee/live/livewrapper/datastore/b;->i:F
add-float/2addr v6, v13
sget v14, Lcom/shopee/live/livewrapper/datastore/b;->j:F
add-float/2addr v8, v14
add-float/2addr v11, v13
add-float/2addr v12, v14
invoke-static {v6, v8, v11, v12}, Lcom/shopee/live/livewrapper/datastore/b;->G(FFFF)V
goto/16 :goto_1c6
.line 30
:sswitch_f6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v11
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v12
.line 31
sget v13, Lcom/shopee/live/livewrapper/datastore/b;->i:F
add-float/2addr v6, v13
sget v14, Lcom/shopee/live/livewrapper/datastore/b;->j:F
add-float/2addr v8, v14
add-float/2addr v11, v13
add-float/2addr v12, v14
invoke-static {v6, v8, v11, v12}, Lcom/shopee/live/livewrapper/datastore/b;->z(FFFF)V
goto/16 :goto_1c6
.line 32
:sswitch_113
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
.line 33
sget v11, Lcom/shopee/live/livewrapper/datastore/b;->i:F
add-float/2addr v6, v11
sget v11, Lcom/shopee/live/livewrapper/datastore/b;->j:F
add-float/2addr v8, v11
invoke-static {v6, v8}, Lcom/shopee/live/livewrapper/datastore/b;->t(FF)V
goto/16 :goto_1c6
.line 34
:sswitch_126
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
invoke-static {v6, v8}, Lcom/shopee/live/livewrapper/datastore/b;->q(FF)V
goto/16 :goto_1c6
.line 35
:sswitch_133
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {v6, v2}, Lcom/shopee/live/livewrapper/datastore/b;->q(FF)V
goto/16 :goto_1c6
.line 36
:sswitch_13c
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v11
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v12
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v13
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v14
.line 37
sget v15, Lcom/shopee/live/livewrapper/datastore/b;->i:F
add-float v16, v6, v15
sget v6, Lcom/shopee/live/livewrapper/datastore/b;->j:F
add-float v17, v8, v6
add-float v18, v11, v15
add-float v19, v12, v6
add-float v20, v13, v15
add-float v21, v14, v6
.line 38
sput v18, Lcom/shopee/live/livewrapper/datastore/b;->k:F
.line 39
sput v19, Lcom/shopee/live/livewrapper/datastore/b;->l:F
.line 40
invoke-static/range {v16 .. v21}, Lcom/shopee/live/livewrapper/datastore/b;->e(FFFFFF)V
goto :goto_1c6
.line 41
:sswitch_16c
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v22
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v23
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v24
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->w()Z
move-result v25
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->w()Z
move-result v26
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v8
.line 42
sget v11, Lcom/shopee/live/livewrapper/datastore/b;->i:F
add-float v27, v6, v11
sget v6, Lcom/shopee/live/livewrapper/datastore/b;->j:F
add-float v28, v8, v6
invoke-static/range {v22 .. v28}, Lcom/shopee/live/livewrapper/datastore/b;->a(FFFZZFF)V
goto :goto_1c6
.line 43
:sswitch_194
sget-boolean v8, Lcom/shopee/live/livewrapper/datastore/b;->o:Z
if-eqz v8, :cond_1c6
.line 44
sget v8, Lcom/shopee/live/livewrapper/datastore/b;->m:F
sput v8, Lcom/shopee/live/livewrapper/datastore/b;->i:F
.line 45
sget v8, Lcom/shopee/live/livewrapper/datastore/b;->n:F
sput v8, Lcom/shopee/live/livewrapper/datastore/b;->j:F
.line 46
sput-boolean v1, Lcom/shopee/live/livewrapper/datastore/b;->o:Z
.line 47
sget-object v8, Lcom/shopee/live/livewrapper/datastore/b;->g:Landroid/graphics/Path;
invoke-virtual {v8}, Landroid/graphics/Path;->close()V
.line 48
sget-object v8, Lcom/shopee/live/livewrapper/datastore/b;->h:Ljava/util/ArrayList;
new-instance v11, Lcom/horcrux/svg/p;
sget-object v12, Lcom/horcrux/svg/f;->kCGPathElementCloseSubpath:Lcom/horcrux/svg/f;
new-array v6, v6, [Lcom/horcrux/svg/t;
new-instance v13, Lcom/horcrux/svg/t;
sget v14, Lcom/shopee/live/livewrapper/datastore/b;->i:F
float-to-double v14, v14
sget v2, Lcom/shopee/live/livewrapper/datastore/b;->j:F
move/from16 v17, v4
float-to-double v3, v2
invoke-direct {v13, v14, v15, v3, v4}, Lcom/horcrux/svg/t;-><init>(DD)V
aput-object v13, v6, v1
invoke-direct {v11, v12, v6}, Lcom/horcrux/svg/p;-><init>(Lcom/horcrux/svg/f;[Lcom/horcrux/svg/t;)V
invoke-virtual {v8, v11}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto/16 :goto_28c
:cond_1c6
:goto_1c6
move/from16 v17, v4
goto/16 :goto_28c
:sswitch_1ca
move/from16 v17, v4
.line 49
sget v2, Lcom/shopee/live/livewrapper/datastore/b;->i:F
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v3
invoke-static {v2, v3}, Lcom/shopee/live/livewrapper/datastore/b;->r(FF)V
goto/16 :goto_28c
:sswitch_1d7
move/from16 v17, v4
.line 50
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v2
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v3
.line 51
sget v4, Lcom/shopee/live/livewrapper/datastore/b;->i:F
mul-float v4, v4, v11
sget v6, Lcom/shopee/live/livewrapper/datastore/b;->k:F
sub-float/2addr v4, v6
.line 52
sget v6, Lcom/shopee/live/livewrapper/datastore/b;->j:F
mul-float v6, v6, v11
sget v8, Lcom/shopee/live/livewrapper/datastore/b;->l:F
sub-float/2addr v6, v8
.line 53
invoke-static {v4, v6, v2, v3}, Lcom/shopee/live/livewrapper/datastore/b;->z(FFFF)V
goto/16 :goto_28c
:sswitch_1f4
move/from16 v17, v4
.line 54
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v2
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v3
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v4
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {v2, v3, v4, v6}, Lcom/shopee/live/livewrapper/datastore/b;->G(FFFF)V
goto/16 :goto_28c
:sswitch_20b
move/from16 v17, v4
.line 55
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v2
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v3
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v4
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v6
invoke-static {v2, v3, v4, v6}, Lcom/shopee/live/livewrapper/datastore/b;->z(FFFF)V
goto :goto_28c
:sswitch_221
move/from16 v17, v4
.line 56
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v2
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v3
invoke-static {v2, v3}, Lcom/shopee/live/livewrapper/datastore/b;->t(FF)V
goto :goto_28c
:sswitch_22f
move/from16 v17, v4
.line 57
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v2
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v3
invoke-static {v2, v3}, Lcom/shopee/live/livewrapper/datastore/b;->r(FF)V
goto :goto_28c
:sswitch_23d
move/from16 v17, v4
.line 58
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v2
sget v3, Lcom/shopee/live/livewrapper/datastore/b;->j:F
invoke-static {v2, v3}, Lcom/shopee/live/livewrapper/datastore/b;->r(FF)V
goto :goto_28c
:sswitch_249
move/from16 v17, v4
.line 59
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v18
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v19
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v20
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v21
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v22
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v23
.line 60
sput v20, Lcom/shopee/live/livewrapper/datastore/b;->k:F
.line 61
sput v21, Lcom/shopee/live/livewrapper/datastore/b;->l:F
.line 62
invoke-static/range {v18 .. v23}, Lcom/shopee/live/livewrapper/datastore/b;->e(FFFFFF)V
goto :goto_28c
:sswitch_26b
move/from16 v17, v4
.line 63
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v24
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v25
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v26
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->w()Z
move-result v27
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->w()Z
move-result v28
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v29
invoke-static {}, Lcom/shopee/live/livewrapper/datastore/b;->x()F
move-result v30
invoke-static/range {v24 .. v30}, Lcom/shopee/live/livewrapper/datastore/b;->a(FFFZZFF)V
:goto_28c
if-eqz v5, :cond_296
if-eqz v7, :cond_293
const/16 v4, 0x4d
goto :goto_298
:cond_293
const/16 v4, 0x6d
goto :goto_298
:cond_296
move/from16 v4, v17
:goto_298
const/4 v2, 0x0
const/16 v3, 0x20
goto/16 :goto_2e
.line 64
:cond_29d
new-instance v1, Ljava/lang/Error;
invoke-direct {v1, v8}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw v1
.line 65
:cond_2a3
new-instance v1, Ljava/lang/Error;
invoke-direct {v1, v8}, Ljava/lang/Error;-><init>(Ljava/lang/String;)V
throw v1
.line 66
:cond_2a9
:goto_2a9
sget-object v1, Lcom/shopee/live/livewrapper/datastore/b;->g:Landroid/graphics/Path;
.line 67
iput-object v1, v0, Lcom/horcrux/svg/q;->a:Landroid/graphics/Path;
.line 68
sget-object v1, Lcom/shopee/live/livewrapper/datastore/b;->h:Ljava/util/ArrayList;
iput-object v1, v0, Lcom/horcrux/svg/VirtualView;->elements:Ljava/util/ArrayList;
.line 69
invoke-virtual/range {p0 .. p0}, Lcom/horcrux/svg/VirtualView;->invalidate()V
return-void
nop
:sswitch_data_2b6
.sparse-switch
0x41 -> :sswitch_63
0x43 -> :sswitch_63
0x48 -> :sswitch_63
0x4c -> :sswitch_63
0x4d -> :sswitch_63
0x51 -> :sswitch_63
0x53 -> :sswitch_63
0x54 -> :sswitch_63
0x56 -> :sswitch_63
0x5a -> :sswitch_63
0x61 -> :sswitch_63
0x63 -> :sswitch_63
0x68 -> :sswitch_63
0x6c -> :sswitch_63
0x6d -> :sswitch_63
0x71 -> :sswitch_63
0x73 -> :sswitch_63
0x74 -> :sswitch_63
0x76 -> :sswitch_63
0x7a -> :sswitch_63
.end sparse-switch
:sswitch_data_308
.sparse-switch
0x41 -> :sswitch_26b
0x43 -> :sswitch_249
0x48 -> :sswitch_23d
0x4c -> :sswitch_22f
0x4d -> :sswitch_221
0x51 -> :sswitch_20b
0x53 -> :sswitch_1f4
0x54 -> :sswitch_1d7
0x56 -> :sswitch_1ca
0x5a -> :sswitch_194
0x61 -> :sswitch_16c
0x63 -> :sswitch_13c
0x68 -> :sswitch_133
0x6c -> :sswitch_126
0x6d -> :sswitch_113
0x71 -> :sswitch_f6
0x73 -> :sswitch_d9
0x74 -> :sswitch_bc
0x76 -> :sswitch_b3
0x7a -> :sswitch_194
.end sparse-switch
.end method