HighLevelEncoder.smali 
.class public final Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;
.super Ljava/lang/Object;
# static fields
.field private static final CHAR_MAP:[[I
.field static final LATCH_TABLE:[[I
.field static final MODE_DIGIT:I = 0x2
.field static final MODE_LOWER:I = 0x1
.field static final MODE_MIXED:I = 0x3
.field static final MODE_NAMES:[Ljava/lang/String;
.field static final MODE_PUNCT:I = 0x4
.field static final MODE_UPPER:I
.field static final SHIFT_TABLE:[[I
# instance fields
.field private final text:[B
# direct methods
.method static constructor <clinit>()V
    .registers 12
    .line 1
    const-class v0, I
    const-string v1, "UPPER"
    const-string v2, "LOWER"
    const-string v3, "DIGIT"
    const-string v4, "MIXED"
    const-string v5, "PUNCT"
    filled-new-array {v1, v2, v3, v4, v5}, [Ljava/lang/String;
    move-result-object v1
    sput-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->MODE_NAMES:[Ljava/lang/String;
    const/4 v1, 0x5
    new-array v2, v1, [[I
    new-array v3, v1, [I
    .line 14
    fill-array-data v3, :array_10c
    const/4 v4, 0x0
    aput-object v3, v2, v4
    new-array v3, v1, [I
    fill-array-data v3, :array_11a
    const/4 v5, 0x1
    aput-object v3, v2, v5
    new-array v3, v1, [I
    fill-array-data v3, :array_128
    const/4 v6, 0x2
    aput-object v3, v2, v6
    new-array v3, v1, [I
    fill-array-data v3, :array_136
    const/4 v7, 0x3
    aput-object v3, v2, v7
    new-array v1, v1, [I
    fill-array-data v1, :array_144
    const/4 v3, 0x4
    aput-object v1, v2, v3
    sput-object v2, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->LATCH_TABLE:[[I
    new-array v1, v6, [I
    .line 55
    fill-array-data v1, :array_152
    invoke-static {v0, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
    move-result-object v1
    check-cast v1, [[I
    sput-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    .line 57
    aget-object v1, v1, v4
    const/16 v2, 0x20
    aput v5, v1, v2
    const/16 v1, 0x41
    :goto_54
    const/16 v8, 0x5a
    if-gt v1, v8, :cond_64
    .line 59
    sget-object v8, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v8, v8, v4
    add-int/lit8 v9, v1, -0x41
    add-int/2addr v9, v6
    aput v9, v8, v1
    add-int/lit8 v1, v1, 0x1
    goto :goto_54
    .line 61
    :cond_64
    sget-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v1, v1, v5
    aput v5, v1, v2
    const/16 v1, 0x61
    :goto_6c
    const/16 v8, 0x7a
    if-gt v1, v8, :cond_7c
    .line 63
    sget-object v8, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v8, v8, v5
    add-int/lit8 v9, v1, -0x61
    add-int/2addr v9, v6
    aput v9, v8, v1
    add-int/lit8 v1, v1, 0x1
    goto :goto_6c
    .line 65
    :cond_7c
    sget-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v1, v1, v6
    aput v5, v1, v2
    const/16 v1, 0x30
    :goto_84
    const/16 v2, 0x39
    if-gt v1, v2, :cond_94
    .line 67
    sget-object v2, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v2, v2, v6
    add-int/lit8 v8, v1, -0x30
    add-int/2addr v8, v6
    aput v8, v2, v1
    add-int/lit8 v1, v1, 0x1
    goto :goto_84
    .line 69
    :cond_94
    sget-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v2, v1, v6
    const/16 v8, 0x2c
    const/16 v9, 0xc
    aput v9, v2, v8
    .line 70
    aget-object v1, v1, v6
    const/16 v2, 0x2e
    const/16 v8, 0xd
    aput v8, v1, v2
    const/16 v1, 0x1c
    new-array v2, v1, [I
    .line 71
    fill-array-data v2, :array_15a
    move v8, v4
    :goto_ae
    if-ge v8, v1, :cond_bb
    .line 77
    sget-object v9, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v9, v9, v7
    aget v10, v2, v8
    aput v8, v9, v10
    add-int/lit8 v8, v8, 0x1
    goto :goto_ae
    :cond_bb
    const/16 v2, 0x1f
    new-array v8, v2, [I
    .line 79
    fill-array-data v8, :array_196
    move v9, v4
    :goto_c3
    if-ge v9, v2, :cond_d4
    .line 85
    aget v10, v8, v9
    if-lez v10, :cond_d1
    .line 86
    sget-object v10, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v10, v10, v3
    aget v11, v8, v9
    aput v9, v10, v11
    :cond_d1
    add-int/lit8 v9, v9, 0x1
    goto :goto_c3
    :cond_d4
    new-array v2, v6, [I
    .line 93
    fill-array-data v2, :array_1d8
    invoke-static {v0, v2}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;[I)Ljava/lang/Object;
    move-result-object v0
    check-cast v0, [[I
    sput-object v0, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
    .line 95
    array-length v2, v0
    move v8, v4
    :goto_e3
    if-ge v8, v2, :cond_ee
    aget-object v9, v0, v8
    const/4 v10, -0x1
    .line 96
    invoke-static {v9, v10}, Ljava/util/Arrays;->fill([II)V
    add-int/lit8 v8, v8, 0x1
    goto :goto_e3
    .line 98
    :cond_ee
    sget-object v0, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
    aget-object v2, v0, v4
    aput v4, v2, v3
    .line 100
    aget-object v2, v0, v5
    aput v4, v2, v3
    .line 101
    aget-object v2, v0, v5
    aput v1, v2, v4
    .line 103
    aget-object v1, v0, v7
    aput v4, v1, v3
    .line 105
    aget-object v1, v0, v6
    aput v4, v1, v3
    .line 106
    aget-object v0, v0, v6
    const/16 v1, 0xf
    aput v1, v0, v4
    return-void
    nop
    :array_10c
    .array-data 4
        0x0
        0x5001c
        0x5001e
        0x5001d
        0xa03be
    .end array-data
    :array_11a
    .array-data 4
        0x901ee
        0x0
        0x5001e
        0x5001d
        0xa03be
    .end array-data
    :array_128
    .array-data 4
        0x4000e
        0x901dc
        0x0
        0x901dd
        0xe3bbe
    .end array-data
    :array_136
    .array-data 4
        0x5001d
        0x5001c
        0xa03be
        0x0
        0x5001e
    .end array-data
    :array_144
    .array-data 4
        0x5001f
        0xa03fc
        0xa03fe
        0xa03fd
        0x0
    .end array-data
    :array_152
    .array-data 4
        0x5
        0x100
    .end array-data
    :array_15a
    .array-data 4
        0x0
        0x20
        0x1
        0x2
        0x3
        0x4
        0x5
        0x6
        0x7
        0x8
        0x9
        0xa
        0xb
        0xc
        0xd
        0x1b
        0x1c
        0x1d
        0x1e
        0x1f
        0x40
        0x5c
        0x5e
        0x5f
        0x60
        0x7c
        0x7e
        0x7f
    .end array-data
    :array_196
    .array-data 4
        0x0
        0xd
        0x0
        0x0
        0x0
        0x0
        0x21
        0x27
        0x23
        0x24
        0x25
        0x26
        0x27
        0x28
        0x29
        0x2a
        0x2b
        0x2c
        0x2d
        0x2e
        0x2f
        0x3a
        0x3b
        0x3c
        0x3d
        0x3e
        0x3f
        0x5b
        0x5d
        0x7b
        0x7d
    .end array-data
    :array_1d8
    .array-data 4
        0x6
        0x6
    .end array-data
.end method
.method public constructor <init>([B)V
    .registers 2
    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V
    .line 2
    iput-object p1, p0, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->text:[B
    return-void
.end method
.method private static simplifyStates(Ljava/lang/Iterable;)Ljava/util/Collection;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Iterable<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;)",
            "Ljava/util/Collection<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;"
        }
    .end annotation
    .line 1
    new-instance v0, Ljava/util/LinkedList;
    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
    .line 2
    invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
    move-result-object p0
    :cond_9
    :goto_9
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
    move-result v1
    if-eqz v1, :cond_3e
    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
    move-result-object v1
    check-cast v1, Lcom/dcloud/zxing2/aztec/encoder/State;
    const/4 v2, 0x1
    .line 4
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
    move-result-object v3
    :cond_1a
    :goto_1a
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
    move-result v4
    if-eqz v4, :cond_38
    .line 5
    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
    move-result-object v4
    check-cast v4, Lcom/dcloud/zxing2/aztec/encoder/State;
    .line 6
    invoke-virtual {v4, v1}, Lcom/dcloud/zxing2/aztec/encoder/State;->isBetterThanOrEqualTo(Lcom/dcloud/zxing2/aztec/encoder/State;)Z
    move-result v5
    if-eqz v5, :cond_2e
    const/4 v2, 0x0
    goto :goto_38
    .line 10
    :cond_2e
    invoke-virtual {v1, v4}, Lcom/dcloud/zxing2/aztec/encoder/State;->isBetterThanOrEqualTo(Lcom/dcloud/zxing2/aztec/encoder/State;)Z
    move-result v4
    if-eqz v4, :cond_1a
    .line 11
    invoke-interface {v3}, Ljava/util/Iterator;->remove()V
    goto :goto_1a
    :cond_38
    :goto_38
    if-eqz v2, :cond_9
    .line 15
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    goto :goto_9
    :cond_3e
    return-object v0
.end method
.method private updateStateForChar(Lcom/dcloud/zxing2/aztec/encoder/State;ILjava/util/Collection;)V
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            "I",
            "Ljava/util/Collection<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;)V"
        }
    .end annotation
    .line 1
    iget-object v0, p0, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->text:[B
    aget-byte v0, v0, p2
    and-int/lit16 v0, v0, 0xff
    int-to-char v0, v0
    .line 2
    sget-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    invoke-virtual {p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->getMode()I
    move-result v2
    aget-object v1, v1, v2
    aget v1, v1, v0
    const/4 v2, 0x0
    if-lez v1, :cond_16
    const/4 v1, 0x1
    goto :goto_17
    :cond_16
    move v1, v2
    :goto_17
    const/4 v3, 0x0
    :goto_18
    const/4 v4, 0x4
    if-gt v2, v4, :cond_53
    .line 5
    sget-object v4, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    aget-object v4, v4, v2
    aget v4, v4, v0
    if-lez v4, :cond_50
    if-nez v3, :cond_29
    .line 9
    invoke-virtual {p1, p2}, Lcom/dcloud/zxing2/aztec/encoder/State;->endBinaryShift(I)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object v3
    :cond_29
    if-eqz v1, :cond_34
    .line 12
    invoke-virtual {p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->getMode()I
    move-result v5
    if-eq v2, v5, :cond_34
    const/4 v5, 0x2
    if-ne v2, v5, :cond_3b
    .line 17
    :cond_34
    invoke-virtual {v3, v2, v4}, Lcom/dcloud/zxing2/aztec/encoder/State;->latchAndAppend(II)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object v5
    .line 18
    invoke-interface {p3, v5}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    :cond_3b
    if-nez v1, :cond_50
    .line 21
    sget-object v5, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->SHIFT_TABLE:[[I
    invoke-virtual {p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->getMode()I
    move-result v6
    aget-object v5, v5, v6
    aget v5, v5, v2
    if-ltz v5, :cond_50
    .line 24
    invoke-virtual {v3, v2, v4}, Lcom/dcloud/zxing2/aztec/encoder/State;->shiftAndAppend(II)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object v4
    .line 25
    invoke-interface {p3, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    :cond_50
    add-int/lit8 v2, v2, 0x1
    goto :goto_18
    .line 29
    :cond_53
    invoke-virtual {p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->getBinaryShiftByteCount()I
    move-result v1
    if-gtz v1, :cond_65
    sget-object v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->CHAR_MAP:[[I
    invoke-virtual {p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->getMode()I
    move-result v2
    aget-object v1, v1, v2
    aget v0, v1, v0
    if-nez v0, :cond_6c
    .line 33
    :cond_65
    invoke-virtual {p1, p2}, Lcom/dcloud/zxing2/aztec/encoder/State;->addBinaryShiftChar(I)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object p1
    .line 34
    invoke-interface {p3, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    :cond_6c
    return-void
.end method
.method private static updateStateForPair(Lcom/dcloud/zxing2/aztec/encoder/State;IILjava/util/Collection;)V
    .registers 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            "II",
            "Ljava/util/Collection<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;)V"
        }
    .end annotation
    .line 1
    invoke-virtual {p0, p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->endBinaryShift(I)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object v0
    const/4 v1, 0x4
    .line 3
    invoke-virtual {v0, v1, p2}, Lcom/dcloud/zxing2/aztec/encoder/State;->latchAndAppend(II)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object v2
    invoke-interface {p3, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    .line 4
    invoke-virtual {p0}, Lcom/dcloud/zxing2/aztec/encoder/State;->getMode()I
    move-result v2
    if-eq v2, v1, :cond_19
    .line 7
    invoke-virtual {v0, v1, p2}, Lcom/dcloud/zxing2/aztec/encoder/State;->shiftAndAppend(II)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object v2
    invoke-interface {p3, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    :cond_19
    const/4 v2, 0x3
    const/4 v3, 0x1
    if-eq p2, v2, :cond_1f
    if-ne p2, v1, :cond_2d
    :cond_1f
    rsub-int/lit8 p2, p2, 0x10
    const/4 v1, 0x2
    .line 12
    invoke-virtual {v0, v1, p2}, Lcom/dcloud/zxing2/aztec/encoder/State;->latchAndAppend(II)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object p2
    .line 13
    invoke-virtual {p2, v1, v3}, Lcom/dcloud/zxing2/aztec/encoder/State;->latchAndAppend(II)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object p2
    .line 14
    invoke-interface {p3, p2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    .line 16
    :cond_2d
    invoke-virtual {p0}, Lcom/dcloud/zxing2/aztec/encoder/State;->getBinaryShiftByteCount()I
    move-result p2
    if-lez p2, :cond_3f
    .line 19
    invoke-virtual {p0, p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->addBinaryShiftChar(I)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object p0
    add-int/2addr p1, v3
    invoke-virtual {p0, p1}, Lcom/dcloud/zxing2/aztec/encoder/State;->addBinaryShiftChar(I)Lcom/dcloud/zxing2/aztec/encoder/State;
    move-result-object p0
    .line 20
    invoke-interface {p3, p0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
    :cond_3f
    return-void
.end method
.method private updateStateListForChar(Ljava/lang/Iterable;I)Ljava/util/Collection;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Iterable<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;I)",
            "Ljava/util/Collection<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;"
        }
    .end annotation
    .line 1
    new-instance v0, Ljava/util/LinkedList;
    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
    .line 2
    invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
    move-result-object p1
    :goto_9
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
    move-result v1
    if-eqz v1, :cond_19
    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
    move-result-object v1
    check-cast v1, Lcom/dcloud/zxing2/aztec/encoder/State;
    .line 3
    invoke-direct {p0, v1, p2, v0}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->updateStateForChar(Lcom/dcloud/zxing2/aztec/encoder/State;ILjava/util/Collection;)V
    goto :goto_9
    .line 5
    :cond_19
    invoke-static {v0}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->simplifyStates(Ljava/lang/Iterable;)Ljava/util/Collection;
    move-result-object p1
    return-object p1
.end method
.method private static updateStateListForPair(Ljava/lang/Iterable;II)Ljava/util/Collection;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Iterable<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;II)",
            "Ljava/util/Collection<",
            "Lcom/dcloud/zxing2/aztec/encoder/State;",
            ">;"
        }
    .end annotation
    .line 1
    new-instance v0, Ljava/util/LinkedList;
    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
    .line 2
    invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
    move-result-object p0
    :goto_9
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
    move-result v1
    if-eqz v1, :cond_19
    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
    move-result-object v1
    check-cast v1, Lcom/dcloud/zxing2/aztec/encoder/State;
    .line 3
    invoke-static {v1, p1, p2, v0}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->updateStateForPair(Lcom/dcloud/zxing2/aztec/encoder/State;IILjava/util/Collection;)V
    goto :goto_9
    .line 5
    :cond_19
    invoke-static {v0}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->simplifyStates(Ljava/lang/Iterable;)Ljava/util/Collection;
    move-result-object p0
    return-object p0
.end method
# virtual methods
.method public encode()Lcom/dcloud/zxing2/common/BitArray;
    .registers 9
    .line 1
    sget-object v0, Lcom/dcloud/zxing2/aztec/encoder/State;->INITIAL_STATE:Lcom/dcloud/zxing2/aztec/encoder/State;
    invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
    move-result-object v0
    const/4 v1, 0x0
    move v2, v1
    .line 2
    :goto_8
    iget-object v3, p0, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->text:[B
    array-length v4, v3
    if-ge v2, v4, :cond_4d
    add-int/lit8 v4, v2, 0x1
    .line 4
    array-length v5, v3
    if-ge v4, v5, :cond_15
    aget-byte v5, v3, v4
    goto :goto_16
    :cond_15
    move v5, v1
    .line 5
    :goto_16
    aget-byte v3, v3, v2
    const/16 v6, 0xd
    if-eq v3, v6, :cond_37
    const/16 v6, 0x2c
    const/16 v7, 0x20
    if-eq v3, v6, :cond_33
    const/16 v6, 0x2e
    if-eq v3, v6, :cond_2f
    const/16 v6, 0x3a
    if-eq v3, v6, :cond_2b
    goto :goto_3d
    :cond_2b
    if-ne v5, v7, :cond_3d
    const/4 v3, 0x5
    goto :goto_3e
    :cond_2f
    if-ne v5, v7, :cond_3d
    const/4 v3, 0x3
    goto :goto_3e
    :cond_33
    if-ne v5, v7, :cond_3d
    const/4 v3, 0x4
    goto :goto_3e
    :cond_37
    const/16 v3, 0xa
    if-ne v5, v3, :cond_3d
    const/4 v3, 0x2
    goto :goto_3e
    :cond_3d
    :goto_3d
    move v3, v1
    :goto_3e
    if-lez v3, :cond_46
    .line 24
    invoke-static {v0, v2, v3}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->updateStateListForPair(Ljava/lang/Iterable;II)Ljava/util/Collection;
    move-result-object v0
    move v2, v4
    goto :goto_4a
    .line 28
    :cond_46
    invoke-direct {p0, v0, v2}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->updateStateListForChar(Ljava/lang/Iterable;I)Ljava/util/Collection;
    move-result-object v0
    :goto_4a
    add-int/lit8 v2, v2, 0x1
    goto :goto_8
    .line 32
    :cond_4d
    new-instance v1, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder$1;
    invoke-direct {v1, p0}, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder$1;-><init>(Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;)V
    invoke-static {v0, v1}, Ljava/util/Collections;->min(Ljava/util/Collection;Ljava/util/Comparator;)Ljava/lang/Object;
    move-result-object v0
    check-cast v0, Lcom/dcloud/zxing2/aztec/encoder/State;
    .line 39
    iget-object v1, p0, Lcom/dcloud/zxing2/aztec/encoder/HighLevelEncoder;->text:[B
    invoke-virtual {v0, v1}, Lcom/dcloud/zxing2/aztec/encoder/State;->toBitArray([B)Lcom/dcloud/zxing2/common/BitArray;
    move-result-object v0
    return-object v0
.end method