.class public abstract Lcom/amap/api/mapcore2d/de;
.super Ljava/lang/Object;
.source "LogProcessor.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/amap/api/mapcore2d/de$a;
    }
.end annotation


# instance fields
.field private a:Lcom/amap/api/mapcore2d/ct;

.field private b:I

.field private c:Lcom/amap/api/mapcore2d/eg;

.field private d:Lcom/amap/api/mapcore2d/ef;


# direct methods
.method protected constructor <init>(I)V
    .locals 0

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

    .line 46
    iput p1, p0, Lcom/amap/api/mapcore2d/de;->b:I

    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/amap/api/mapcore2d/ct;)Ljava/lang/String;
    .locals 3

    .line 175
    new-instance v0, Ljava/lang/StringBuilder;

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

    .line 177
    :try_start_0
    invoke-static {p0}, Lcom/amap/api/mapcore2d/co;->e(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    const-string v2, "\"sim\":\""

    .line 178
    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"sdkversion\":\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ct;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"product\":\""

    .line 179
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ct;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"ed\":\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 180
    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ct;->e()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\",\"nt\":\""

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 181
    invoke-static {p0}, Lcom/amap/api/mapcore2d/co;->c(Landroid/content/Context;)I

    move-result p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, "\",\"np\":\""

    .line 183
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/co;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\",\"mnc\":\""

    .line 184
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/co;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "\",\"ant\":\""

    .line 187
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/co;->d(Landroid/content/Context;)I

    move-result p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p0, "\""

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 189
    invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V

    .line 192
    :goto_0
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 335
    :try_start_0
    invoke-static {p2}, Lcom/amap/api/mapcore2d/cu;->a(Ljava/lang/String;)[B

    move-result-object p2

    .line 336
    invoke-static {p1, p2}, Lcom/amap/api/mapcore2d/cn;->e(Landroid/content/Context;[B)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 338
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 317
    new-instance p1, Ljava/lang/StringBuffer;

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

    .line 318
    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, ","

    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, "\"timestamp\":\""

    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 319
    invoke-virtual {p1, p3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, "\",\"et\":\""

    .line 320
    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 321
    invoke-virtual {p1, p4}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    const-string p2, "\",\"classname\":\""

    .line 322
    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 323
    invoke-virtual {p1, p5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, "\","

    .line 324
    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, "\"detail\":\""

    .line 325
    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 326
    invoke-virtual {p1, p6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, "\""

    .line 327
    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 329
    invoke-virtual {p1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Ljava/util/List;Landroid/content/Context;)Ljava/lang/String;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "+",
            "Lcom/amap/api/mapcore2d/dp;",
            ">;",
            "Landroid/content/Context;",
            ")",
            "Ljava/lang/String;"
        }
    .end annotation

    .line 660
    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v1, "{\"pinfo\":\""

    .line 661
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-direct {p0, p2}, Lcom/amap/api/mapcore2d/de;->g(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "\",\"els\":["

    .line 662
    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 664
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    const/4 p2, 0x1

    :cond_0
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_3

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

    move-result-object v1

    check-cast v1, Lcom/amap/api/mapcore2d/dp;

    .line 665
    invoke-virtual {v1}, Lcom/amap/api/mapcore2d/dp;->b()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v2}, Lcom/amap/api/mapcore2d/de;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_0

    const-string v3, ""

    .line 669
    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    goto :goto_0

    .line 672
    :cond_1
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "||"

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Lcom/amap/api/mapcore2d/dp;->c()I

    move-result v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    if-eqz p2, :cond_2

    const/4 p2, 0x0

    goto :goto_1

    :cond_2
    const-string v2, ","

    .line 676
    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :goto_1
    const-string v2, "{\"log\":\""

    .line 678
    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\"}"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    :cond_3
    if-eqz p2, :cond_4

    const/4 p1, 0x0

    return-object p1

    :cond_4
    const-string p1, "]}"

    .line 684
    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 685
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private a(Lcom/amap/api/mapcore2d/do;I)V
    .locals 2

    const/4 v0, 0x2

    .line 547
    :try_start_0
    invoke-static {p2}, Lcom/amap/api/mapcore2d/cy;->a(I)Ljava/lang/Class;

    move-result-object v1

    .line 546
    invoke-virtual {p1, v0, v1}, Lcom/amap/api/mapcore2d/do;->a(ILjava/lang/Class;)Ljava/util/List;

    move-result-object v0

    .line 548
    invoke-direct {p0, v0, p1, p2}, Lcom/amap/api/mapcore2d/de;->a(Ljava/util/List;Lcom/amap/api/mapcore2d/do;I)V
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string p2, "LogProcessor"

    const-string v0, "processDeleteFail"

    .line 551
    invoke-static {p1, p2, v0}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private a(Lcom/amap/api/mapcore2d/do;Ljava/lang/String;Ljava/lang/String;IZ)V
    .locals 0

    .line 257
    invoke-static {p4}, Lcom/amap/api/mapcore2d/cy;->b(I)Lcom/amap/api/mapcore2d/dp;

    move-result-object p4

    const/4 p5, 0x0

    .line 259
    invoke-virtual {p4, p5}, Lcom/amap/api/mapcore2d/dp;->a(I)V

    .line 261
    invoke-virtual {p4, p2}, Lcom/amap/api/mapcore2d/dp;->b(Ljava/lang/String;)V

    .line 262
    invoke-virtual {p4, p3}, Lcom/amap/api/mapcore2d/dp;->a(Ljava/lang/String;)V

    .line 263
    invoke-virtual {p1, p4}, Lcom/amap/api/mapcore2d/do;->a(Lcom/amap/api/mapcore2d/dp;)V

    return-void
.end method

.method private a(Ljava/util/List;Lcom/amap/api/mapcore2d/do;I)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "+",
            "Lcom/amap/api/mapcore2d/dp;",
            ">;",
            "Lcom/amap/api/mapcore2d/do;",
            "I)V"
        }
    .end annotation

    if-eqz p1, :cond_1

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

    move-result p3

    if-lez p3, :cond_1

    .line 600
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p3

    if-eqz p3, :cond_1

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

    move-result-object p3

    check-cast p3, Lcom/amap/api/mapcore2d/dp;

    .line 601
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/dp;->b()Ljava/lang/String;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/amap/api/mapcore2d/de;->b(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 603
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/dp;->b()Ljava/lang/String;

    move-result-object v0

    .line 604
    invoke-virtual {p3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object p3

    .line 603
    invoke-virtual {p2, v0, p3}, Lcom/amap/api/mapcore2d/do;->a(Ljava/lang/String;Ljava/lang/Class;)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x2

    .line 606
    invoke-virtual {p3, v0}, Lcom/amap/api/mapcore2d/dp;->a(I)V

    .line 608
    invoke-virtual {p2, p3}, Lcom/amap/api/mapcore2d/do;->b(Lcom/amap/api/mapcore2d/dp;)V

    goto :goto_0

    :cond_1
    return-void
.end method

.method private a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/amap/api/mapcore2d/do;)Z
    .locals 4

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 378
    :try_start_0
    invoke-static {p1, p3}, Lcom/amap/api/mapcore2d/cy;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 379
    new-instance p3, Ljava/io/File;

    invoke-direct {p3, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 380
    invoke-virtual {p3}, Ljava/io/File;->exists()Z

    move-result p1

    if-nez p1, :cond_0

    .line 381
    invoke-virtual {p3}, Ljava/io/File;->mkdirs()Z

    move-result p1

    if-nez p1, :cond_0

    return v1

    :cond_0
    const-wide/16 v2, 0x5000

    const/4 p1, 0x1

    .line 385
    invoke-static {p3, p1, p1, v2, v3}, Lcom/amap/api/mapcore2d/ef;->a(Ljava/io/File;IIJ)Lcom/amap/api/mapcore2d/ef;

    move-result-object p3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_f
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_b
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 386
    :try_start_1
    invoke-virtual {p0, p5}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/do;)Lcom/amap/api/mapcore2d/eg;

    move-result-object p5

    invoke-virtual {p3, p5}, Lcom/amap/api/mapcore2d/ef;->a(Lcom/amap/api/mapcore2d/eg;)V

    .line 387
    invoke-virtual {p3, p2}, Lcom/amap/api/mapcore2d/ef;->a(Ljava/lang/String;)Lcom/amap/api/mapcore2d/ef$b;

    move-result-object p5
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_a
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_9
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz p5, :cond_3

    if-eqz p5, :cond_1

    .line 417
    :try_start_2
    invoke-virtual {p5}, Lcom/amap/api/mapcore2d/ef$b;->close()V
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 419
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_1
    :goto_0
    if-eqz p3, :cond_2

    .line 422
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->a()Z

    move-result p1

    if-nez p1, :cond_2

    .line 424
    :try_start_3
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->close()V
    :try_end_3
    .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_1

    goto :goto_1

    :catch_1
    move-exception p1

    .line 426
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_2
    :goto_1
    return v1

    .line 393
    :cond_3
    :try_start_4
    invoke-static {p4}, Lcom/amap/api/mapcore2d/cu;->a(Ljava/lang/String;)[B

    move-result-object p4

    .line 395
    invoke-virtual {p3, p2}, Lcom/amap/api/mapcore2d/ef;->b(Ljava/lang/String;)Lcom/amap/api/mapcore2d/ef$a;

    move-result-object p2

    .line 396
    invoke-virtual {p2, v1}, Lcom/amap/api/mapcore2d/ef$a;->a(I)Ljava/io/OutputStream;

    move-result-object v2
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_8
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_7
    .catchall {:try_start_4 .. :try_end_4} :catchall_3

    .line 397
    :try_start_5
    invoke-virtual {v2, p4}, Ljava/io/OutputStream;->write([B)V

    .line 398
    invoke-virtual {p2}, Lcom/amap/api/mapcore2d/ef$a;->a()V

    .line 399
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->b()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_6
    .catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-eqz v2, :cond_4

    .line 410
    :try_start_6
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V
    :try_end_6
    .catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_6} :catch_2

    goto :goto_2

    :catch_2
    move-exception p2

    .line 412
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_4
    :goto_2
    if-eqz p5, :cond_5

    .line 417
    :try_start_7
    invoke-virtual {p5}, Lcom/amap/api/mapcore2d/ef$b;->close()V
    :try_end_7
    .catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_7} :catch_3

    goto :goto_3

    :catch_3
    move-exception p2

    .line 419
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_5
    :goto_3
    if-eqz p3, :cond_6

    .line 422
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->a()Z

    move-result p2

    if-nez p2, :cond_6

    .line 424
    :try_start_8
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->close()V
    :try_end_8
    .catch Ljava/lang/Throwable; {:try_start_8 .. :try_end_8} :catch_4

    goto :goto_4

    :catch_4
    move-exception p2

    .line 426
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_6
    :goto_4
    return p1

    :catchall_0
    move-exception p1

    move-object v0, v2

    goto/16 :goto_c

    :catch_5
    move-exception p1

    move-object v0, v2

    goto :goto_5

    :catch_6
    move-exception p1

    move-object v0, v2

    goto :goto_8

    :catch_7
    move-exception p1

    goto :goto_5

    :catch_8
    move-exception p1

    goto :goto_8

    :catchall_1
    move-exception p1

    move-object p5, v0

    goto/16 :goto_c

    :catch_9
    move-exception p1

    move-object p5, v0

    goto :goto_5

    :catch_a
    move-exception p1

    move-object p5, v0

    goto :goto_8

    :catchall_2
    move-exception p1

    move-object p3, v0

    move-object p5, p3

    goto :goto_c

    :catch_b
    move-exception p1

    move-object p3, v0

    move-object p5, p3

    .line 406
    :goto_5
    :try_start_9
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_3

    if-eqz v0, :cond_7

    .line 410
    :try_start_a
    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
    :try_end_a
    .catch Ljava/lang/Throwable; {:try_start_a .. :try_end_a} :catch_c

    goto :goto_6

    :catch_c
    move-exception p1

    .line 412
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_7
    :goto_6
    if-eqz p5, :cond_8

    .line 417
    :try_start_b
    invoke-virtual {p5}, Lcom/amap/api/mapcore2d/ef$b;->close()V
    :try_end_b
    .catch Ljava/lang/Throwable; {:try_start_b .. :try_end_b} :catch_d

    goto :goto_7

    :catch_d
    move-exception p1

    .line 419
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_8
    :goto_7
    if-eqz p3, :cond_b

    .line 422
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->a()Z

    move-result p1

    if-nez p1, :cond_b

    .line 424
    :try_start_c
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->close()V
    :try_end_c
    .catch Ljava/lang/Throwable; {:try_start_c .. :try_end_c} :catch_e

    goto :goto_b

    :catch_e
    move-exception p1

    .line 426
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_b

    :catch_f
    move-exception p1

    move-object p3, v0

    move-object p5, p3

    .line 403
    :goto_8
    :try_start_d
    invoke-virtual {p1}, Ljava/io/IOException;->printStackTrace()V
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_3

    if-eqz v0, :cond_9

    .line 410
    :try_start_e
    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
    :try_end_e
    .catch Ljava/lang/Throwable; {:try_start_e .. :try_end_e} :catch_10

    goto :goto_9

    :catch_10
    move-exception p1

    .line 412
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_9
    :goto_9
    if-eqz p5, :cond_a

    .line 417
    :try_start_f
    invoke-virtual {p5}, Lcom/amap/api/mapcore2d/ef$b;->close()V
    :try_end_f
    .catch Ljava/lang/Throwable; {:try_start_f .. :try_end_f} :catch_11

    goto :goto_a

    :catch_11
    move-exception p1

    .line 419
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_a
    :goto_a
    if-eqz p3, :cond_b

    .line 422
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->a()Z

    move-result p1

    if-nez p1, :cond_b

    .line 424
    :try_start_10
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->close()V
    :try_end_10
    .catch Ljava/lang/Throwable; {:try_start_10 .. :try_end_10} :catch_e

    :cond_b
    :goto_b
    return v1

    :catchall_3
    move-exception p1

    :goto_c
    if-eqz v0, :cond_c

    .line 410
    :try_start_11
    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
    :try_end_11
    .catch Ljava/lang/Throwable; {:try_start_11 .. :try_end_11} :catch_12

    goto :goto_d

    :catch_12
    move-exception p2

    .line 412
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_c
    :goto_d
    if-eqz p5, :cond_d

    .line 417
    :try_start_12
    invoke-virtual {p5}, Lcom/amap/api/mapcore2d/ef$b;->close()V
    :try_end_12
    .catch Ljava/lang/Throwable; {:try_start_12 .. :try_end_12} :catch_13

    goto :goto_e

    :catch_13
    move-exception p2

    .line 419
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_d
    :goto_e
    if-eqz p3, :cond_e

    .line 422
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->a()Z

    move-result p2

    if-nez p2, :cond_e

    .line 424
    :try_start_13
    invoke-virtual {p3}, Lcom/amap/api/mapcore2d/ef;->close()V
    :try_end_13
    .catch Ljava/lang/Throwable; {:try_start_13 .. :try_end_13} :catch_14

    goto :goto_f

    :catch_14
    move-exception p2

    .line 426
    invoke-virtual {p2}, Ljava/lang/Throwable;->printStackTrace()V

    .line 408
    :cond_e
    :goto_f
    throw p1
.end method

.method public static a([Ljava/lang/String;Ljava/lang/String;)Z
    .locals 4

    const/4 v0, 0x0

    if-eqz p0, :cond_3

    if-nez p1, :cond_0

    goto :goto_1

    :cond_0
    :try_start_0
    const-string v1, "\n"

    .line 439
    invoke-virtual {p1, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p1

    .line 440
    array-length v1, p1

    const/4 v2, 0x0

    :goto_0
    if-ge v2, v1, :cond_2

    aget-object v3, p1, v2

    .line 441
    invoke-virtual {v3}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v3

    .line 442
    invoke-static {p0, v3}, Lcom/amap/api/mapcore2d/de;->b([Ljava/lang/String;Ljava/lang/String;)Z

    move-result v3
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz v3, :cond_1

    const/4 p0, 0x1

    return p0

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

    goto :goto_0

    :catch_0
    move-exception p0

    .line 447
    invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_2
    return v0

    :cond_3
    :goto_1
    return v0
.end method

.method private b(Landroid/content/Context;Ljava/lang/String;)Lcom/amap/api/mapcore2d/ef;
    .locals 3

    const/4 v0, 0x0

    .line 760
    :try_start_0
    invoke-static {p1, p2}, Lcom/amap/api/mapcore2d/cy;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 761
    new-instance p2, Ljava/io/File;

    invoke-direct {p2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 762
    invoke-virtual {p2}, Ljava/io/File;->exists()Z

    move-result p1

    if-nez p1, :cond_0

    .line 763
    invoke-virtual {p2}, Ljava/io/File;->mkdirs()Z

    move-result p1

    if-nez p1, :cond_0

    return-object v0

    :cond_0
    const-wide/16 v1, 0x5000

    const/4 p1, 0x1

    .line 767
    invoke-static {p2, p1, p1, v1, v2}, Lcom/amap/api/mapcore2d/ef;->a(Ljava/io/File;IIJ)Lcom/amap/api/mapcore2d/ef;

    move-result-object p1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception p1

    const-string p2, "LogProcessor"

    const-string v1, "initDiskLru"

    .line 772
    invoke-static {p1, p2, v1}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catch_1
    move-exception p1

    const-string p2, "LogProcessor"

    const-string v1, "initDiskLru"

    .line 769
    invoke-static {p1, p2, v1}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    move-object p1, v0

    :goto_1
    return-object p1
.end method

.method public static b(Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 0

    .line 786
    invoke-static {p0}, Lcom/amap/api/mapcore2d/cu;->a(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private b(Ljava/lang/String;)Z
    .locals 3

    .line 518
    iget-object v0, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    .line 523
    :cond_0
    :try_start_0
    iget-object v0, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    invoke-virtual {v0, p1}, Lcom/amap/api/mapcore2d/ef;->c(Ljava/lang/String;)Z

    move-result p1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string v0, "LogUpdateProcessor"

    const-string v2, "deleteLogData"

    .line 526
    invoke-static {p1, v0, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method public static b([Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5

    const/4 v0, 0x0

    if-eqz p0, :cond_3

    if-nez p1, :cond_0

    goto :goto_1

    .line 457
    :cond_0
    :try_start_0
    array-length v1, p0

    move-object v2, p1

    const/4 p1, 0x0

    :goto_0
    if-ge p1, v1, :cond_2

    aget-object v3, p0, p1

    .line 458
    invoke-virtual {v2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    const-string v4, "at "

    .line 459
    invoke-virtual {v2, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "."

    invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_1

    const-string v3, ")"

    invoke-virtual {v2, v3}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v3
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz v3, :cond_1

    const/4 p0, 0x1

    return p0

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

    goto :goto_0

    :catch_0
    move-exception p0

    .line 465
    invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V

    :cond_2
    return v0

    :cond_3
    :goto_1
    return v0
.end method

.method private c(Ljava/lang/String;)I
    .locals 4

    .line 560
    invoke-static {p1}, Lcom/amap/api/mapcore2d/cu;->a(Ljava/lang/String;)[B

    move-result-object p1

    .line 559
    invoke-static {p1}, Lcom/amap/api/mapcore2d/cu;->c([B)[B

    move-result-object p1

    .line 561
    new-instance v0, Lcom/amap/api/mapcore2d/cz;

    invoke-direct {v0, p1}, Lcom/amap/api/mapcore2d/cz;-><init>([B)V

    const/4 p1, 0x1

    const/4 v1, 0x0

    .line 563
    :try_start_0
    invoke-static {}, Lcom/amap/api/mapcore2d/ej;->a()Lcom/amap/api/mapcore2d/ej;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/amap/api/mapcore2d/ej;->a(Lcom/amap/api/mapcore2d/ep;)[B

    move-result-object v0

    if-nez v0, :cond_0

    return v1

    .line 568
    :cond_0
    invoke-static {v0}, Lcom/amap/api/mapcore2d/cu;->a([B)Ljava/lang/String;

    move-result-object v0
    :try_end_0
    .catch Lcom/amap/api/mapcore2d/cj; {:try_start_0 .. :try_end_0} :catch_1

    .line 570
    :try_start_1
    new-instance v2, Lorg/json/JSONObject;

    invoke-direct {v2, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string v0, "code"

    .line 572
    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    .line 573
    invoke-virtual {v2, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v0
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Lcom/amap/api/mapcore2d/cj; {:try_start_1 .. :try_end_1} :catch_1

    move p1, v0

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    goto :goto_0

    :catch_0
    move-exception v0

    :try_start_2
    const-string v2, "LogProcessor"

    const-string v3, "processUpdate"

    .line 579
    invoke-static {v0, v2, v3}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_2
    .catch Lcom/amap/api/mapcore2d/cj; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_0

    :catch_1
    move-exception v0

    .line 585
    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/cj;->b()I

    move-result v2

    const/16 v3, 0x1b

    if-ne v2, v3, :cond_2

    const/4 p1, 0x0

    :cond_2
    const-string v1, "LogProcessor"

    const-string v2, "processUpdate"

    .line 591
    invoke-static {v0, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return p1
.end method

.method private c(Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 0

    .line 366
    invoke-virtual {p1}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method private d()Ljava/lang/String;
    .locals 2

    .line 347
    new-instance v0, Ljava/util/Date;

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

    .line 348
    invoke-virtual {v0}, Ljava/util/Date;->getTime()J

    move-result-wide v0

    invoke-static {v0, v1}, Lcom/amap/api/mapcore2d/cu;->a(J)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static d(Landroid/content/Context;)Ljava/lang/String;
    .locals 3

    .line 620
    new-instance v0, Ljava/lang/StringBuilder;

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

    :try_start_0
    const-string v1, "\"key\":\""

    .line 622
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/ck;->f(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"platform\":\"android\",\"diu\":\""

    .line 623
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/co;->q(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"pkg\":\""

    .line 624
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/ck;->c(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"model\":\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Landroid/os/Build;->MODEL:Ljava/lang/String;

    .line 625
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"appname\":\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/ck;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "\",\"appversion\":\""

    .line 626
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/amap/api/mapcore2d/ck;->d(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "\",\"sysversion\":\""

    .line 627
    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object p0, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p0, "\","

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    const-string v1, "CInfo"

    const-string v2, "getPublicJSONInfo"

    .line 630
    invoke-static {p0, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    .line 632
    :goto_0
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private d(Ljava/lang/String;)Ljava/lang/String;
    .locals 6

    const/4 v0, 0x0

    .line 694
    :try_start_0
    iget-object v1, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    if-nez v1, :cond_0

    return-object v0

    .line 697
    :cond_0
    iget-object v1, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    invoke-virtual {v1, p1}, Lcom/amap/api/mapcore2d/ef;->a(Ljava/lang/String;)Lcom/amap/api/mapcore2d/ef$b;

    move-result-object p1

    if-nez p1, :cond_1

    return-object v0

    :cond_1
    const/4 v1, 0x0

    .line 701
    invoke-virtual {p1, v1}, Lcom/amap/api/mapcore2d/ef$b;->a(I)Ljava/io/InputStream;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 703
    :try_start_1
    new-instance v2, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v2}, Ljava/io/ByteArrayOutputStream;-><init>()V
    :try_end_1
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    const/16 v3, 0x400

    .line 704
    :try_start_2
    new-array v3, v3, [B

    .line 705
    :goto_0
    invoke-virtual {p1, v3}, Ljava/io/InputStream;->read([B)I

    move-result v4

    const/4 v5, -0x1

    if-eq v4, v5, :cond_2

    .line 706
    invoke-virtual {v2, v3, v1, v4}, Ljava/io/ByteArrayOutputStream;->write([BII)V

    goto :goto_0

    .line 709
    :cond_2
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v1

    invoke-static {v1}, Lcom/amap/api/mapcore2d/cu;->a([B)Ljava/lang/String;

    move-result-object v1
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    .line 718
    :try_start_3
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    const-string v2, "LogProcessor"

    const-string v3, "readLog1"

    .line 721
    invoke-static {v0, v2, v3}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    if-eqz p1, :cond_3

    .line 727
    :try_start_4
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    goto :goto_2

    :catch_1
    move-exception p1

    const-string v0, "LogProcessor"

    const-string v2, "readLog2"

    .line 730
    invoke-static {p1, v0, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :cond_3
    :goto_2
    return-object v1

    :catch_2
    move-exception v1

    goto :goto_3

    :catchall_0
    move-exception v1

    move-object v2, v0

    move-object v0, v1

    goto :goto_6

    :catch_3
    move-exception v1

    move-object v2, v0

    goto :goto_3

    :catchall_1
    move-exception p1

    move-object v2, v0

    move-object v0, p1

    move-object p1, v2

    goto :goto_6

    :catch_4
    move-exception v1

    move-object p1, v0

    move-object v2, p1

    :goto_3
    :try_start_5
    const-string v3, "LogProcessor"

    const-string v4, "readLog"

    .line 712
    invoke-static {v1, v3, v4}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    if-eqz v2, :cond_4

    .line 718
    :try_start_6
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    goto :goto_4

    :catch_5
    move-exception v1

    const-string v2, "LogProcessor"

    const-string v3, "readLog1"

    .line 721
    invoke-static {v1, v2, v3}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :cond_4
    :goto_4
    if-eqz p1, :cond_5

    .line 727
    :try_start_7
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_6

    goto :goto_5

    :catch_6
    move-exception p1

    const-string v1, "LogProcessor"

    const-string v2, "readLog2"

    .line 730
    invoke-static {p1, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :cond_5
    :goto_5
    return-object v0

    :catchall_2
    move-exception v0

    :goto_6
    if-eqz v2, :cond_6

    .line 718
    :try_start_8
    invoke-virtual {v2}, Ljava/io/ByteArrayOutputStream;->close()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_7

    goto :goto_7

    :catch_7
    move-exception v1

    const-string v2, "LogProcessor"

    const-string v3, "readLog1"

    .line 721
    invoke-static {v1, v2, v3}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :cond_6
    :goto_7
    if-eqz p1, :cond_7

    .line 727
    :try_start_9
    invoke-virtual {p1}, Ljava/io/InputStream;->close()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_8

    goto :goto_8

    :catch_8
    move-exception p1

    const-string v1, "LogProcessor"

    const-string v2, "readLog2"

    .line 730
    invoke-static {p1, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    .line 716
    :cond_7
    :goto_8
    throw v0
.end method

.method private e(Landroid/content/Context;)V
    .locals 2

    .line 57
    :try_start_0
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->a()Ljava/lang/String;

    move-result-object v0

    .line 58
    invoke-direct {p0, p1, v0}, Lcom/amap/api/mapcore2d/de;->b(Landroid/content/Context;Ljava/lang/String;)Lcom/amap/api/mapcore2d/ef;

    move-result-object p1

    iput-object p1, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string v0, "LogProcessor"

    const-string v1, "LogUpDateProcessor"

    .line 60
    invoke-static {p1, v0, v1}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method private f(Landroid/content/Context;)Ljava/util/List;
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            ")",
            "Ljava/util/List<",
            "Lcom/amap/api/mapcore2d/ct;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    .line 244
    :try_start_0
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    monitor-enter v1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    .line 245
    :try_start_1
    new-instance v2, Lcom/amap/api/mapcore2d/dq;

    const/4 v3, 0x0

    invoke-direct {v2, p1, v3}, Lcom/amap/api/mapcore2d/dq;-><init>(Landroid/content/Context;Z)V

    .line 247
    invoke-virtual {v2}, Lcom/amap/api/mapcore2d/dq;->a()Ljava/util/List;

    move-result-object p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 248
    :try_start_2
    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v0

    move-object v4, v0

    move-object v0, p1

    move-object p1, v4

    goto :goto_0

    :catchall_1
    move-exception p1

    :goto_0
    :try_start_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :try_start_4
    throw p1
    :try_end_4
    .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_0

    :catch_0
    move-exception p1

    .line 250
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    move-object p1, v0

    :goto_1
    return-object p1
.end method

.method private g(Landroid/content/Context;)Ljava/lang/String;
    .locals 3

    const/4 v0, 0x0

    .line 640
    :try_start_0
    invoke-static {p1}, Lcom/amap/api/mapcore2d/de;->d(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    const-string v2, ""

    .line 641
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    return-object v0

    .line 644
    :cond_0
    invoke-static {v1}, Lcom/amap/api/mapcore2d/cu;->a(Ljava/lang/String;)[B

    move-result-object v1

    .line 645
    invoke-static {p1, v1}, Lcom/amap/api/mapcore2d/cn;->b(Landroid/content/Context;[B)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    const-string v1, "LogProcessor"

    const-string v2, "getPublicInfo"

    .line 649
    invoke-static {p1, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    move-object p1, v0

    :goto_0
    return-object p1
.end method


# virtual methods
.method protected a(Lcom/amap/api/mapcore2d/do;)Lcom/amap/api/mapcore2d/eg;
    .locals 1

    .line 280
    :try_start_0
    iget-object v0, p0, Lcom/amap/api/mapcore2d/de;->c:Lcom/amap/api/mapcore2d/eg;

    if-nez v0, :cond_0

    .line 281
    new-instance v0, Lcom/amap/api/mapcore2d/de$a;

    invoke-direct {v0, p0, p1}, Lcom/amap/api/mapcore2d/de$a;-><init>(Lcom/amap/api/mapcore2d/de;Lcom/amap/api/mapcore2d/do;)V

    iput-object v0, p0, Lcom/amap/api/mapcore2d/de;->c:Lcom/amap/api/mapcore2d/eg;
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 285
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    .line 287
    :cond_0
    :goto_0
    iget-object p1, p0, Lcom/amap/api/mapcore2d/de;->c:Lcom/amap/api/mapcore2d/eg;

    return-object p1
.end method

.method protected a()Ljava/lang/String;
    .locals 1

    .line 533
    iget v0, p0, Lcom/amap/api/mapcore2d/de;->b:I

    invoke-static {v0}, Lcom/amap/api/mapcore2d/cy;->c(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected a(Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    .line 271
    invoke-static {p1}, Lcom/amap/api/mapcore2d/cq;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method protected a(Ljava/lang/Throwable;)Ljava/lang/String;
    .locals 0

    .line 356
    :try_start_0
    invoke-static {p1}, Lcom/amap/api/mapcore2d/de;->b(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object p1
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 359
    invoke-virtual {p1}, Ljava/lang/Throwable;->printStackTrace()V

    const/4 p1, 0x0

    :goto_0
    return-object p1
.end method

.method protected abstract a(Ljava/util/List;)Ljava/lang/String;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/amap/api/mapcore2d/ct;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation
.end method

.method a(Landroid/content/Context;Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V
    .locals 9

    .line 123
    invoke-direct {p0, p1}, Lcom/amap/api/mapcore2d/de;->f(Landroid/content/Context;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_6

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

    move-result v1

    if-nez v1, :cond_0

    goto/16 :goto_2

    .line 128
    :cond_0
    invoke-virtual {p0, p2}, Lcom/amap/api/mapcore2d/de;->a(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_5

    const-string v2, ""

    .line 129
    invoke-virtual {v2, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1

    goto :goto_1

    .line 140
    :cond_1
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3

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

    move-result-object v2

    move-object v3, v2

    check-cast v3, Lcom/amap/api/mapcore2d/ct;

    .line 141
    invoke-virtual {v3}, Lcom/amap/api/mapcore2d/ct;->f()[Ljava/lang/String;

    move-result-object v2

    .line 142
    invoke-static {v2, v6}, Lcom/amap/api/mapcore2d/de;->a([Ljava/lang/String;Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2

    const-string v0, "\n"

    const-string v2, "<br/>"

    .line 143
    invoke-virtual {v6, v0, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    move-object v2, p0

    move-object v4, p1

    move-object v5, p2

    move-object v7, p3

    move-object v8, p4

    .line 144
    invoke-virtual/range {v2 .. v8}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/ct;Landroid/content/Context;Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :cond_3
    const-string v0, "com.amap.api.col"

    .line 154
    invoke-virtual {v6, v0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 157
    :try_start_0
    new-instance v0, Lcom/amap/api/mapcore2d/ct$a;

    const-string v2, "collection"

    const-string v3, "1.0"

    const-string v4, "AMap_collection_1.0"

    invoke-direct {v0, v2, v3, v4}, Lcom/amap/api/mapcore2d/ct$a;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/String;

    const/4 v3, 0x0

    const-string v4, "com.amap.api.collection"

    aput-object v4, v2, v3

    .line 158
    invoke-virtual {v0, v2}, Lcom/amap/api/mapcore2d/ct$a;->a([Ljava/lang/String;)Lcom/amap/api/mapcore2d/ct$a;

    move-result-object v0

    .line 159
    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/ct$a;->a()Lcom/amap/api/mapcore2d/ct;

    move-result-object v3

    move-object v2, p0

    move-object v4, p1

    move-object v5, p2

    move-object v7, p3

    move-object v8, p4

    .line 160
    invoke-virtual/range {v2 .. v8}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/ct;Landroid/content/Context;Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    :try_end_0
    .catch Lcom/amap/api/mapcore2d/cj; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 163
    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/cj;->printStackTrace()V

    :cond_4
    :goto_0
    return-void

    :cond_5
    :goto_1
    return-void

    :cond_6
    :goto_2
    return-void
.end method

.method protected a(Lcom/amap/api/mapcore2d/ct;)V
    .locals 0

    .line 237
    iput-object p1, p0, Lcom/amap/api/mapcore2d/de;->a:Lcom/amap/api/mapcore2d/ct;

    return-void
.end method

.method a(Lcom/amap/api/mapcore2d/ct;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 13

    move-object v8, p0

    move-object v0, p2

    move-object/from16 v6, p3

    move-object/from16 v1, p4

    move-object/from16 v2, p5

    move-object/from16 v3, p6

    .line 77
    invoke-virtual {p0, p1}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/ct;)V

    .line 78
    invoke-direct {p0}, Lcom/amap/api/mapcore2d/de;->d()Ljava/lang/String;

    move-result-object v4

    move-object v9, p1

    .line 79
    invoke-static {p2, p1}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;Lcom/amap/api/mapcore2d/ct;)Ljava/lang/String;

    move-result-object v5

    .line 80
    invoke-static {p2}, Lcom/amap/api/mapcore2d/ck;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v7

    if-eqz v6, :cond_5

    const-string v10, ""

    .line 82
    invoke-virtual {v10, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_0

    goto/16 :goto_1

    .line 85
    :cond_0
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->b()I

    move-result v10

    .line 86
    new-instance v11, Ljava/lang/StringBuilder;

    invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V

    if-eqz v2, :cond_1

    const-string v12, "class:"

    .line 88
    invoke-virtual {v11, v12}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_1
    if-eqz v3, :cond_2

    const-string v2, " method:"

    .line 92
    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v11, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "$"

    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "<br/>"

    .line 93
    invoke-virtual {v11, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 96
    :cond_2
    invoke-virtual {v11, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 97
    invoke-virtual {p0, v1}, Lcom/amap/api/mapcore2d/de;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    .line 99
    invoke-virtual {v11}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v11

    move-object v1, p0

    move-object v2, v7

    move-object v3, v5

    move v5, v10

    move-object/from16 v6, p3

    move-object v7, v11

    .line 98
    invoke-direct/range {v1 .. v7}, Lcom/amap/api/mapcore2d/de;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_4

    const-string v2, ""

    .line 100
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    goto :goto_0

    .line 103
    :cond_3
    invoke-direct {p0, p2, v1}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 106
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->a()Ljava/lang/String;

    move-result-object v4

    .line 108
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v7

    monitor-enter v7

    .line 109
    :try_start_0
    new-instance v11, Lcom/amap/api/mapcore2d/do;

    invoke-direct {v11, p2}, Lcom/amap/api/mapcore2d/do;-><init>(Landroid/content/Context;)V

    move-object v1, p0

    move-object v2, p2

    move-object v3, v12

    move-object v6, v11

    .line 110
    invoke-direct/range {v1 .. v6}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/amap/api/mapcore2d/do;)Z

    move-result v0

    .line 112
    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ct;->a()Ljava/lang/String;

    move-result-object v1

    move-object p1, p0

    move-object p2, v11

    move-object/from16 p3, v1

    move-object/from16 p4, v12

    move/from16 p5, v10

    move/from16 p6, v0

    invoke-direct/range {p1 .. p6}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/do;Ljava/lang/String;Ljava/lang/String;IZ)V

    .line 114
    monitor-exit v7

    return-void

    :catchall_0
    move-exception v0

    monitor-exit v7
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_4
    :goto_0
    return-void

    :cond_5
    :goto_1
    return-void
.end method

.method a(Lcom/amap/api/mapcore2d/ct;Landroid/content/Context;Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 7

    .line 69
    invoke-direct {p0, p3}, Lcom/amap/api/mapcore2d/de;->c(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v3

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v4, p4

    move-object v5, p5

    move-object v6, p6

    invoke-virtual/range {v0 .. v6}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/ct;Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method protected abstract a(Landroid/content/Context;)Z
.end method

.method protected b()I
    .locals 1

    .line 538
    iget v0, p0, Lcom/amap/api/mapcore2d/de;->b:I

    return v0
.end method

.method b(Landroid/content/Context;)V
    .locals 14

    .line 196
    invoke-direct {p0, p1}, Lcom/amap/api/mapcore2d/de;->f(Landroid/content/Context;)Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_5

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

    move-result v1

    if-nez v1, :cond_0

    goto/16 :goto_2

    .line 200
    :cond_0
    invoke-virtual {p0, v0}, Lcom/amap/api/mapcore2d/de;->a(Ljava/util/List;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_4

    const-string v1, ""

    .line 201
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    goto :goto_1

    .line 204
    :cond_1
    invoke-direct {p0}, Lcom/amap/api/mapcore2d/de;->d()Ljava/lang/String;

    move-result-object v5

    .line 205
    iget-object v1, p0, Lcom/amap/api/mapcore2d/de;->a:Lcom/amap/api/mapcore2d/ct;

    invoke-static {p1, v1}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;Lcom/amap/api/mapcore2d/ct;)Ljava/lang/String;

    move-result-object v4

    .line 206
    invoke-static {p1}, Lcom/amap/api/mapcore2d/ck;->a(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    const-string v7, "ANR"

    .line 208
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->b()I

    move-result v12

    move-object v2, p0

    move v6, v12

    move-object v8, v0

    .line 209
    invoke-direct/range {v2 .. v8}, Lcom/amap/api/mapcore2d/de;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    if-eqz v1, :cond_3

    const-string v2, ""

    .line 211
    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    goto :goto_0

    .line 218
    :cond_2
    invoke-virtual {p0, v0}, Lcom/amap/api/mapcore2d/de;->a(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 219
    invoke-direct {p0, p1, v1}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    .line 220
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->a()Ljava/lang/String;

    move-result-object v6

    .line 221
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v1

    monitor-enter v1

    .line 222
    :try_start_0
    new-instance v2, Lcom/amap/api/mapcore2d/do;

    invoke-direct {v2, p1}, Lcom/amap/api/mapcore2d/do;-><init>(Landroid/content/Context;)V

    move-object v3, p0

    move-object v4, p1

    move-object v5, v0

    move-object v8, v2

    .line 223
    invoke-direct/range {v3 .. v8}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/amap/api/mapcore2d/do;)Z

    move-result v13

    .line 225
    iget-object p1, p0, Lcom/amap/api/mapcore2d/de;->a:Lcom/amap/api/mapcore2d/ct;

    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ct;->a()Ljava/lang/String;

    move-result-object v10

    move-object v8, p0

    move-object v9, v2

    move-object v11, v0

    invoke-direct/range {v8 .. v13}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/do;Ljava/lang/String;Ljava/lang/String;IZ)V

    .line 227
    monitor-exit v1

    return-void

    :catchall_0
    move-exception p1

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p1

    :cond_3
    :goto_0
    return-void

    :cond_4
    :goto_1
    return-void

    :cond_5
    :goto_2
    return-void
.end method

.method c()V
    .locals 3

    .line 741
    :try_start_0
    iget-object v0, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/ef;->a()Z

    move-result v0

    if-nez v0, :cond_0

    .line 742
    iget-object v0, p0, Lcom/amap/api/mapcore2d/de;->d:Lcom/amap/api/mapcore2d/ef;

    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/ef;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    const-string v1, "LogProcessor"

    const-string v2, "closeDiskLru"

    .line 748
    invoke-static {v0, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :catch_1
    move-exception v0

    const-string v1, "LogProcessor"

    const-string v2, "closeDiskLru"

    .line 745
    invoke-static {v0, v1, v2}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void
.end method

.method c(Landroid/content/Context;)V
    .locals 4

    .line 474
    :try_start_0
    invoke-direct {p0, p1}, Lcom/amap/api/mapcore2d/de;->e(Landroid/content/Context;)V

    .line 476
    invoke-virtual {p0, p1}, Lcom/amap/api/mapcore2d/de;->a(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_0

    return-void

    .line 482
    :cond_0
    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    monitor-enter v0
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    .line 483
    :try_start_1
    new-instance v1, Lcom/amap/api/mapcore2d/do;

    invoke-direct {v1, p1}, Lcom/amap/api/mapcore2d/do;-><init>(Landroid/content/Context;)V

    .line 485
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->b()I

    move-result v2

    invoke-direct {p0, v1, v2}, Lcom/amap/api/mapcore2d/de;->a(Lcom/amap/api/mapcore2d/do;I)V

    const/4 v2, 0x0

    .line 492
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->b()I

    move-result v3

    invoke-static {v3}, Lcom/amap/api/mapcore2d/cy;->a(I)Ljava/lang/Class;

    move-result-object v3

    .line 491
    invoke-virtual {v1, v2, v3}, Lcom/amap/api/mapcore2d/do;->a(ILjava/lang/Class;)Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_4

    .line 494
    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v3

    if-nez v3, :cond_1

    goto :goto_0

    .line 498
    :cond_1
    invoke-direct {p0, v2, p1}, Lcom/amap/api/mapcore2d/de;->a(Ljava/util/List;Landroid/content/Context;)Ljava/lang/String;

    move-result-object p1

    if-nez p1, :cond_2

    .line 500
    monitor-exit v0

    return-void

    .line 502
    :cond_2
    invoke-direct {p0, p1}, Lcom/amap/api/mapcore2d/de;->c(Ljava/lang/String;)I

    move-result p1

    const/4 v3, 0x1

    if-ne p1, v3, :cond_3

    .line 504
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/de;->b()I

    move-result p1

    invoke-direct {p0, v2, v1, p1}, Lcom/amap/api/mapcore2d/de;->a(Ljava/util/List;Lcom/amap/api/mapcore2d/do;I)V

    .line 507
    :cond_3
    monitor-exit v0

    goto :goto_1

    .line 495
    :cond_4
    :goto_0
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p1

    .line 507
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw p1
    :try_end_2
    .catch Ljava/lang/Throwable; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    move-exception p1

    const-string v0, "LogProcessor"

    const-string v1, "processUpdateLog"

    .line 512
    invoke-static {p1, v0, v1}, Lcom/amap/api/mapcore2d/cx;->a(Ljava/lang/Throwable;Ljava/lang/String;Ljava/lang/String;)V

    :goto_1
    return-void
.end method
