.class Lcom/amap/api/mapcore2d/br;
.super Lcom/amap/api/mapcore2d/e;
.source "TileServer.java"

# interfaces
.implements Lcom/amap/api/mapcore2d/by;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/amap/api/mapcore2d/e<",
        "Lcom/amap/api/mapcore2d/bo;",
        "Lcom/amap/api/mapcore2d/bo;",
        ">;",
        "Lcom/amap/api/mapcore2d/by;"
    }
.end annotation


# instance fields
.field private d:Landroid/content/Context;

.field private e:Lcom/amap/api/mapcore2d/al;

.field private f:Lcom/amap/api/mapcore2d/ax;

.field private g:Lcom/amap/api/mapcore2d/ak;


# direct methods
.method public constructor <init>(Lcom/amap/api/mapcore2d/ax;Landroid/content/Context;Lcom/amap/api/mapcore2d/al;)V
    .locals 1

    .line 36
    invoke-direct {p0, p1, p2}, Lcom/amap/api/mapcore2d/e;-><init>(Lcom/amap/api/mapcore2d/ax;Landroid/content/Context;)V

    .line 310
    new-instance v0, Lcom/amap/api/mapcore2d/ak;

    invoke-direct {v0}, Lcom/amap/api/mapcore2d/ak;-><init>()V

    iput-object v0, p0, Lcom/amap/api/mapcore2d/br;->g:Lcom/amap/api/mapcore2d/ak;

    .line 37
    iput-object p3, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    .line 38
    iput-object p2, p0, Lcom/amap/api/mapcore2d/br;->d:Landroid/content/Context;

    .line 39
    new-instance p2, Lcom/amap/api/mapcore2d/bn;

    invoke-direct {p2}, Lcom/amap/api/mapcore2d/bn;-><init>()V

    iput-object p2, p0, Lcom/amap/api/mapcore2d/br;->a:Lcom/amap/api/mapcore2d/bk;

    .line 40
    iget-object p2, p1, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    invoke-virtual {p2, p0}, Lcom/amap/api/mapcore2d/ax$d;->a(Lcom/amap/api/mapcore2d/by;)V

    .line 41
    iput-object p1, p0, Lcom/amap/api/mapcore2d/br;->f:Lcom/amap/api/mapcore2d/ax;

    .line 42
    invoke-virtual {p0}, Lcom/amap/api/mapcore2d/br;->a()V

    return-void
.end method

.method private a(Ljava/util/ArrayList;Lcom/amap/api/mapcore2d/al;FZ)Ljava/util/ArrayList;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;",
            "Lcom/amap/api/mapcore2d/al;",
            "FZ)",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;"
        }
    .end annotation

    .line 195
    new-instance v0, Ljava/util/ArrayList;

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

    const/4 v1, 0x0

    if-eqz p1, :cond_a

    if-nez p2, :cond_0

    goto/16 :goto_3

    .line 201
    :cond_0
    invoke-virtual {p2}, Lcom/amap/api/mapcore2d/al;->a()Z

    move-result v2

    if-nez v2, :cond_1

    return-object v1

    .line 204
    :cond_1
    iget-object v2, p2, Lcom/amap/api/mapcore2d/al;->p:Lcom/amap/api/mapcore2d/bj;

    if-nez v2, :cond_2

    return-object v1

    .line 208
    :cond_2
    iget-object v2, p2, Lcom/amap/api/mapcore2d/al;->p:Lcom/amap/api/mapcore2d/bj;

    invoke-virtual {v2}, Lcom/amap/api/mapcore2d/bj;->clear()V

    .line 211
    iget v2, p2, Lcom/amap/api/mapcore2d/al;->c:I

    int-to-float v2, v2

    cmpl-float v2, p3, v2

    if-gtz v2, :cond_9

    iget v2, p2, Lcom/amap/api/mapcore2d/al;->d:I

    int-to-float v2, v2

    cmpg-float p3, p3, v2

    if-gez p3, :cond_3

    goto :goto_2

    .line 215
    :cond_3
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result p3

    if-gtz p3, :cond_4

    return-object v1

    :cond_4
    const/4 v1, 0x0

    :goto_0
    if-ge v1, p3, :cond_8

    .line 225
    :try_start_0
    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/amap/api/mapcore2d/bo;

    if-nez v2, :cond_5

    goto :goto_1

    .line 229
    :cond_5
    iget-object v3, p2, Lcom/amap/api/mapcore2d/al;->n:Lcom/amap/api/mapcore2d/ay;

    .line 230
    invoke-virtual {v2}, Lcom/amap/api/mapcore2d/bo;->c()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Lcom/amap/api/mapcore2d/ay;->a(Ljava/lang/String;)I

    move-result v3

    .line 232
    new-instance v4, Lcom/amap/api/mapcore2d/bo;

    iget v5, v2, Lcom/amap/api/mapcore2d/bo;->b:I

    iget v6, v2, Lcom/amap/api/mapcore2d/bo;->c:I

    iget v7, v2, Lcom/amap/api/mapcore2d/bo;->d:I

    iget v8, p2, Lcom/amap/api/mapcore2d/al;->l:I

    invoke-direct {v4, v5, v6, v7, v8}, Lcom/amap/api/mapcore2d/bo;-><init>(IIII)V

    .line 235
    iput v3, v4, Lcom/amap/api/mapcore2d/bo;->h:I

    .line 236
    iget-object v2, v2, Lcom/amap/api/mapcore2d/bo;->g:Landroid/graphics/PointF;

    iput-object v2, v4, Lcom/amap/api/mapcore2d/bo;->g:Landroid/graphics/PointF;

    .line 238
    iget-object v2, p2, Lcom/amap/api/mapcore2d/al;->p:Lcom/amap/api/mapcore2d/bj;

    invoke-virtual {v2, v4}, Lcom/amap/api/mapcore2d/bj;->add(Ljava/lang/Object;)Z

    .line 241
    invoke-direct {p0, v4}, Lcom/amap/api/mapcore2d/br;->a(Lcom/amap/api/mapcore2d/bo;)Z

    move-result v2

    if-eqz v2, :cond_7

    if-nez p4, :cond_7

    .line 244
    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->g:Lcom/amap/api/mapcore2d/ak;

    invoke-virtual {v2, v4}, Lcom/amap/api/mapcore2d/ak;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_7

    .line 245
    iget-boolean v2, p2, Lcom/amap/api/mapcore2d/al;->f:Z

    if-nez v2, :cond_6

    const/4 v2, -0x1

    .line 246
    iput v2, v4, Lcom/amap/api/mapcore2d/bo;->a:I

    .line 248
    :cond_6
    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0

    :cond_7
    :goto_1
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :catch_0
    :cond_8
    return-object v0

    :cond_9
    :goto_2
    return-object v1

    :cond_a
    :goto_3
    return-object v1
.end method

.method private a(Ljava/util/ArrayList;Z)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;Z)V"
        }
    .end annotation

    .line 144
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->a:Lcom/amap/api/mapcore2d/bk;

    if-eqz v0, :cond_2

    if-nez p1, :cond_0

    goto :goto_0

    .line 147
    :cond_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-eqz v0, :cond_1

    .line 148
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->a:Lcom/amap/api/mapcore2d/bk;

    invoke-virtual {v0, p1, p2}, Lcom/amap/api/mapcore2d/bk;->a(Ljava/util/List;Z)V

    :cond_1
    return-void

    :cond_2
    :goto_0
    return-void
.end method

.method private a(Lcom/amap/api/mapcore2d/bo;)Z
    .locals 0

    if-eqz p1, :cond_1

    .line 307
    iget p1, p1, Lcom/amap/api/mapcore2d/bo;->h:I

    if-gez p1, :cond_0

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    goto :goto_1

    :cond_1
    :goto_0
    const/4 p1, 0x1

    :goto_1
    return p1
.end method

.method private c(Ljava/util/ArrayList;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;)V"
        }
    .end annotation

    if-eqz p1, :cond_3

    .line 130
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->g:Lcom/amap/api/mapcore2d/ak;

    if-nez v0, :cond_0

    goto :goto_1

    .line 133
    :cond_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_2

    .line 138
    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->g:Lcom/amap/api/mapcore2d/ak;

    invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

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

    invoke-virtual {v2, v3}, Lcom/amap/api/mapcore2d/ak;->a(Lcom/amap/api/mapcore2d/bo;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    return-void

    :cond_3
    :goto_1
    return-void
.end method

.method private j()Z
    .locals 2

    .line 167
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    const/4 v1, 0x0

    if-eqz v0, :cond_3

    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    if-nez v0, :cond_0

    goto :goto_0

    .line 170
    :cond_0
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax$a;->a:Lcom/amap/api/mapcore2d/bj;

    if-nez v0, :cond_1

    return v1

    .line 173
    :cond_1
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax$a;->a:Lcom/amap/api/mapcore2d/bj;

    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/bj;->size()I

    move-result v0

    if-gtz v0, :cond_2

    return v1

    .line 187
    :cond_2
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

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

    move-result v0

    return v0

    :cond_3
    :goto_0
    return v1
.end method


# virtual methods
.method protected a(Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;)",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/amap/api/maps2d/AMapException;
        }
    .end annotation

    const/4 v0, 0x0

    if-eqz p1, :cond_8

    .line 52
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_0

    goto :goto_2

    .line 58
    :cond_0
    iget-object v1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v1, v1, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v1, v1, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    iget-object v1, v1, Lcom/amap/api/mapcore2d/ax$a;->a:Lcom/amap/api/mapcore2d/bj;

    if-nez v1, :cond_1

    goto :goto_1

    .line 72
    :cond_1
    invoke-virtual {p0, p1}, Lcom/amap/api/mapcore2d/br;->a(Ljava/util/List;)V

    .line 74
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_2

    return-object v0

    .line 86
    :cond_2
    iget-object v1, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    iget-object v1, v1, Lcom/amap/api/mapcore2d/al;->j:Lcom/amap/api/mapcore2d/bx;

    if-nez v1, :cond_3

    iget-object v1, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    iget-object v1, v1, Lcom/amap/api/mapcore2d/al;->k:Lcom/amap/api/maps2d/model/TileProvider;

    if-eqz v1, :cond_4

    .line 88
    :cond_3
    new-instance v1, Lcom/amap/api/mapcore2d/bs;

    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->d:Landroid/content/Context;

    iget-object v3, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    iget-object v3, v3, Lcom/amap/api/mapcore2d/al;->k:Lcom/amap/api/maps2d/model/TileProvider;

    invoke-direct {v1, v2, p1, v3}, Lcom/amap/api/mapcore2d/bs;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Lcom/amap/api/maps2d/model/TileProvider;)V

    .line 92
    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    invoke-virtual {v1, v2}, Lcom/amap/api/mapcore2d/bs;->a(Lcom/amap/api/mapcore2d/al;)V

    .line 94
    invoke-virtual {v1}, Lcom/amap/api/mapcore2d/bs;->a()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/ArrayList;

    .line 95
    invoke-virtual {v1, v0}, Lcom/amap/api/mapcore2d/bs;->a(Lcom/amap/api/mapcore2d/al;)V

    move-object v0, v2

    .line 101
    :cond_4
    invoke-direct {p0, p1}, Lcom/amap/api/mapcore2d/br;->c(Ljava/util/ArrayList;)V

    .line 102
    iget-object p1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    if-eqz p1, :cond_6

    iget-object p1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object p1, p1, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    if-nez p1, :cond_5

    goto :goto_0

    .line 105
    :cond_5
    iget-object p1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object p1, p1, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ax$a;->b()V

    return-object v0

    :cond_6
    :goto_0
    return-object v0

    :cond_7
    :goto_1
    return-object v0

    :cond_8
    :goto_2
    return-object v0
.end method

.method public a(Ljava/util/List;)V
    .locals 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;)V"
        }
    .end annotation

    if-nez p1, :cond_0

    return-void

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

    move-result v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_3

    .line 120
    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->g:Lcom/amap/api/mapcore2d/ak;

    invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

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

    invoke-virtual {v2, v3}, Lcom/amap/api/mapcore2d/ak;->b(Lcom/amap/api/mapcore2d/bo;)Z

    move-result v2

    if-nez v2, :cond_2

    .line 122
    invoke-interface {p1, v1}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    add-int/lit8 v1, v1, -0x1

    add-int/lit8 v0, v0, -0x1

    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_3
    return-void
.end method

.method public a(ZZ)V
    .locals 4

    .line 261
    invoke-direct {p0}, Lcom/amap/api/mapcore2d/br;->j()Z

    move-result p1

    if-nez p1, :cond_0

    return-void

    .line 265
    :cond_0
    iget-object p1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object p1, p1, Lcom/amap/api/mapcore2d/ax;->i:Lcom/amap/api/mapcore2d/at;

    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax;->i:Lcom/amap/api/mapcore2d/at;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/at;->l:Lcom/amap/api/mapcore2d/u;

    iget-object v1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v1, v1, Lcom/amap/api/mapcore2d/ax;->i:Lcom/amap/api/mapcore2d/at;

    .line 268
    invoke-virtual {v1}, Lcom/amap/api/mapcore2d/at;->b()I

    move-result v1

    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v2, v2, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    .line 269
    invoke-virtual {v2}, Lcom/amap/api/mapcore2d/ax$d;->c()I

    move-result v2

    iget-object v3, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v3, v3, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    .line 270
    invoke-virtual {v3}, Lcom/amap/api/mapcore2d/ax$d;->d()I

    move-result v3

    .line 266
    invoke-virtual {p1, v0, v1, v2, v3}, Lcom/amap/api/mapcore2d/at;->a(Lcom/amap/api/mapcore2d/u;III)Ljava/util/ArrayList;

    move-result-object p1

    if-nez p1, :cond_1

    return-void

    .line 277
    :cond_1
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-gtz v0, :cond_2

    return-void

    .line 282
    :cond_2
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    const/4 v1, 0x1

    .line 288
    iget-object v2, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v2, v2, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    .line 289
    invoke-virtual {v2}, Lcom/amap/api/mapcore2d/ax$d;->e()F

    move-result v2

    .line 288
    invoke-direct {p0, p1, v0, v2, p2}, Lcom/amap/api/mapcore2d/br;->a(Ljava/util/ArrayList;Lcom/amap/api/mapcore2d/al;FZ)Ljava/util/ArrayList;

    move-result-object p2

    if-eqz p2, :cond_3

    .line 292
    invoke-direct {p0, p2, v1}, Lcom/amap/api/mapcore2d/br;->a(Ljava/util/ArrayList;Z)V

    .line 296
    invoke-virtual {p2}, Ljava/util/ArrayList;->clear()V

    .line 301
    :cond_3
    invoke-virtual {p1}, Ljava/util/ArrayList;->clear()V

    .line 303
    iget-object p1, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object p1, p1, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/ax$d;->g()Lcom/amap/api/mapcore2d/b;

    move-result-object p1

    invoke-virtual {p1}, Lcom/amap/api/mapcore2d/b;->invalidate()V

    return-void
.end method

.method protected b(Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;)",
            "Ljava/util/ArrayList<",
            "Lcom/amap/api/mapcore2d/bo;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return-object v0

    .line 332
    :cond_0
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_1

    return-object v0

    :cond_1
    const/4 v2, 0x0

    const/4 v3, -0x1

    move-object v4, v0

    const/4 v5, -0x1

    :goto_0
    if-ge v2, v1, :cond_c

    .line 343
    invoke-virtual {p1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/amap/api/mapcore2d/bo;

    if-nez v6, :cond_2

    goto/16 :goto_3

    .line 347
    :cond_2
    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    if-eqz v7, :cond_b

    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    if-eqz v7, :cond_b

    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/ax$a;->a:Lcom/amap/api/mapcore2d/bj;

    if-nez v7, :cond_3

    goto/16 :goto_4

    .line 351
    :cond_3
    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/ax$a;->a:Lcom/amap/api/mapcore2d/bj;

    invoke-virtual {v7}, Lcom/amap/api/mapcore2d/bj;->size()I

    .line 360
    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    iget-boolean v7, v7, Lcom/amap/api/mapcore2d/al;->f:Z

    if-nez v7, :cond_4

    goto :goto_3

    .line 368
    :cond_4
    :try_start_0
    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/al;->o:Lcom/amap/api/mapcore2d/s;

    invoke-virtual {v7, v6}, Lcom/amap/api/mapcore2d/s;->a(Lcom/amap/api/mapcore2d/bo;)I

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

    move v5, v7

    goto :goto_1

    :catch_0
    move-exception v7

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

    :goto_1
    if-ltz v5, :cond_9

    .line 374
    invoke-virtual {p1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    add-int/lit8 v1, v1, -0x1

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

    .line 380
    iget-object v7, p0, Lcom/amap/api/mapcore2d/br;->e:Lcom/amap/api/mapcore2d/al;

    iget-object v7, v7, Lcom/amap/api/mapcore2d/al;->p:Lcom/amap/api/mapcore2d/bj;

    if-nez v7, :cond_5

    goto :goto_3

    .line 385
    :cond_5
    monitor-enter v7

    .line 386
    :try_start_1
    invoke-virtual {v7}, Lcom/amap/api/mapcore2d/bj;->iterator()Ljava/util/Iterator;

    move-result-object v8

    :cond_6
    :goto_2
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_8

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

    move-result-object v9

    check-cast v9, Lcom/amap/api/mapcore2d/bo;

    if-nez v9, :cond_7

    goto :goto_2

    .line 390
    :cond_7
    invoke-virtual {v9, v6}, Lcom/amap/api/mapcore2d/bo;->equals(Ljava/lang/Object;)Z

    move-result v10

    if-eqz v10, :cond_6

    .line 391
    iput v5, v9, Lcom/amap/api/mapcore2d/bo;->h:I

    .line 392
    iget-object v6, p0, Lcom/amap/api/mapcore2d/br;->b:Lcom/amap/api/mapcore2d/ax;

    iget-object v6, v6, Lcom/amap/api/mapcore2d/ax;->e:Lcom/amap/api/mapcore2d/ax$a;

    invoke-virtual {v6}, Lcom/amap/api/mapcore2d/ax$a;->b()V

    .line 396
    :cond_8
    monitor-exit v7

    goto :goto_3

    :catchall_0
    move-exception p1

    monitor-exit v7
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p1

    :cond_9
    if-nez v4, :cond_a

    .line 399
    new-instance v4, Ljava/util/ArrayList;

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

    .line 401
    :cond_a
    new-instance v7, Lcom/amap/api/mapcore2d/bo;

    invoke-direct {v7, v6}, Lcom/amap/api/mapcore2d/bo;-><init>(Lcom/amap/api/mapcore2d/bo;)V

    .line 402
    iput v3, v7, Lcom/amap/api/mapcore2d/bo;->a:I

    .line 403
    invoke-virtual {v4, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

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

    goto/16 :goto_0

    :cond_b
    :goto_4
    return-object v0

    :cond_c
    return-object v4
.end method

.method public b()V
    .locals 1

    .line 27
    invoke-super {p0}, Lcom/amap/api/mapcore2d/e;->b()V

    .line 28
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->g:Lcom/amap/api/mapcore2d/ak;

    invoke-virtual {v0}, Lcom/amap/api/mapcore2d/ak;->clear()V

    .line 29
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->f:Lcom/amap/api/mapcore2d/ax;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->f:Lcom/amap/api/mapcore2d/ax;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    if-eqz v0, :cond_0

    .line 30
    iget-object v0, p0, Lcom/amap/api/mapcore2d/br;->f:Lcom/amap/api/mapcore2d/ax;

    iget-object v0, v0, Lcom/amap/api/mapcore2d/ax;->c:Lcom/amap/api/mapcore2d/ax$d;

    invoke-virtual {v0, p0}, Lcom/amap/api/mapcore2d/ax$d;->b(Lcom/amap/api/mapcore2d/by;)V

    :cond_0
    return-void
.end method

.method protected f()I
    .locals 1

    const/4 v0, 0x4

    return v0
.end method

.method protected g()I
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public i()V
    .locals 1

    const/4 v0, 0x0

    .line 158
    invoke-virtual {p0, v0, v0}, Lcom/amap/api/mapcore2d/br;->a(ZZ)V

    return-void
.end method
