c$n$a.smali

.class public final Lcom/singbox/d/c$n$a;
.super Lcom/singbox/component/o/a/e;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/singbox/d/c$n;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = null
.end annotation


# instance fields
.field final synthetic b:Ljava/lang/String;


# direct methods
.method constructor <init>(Ljava/lang/String;)V
    .registers 2

    .line 418
    iput-object p1, p0, Lcom/singbox/d/c$n$a;->b:Ljava/lang/String;

    invoke-direct {p0}, Lcom/singbox/component/o/a/e;-><init>()V

    return-void
.end method


# virtual methods
.method public final a(Lcom/singbox/component/o/a/b;I)V
    .registers 7

    const-string v0, "res"

    invoke-static {p1, v0}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 420
    invoke-super {p0, p1, p2}, Lcom/singbox/component/o/a/e;->a(Lcom/singbox/component/o/a/b;I)V

    .line 421
    invoke-interface {p1}, Lcom/singbox/component/o/a/b;->d()Lcom/singbox/component/o/a/f;

    move-result-object p2

    sget-object v0, Lcom/singbox/component/o/a/f;->LYRIC:Lcom/singbox/component/o/a/f;

    if-ne p2, v0, :cond_c8

    .line 422
    invoke-interface {p1}, Lcom/singbox/component/o/a/b;->e()Ljava/io/File;

    move-result-object p1

    if-eqz p1, :cond_c8

    .line 423
    invoke-static {}, Lsg/bigo/httplogin/b/c;->a()Lcom/google/gson/f;

    move-result-object p2

    const/4 v0, 0x0

    .line 922
    :try_start_1b
    new-instance v1, Ljava/io/FileReader;

    invoke-direct {v1, p1}, Ljava/io/FileReader;-><init>(Ljava/io/File;)V
    :try_end_20
    .catch Ljava/lang/Exception; {:try_start_1b .. :try_end_20} :catch_51
    .catchall {:try_start_1b .. :try_end_20} :catchall_42

    .line 923
    :try_start_20
    new-instance p1, Ljava/io/BufferedReader;

    move-object v2, v1

    check-cast v2, Ljava/io/Reader;

    invoke-direct {p1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
    :try_end_28
    .catch Ljava/lang/Exception; {:try_start_20 .. :try_end_28} :catch_40
    .catchall {:try_start_20 .. :try_end_28} :catchall_3c

    .line 924
    :try_start_28
    move-object v2, p1

    check-cast v2, Ljava/io/Reader;

    const-class v3, Lcom/singbox/component/backend/model/d/e;

    invoke-virtual {p2, v2, v3}, Lcom/google/gson/f;->a(Ljava/io/Reader;Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0
    :try_end_31
    .catch Ljava/lang/Exception; {:try_start_28 .. :try_end_31} :catch_53
    .catchall {:try_start_28 .. :try_end_31} :catchall_3a

    .line 929
    :try_start_31
    invoke-virtual {v1}, Ljava/io/FileReader;->close()V
    :try_end_34
    .catch Ljava/io/IOException; {:try_start_31 .. :try_end_34} :catch_34

    .line 933
    :catch_34
    :goto_34
    :try_start_34
    invoke-virtual {p1}, Ljava/io/BufferedReader;->close()V
    :try_end_37
    .catch Ljava/io/IOException; {:try_start_34 .. :try_end_37} :catch_38

    goto :goto_5d

    :catch_38
    nop

    goto :goto_5d

    :catchall_3a
    move-exception p2

    goto :goto_3e

    :catchall_3c
    move-exception p2

    move-object p1, v0

    :goto_3e
    move-object v0, v1

    goto :goto_44

    :catch_40
    move-object p1, v0

    goto :goto_53

    :catchall_42
    move-exception p2

    move-object p1, v0

    :goto_44
    if-eqz v0, :cond_4b

    .line 929
    :try_start_46
    invoke-virtual {v0}, Ljava/io/FileReader;->close()V
    :try_end_49
    .catch Ljava/io/IOException; {:try_start_46 .. :try_end_49} :catch_4a

    goto :goto_4b

    :catch_4a
    nop

    :cond_4b
    :goto_4b
    if-eqz p1, :cond_50

    .line 933
    :try_start_4d
    invoke-virtual {p1}, Ljava/io/BufferedReader;->close()V
    :try_end_50
    .catch Ljava/io/IOException; {:try_start_4d .. :try_end_50} :catch_50

    .line 935
    :catch_50
    :cond_50
    throw p2

    :catch_51
    move-object p1, v0

    move-object v1, p1

    :catch_53
    :goto_53
    if-eqz v1, :cond_5a

    .line 929
    :try_start_55
    invoke-virtual {v1}, Ljava/io/FileReader;->close()V
    :try_end_58
    .catch Ljava/io/IOException; {:try_start_55 .. :try_end_58} :catch_59

    goto :goto_5a

    :catch_59
    nop

    :cond_5a
    :goto_5a
    if-eqz p1, :cond_5d

    goto :goto_34

    .line 935
    :cond_5d
    :goto_5d
    check-cast v0, Lcom/singbox/component/backend/model/d/e;

    if-eqz v0, :cond_c8

    .line 424
    sget-boolean p1, Lcom/singbox/component/g/a;->e:Z

    if-eqz p1, :cond_7b

    .line 425
    new-instance p1, Lcom/singbox/component/backend/model/d/c;

    invoke-direct {p1, v0}, Lcom/singbox/component/backend/model/d/c;-><init>(Lcom/singbox/component/backend/model/d/e;)V

    .line 426
    sget-object p2, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {}, Lcom/singbox/d/c;->q()Ljava/util/Map;

    move-result-object p2

    iget-object v0, p0, Lcom/singbox/d/c$n$a;->b:Ljava/lang/String;

    invoke-interface {p2, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 427
    sget-object p2, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {p1}, Lcom/singbox/d/c;->a(Lcom/singbox/component/backend/model/d/c;)V

    return-void

    .line 430
    :cond_7b
    sget-object p1, Lcom/singbox/component/storage/b/d;->d:Lcom/singbox/component/storage/b/d;

    invoke-static {}, Lcom/singbox/component/storage/b/d;->w()Lcom/singbox/component/storage/b/b$b;

    move-result-object p1

    invoke-virtual {p1}, Lcom/singbox/component/storage/b/b$b;->a()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    if-eqz p1, :cond_8e

    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    goto :goto_8f

    :cond_8e
    const/4 p1, -0x1

    :goto_8f
    if-gez p1, :cond_a7

    .line 433
    new-instance p1, Lcom/singbox/component/backend/model/d/c;

    invoke-direct {p1, v0}, Lcom/singbox/component/backend/model/d/c;-><init>(Lcom/singbox/component/backend/model/d/e;)V

    .line 434
    sget-object p2, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {}, Lcom/singbox/d/c;->q()Ljava/util/Map;

    move-result-object p2

    iget-object v0, p0, Lcom/singbox/d/c$n$a;->b:Ljava/lang/String;

    invoke-interface {p2, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 435
    sget-object p2, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {p1}, Lcom/singbox/d/c;->a(Lcom/singbox/component/backend/model/d/c;)V

    return-void

    .line 1015
    :cond_a7
    iget p2, v0, Lcom/singbox/component/backend/model/d/e;->b:I

    .line 439
    invoke-static {v0}, Lcom/singbox/component/backend/model/d/f;->a(Lcom/singbox/component/backend/model/d/e;)I

    move-result v1

    mul-int/lit16 p1, p1, 0x3e8

    sub-int/2addr v1, p1

    sub-int/2addr p2, v1

    .line 2015
    iput p2, v0, Lcom/singbox/component/backend/model/d/e;->b:I

    .line 440
    new-instance p1, Lcom/singbox/component/backend/model/d/c;

    invoke-direct {p1, v0}, Lcom/singbox/component/backend/model/d/c;-><init>(Lcom/singbox/component/backend/model/d/e;)V

    .line 441
    sget-object p2, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {}, Lcom/singbox/d/c;->q()Ljava/util/Map;

    move-result-object p2

    iget-object v0, p0, Lcom/singbox/d/c$n$a;->b:Ljava/lang/String;

    invoke-interface {p2, v0, p1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 442
    sget-object p2, Lcom/singbox/d/c;->a:Lcom/singbox/d/c;

    invoke-static {p1}, Lcom/singbox/d/c;->a(Lcom/singbox/component/backend/model/d/c;)V

    :cond_c8
    return-void
.end method