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


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lv/p$a;
    }
.end annotation


# static fields
.field public static f:I


# instance fields
.field public a:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lu/e;",
            ">;"
        }
    .end annotation
.end field

.field public b:I

.field public c:I

.field public d:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lv/p$a;",
            ">;"
        }
    .end annotation
.end field

.field public e:I


# direct methods
.method public constructor <init>(I)V
    .registers 4

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

    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

    const/4 v0, -0x1

    iput v0, p0, Lv/p;->b:I

    const/4 v1, 0x0

    iput v1, p0, Lv/p;->c:I

    const/4 v1, 0x0

    iput-object v1, p0, Lv/p;->d:Ljava/util/ArrayList;

    iput v0, p0, Lv/p;->e:I

    sget v0, Lv/p;->f:I

    add-int/lit8 v1, v0, 0x1

    sput v1, Lv/p;->f:I

    iput v0, p0, Lv/p;->b:I

    iput p1, p0, Lv/p;->c:I

    return-void
.end method


# virtual methods
.method public a(Lu/e;)Z
    .registers 3

    iget-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

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

    move-result v0

    if-eqz v0, :cond_a

    const/4 p1, 0x0

    return p1

    :cond_a
    iget-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

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

    const/4 p1, 0x1

    return p1
.end method

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

    iget-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

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

    move-result v0

    iget v1, p0, Lv/p;->e:I

    const/4 v2, -0x1

    if-eq v1, v2, :cond_28

    if-lez v0, :cond_28

    const/4 v1, 0x0

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

    move-result v2

    if-ge v1, v2, :cond_28

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

    move-result-object v2

    check-cast v2, Lv/p;

    iget v3, p0, Lv/p;->e:I

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

    if-ne v3, v4, :cond_25

    iget v3, p0, Lv/p;->c:I

    invoke-virtual {p0, v3, v2}, Lv/p;->d(ILv/p;)V

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

    goto :goto_e

    :cond_28
    if-nez v0, :cond_2d

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

    :cond_2d
    return-void
.end method

.method public c(Ls/c;I)I
    .registers 8

    iget-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

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

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_a

    return v1

    :cond_a
    iget-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

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

    move-result-object v2

    check-cast v2, Lu/e;

    .line 2
    iget-object v2, v2, Lu/e;->U:Lu/e;

    .line 3
    check-cast v2, Lu/f;

    invoke-virtual {p1}, Ls/c;->u()V

    invoke-virtual {v2, p1, v1}, Lu/e;->d(Ls/c;Z)V

    move v3, v1

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

    move-result v4

    if-ge v3, v4, :cond_2f

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

    move-result-object v4

    check-cast v4, Lu/e;

    invoke-virtual {v4, p1, v1}, Lu/e;->d(Ls/c;Z)V

    add-int/lit8 v3, v3, 0x1

    goto :goto_1d

    :cond_2f
    if-nez p2, :cond_38

    iget v3, v2, Lu/f;->z0:I

    if-lez v3, :cond_38

    invoke-static {v2, p1, v0, v1}, Lu/b;->a(Lu/f;Ls/c;Ljava/util/ArrayList;I)V

    :cond_38
    const/4 v3, 0x1

    if-ne p2, v3, :cond_42

    iget v4, v2, Lu/f;->A0:I

    if-lez v4, :cond_42

    invoke-static {v2, p1, v0, v3}, Lu/b;->a(Lu/f;Ls/c;Ljava/util/ArrayList;I)V

    :cond_42
    :try_start_42
    invoke-virtual {p1}, Ls/c;->q()V
    :try_end_45
    .catch Ljava/lang/Exception; {:try_start_42 .. :try_end_45} :catch_46

    goto :goto_4a

    :catch_46
    move-exception v3

    invoke-virtual {v3}, Ljava/lang/Exception;->printStackTrace()V

    :goto_4a
    new-instance v3, Ljava/util/ArrayList;

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

    iput-object v3, p0, Lv/p;->d:Ljava/util/ArrayList;

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

    move-result v3

    if-ge v1, v3, :cond_6a

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

    move-result-object v3

    check-cast v3, Lu/e;

    new-instance v4, Lv/p$a;

    invoke-direct {v4, p0, v3, p1, p2}, Lv/p$a;-><init>(Lv/p;Lu/e;Ls/c;I)V

    iget-object v3, p0, Lv/p;->d:Ljava/util/ArrayList;

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

    add-int/lit8 v1, v1, 0x1

    goto :goto_51

    :cond_6a
    if-nez p2, :cond_75

    iget-object p2, v2, Lu/e;->I:Lu/d;

    invoke-virtual {p1, p2}, Ls/c;->o(Ljava/lang/Object;)I

    move-result p2

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

    goto :goto_7d

    :cond_75
    iget-object p2, v2, Lu/e;->J:Lu/d;

    invoke-virtual {p1, p2}, Ls/c;->o(Ljava/lang/Object;)I

    move-result p2

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

    :goto_7d
    invoke-virtual {p1, v0}, Ls/c;->o(Ljava/lang/Object;)I

    move-result v0

    invoke-virtual {p1}, Ls/c;->u()V

    sub-int/2addr v0, p2

    return v0
.end method

.method public d(ILv/p;)V
    .registers 6

    iget-object v0, p0, Lv/p;->a:Ljava/util/ArrayList;

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

    move-result-object v0

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

    move-result v1

    if-eqz v1, :cond_21

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

    move-result-object v1

    check-cast v1, Lu/e;

    invoke-virtual {p2, v1}, Lv/p;->a(Lu/e;)Z

    if-nez p1, :cond_1c

    .line 1
    iget v2, p2, Lv/p;->b:I

    .line 2
    iput v2, v1, Lu/e;->o0:I

    goto :goto_6

    .line 3
    :cond_1c
    iget v2, p2, Lv/p;->b:I

    .line 4
    iput v2, v1, Lu/e;->p0:I

    goto :goto_6

    :cond_21
    iget p1, p2, Lv/p;->b:I

    iput p1, p0, Lv/p;->e:I

    return-void
.end method

.method public toString()Ljava/lang/String;
    .registers 5

    new-instance v0, Ljava/lang/StringBuilder;

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

    .line 1
    iget v1, p0, Lv/p;->c:I

    if-nez v1, :cond_c

    const-string v1, "Horizontal"

    goto :goto_1a

    :cond_c
    const/4 v2, 0x1

    if-ne v1, v2, :cond_12

    const-string v1, "Vertical"

    goto :goto_1a

    :cond_12
    const/4 v2, 0x2

    if-ne v1, v2, :cond_18

    const-string v1, "Both"

    goto :goto_1a

    :cond_18
    const-string v1, "Unknown"

    .line 2
    :goto_1a
    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;

    iget v1, p0, Lv/p;->b:I

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

    const-string v1, "] <"

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

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

    move-result-object v0

    iget-object v1, p0, Lv/p;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

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

    move-result v2

    if-eqz v2, :cond_52

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

    move-result-object v2

    check-cast v2, Lu/e;

    const-string v3, " "

    invoke-static {v0, v3}, Le/k;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 3
    iget-object v2, v2, Lu/e;->i0:Ljava/lang/String;

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

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

    move-result-object v0

    goto :goto_36

    :cond_52
    const-string v1, " >"

    invoke-static {v0, v1}, Le/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
