ITFReader.smali

.class public final Lcom/google/zxing/oned/ITFReader;
.super Lcom/google/zxing/oned/OneDReader;
.source "ITFReader.java"


# static fields
.field private static final DEFAULT_ALLOWED_LENGTHS:[I

.field private static final END_PATTERN_REVERSED:[[I

.field private static final MAX_AVG_VARIANCE:F = 0.38f

.field private static final MAX_INDIVIDUAL_VARIANCE:F = 0.5f

.field private static final N:I = 0x1

.field private static final PATTERNS:[[I

.field private static final START_PATTERN:[I

.field private static final W:I = 0x3

.field private static final w:I = 0x2


# instance fields
.field private narrowLineWidth:I


# direct methods
.method static constructor <clinit>()V
    .registers 8

    .line 55
    const/4 v0, 0x5

    new-array v1, v0, [I

    fill-array-data v1, :array_d4

    sput-object v1, Lcom/google/zxing/oned/ITFReader;->DEFAULT_ALLOWED_LENGTHS:[I

    .line 66
    const/4 v1, 0x4

    new-array v2, v1, [I

    fill-array-data v2, :array_e2

    sput-object v2, Lcom/google/zxing/oned/ITFReader;->START_PATTERN:[I

    .line 67
    const/4 v2, 0x2

    new-array v3, v2, [[I

    const/4 v4, 0x3

    new-array v5, v4, [I

    fill-array-data v5, :array_ee

    const/4 v6, 0x0

    aput-object v5, v3, v6

    new-array v5, v4, [I

    fill-array-data v5, :array_f8

    const/4 v7, 0x1

    aput-object v5, v3, v7

    sput-object v3, Lcom/google/zxing/oned/ITFReader;->END_PATTERN_REVERSED:[[I

    .line 77
    const/16 v3, 0x14

    new-array v3, v3, [[I

    new-array v5, v0, [I

    fill-array-data v5, :array_102

    aput-object v5, v3, v6

    new-array v5, v0, [I

    fill-array-data v5, :array_110

    aput-object v5, v3, v7

    new-array v5, v0, [I

    fill-array-data v5, :array_11e

    aput-object v5, v3, v2

    new-array v2, v0, [I

    fill-array-data v2, :array_12c

    aput-object v2, v3, v4

    new-array v2, v0, [I

    fill-array-data v2, :array_13a

    aput-object v2, v3, v1

    new-array v1, v0, [I

    fill-array-data v1, :array_148

    aput-object v1, v3, v0

    new-array v1, v0, [I

    fill-array-data v1, :array_156

    const/4 v2, 0x6

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_164

    const/4 v2, 0x7

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_172

    const/16 v2, 0x8

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_180

    const/16 v2, 0x9

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_18e

    const/16 v2, 0xa

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_19c

    const/16 v2, 0xb

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1aa

    const/16 v2, 0xc

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1b8

    const/16 v2, 0xd

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1c6

    const/16 v2, 0xe

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1d4

    const/16 v2, 0xf

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1e2

    const/16 v2, 0x10

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1f0

    const/16 v2, 0x11

    aput-object v1, v3, v2

    new-array v1, v0, [I

    fill-array-data v1, :array_1fe

    const/16 v2, 0x12

    aput-object v1, v3, v2

    new-array v0, v0, [I

    fill-array-data v0, :array_20c

    const/16 v1, 0x13

    aput-object v0, v3, v1

    sput-object v3, Lcom/google/zxing/oned/ITFReader;->PATTERNS:[[I

    return-void

    nop

    :array_d4
    .array-data 4
        0x6
        0x8
        0xa
        0xc
        0xe
    .end array-data

    :array_e2
    .array-data 4
        0x1
        0x1
        0x1
        0x1
    .end array-data

    :array_ee
    .array-data 4
        0x1
        0x1
        0x2
    .end array-data

    :array_f8
    .array-data 4
        0x1
        0x1
        0x3
    .end array-data

    :array_102
    .array-data 4
        0x1
        0x1
        0x2
        0x2
        0x1
    .end array-data

    :array_110
    .array-data 4
        0x2
        0x1
        0x1
        0x1
        0x2
    .end array-data

    :array_11e
    .array-data 4
        0x1
        0x2
        0x1
        0x1
        0x2
    .end array-data

    :array_12c
    .array-data 4
        0x2
        0x2
        0x1
        0x1
        0x1
    .end array-data

    :array_13a
    .array-data 4
        0x1
        0x1
        0x2
        0x1
        0x2
    .end array-data

    :array_148
    .array-data 4
        0x2
        0x1
        0x2
        0x1
        0x1
    .end array-data

    :array_156
    .array-data 4
        0x1
        0x2
        0x2
        0x1
        0x1
    .end array-data

    :array_164
    .array-data 4
        0x1
        0x1
        0x1
        0x2
        0x2
    .end array-data

    :array_172
    .array-data 4
        0x2
        0x1
        0x1
        0x2
        0x1
    .end array-data

    :array_180
    .array-data 4
        0x1
        0x2
        0x1
        0x2
        0x1
    .end array-data

    :array_18e
    .array-data 4
        0x1
        0x1
        0x3
        0x3
        0x1
    .end array-data

    :array_19c
    .array-data 4
        0x3
        0x1
        0x1
        0x1
        0x3
    .end array-data

    :array_1aa
    .array-data 4
        0x1
        0x3
        0x1
        0x1
        0x3
    .end array-data

    :array_1b8
    .array-data 4
        0x3
        0x3
        0x1
        0x1
        0x1
    .end array-data

    :array_1c6
    .array-data 4
        0x1
        0x1
        0x3
        0x1
        0x3
    .end array-data

    :array_1d4
    .array-data 4
        0x3
        0x1
        0x3
        0x1
        0x1
    .end array-data

    :array_1e2
    .array-data 4
        0x1
        0x3
        0x3
        0x1
        0x1
    .end array-data

    :array_1f0
    .array-data 4
        0x1
        0x1
        0x1
        0x3
        0x3
    .end array-data

    :array_1fe
    .array-data 4
        0x3
        0x1
        0x1
        0x3
        0x1
    .end array-data

    :array_20c
    .array-data 4
        0x1
        0x3
        0x1
        0x3
        0x1
    .end array-data
.end method

.method public constructor <init>()V
    .registers 2

    .line 45
    invoke-direct {p0}, Lcom/google/zxing/oned/OneDReader;-><init>()V

    .line 58
    const/4 v0, -0x1

    iput v0, p0, Lcom/google/zxing/oned/ITFReader;->narrowLineWidth:I

    return-void
.end method

.method private static decodeDigit([I)I
    .registers 8
    .param p0, "counters"    # [I
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 355
    const v0, 0x3ec28f5c    # 0.38f

    .line 356
    .local v0, "bestVariance":F
    const/4 v1, -0x1

    .line 357
    .local v1, "bestMatch":I
    sget-object v2, Lcom/google/zxing/oned/ITFReader;->PATTERNS:[[I

    array-length v2, v2

    .line 358
    .local v2, "max":I
    const/4 v3, 0x0

    .local v3, "i":I
    const/4 v4, 0x0

    :goto_9
    if-ge v3, v2, :cond_25

    .line 359
    sget-object v5, Lcom/google/zxing/oned/ITFReader;->PATTERNS:[[I

    aget-object v5, v5, v3

    .line 360
    .local v5, "pattern":[I
    const/high16 v6, 0x3f000000    # 0.5f

    invoke-static {p0, v5, v6}, Lcom/google/zxing/oned/ITFReader;->patternMatchVariance([I[IF)F

    move-result v6

    .line 361
    .local v4, "variance":F
    move v4, v6

    cmpg-float v6, v6, v0

    if-gez v6, :cond_1d

    .line 362
    move v0, v4

    .line 363
    move v1, v3

    goto :goto_22

    .line 364
    :cond_1d
    cmpl-float v6, v4, v0

    if-nez v6, :cond_22

    .line 366
    const/4 v1, -0x1

    .line 358
    .end local v4    # "variance":F
    .end local v5    # "pattern":[I
    :cond_22
    :goto_22
    add-int/lit8 v3, v3, 0x1

    goto :goto_9

    .line 369
    .end local v3    # "i":I
    :cond_25
    if-ltz v1, :cond_2a

    .line 370
    rem-int/lit8 v3, v1, 0xa

    return v3

    .line 372
    :cond_2a
    invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;

    move-result-object v3

    goto :goto_30

    :goto_2f
    throw v3

    :goto_30
    goto :goto_2f
.end method

.method private decodeEnd(Lcom/google/zxing/common/BitArray;)[I
    .registers 9
    .param p1, "row"    # Lcom/google/zxing/common/BitArray;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 275
    invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->reverse()V

    .line 277
    :try_start_3
    invoke-static {p1}, Lcom/google/zxing/oned/ITFReader;->skipWhiteSpace(Lcom/google/zxing/common/BitArray;)I

    move-result v0
    :try_end_7
    .catchall {:try_start_3 .. :try_end_7} :catchall_39

    .line 280
    .local v0, "endStart":I
    const/4 v1, 0x1

    const/4 v2, 0x0

    :try_start_9
    sget-object v3, Lcom/google/zxing/oned/ITFReader;->END_PATTERN_REVERSED:[[I

    aget-object v3, v3, v2

    invoke-static {p1, v0, v3}, Lcom/google/zxing/oned/ITFReader;->findGuardPattern(Lcom/google/zxing/common/BitArray;I[I)[I

    move-result-object v3
    :try_end_11
    .catch Lcom/google/zxing/NotFoundException; {:try_start_9 .. :try_end_11} :catch_12
    .catchall {:try_start_9 .. :try_end_11} :catchall_39

    .line 283
    .local v3, "endPattern":[I
    goto :goto_1d

    .line 281
    .end local v3    # "endPattern":[I
    :catch_12
    move-exception v3

    const/4 v3, 0x0

    .line 282
    .local v3, "nfe":Lcom/google/zxing/NotFoundException;
    :try_start_14
    sget-object v4, Lcom/google/zxing/oned/ITFReader;->END_PATTERN_REVERSED:[[I

    aget-object v4, v4, v1

    invoke-static {p1, v0, v4}, Lcom/google/zxing/oned/ITFReader;->findGuardPattern(Lcom/google/zxing/common/BitArray;I[I)[I

    move-result-object v4

    move-object v3, v4

    .line 288
    .local v3, "endPattern":[I
    :goto_1d
    aget v4, v3, v2

    invoke-direct {p0, p1, v4}, Lcom/google/zxing/oned/ITFReader;->validateQuietZone(Lcom/google/zxing/common/BitArray;I)V

    .line 293
    aget v4, v3, v2

    .line 294
    .local v4, "temp":I
    invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->getSize()I

    move-result v5

    aget v6, v3, v1

    sub-int/2addr v5, v6

    aput v5, v3, v2

    .line 295
    invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->getSize()I

    move-result v2

    sub-int/2addr v2, v4

    aput v2, v3, v1
    :try_end_34
    .catchall {:try_start_14 .. :try_end_34} :catchall_39

    .line 297
    nop

    .line 300
    invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->reverse()V

    .line 297
    return-object v3

    .line 300
    .end local v0    # "endStart":I
    .end local v3    # "endPattern":[I
    .end local v4    # "temp":I
    :catchall_39
    move-exception v0

    invoke-virtual {p1}, Lcom/google/zxing/common/BitArray;->reverse()V

    .line 301
    throw v0
.end method

.method private static decodeMiddle(Lcom/google/zxing/common/BitArray;IILjava/lang/StringBuilder;)V
    .registers 12
    .param p0, "row"    # Lcom/google/zxing/common/BitArray;
    .param p1, "payloadStart"    # I
    .param p2, "payloadEnd"    # I
    .param p3, "resultString"    # Ljava/lang/StringBuilder;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 166
    const/16 v0, 0xa

    new-array v1, v0, [I

    .line 167
    .local v1, "counterDigitPair":[I
    const/4 v2, 0x5

    new-array v3, v2, [I

    .line 168
    .local v3, "counterBlack":[I
    new-array v4, v2, [I

    .line 170
    .local v4, "counterWhite":[I
    :goto_9
    if-ge p1, p2, :cond_3e

    .line 173
    invoke-static {p0, p1, v1}, Lcom/google/zxing/oned/ITFReader;->recordPattern(Lcom/google/zxing/common/BitArray;I[I)V

    .line 175
    const/4 v5, 0x0

    .local v5, "k":I
    :goto_f
    if-ge v5, v2, :cond_20

    .line 176
    mul-int/lit8 v6, v5, 0x2

    .line 177
    .local v6, "twoK":I
    aget v7, v1, v6

    aput v7, v3, v5

    .line 178
    add-int/lit8 v7, v6, 0x1

    aget v7, v1, v7

    aput v7, v4, v5

    .line 175
    .end local v6    # "twoK":I
    add-int/lit8 v5, v5, 0x1

    goto :goto_f

    .line 181
    .end local v5    # "k":I
    :cond_20
    invoke-static {v3}, Lcom/google/zxing/oned/ITFReader;->decodeDigit([I)I

    move-result v5

    .line 182
    .local v5, "bestMatch":I
    add-int/lit8 v6, v5, 0x30

    int-to-char v6, v6

    invoke-virtual {p3, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 183
    invoke-static {v4}, Lcom/google/zxing/oned/ITFReader;->decodeDigit([I)I

    move-result v5

    .line 184
    add-int/lit8 v6, v5, 0x30

    int-to-char v6, v6

    invoke-virtual {p3, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 186
    const/4 v6, 0x0

    :goto_35
    if-ge v6, v0, :cond_3d

    aget v7, v1, v6

    .line 187
    .local v7, "counterDigit":I
    add-int/2addr p1, v7

    .line 186
    .end local v7    # "counterDigit":I
    add-int/lit8 v6, v6, 0x1

    goto :goto_35

    .line 189
    .end local v5    # "bestMatch":I
    :cond_3d
    goto :goto_9

    .line 190
    :cond_3e
    return-void
.end method

.method private decodeStart(Lcom/google/zxing/common/BitArray;)[I
    .registers 7
    .param p1, "row"    # Lcom/google/zxing/common/BitArray;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 200
    invoke-static {p1}, Lcom/google/zxing/oned/ITFReader;->skipWhiteSpace(Lcom/google/zxing/common/BitArray;)I

    move-result v0

    .line 201
    .local v0, "endStart":I
    sget-object v1, Lcom/google/zxing/oned/ITFReader;->START_PATTERN:[I

    invoke-static {p1, v0, v1}, Lcom/google/zxing/oned/ITFReader;->findGuardPattern(Lcom/google/zxing/common/BitArray;I[I)[I

    move-result-object v1

    .line 206
    .local v1, "startPattern":[I
    const/4 v2, 0x1

    aget v2, v1, v2

    const/4 v3, 0x0

    aget v4, v1, v3

    sub-int/2addr v2, v4

    div-int/lit8 v2, v2, 0x4

    iput v2, p0, Lcom/google/zxing/oned/ITFReader;->narrowLineWidth:I

    .line 208
    aget v2, v1, v3

    invoke-direct {p0, p1, v2}, Lcom/google/zxing/oned/ITFReader;->validateQuietZone(Lcom/google/zxing/common/BitArray;I)V

    .line 210
    return-object v1
.end method

.method private static findGuardPattern(Lcom/google/zxing/common/BitArray;I[I)[I
    .registers 15
    .param p0, "row"    # Lcom/google/zxing/common/BitArray;
    .param p1, "rowOffset"    # I
    .param p2, "pattern"    # [I
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 316
    array-length v0, p2

    const/4 v1, 0x0

    move v2, v1

    .line 317
    .local v2, "patternLength":I
    move v2, v0

    new-array v0, v0, [I

    .line 318
    .local v0, "counters":[I
    invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I

    move-result v3

    .line 319
    .local v3, "width":I
    const/4 v4, 0x0

    .line 321
    .local v4, "isWhite":Z
    const/4 v5, 0x0

    .line 322
    .local v5, "counterPosition":I
    move v6, p1

    .line 323
    .local v6, "patternStart":I
    move v7, p1

    .local v7, "x":I
    :goto_e
    if-ge v7, v3, :cond_56

    .line 324
    invoke-virtual {p0, v7}, Lcom/google/zxing/common/BitArray;->get(I)Z

    move-result v8

    const/4 v9, 0x1

    if-eq v8, v4, :cond_1d

    .line 325
    aget v8, v0, v5

    add-int/2addr v8, v9

    aput v8, v0, v5

    goto :goto_53

    .line 327
    :cond_1d
    add-int/lit8 v8, v2, -0x1

    if-ne v5, v8, :cond_4a

    .line 328
    const/high16 v8, 0x3f000000    # 0.5f

    invoke-static {v0, p2, v8}, Lcom/google/zxing/oned/ITFReader;->patternMatchVariance([I[IF)F

    move-result v8

    const v10, 0x3ec28f5c    # 0.38f

    const/4 v11, 0x2

    cmpg-float v8, v8, v10

    if-gez v8, :cond_36

    .line 329
    new-array v8, v11, [I

    aput v6, v8, v1

    aput v7, v8, v9

    return-object v8

    .line 331
    :cond_36
    aget v8, v0, v1

    aget v10, v0, v9

    add-int/2addr v8, v10

    add-int/2addr v6, v8

    .line 332
    add-int/lit8 v8, v5, -0x1

    invoke-static {v0, v11, v0, v1, v8}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 333
    add-int/lit8 v8, v5, -0x1

    aput v1, v0, v8

    .line 334
    aput v1, v0, v5

    .line 335
    add-int/lit8 v5, v5, -0x1

    goto :goto_4c

    .line 337
    :cond_4a
    add-int/lit8 v5, v5, 0x1

    .line 339
    :goto_4c
    aput v9, v0, v5

    .line 340
    if-nez v4, :cond_51

    goto :goto_52

    :cond_51
    const/4 v9, 0x0

    :goto_52
    move v4, v9

    .line 323
    :goto_53
    add-int/lit8 v7, v7, 0x1

    goto :goto_e

    .line 343
    .end local v7    # "x":I
    :cond_56
    invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;

    move-result-object v1

    goto :goto_5c

    :goto_5b
    throw v1

    :goto_5c
    goto :goto_5b
.end method

.method private static skipWhiteSpace(Lcom/google/zxing/common/BitArray;)I
    .registers 4
    .param p0, "row"    # Lcom/google/zxing/common/BitArray;
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 255
    invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I

    move-result v0

    .line 256
    .local v0, "width":I
    const/4 v1, 0x0

    invoke-virtual {p0, v1}, Lcom/google/zxing/common/BitArray;->getNextSet(I)I

    move-result v2

    .line 257
    .local v1, "endStart":I
    move v1, v2

    if-eq v2, v0, :cond_d

    .line 261
    return v1

    .line 258
    :cond_d
    invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;

    move-result-object v2

    throw v2
.end method

.method private validateQuietZone(Lcom/google/zxing/common/BitArray;I)V
    .registers 6
    .param p1, "row"    # Lcom/google/zxing/common/BitArray;
    .param p2, "startPattern"    # I
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 230
    iget v0, p0, Lcom/google/zxing/oned/ITFReader;->narrowLineWidth:I

    mul-int/lit8 v0, v0, 0xa

    const/4 v1, 0x0

    .line 233
    .local v1, "quietCount":I
    move v1, v0

    if-ge v0, p2, :cond_a

    move v0, v1

    goto :goto_b

    :cond_a
    move v0, p2

    .line 235
    .end local v1    # "quietCount":I
    .local v0, "quietCount":I
    :goto_b
    add-int/lit8 v1, p2, -0x1

    .local v1, "i":I
    :goto_d
    if-lez v0, :cond_1c

    if-ltz v1, :cond_1c

    .line 236
    invoke-virtual {p1, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z

    move-result v2

    if-nez v2, :cond_1c

    .line 239
    add-int/lit8 v0, v0, -0x1

    .line 235
    add-int/lit8 v1, v1, -0x1

    goto :goto_d

    .line 241
    .end local v1    # "i":I
    :cond_1c
    if-nez v0, :cond_1f

    .line 245
    return-void

    .line 243
    :cond_1f
    invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;

    move-result-object v1

    goto :goto_25

    :goto_24
    throw v1

    :goto_25
    goto :goto_24
.end method


# virtual methods
.method public decodeRow(ILcom/google/zxing/common/BitArray;Ljava/util/Map;)Lcom/google/zxing/Result;
    .registers 20
    .param p1, "rowNumber"    # I
    .param p2, "row"    # Lcom/google/zxing/common/BitArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Lcom/google/zxing/common/BitArray;",
            "Ljava/util/Map<",
            "Lcom/google/zxing/DecodeHintType;",
            "*>;)",
            "Lcom/google/zxing/Result;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/google/zxing/FormatException;,
            Lcom/google/zxing/NotFoundException;
        }
    .end annotation

    .line 105
    .local p3, "hints":Ljava/util/Map;, "Ljava/util/Map<Lcom/google/zxing/DecodeHintType;*>;"
    move-object/from16 v0, p0

    move/from16 v1, p1

    move-object/from16 v2, p2

    move-object/from16 v3, p3

    invoke-direct {v0, v2}, Lcom/google/zxing/oned/ITFReader;->decodeStart(Lcom/google/zxing/common/BitArray;)[I

    move-result-object v4

    .line 106
    .local v4, "startRange":[I
    invoke-direct {v0, v2}, Lcom/google/zxing/oned/ITFReader;->decodeEnd(Lcom/google/zxing/common/BitArray;)[I

    move-result-object v5

    .line 108
    .local v5, "endRange":[I
    new-instance v6, Ljava/lang/StringBuilder;

    const/16 v7, 0x14

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

    .line 109
    .local v6, "result":Ljava/lang/StringBuilder;
    const/4 v7, 0x1

    aget v8, v4, v7

    const/4 v9, 0x0

    aget v10, v5, v9

    invoke-static {v2, v8, v10, v6}, Lcom/google/zxing/oned/ITFReader;->decodeMiddle(Lcom/google/zxing/common/BitArray;IILjava/lang/StringBuilder;)V

    .line 110
    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    .line 112
    .local v8, "resultString":Ljava/lang/String;
    const/4 v10, 0x0

    .line 113
    .local v10, "allowedLengths":[I
    if-eqz v3, :cond_32

    .line 114
    sget-object v11, Lcom/google/zxing/DecodeHintType;->ALLOWED_LENGTHS:Lcom/google/zxing/DecodeHintType;

    invoke-interface {v3, v11}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, [I

    move-object v10, v11

    check-cast v10, [I

    .line 117
    :cond_32
    if-nez v10, :cond_36

    .line 118
    sget-object v10, Lcom/google/zxing/oned/ITFReader;->DEFAULT_ALLOWED_LENGTHS:[I

    .line 123
    :cond_36
    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v11

    .line 124
    .local v11, "length":I
    const/4 v12, 0x0

    .line 125
    .local v12, "lengthOK":Z
    const/4 v13, 0x0

    .line 126
    .local v13, "maxAllowedLength":I
    array-length v14, v10

    const/4 v15, 0x0

    :goto_3e
    if-ge v15, v14, :cond_4d

    aget v9, v10, v15

    .line 127
    .local v9, "allowedLength":I
    if-ne v11, v9, :cond_46

    .line 128
    const/4 v12, 0x1

    .line 129
    goto :goto_4d

    .line 131
    :cond_46
    if-le v9, v13, :cond_49

    .line 132
    move v13, v9

    .line 126
    .end local v9    # "allowedLength":I
    :cond_49
    add-int/lit8 v15, v15, 0x1

    const/4 v9, 0x0

    goto :goto_3e

    .line 135
    :cond_4d
    :goto_4d
    if-nez v12, :cond_52

    if-le v11, v13, :cond_52

    .line 136
    const/4 v12, 0x1

    .line 138
    :cond_52
    if-eqz v12, :cond_78

    .line 142
    new-instance v9, Lcom/google/zxing/Result;

    const/4 v15, 0x2

    new-array v15, v15, [Lcom/google/zxing/ResultPoint;

    new-instance v14, Lcom/google/zxing/ResultPoint;

    aget v0, v4, v7

    int-to-float v0, v0

    int-to-float v7, v1

    invoke-direct {v14, v0, v7}, Lcom/google/zxing/ResultPoint;-><init>(FF)V

    const/4 v0, 0x0

    aput-object v14, v15, v0

    new-instance v7, Lcom/google/zxing/ResultPoint;

    aget v0, v5, v0

    int-to-float v0, v0

    int-to-float v14, v1

    invoke-direct {v7, v0, v14}, Lcom/google/zxing/ResultPoint;-><init>(FF)V

    const/4 v0, 0x1

    aput-object v7, v15, v0

    sget-object v0, Lcom/google/zxing/BarcodeFormat;->ITF:Lcom/google/zxing/BarcodeFormat;

    const/4 v7, 0x0

    invoke-direct {v9, v8, v7, v15, v0}, Lcom/google/zxing/Result;-><init>(Ljava/lang/String;[B[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;)V

    return-object v9

    .line 139
    :cond_78
    invoke-static {}, Lcom/google/zxing/FormatException;->getFormatInstance()Lcom/google/zxing/FormatException;

    move-result-object v0

    goto :goto_7e

    :goto_7d
    throw v0

    :goto_7e
    goto :goto_7d
.end method