f$a.smali

.class public final Lf/b/b/b/r1/f$a;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lf/b/b/b/r1/f;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "a"
.end annotation


# instance fields
.field private final a:I

.field private final b:[I

.field private final c:[Lf/b/b/b/p1/p0;

.field private final d:[I

.field private final e:[[[I

.field private final f:Lf/b/b/b/p1/p0;


# direct methods
.method constructor <init>([I[Lf/b/b/b/p1/p0;[I[[[ILf/b/b/b/p1/p0;)V
    .registers 6

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

    iput-object p1, p0, Lf/b/b/b/r1/f$a;->b:[I

    iput-object p2, p0, Lf/b/b/b/r1/f$a;->c:[Lf/b/b/b/p1/p0;

    iput-object p4, p0, Lf/b/b/b/r1/f$a;->e:[[[I

    iput-object p3, p0, Lf/b/b/b/r1/f$a;->d:[I

    iput-object p5, p0, Lf/b/b/b/r1/f$a;->f:Lf/b/b/b/p1/p0;

    array-length p1, p1

    iput p1, p0, Lf/b/b/b/r1/f$a;->a:I

    return-void
.end method


# virtual methods
.method public a(IIZ)I
    .registers 10

    iget-object v0, p0, Lf/b/b/b/r1/f$a;->c:[Lf/b/b/b/p1/p0;

    aget-object v0, v0, p1

    invoke-virtual {v0, p2}, Lf/b/b/b/p1/p0;->a(I)Lf/b/b/b/p1/o0;

    move-result-object v0

    iget v0, v0, Lf/b/b/b/p1/o0;->e:I

    new-array v1, v0, [I

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_e
    if-ge v2, v0, :cond_24

    invoke-virtual {p0, p1, p2, v2}, Lf/b/b/b/r1/f$a;->g(III)I

    move-result v4

    const/4 v5, 0x4

    if-eq v4, v5, :cond_1c

    if-eqz p3, :cond_21

    const/4 v5, 0x3

    if-ne v4, v5, :cond_21

    :cond_1c
    add-int/lit8 v4, v3, 0x1

    aput v2, v1, v3

    move v3, v4

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

    goto :goto_e

    :cond_24
    invoke-static {v1, v3}, Ljava/util/Arrays;->copyOf([II)[I

    move-result-object p3

    invoke-virtual {p0, p1, p2, p3}, Lf/b/b/b/r1/f$a;->b(II[I)I

    move-result p1

    return p1
.end method

.method public b(II[I)I
    .registers 11

    const/4 v0, 0x0

    const/16 v1, 0x10

    const/4 v2, 0x0

    move-object v4, v2

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/16 v3, 0x10

    :goto_9
    array-length v5, p3

    if-ge v0, v5, :cond_3d

    aget v5, p3, v0

    iget-object v6, p0, Lf/b/b/b/r1/f$a;->c:[Lf/b/b/b/p1/p0;

    aget-object v6, v6, p1

    invoke-virtual {v6, p2}, Lf/b/b/b/p1/p0;->a(I)Lf/b/b/b/p1/o0;

    move-result-object v6

    invoke-virtual {v6, v5}, Lf/b/b/b/p1/o0;->a(I)Lf/b/b/b/f0;

    move-result-object v5

    iget-object v5, v5, Lf/b/b/b/f0;->m:Ljava/lang/String;

    add-int/lit8 v6, v2, 0x1

    if-nez v2, :cond_22

    move-object v4, v5

    goto :goto_29

    :cond_22
    invoke-static {v4, v5}, Lf/b/b/b/s1/m0;->b(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v2

    xor-int/lit8 v2, v2, 0x1

    or-int/2addr v1, v2

    :goto_29
    iget-object v2, p0, Lf/b/b/b/r1/f$a;->e:[[[I

    aget-object v2, v2, p1

    aget-object v2, v2, p2

    aget v2, v2, v0

    invoke-static {v2}, Lf/b/b/b/v0;->c(I)I

    move-result v2

    invoke-static {v3, v2}, Ljava/lang/Math;->min(II)I

    move-result v3

    add-int/lit8 v0, v0, 0x1

    move v2, v6

    goto :goto_9

    :cond_3d
    if-eqz v1, :cond_47

    iget-object p2, p0, Lf/b/b/b/r1/f$a;->d:[I

    aget p1, p2, p1

    invoke-static {v3, p1}, Ljava/lang/Math;->min(II)I

    move-result v3

    :cond_47
    return v3
.end method

.method public c()I
    .registers 2

    iget v0, p0, Lf/b/b/b/r1/f$a;->a:I

    return v0
.end method

.method public d(I)I
    .registers 12

    iget-object v0, p0, Lf/b/b/b/r1/f$a;->e:[[[I

    aget-object p1, v0, p1

    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x0

    :goto_8
    if-ge v2, v0, :cond_36

    aget-object v4, p1, v2

    array-length v5, v4

    const/4 v6, 0x0

    :goto_e
    if-ge v6, v5, :cond_33

    aget v7, v4, v6

    invoke-static {v7}, Lf/b/b/b/v0;->d(I)I

    move-result v7

    const/4 v8, 0x2

    const/4 v9, 0x1

    if-eqz v7, :cond_2b

    if-eq v7, v9, :cond_2b

    if-eq v7, v8, :cond_2b

    const/4 v9, 0x3

    if-eq v7, v9, :cond_2c

    const/4 p1, 0x4

    if-ne v7, p1, :cond_25

    return v9

    :cond_25
    new-instance p1, Ljava/lang/IllegalStateException;

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

    throw p1

    :cond_2b
    const/4 v8, 0x1

    :cond_2c
    invoke-static {v3, v8}, Ljava/lang/Math;->max(II)I

    move-result v3

    add-int/lit8 v6, v6, 0x1

    goto :goto_e

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

    goto :goto_8

    :cond_36
    return v3
.end method

.method public e(I)I
    .registers 3

    iget-object v0, p0, Lf/b/b/b/r1/f$a;->b:[I

    aget p1, v0, p1

    return p1
.end method

.method public f(I)Lf/b/b/b/p1/p0;
    .registers 3

    iget-object v0, p0, Lf/b/b/b/r1/f$a;->c:[Lf/b/b/b/p1/p0;

    aget-object p1, v0, p1

    return-object p1
.end method

.method public g(III)I
    .registers 5

    iget-object v0, p0, Lf/b/b/b/r1/f$a;->e:[[[I

    aget-object p1, v0, p1

    aget-object p1, p1, p2

    aget p1, p1, p3

    invoke-static {p1}, Lf/b/b/b/v0;->d(I)I

    move-result p1

    return p1
.end method

.method public h(I)I
    .registers 5

    const/4 v0, 0x0

    const/4 v1, 0x0

    :goto_2
    iget v2, p0, Lf/b/b/b/r1/f$a;->a:I

    if-ge v0, v2, :cond_17

    iget-object v2, p0, Lf/b/b/b/r1/f$a;->b:[I

    aget v2, v2, v0

    if-ne v2, p1, :cond_14

    invoke-virtual {p0, v0}, Lf/b/b/b/r1/f$a;->d(I)I

    move-result v2

    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

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

    goto :goto_2

    :cond_17
    return v1
.end method

.method public i()Lf/b/b/b/p1/p0;
    .registers 2

    iget-object v0, p0, Lf/b/b/b/r1/f$a;->f:Lf/b/b/b/p1/p0;

    return-object v0
.end method