a.smali

.class public final Lcom/google/maps/android/quadtree/a;
.super Ljava/lang/Object;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/maps/android/quadtree/a$a;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T::",
        "Lcom/google/maps/android/quadtree/a$a;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field public final a:Lcom/google/maps/android/geometry/a;

.field public final b:I

.field public c:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "TT;>;"
        }
    .end annotation
.end field

.field public d:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/google/maps/android/quadtree/a<",
            "TT;>;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(DDDDI)V
    .registers 21

    move-object v0, p0

    .line 1
    new-instance v10, Lcom/google/maps/android/geometry/a;

    move-object v1, v10

    move-wide v2, p1

    move-wide v4, p3

    move-wide/from16 v6, p5

    move-wide/from16 v8, p7

    invoke-direct/range {v1 .. v9}, Lcom/google/maps/android/geometry/a;-><init>(DDDD)V

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

    const/4 v1, 0x0

    .line 3
    iput-object v1, v0, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    .line 4
    iput-object v10, v0, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    move/from16 v1, p9

    .line 5
    iput v1, v0, Lcom/google/maps/android/quadtree/a;->b:I

    return-void
.end method

.method public constructor <init>(Lcom/google/maps/android/geometry/a;)V
    .registers 3

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

    const/4 v0, 0x0

    .line 7
    iput-object v0, p0, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    .line 8
    iput-object p1, p0, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    const/4 p1, 0x0

    .line 9
    iput p1, p0, Lcom/google/maps/android/quadtree/a;->b:I

    return-void
.end method


# virtual methods
.method public final a(DDLcom/google/maps/android/quadtree/a$a;)V
    .registers 24
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(DDTT;)V"
        }
    .end annotation

    move-object/from16 v7, p0

    .line 1
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    const/4 v1, 0x1

    if-eqz v0, :cond_62

    .line 2
    iget-object v2, v7, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    iget-wide v3, v2, Lcom/google/maps/android/geometry/a;->f:D

    cmpg-double v5, p3, v3

    if-gez v5, :cond_38

    .line 3
    iget-wide v2, v2, Lcom/google/maps/android/geometry/a;->e:D

    cmpg-double v4, p1, v2

    if-gez v4, :cond_27

    const/4 v1, 0x0

    .line 4
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/google/maps/android/quadtree/a;

    move-wide/from16 v2, p1

    move-wide/from16 v4, p3

    move-object/from16 v6, p5

    invoke-virtual/range {v1 .. v6}, Lcom/google/maps/android/quadtree/a;->a(DDLcom/google/maps/android/quadtree/a$a;)V

    goto :goto_61

    .line 5
    :cond_27
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/google/maps/android/quadtree/a;

    move-wide/from16 v2, p1

    move-wide/from16 v4, p3

    move-object/from16 v6, p5

    invoke-virtual/range {v1 .. v6}, Lcom/google/maps/android/quadtree/a;->a(DDLcom/google/maps/android/quadtree/a$a;)V

    goto :goto_61

    .line 6
    :cond_38
    iget-wide v1, v2, Lcom/google/maps/android/geometry/a;->e:D

    cmpg-double v3, p1, v1

    if-gez v3, :cond_50

    const/4 v1, 0x2

    .line 7
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/google/maps/android/quadtree/a;

    move-wide/from16 v2, p1

    move-wide/from16 v4, p3

    move-object/from16 v6, p5

    invoke-virtual/range {v1 .. v6}, Lcom/google/maps/android/quadtree/a;->a(DDLcom/google/maps/android/quadtree/a$a;)V

    goto :goto_61

    :cond_50
    const/4 v1, 0x3

    .line 8
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Lcom/google/maps/android/quadtree/a;

    move-wide/from16 v2, p1

    move-wide/from16 v4, p3

    move-object/from16 v6, p5

    invoke-virtual/range {v1 .. v6}, Lcom/google/maps/android/quadtree/a;->a(DDLcom/google/maps/android/quadtree/a$a;)V

    :goto_61
    return-void

    .line 9
    :cond_62
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    if-nez v0, :cond_6d

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

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

    iput-object v0, v7, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    .line 11
    :cond_6d
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    move-object/from16 v2, p5

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 12
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    const/16 v2, 0x32

    if-le v0, v2, :cond_11d

    iget v0, v7, Lcom/google/maps/android/quadtree/a;->b:I

    const/16 v2, 0x28

    if-ge v0, v2, :cond_11d

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

    const/4 v2, 0x4

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

    iput-object v0, v7, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    .line 14
    new-instance v2, Lcom/google/maps/android/quadtree/a;

    iget-object v3, v7, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    iget-wide v9, v3, Lcom/google/maps/android/geometry/a;->a:D

    iget-wide v11, v3, Lcom/google/maps/android/geometry/a;->e:D

    iget-wide v13, v3, Lcom/google/maps/android/geometry/a;->b:D

    iget-wide v3, v3, Lcom/google/maps/android/geometry/a;->f:D

    iget v5, v7, Lcom/google/maps/android/quadtree/a;->b:I

    add-int/lit8 v17, v5, 0x1

    move-object v8, v2

    move-wide v15, v3

    invoke-direct/range {v8 .. v17}, Lcom/google/maps/android/quadtree/a;-><init>(DDDDI)V

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 15
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    new-instance v2, Lcom/google/maps/android/quadtree/a;

    iget-object v3, v7, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    iget-wide v9, v3, Lcom/google/maps/android/geometry/a;->e:D

    iget-wide v11, v3, Lcom/google/maps/android/geometry/a;->c:D

    iget-wide v13, v3, Lcom/google/maps/android/geometry/a;->b:D

    iget-wide v3, v3, Lcom/google/maps/android/geometry/a;->f:D

    iget v5, v7, Lcom/google/maps/android/quadtree/a;->b:I

    add-int/lit8 v17, v5, 0x1

    move-object v8, v2

    move-wide v15, v3

    invoke-direct/range {v8 .. v17}, Lcom/google/maps/android/quadtree/a;-><init>(DDDDI)V

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 16
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    new-instance v2, Lcom/google/maps/android/quadtree/a;

    iget-object v3, v7, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    iget-wide v9, v3, Lcom/google/maps/android/geometry/a;->a:D

    iget-wide v11, v3, Lcom/google/maps/android/geometry/a;->e:D

    iget-wide v13, v3, Lcom/google/maps/android/geometry/a;->f:D

    iget-wide v3, v3, Lcom/google/maps/android/geometry/a;->d:D

    iget v5, v7, Lcom/google/maps/android/quadtree/a;->b:I

    add-int/lit8 v17, v5, 0x1

    move-object v8, v2

    move-wide v15, v3

    invoke-direct/range {v8 .. v17}, Lcom/google/maps/android/quadtree/a;-><init>(DDDDI)V

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 17
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    new-instance v2, Lcom/google/maps/android/quadtree/a;

    iget-object v3, v7, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    iget-wide v9, v3, Lcom/google/maps/android/geometry/a;->e:D

    iget-wide v11, v3, Lcom/google/maps/android/geometry/a;->c:D

    iget-wide v13, v3, Lcom/google/maps/android/geometry/a;->f:D

    iget-wide v3, v3, Lcom/google/maps/android/geometry/a;->d:D

    iget v5, v7, Lcom/google/maps/android/quadtree/a;->b:I

    add-int/lit8 v17, v5, 0x1

    move-object v8, v2

    move-wide v15, v3

    invoke-direct/range {v8 .. v17}, Lcom/google/maps/android/quadtree/a;-><init>(DDDDI)V

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 18
    iget-object v0, v7, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    const/4 v1, 0x0

    .line 19
    iput-object v1, v7, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    .line 20
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_11d

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

    move-result-object v1

    move-object v6, v1

    check-cast v6, Lcom/google/maps/android/quadtree/a$a;

    .line 21
    invoke-interface {v6}, Lcom/google/maps/android/quadtree/a$a;->a()Lcom/google/maps/android/projection/a;

    move-result-object v1

    iget-wide v2, v1, Lcom/google/maps/android/projection/a;->a:D

    invoke-interface {v6}, Lcom/google/maps/android/quadtree/a$a;->a()Lcom/google/maps/android/projection/a;

    move-result-object v1

    iget-wide v4, v1, Lcom/google/maps/android/projection/a;->b:D

    move-object/from16 v1, p0

    :try_start_116
    invoke-virtual/range {v1 .. v6}, Lcom/google/maps/android/quadtree/a;->a(DDLcom/google/maps/android/quadtree/a$a;)V
    :try_end_119
    .catchall {:try_start_116 .. :try_end_119} :catchall_11a

    goto :goto_fb

    :catchall_11a
    move-exception v0

    move-object v1, v0

    throw v1

    :cond_11d
    return-void
.end method

.method public final b(Lcom/google/maps/android/geometry/a;)Ljava/util/Collection;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/maps/android/geometry/a;",
            ")",
            "Ljava/util/Collection<",
            "TT;>;"
        }
    .end annotation

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

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

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/maps/android/quadtree/a;->c(Lcom/google/maps/android/geometry/a;Ljava/util/Collection;)V

    return-object v0
.end method

.method public final c(Lcom/google/maps/android/geometry/a;Ljava/util/Collection;)V
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/maps/android/geometry/a;",
            "Ljava/util/Collection<",
            "TT;>;)V"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    invoke-virtual {v0, p1}, Lcom/google/maps/android/geometry/a;->b(Lcom/google/maps/android/geometry/a;)Z

    move-result v0

    if-nez v0, :cond_9

    return-void

    .line 2
    :cond_9
    iget-object v0, p0, Lcom/google/maps/android/quadtree/a;->d:Ljava/util/ArrayList;

    if-eqz v0, :cond_21

    .line 3
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_72

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

    move-result-object v1

    check-cast v1, Lcom/google/maps/android/quadtree/a;

    .line 4
    invoke-virtual {v1, p1, p2}, Lcom/google/maps/android/quadtree/a;->c(Lcom/google/maps/android/geometry/a;Ljava/util/Collection;)V

    goto :goto_11

    .line 5
    :cond_21
    iget-object v0, p0, Lcom/google/maps/android/quadtree/a;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_72

    .line 6
    iget-object v1, p0, Lcom/google/maps/android/quadtree/a;->a:Lcom/google/maps/android/geometry/a;

    .line 7
    iget-wide v2, v1, Lcom/google/maps/android/geometry/a;->a:D

    iget-wide v4, p1, Lcom/google/maps/android/geometry/a;->a:D

    cmpl-double v6, v2, v4

    if-ltz v6, :cond_49

    iget-wide v2, v1, Lcom/google/maps/android/geometry/a;->c:D

    iget-wide v4, p1, Lcom/google/maps/android/geometry/a;->c:D

    cmpg-double v6, v2, v4

    if-gtz v6, :cond_49

    iget-wide v2, v1, Lcom/google/maps/android/geometry/a;->b:D

    iget-wide v4, p1, Lcom/google/maps/android/geometry/a;->b:D

    cmpl-double v6, v2, v4

    if-ltz v6, :cond_49

    iget-wide v1, v1, Lcom/google/maps/android/geometry/a;->d:D

    iget-wide v3, p1, Lcom/google/maps/android/geometry/a;->d:D

    cmpg-double v5, v1, v3

    if-gtz v5, :cond_49

    const/4 v1, 0x1

    goto :goto_4a

    :cond_49
    const/4 v1, 0x0

    :goto_4a
    if-eqz v1, :cond_50

    .line 8
    invoke-interface {p2, v0}, Ljava/util/Collection;->addAll(Ljava/util/Collection;)Z

    goto :goto_72

    .line 9
    :cond_50
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_72

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

    move-result-object v1

    check-cast v1, Lcom/google/maps/android/quadtree/a$a;

    .line 10
    invoke-interface {v1}, Lcom/google/maps/android/quadtree/a$a;->a()Lcom/google/maps/android/projection/a;

    move-result-object v2

    .line 11
    iget-wide v3, v2, Lcom/google/maps/android/projection/a;->a:D

    iget-wide v5, v2, Lcom/google/maps/android/projection/a;->b:D

    invoke-virtual {p1, v3, v4, v5, v6}, Lcom/google/maps/android/geometry/a;->a(DD)Z

    move-result v2

    if-eqz v2, :cond_54

    .line 12
    invoke-interface {p2, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z

    goto :goto_54

    :cond_72
    :goto_72
    return-void
.end method