.class public Lv/j;
.super Ljava/lang/Object;
.source ""


# direct methods
.method public static a(Lu/e;ILjava/util/ArrayList;Lv/p;)Lv/p;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lu/e;",
            "I",
            "Ljava/util/ArrayList<",
            "Lv/p;",
            ">;",
            "Lv/p;",
            ")",
            "Lv/p;"
        }
    .end annotation

    if-nez p1, :cond_5

    iget v0, p0, Lu/e;->o0:I

    goto :goto_7

    :cond_5
    iget v0, p0, Lu/e;->p0:I

    :goto_7
    const/4 v1, 0x0

    const/4 v2, -0x1

    if-eq v0, v2, :cond_2f

    if-eqz p3, :cond_11

    iget v3, p3, Lv/p;->b:I

    if-eq v0, v3, :cond_2f

    :cond_11
    move v3, v1

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

    move-result v4

    if-ge v3, v4, :cond_32

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

    move-result-object v4

    check-cast v4, Lv/p;

    .line 1
    iget v5, v4, Lv/p;->b:I

    if-ne v5, v0, :cond_2c

    if-eqz p3, :cond_2a

    .line 2
    invoke-virtual {p3, p1, v4}, Lv/p;->d(ILv/p;)V

    invoke-virtual {p2, p3}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z

    :cond_2a
    move-object p3, v4

    goto :goto_32

    :cond_2c
    add-int/lit8 v3, v3, 0x1

    goto :goto_12

    :cond_2f
    if-eq v0, v2, :cond_32

    return-object p3

    :cond_32
    :goto_32
    const/4 v0, 0x1

    if-nez p3, :cond_79

    instance-of v3, p0, Lu/i;

    if-eqz v3, :cond_6f

    move-object v3, p0

    check-cast v3, Lu/i;

    move v4, v1

    .line 3
    :goto_3d
    iget v5, v3, Lu/i;->r0:I

    if-ge v4, v5, :cond_56

    iget-object v5, v3, Lu/i;->q0:[Lu/e;

    aget-object v5, v5, v4

    if-nez p1, :cond_4c

    iget v6, v5, Lu/e;->o0:I

    if-eq v6, v2, :cond_4c

    goto :goto_57

    :cond_4c
    if-ne p1, v0, :cond_53

    iget v6, v5, Lu/e;->p0:I

    if-eq v6, v2, :cond_53

    goto :goto_57

    :cond_53
    add-int/lit8 v4, v4, 0x1

    goto :goto_3d

    :cond_56
    move v6, v2

    :goto_57
    if-eq v6, v2, :cond_6f

    move v2, v1

    .line 4
    :goto_5a
    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v2, v3, :cond_6f

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

    move-result-object v3

    check-cast v3, Lv/p;

    .line 5
    iget v4, v3, Lv/p;->b:I

    if-ne v4, v6, :cond_6c

    move-object p3, v3

    goto :goto_6f

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

    goto :goto_5a

    :cond_6f
    :goto_6f
    if-nez p3, :cond_76

    .line 6
    new-instance p3, Lv/p;

    invoke-direct {p3, p1}, Lv/p;-><init>(I)V

    :cond_76
    invoke-virtual {p2, p3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_79
    invoke-virtual {p3, p0}, Lv/p;->a(Lu/e;)Z

    move-result v2

    if-eqz v2, :cond_b6

    instance-of v2, p0, Lu/g;

    if-eqz v2, :cond_90

    move-object v2, p0

    check-cast v2, Lu/g;

    .line 7
    iget-object v3, v2, Lu/g;->t0:Lu/d;

    .line 8
    iget v2, v2, Lu/g;->u0:I

    if-nez v2, :cond_8d

    move v1, v0

    .line 9
    :cond_8d
    invoke-virtual {v3, v1, p2, p3}, Lu/d;->b(ILjava/util/ArrayList;Lv/p;)V

    :cond_90
    if-nez p1, :cond_9e

    .line 10
    iget v0, p3, Lv/p;->b:I

    .line 11
    iput v0, p0, Lu/e;->o0:I

    iget-object v0, p0, Lu/e;->I:Lu/d;

    invoke-virtual {v0, p1, p2, p3}, Lu/d;->b(ILjava/util/ArrayList;Lv/p;)V

    iget-object v0, p0, Lu/e;->K:Lu/d;

    goto :goto_ae

    .line 12
    :cond_9e
    iget v0, p3, Lv/p;->b:I

    .line 13
    iput v0, p0, Lu/e;->p0:I

    iget-object v0, p0, Lu/e;->J:Lu/d;

    invoke-virtual {v0, p1, p2, p3}, Lu/d;->b(ILjava/util/ArrayList;Lv/p;)V

    iget-object v0, p0, Lu/e;->M:Lu/d;

    invoke-virtual {v0, p1, p2, p3}, Lu/d;->b(ILjava/util/ArrayList;Lv/p;)V

    iget-object v0, p0, Lu/e;->L:Lu/d;

    :goto_ae
    invoke-virtual {v0, p1, p2, p3}, Lu/d;->b(ILjava/util/ArrayList;Lv/p;)V

    iget-object p0, p0, Lu/e;->P:Lu/d;

    invoke-virtual {p0, p1, p2, p3}, Lu/d;->b(ILjava/util/ArrayList;Lv/p;)V

    :cond_b6
    return-object p3
.end method

.method public static b(Ljava/util/ArrayList;I)Lv/p;
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lv/p;",
            ">;I)",
            "Lv/p;"
        }
    .end annotation

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

    move-result v0

    const/4 v1, 0x0

    :goto_5
    if-ge v1, v0, :cond_15

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

    move-result-object v2

    check-cast v2, Lv/p;

    iget v3, v2, Lv/p;->b:I

    if-ne p1, v3, :cond_12

    return-object v2

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

    goto :goto_5

    :cond_15
    const/4 p0, 0x0

    return-object p0
.end method

.method public static c(IIII)Z
    .registers 8

    const/4 v0, 0x1

    const/4 v1, 0x4

    const/4 v2, 0x2

    const/4 v3, 0x0

    if-eq p2, v0, :cond_f

    if-eq p2, v2, :cond_f

    if-ne p2, v1, :cond_d

    if-eq p0, v2, :cond_d

    goto :goto_f

    :cond_d
    move p0, v3

    goto :goto_10

    :cond_f
    :goto_f
    move p0, v0

    :goto_10
    if-eq p3, v0, :cond_1b

    if-eq p3, v2, :cond_1b

    if-ne p3, v1, :cond_19

    if-eq p1, v2, :cond_19

    goto :goto_1b

    :cond_19
    move p1, v3

    goto :goto_1c

    :cond_1b
    :goto_1b
    move p1, v0

    :goto_1c
    if-nez p0, :cond_22

    if-eqz p1, :cond_21

    goto :goto_22

    :cond_21
    return v3

    :cond_22
    :goto_22
    return v0
.end method
