UPCEANReader.smali
.class public abstract Lcom/google/zxing/oned/UPCEANReader;
.super Lcom/google/zxing/oned/OneDReader;
.source "UPCEANReader.java"
# static fields
.field static final END_PATTERN:[I
.field static final L_AND_G_PATTERNS:[[I
.field static final L_PATTERNS:[[I
.field private static final MAX_AVG_VARIANCE:F = 0.48f
.field private static final MAX_INDIVIDUAL_VARIANCE:F = 0.7f
.field static final MIDDLE_PATTERN:[I
.field static final START_END_PATTERN:[I
# instance fields
.field private final decodeRowStringBuffer:Ljava/lang/StringBuilder;
.field private final eanManSupport:Lcom/google/zxing/oned/EANManufacturerOrgSupport;
.field private final extensionReader:Lcom/google/zxing/oned/UPCEANExtensionSupport;
# direct methods
.method static constructor <clinit>()V
.registers 10
const/4 v0, 0x3
new-array v1, v0, [I
.line 53
fill-array-data v1, :array_98
sput-object v1, Lcom/google/zxing/oned/UPCEANReader;->START_END_PATTERN:[I
const/4 v1, 0x5
new-array v2, v1, [I
.line 58
fill-array-data v2, :array_a2
sput-object v2, Lcom/google/zxing/oned/UPCEANReader;->MIDDLE_PATTERN:[I
const/4 v2, 0x6
new-array v3, v2, [I
.line 62
fill-array-data v3, :array_b0
sput-object v3, Lcom/google/zxing/oned/UPCEANReader;->END_PATTERN:[I
const/16 v3, 0xa
new-array v4, v3, [[I
const/4 v5, 0x4
new-array v6, v5, [I
.line 66
fill-array-data v6, :array_c0
const/4 v7, 0x0
aput-object v6, v4, v7
new-array v6, v5, [I
fill-array-data v6, :array_cc
const/4 v8, 0x1
aput-object v6, v4, v8
new-array v6, v5, [I
fill-array-data v6, :array_d8
const/4 v9, 0x2
aput-object v6, v4, v9
new-array v6, v5, [I
fill-array-data v6, :array_e4
aput-object v6, v4, v0
new-array v0, v5, [I
fill-array-data v0, :array_f0
aput-object v0, v4, v5
new-array v0, v5, [I
fill-array-data v0, :array_fc
aput-object v0, v4, v1
new-array v0, v5, [I
fill-array-data v0, :array_108
aput-object v0, v4, v2
new-array v0, v5, [I
fill-array-data v0, :array_114
const/4 v1, 0x7
aput-object v0, v4, v1
new-array v0, v5, [I
fill-array-data v0, :array_120
const/16 v1, 0x8
aput-object v0, v4, v1
new-array v0, v5, [I
fill-array-data v0, :array_12c
const/16 v1, 0x9
aput-object v0, v4, v1
sput-object v4, Lcom/google/zxing/oned/UPCEANReader;->L_PATTERNS:[[I
const/16 v0, 0x14
new-array v1, v0, [[I
.line 85
sput-object v1, Lcom/google/zxing/oned/UPCEANReader;->L_AND_G_PATTERNS:[[I
.line 86
invoke-static {v4, v7, v1, v7, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
:goto_76
if-ge v3, v0, :cond_96
.line 88
sget-object v1, Lcom/google/zxing/oned/UPCEANReader;->L_PATTERNS:[[I
add-int/lit8 v2, v3, -0xa
aget-object v1, v1, v2
.line 89
array-length v2, v1
new-array v2, v2, [I
const/4 v4, 0x0
.line 90
:goto_82
array-length v5, v1
if-ge v4, v5, :cond_8f
.line 91
array-length v5, v1
sub-int/2addr v5, v4
sub-int/2addr v5, v8
aget v5, v1, v5
aput v5, v2, v4
add-int/lit8 v4, v4, 0x1
goto :goto_82
.line 93
:cond_8f
sget-object v1, Lcom/google/zxing/oned/UPCEANReader;->L_AND_G_PATTERNS:[[I
aput-object v2, v1, v3
add-int/lit8 v3, v3, 0x1
goto :goto_76
:cond_96
return-void
nop
:array_98
.array-data 4
0x1
0x1
0x1
.end array-data
:array_a2
.array-data 4
0x1
0x1
0x1
0x1
0x1
.end array-data
:array_b0
.array-data 4
0x1
0x1
0x1
0x1
0x1
0x1
.end array-data
:array_c0
.array-data 4
0x3
0x2
0x1
0x1
.end array-data
:array_cc
.array-data 4
0x2
0x2
0x2
0x1
.end array-data
:array_d8
.array-data 4
0x2
0x1
0x2
0x2
.end array-data
:array_e4
.array-data 4
0x1
0x4
0x1
0x1
.end array-data
:array_f0
.array-data 4
0x1
0x1
0x3
0x2
.end array-data
:array_fc
.array-data 4
0x1
0x2
0x3
0x1
.end array-data
:array_108
.array-data 4
0x1
0x1
0x1
0x4
.end array-data
:array_114
.array-data 4
0x1
0x3
0x1
0x2
.end array-data
:array_120
.array-data 4
0x1
0x2
0x1
0x3
.end array-data
:array_12c
.array-data 4
0x3
0x1
0x1
0x2
.end array-data
.end method
.method protected constructor <init>()V
.registers 3
.line 101
invoke-direct {p0}, Lcom/google/zxing/oned/OneDReader;-><init>()V
.line 102
new-instance v0, Ljava/lang/StringBuilder;
const/16 v1, 0x14
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
iput-object v0, p0, Lcom/google/zxing/oned/UPCEANReader;->decodeRowStringBuffer:Ljava/lang/StringBuilder;
.line 103
new-instance v0, Lcom/google/zxing/oned/UPCEANExtensionSupport;
invoke-direct {v0}, Lcom/google/zxing/oned/UPCEANExtensionSupport;-><init>()V
iput-object v0, p0, Lcom/google/zxing/oned/UPCEANReader;->extensionReader:Lcom/google/zxing/oned/UPCEANExtensionSupport;
.line 104
new-instance v0, Lcom/google/zxing/oned/EANManufacturerOrgSupport;
invoke-direct {v0}, Lcom/google/zxing/oned/EANManufacturerOrgSupport;-><init>()V
iput-object v0, p0, Lcom/google/zxing/oned/UPCEANReader;->eanManSupport:Lcom/google/zxing/oned/EANManufacturerOrgSupport;
return-void
.end method
.method static checkStandardUPCEANChecksum(Ljava/lang/CharSequence;)Z
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/FormatException;
}
.end annotation
.line 264
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x0
if-nez v0, :cond_8
return v1
:cond_8
add-int/lit8 v2, v0, -0x2
const/4 v3, 0x0
:goto_b
const/16 v4, 0x9
if-ltz v2, :cond_22
.line 271
invoke-interface {p0, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v5
add-int/lit8 v5, v5, -0x30
if-ltz v5, :cond_1d
if-gt v5, v4, :cond_1d
add-int/2addr v3, v5
add-int/lit8 v2, v2, -0x2
goto :goto_b
.line 273
:cond_1d
invoke-static {}, Lcom/google/zxing/FormatException;->getFormatInstance()Lcom/google/zxing/FormatException;
move-result-object p0
throw p0
:cond_22
mul-int/lit8 v3, v3, 0x3
const/4 v2, 0x1
sub-int/2addr v0, v2
:goto_26
if-ltz v0, :cond_3b
.line 279
invoke-interface {p0, v0}, Ljava/lang/CharSequence;->charAt(I)C
move-result v5
add-int/lit8 v5, v5, -0x30
if-ltz v5, :cond_36
if-gt v5, v4, :cond_36
add-int/2addr v3, v5
add-int/lit8 v0, v0, -0x2
goto :goto_26
.line 281
:cond_36
invoke-static {}, Lcom/google/zxing/FormatException;->getFormatInstance()Lcom/google/zxing/FormatException;
move-result-object p0
throw p0
.line 285
:cond_3b
rem-int/lit8 v3, v3, 0xa
if-nez v3, :cond_40
return v2
:cond_40
return v1
.end method
.method static decodeDigit(Lcom/google/zxing/common/BitArray;[II[[I)I
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;
}
.end annotation
.line 358
invoke-static {p0, p2, p1}, Lcom/google/zxing/oned/UPCEANReader;->recordPattern(Lcom/google/zxing/common/BitArray;I[I)V
.line 361
array-length p0, p3
const p2, 0x3ef5c28f # 0.48f
const/4 v0, -0x1
const/4 v1, 0x0
:goto_9
if-ge v1, p0, :cond_1d
.line 363
aget-object v2, p3, v1
const v3, 0x3f333333 # 0.7f
.line 364
invoke-static {p1, v2, v3}, Lcom/google/zxing/oned/UPCEANReader;->patternMatchVariance([I[IF)F
move-result v2
cmpg-float v3, v2, p2
if-gez v3, :cond_1a
move v0, v1
move p2, v2
:cond_1a
add-int/lit8 v1, v1, 0x1
goto :goto_9
:cond_1d
if-ltz v0, :cond_20
return v0
.line 373
:cond_20
invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;
move-result-object p0
throw p0
.end method
.method static findGuardPattern(Lcom/google/zxing/common/BitArray;IZ[I)[I
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;
}
.end annotation
.line 296
array-length v0, p3
new-array v0, v0, [I
invoke-static {p0, p1, p2, p3, v0}, Lcom/google/zxing/oned/UPCEANReader;->findGuardPattern(Lcom/google/zxing/common/BitArray;IZ[I[I)[I
move-result-object p0
return-object p0
.end method
.method private static findGuardPattern(Lcom/google/zxing/common/BitArray;IZ[I[I)[I
.registers 15
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;
}
.end annotation
.line 315
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->getSize()I
move-result v0
if-eqz p2, :cond_b
.line 316
invoke-virtual {p0, p1}, Lcom/google/zxing/common/BitArray;->getNextUnset(I)I
move-result p1
goto :goto_f
:cond_b
invoke-virtual {p0, p1}, Lcom/google/zxing/common/BitArray;->getNextSet(I)I
move-result p1
.line 319
:goto_f
array-length v1, p3
const/4 v2, 0x0
move v3, p2
const/4 v4, 0x0
move p2, p1
:goto_14
if-ge p1, v0, :cond_59
.line 322
invoke-virtual {p0, p1}, Lcom/google/zxing/common/BitArray;->get(I)Z
move-result v5
xor-int/2addr v5, v3
const/4 v6, 0x1
if-eqz v5, :cond_24
.line 323
aget v5, p4, v4
add-int/2addr v5, v6
aput v5, p4, v4
goto :goto_56
:cond_24
add-int/lit8 v5, v1, -0x1
if-ne v4, v5, :cond_50
const v7, 0x3f333333 # 0.7f
.line 326
invoke-static {p4, p3, v7}, Lcom/google/zxing/oned/UPCEANReader;->patternMatchVariance([I[IF)F
move-result v7
const v8, 0x3ef5c28f # 0.48f
const/4 v9, 0x2
cmpg-float v7, v7, v8
if-gez v7, :cond_3e
new-array p0, v9, [I
aput p2, p0, v2
aput p1, p0, v6
return-object p0
.line 329
:cond_3e
aget v7, p4, v2
aget v8, p4, v6
add-int/2addr v7, v8
add-int/2addr p2, v7
add-int/lit8 v7, v1, -0x2
.line 330
invoke-static {p4, v9, p4, v2, v7}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 331
aput v2, p4, v7
.line 332
aput v2, p4, v5
add-int/lit8 v4, v4, -0x1
goto :goto_52
:cond_50
add-int/lit8 v4, v4, 0x1
.line 337
:goto_52
aput v6, p4, v4
xor-int/lit8 v3, v3, 0x1
:goto_56
add-int/lit8 p1, p1, 0x1
goto :goto_14
.line 341
:cond_59
invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;
move-result-object p0
throw p0
.end method
.method static findStartGuardPattern(Lcom/google/zxing/common/BitArray;)[I
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;
}
.end annotation
.line 111
sget-object v0, Lcom/google/zxing/oned/UPCEANReader;->START_END_PATTERN:[I
array-length v0, v0
new-array v0, v0, [I
const/4 v1, 0x0
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
:goto_9
if-nez v3, :cond_28
.line 113
sget-object v2, Lcom/google/zxing/oned/UPCEANReader;->START_END_PATTERN:[I
array-length v2, v2
invoke-static {v0, v1, v2, v1}, Ljava/util/Arrays;->fill([IIII)V
.line 114
sget-object v2, Lcom/google/zxing/oned/UPCEANReader;->START_END_PATTERN:[I
invoke-static {p0, v4, v1, v2, v0}, Lcom/google/zxing/oned/UPCEANReader;->findGuardPattern(Lcom/google/zxing/common/BitArray;IZ[I[I)[I
move-result-object v2
.line 115
aget v4, v2, v1
const/4 v5, 0x1
.line 116
aget v5, v2, v5
sub-int v6, v5, v4
sub-int v6, v4, v6
if-ltz v6, :cond_26
.line 122
invoke-virtual {p0, v6, v4, v1}, Lcom/google/zxing/common/BitArray;->isRange(IIZ)Z
move-result v3
:cond_26
move v4, v5
goto :goto_9
:cond_28
return-object v2
.end method
# virtual methods
.method checkChecksum(Ljava/lang/String;)Z
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/FormatException;
}
.end annotation
.line 252
invoke-static {p1}, Lcom/google/zxing/oned/UPCEANReader;->checkStandardUPCEANChecksum(Ljava/lang/CharSequence;)Z
move-result p1
return p1
.end method
.method decodeEnd(Lcom/google/zxing/common/BitArray;I)[I
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;
}
.end annotation
.line 289
sget-object v0, Lcom/google/zxing/oned/UPCEANReader;->START_END_PATTERN:[I
const/4 v1, 0x0
invoke-static {p1, p2, v1, v0}, Lcom/google/zxing/oned/UPCEANReader;->findGuardPattern(Lcom/google/zxing/common/BitArray;IZ[I)[I
move-result-object p1
return-object p1
.end method
.method protected abstract decodeMiddle(Lcom/google/zxing/common/BitArray;[ILjava/lang/StringBuilder;)I
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;
}
.end annotation
.end method
.method public decodeRow(ILcom/google/zxing/common/BitArray;Ljava/util/Map;)Lcom/google/zxing/Result;
.registers 5
.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/NotFoundException;,
Lcom/google/zxing/ChecksumException;,
Lcom/google/zxing/FormatException;
}
.end annotation
.line 131
invoke-static {p2}, Lcom/google/zxing/oned/UPCEANReader;->findStartGuardPattern(Lcom/google/zxing/common/BitArray;)[I
move-result-object v0
invoke-virtual {p0, p1, p2, v0, p3}, Lcom/google/zxing/oned/UPCEANReader;->decodeRow(ILcom/google/zxing/common/BitArray;[ILjava/util/Map;)Lcom/google/zxing/Result;
move-result-object p1
return-object p1
.end method
.method public decodeRow(ILcom/google/zxing/common/BitArray;[ILjava/util/Map;)Lcom/google/zxing/Result;
.registers 16
.annotation system Ldalvik/annotation/Signature;
value = {
"(I",
"Lcom/google/zxing/common/BitArray;",
"[I",
"Ljava/util/Map<",
"Lcom/google/zxing/DecodeHintType;",
"*>;)",
"Lcom/google/zxing/Result;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/zxing/NotFoundException;,
Lcom/google/zxing/ChecksumException;,
Lcom/google/zxing/FormatException;
}
.end annotation
const/4 v0, 0x0
if-nez p4, :cond_5
move-object v1, v0
goto :goto_d
.line 154
:cond_5
sget-object v1, Lcom/google/zxing/DecodeHintType;->NEED_RESULT_POINT_CALLBACK:Lcom/google/zxing/DecodeHintType;
.line 155
invoke-interface {p4, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/zxing/ResultPointCallback;
:goto_d
const/high16 v2, 0x40000000 # 2.0f
const/4 v3, 0x1
const/4 v4, 0x0
if-eqz v1, :cond_23
.line 158
new-instance v5, Lcom/google/zxing/ResultPoint;
aget v6, p3, v4
aget v7, p3, v3
add-int/2addr v6, v7
int-to-float v6, v6
div-float/2addr v6, v2
int-to-float v7, p1
invoke-direct {v5, v6, v7}, Lcom/google/zxing/ResultPoint;-><init>(FF)V
invoke-interface {v1, v5}, Lcom/google/zxing/ResultPointCallback;->foundPossibleResultPoint(Lcom/google/zxing/ResultPoint;)V
.line 163
:cond_23
iget-object v5, p0, Lcom/google/zxing/oned/UPCEANReader;->decodeRowStringBuffer:Ljava/lang/StringBuilder;
.line 164
invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->setLength(I)V
.line 165
invoke-virtual {p0, p2, p3, v5}, Lcom/google/zxing/oned/UPCEANReader;->decodeMiddle(Lcom/google/zxing/common/BitArray;[ILjava/lang/StringBuilder;)I
move-result v6
if-eqz v1, :cond_38
.line 168
new-instance v7, Lcom/google/zxing/ResultPoint;
int-to-float v8, v6
int-to-float v9, p1
invoke-direct {v7, v8, v9}, Lcom/google/zxing/ResultPoint;-><init>(FF)V
invoke-interface {v1, v7}, Lcom/google/zxing/ResultPointCallback;->foundPossibleResultPoint(Lcom/google/zxing/ResultPoint;)V
.line 173
:cond_38
invoke-virtual {p0, p2, v6}, Lcom/google/zxing/oned/UPCEANReader;->decodeEnd(Lcom/google/zxing/common/BitArray;I)[I
move-result-object v6
if-eqz v1, :cond_4e
.line 176
new-instance v7, Lcom/google/zxing/ResultPoint;
aget v8, v6, v4
aget v9, v6, v3
add-int/2addr v8, v9
int-to-float v8, v8
div-float/2addr v8, v2
int-to-float v9, p1
invoke-direct {v7, v8, v9}, Lcom/google/zxing/ResultPoint;-><init>(FF)V
invoke-interface {v1, v7}, Lcom/google/zxing/ResultPointCallback;->foundPossibleResultPoint(Lcom/google/zxing/ResultPoint;)V
.line 184
:cond_4e
aget v1, v6, v3
.line 185
aget v7, v6, v4
sub-int v7, v1, v7
add-int/2addr v7, v1
.line 186
invoke-virtual {p2}, Lcom/google/zxing/common/BitArray;->getSize()I
move-result v8
if-ge v7, v8, :cond_10a
invoke-virtual {p2, v1, v7, v4}, Lcom/google/zxing/common/BitArray;->isRange(IIZ)Z
move-result v1
if-eqz v1, :cond_10a
.line 190
invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
.line 192
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v5
const/16 v7, 0x8
if-lt v5, v7, :cond_105
.line 195
invoke-virtual {p0, v1}, Lcom/google/zxing/oned/UPCEANReader;->checkChecksum(Ljava/lang/String;)Z
move-result v5
if-eqz v5, :cond_100
.line 199
aget v5, p3, v3
aget p3, p3, v4
add-int/2addr v5, p3
int-to-float p3, v5
div-float/2addr p3, v2
.line 200
aget v5, v6, v3
aget v7, v6, v4
add-int/2addr v5, v7
int-to-float v5, v5
div-float/2addr v5, v2
.line 201
invoke-virtual {p0}, Lcom/google/zxing/oned/UPCEANReader;->getBarcodeFormat()Lcom/google/zxing/BarcodeFormat;
move-result-object v2
.line 202
new-instance v7, Lcom/google/zxing/Result;
const/4 v8, 0x2
new-array v8, v8, [Lcom/google/zxing/ResultPoint;
new-instance v9, Lcom/google/zxing/ResultPoint;
int-to-float v10, p1
invoke-direct {v9, p3, v10}, Lcom/google/zxing/ResultPoint;-><init>(FF)V
aput-object v9, v8, v4
new-instance p3, Lcom/google/zxing/ResultPoint;
invoke-direct {p3, v5, v10}, Lcom/google/zxing/ResultPoint;-><init>(FF)V
aput-object p3, v8, v3
invoke-direct {v7, v1, v0, v8, v2}, Lcom/google/zxing/Result;-><init>(Ljava/lang/String;[B[Lcom/google/zxing/ResultPoint;Lcom/google/zxing/BarcodeFormat;)V
.line 212
:try_start_9c
iget-object p3, p0, Lcom/google/zxing/oned/UPCEANReader;->extensionReader:Lcom/google/zxing/oned/UPCEANExtensionSupport;
aget v5, v6, v3
invoke-virtual {p3, p1, p2, v5}, Lcom/google/zxing/oned/UPCEANExtensionSupport;->decodeRow(ILcom/google/zxing/common/BitArray;I)Lcom/google/zxing/Result;
move-result-object p1
.line 213
sget-object p2, Lcom/google/zxing/ResultMetadataType;->UPC_EAN_EXTENSION:Lcom/google/zxing/ResultMetadataType;
invoke-virtual {p1}, Lcom/google/zxing/Result;->getText()Ljava/lang/String;
move-result-object p3
invoke-virtual {v7, p2, p3}, Lcom/google/zxing/Result;->putMetadata(Lcom/google/zxing/ResultMetadataType;Ljava/lang/Object;)V
.line 214
invoke-virtual {p1}, Lcom/google/zxing/Result;->getResultMetadata()Ljava/util/Map;
move-result-object p2
invoke-virtual {v7, p2}, Lcom/google/zxing/Result;->putAllMetadata(Ljava/util/Map;)V
.line 215
invoke-virtual {p1}, Lcom/google/zxing/Result;->getResultPoints()[Lcom/google/zxing/ResultPoint;
move-result-object p2
invoke-virtual {v7, p2}, Lcom/google/zxing/Result;->addResultPoints([Lcom/google/zxing/ResultPoint;)V
.line 216
invoke-virtual {p1}, Lcom/google/zxing/Result;->getText()Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p1
:try_end_c3
.catch Lcom/google/zxing/ReaderException; {:try_start_9c .. :try_end_c3} :catch_c4
goto :goto_c5
:catch_c4
const/4 p1, 0x0
:goto_c5
if-nez p4, :cond_c8
goto :goto_d3
.line 221
:cond_c8
sget-object p2, Lcom/google/zxing/DecodeHintType;->ALLOWED_EAN_EXTENSIONS:Lcom/google/zxing/DecodeHintType;
.line 222
invoke-interface {p4, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p2
check-cast p2, [I
move-object v0, p2
check-cast v0, [I
:goto_d3
if-eqz v0, :cond_ea
.line 225
array-length p2, v0
const/4 p3, 0x0
:goto_d7
if-ge p3, p2, :cond_e1
aget p4, v0, p3
if-ne p1, p4, :cond_de
goto :goto_e2
:cond_de
add-int/lit8 p3, p3, 0x1
goto :goto_d7
:cond_e1
const/4 v3, 0x0
:goto_e2
if-eqz v3, :cond_e5
goto :goto_ea
.line 232
:cond_e5
invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;
move-result-object p1
throw p1
.line 236
:cond_ea
:goto_ea
sget-object p1, Lcom/google/zxing/BarcodeFormat;->EAN_13:Lcom/google/zxing/BarcodeFormat;
if-eq v2, p1, :cond_f2
sget-object p1, Lcom/google/zxing/BarcodeFormat;->UPC_A:Lcom/google/zxing/BarcodeFormat;
if-ne v2, p1, :cond_ff
.line 237
:cond_f2
iget-object p1, p0, Lcom/google/zxing/oned/UPCEANReader;->eanManSupport:Lcom/google/zxing/oned/EANManufacturerOrgSupport;
invoke-virtual {p1, v1}, Lcom/google/zxing/oned/EANManufacturerOrgSupport;->lookupCountryIdentifier(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
if-eqz p1, :cond_ff
.line 239
sget-object p2, Lcom/google/zxing/ResultMetadataType;->POSSIBLE_COUNTRY:Lcom/google/zxing/ResultMetadataType;
invoke-virtual {v7, p2, p1}, Lcom/google/zxing/Result;->putMetadata(Lcom/google/zxing/ResultMetadataType;Ljava/lang/Object;)V
:cond_ff
return-object v7
.line 196
:cond_100
invoke-static {}, Lcom/google/zxing/ChecksumException;->getChecksumInstance()Lcom/google/zxing/ChecksumException;
move-result-object p1
throw p1
.line 193
:cond_105
invoke-static {}, Lcom/google/zxing/FormatException;->getFormatInstance()Lcom/google/zxing/FormatException;
move-result-object p1
throw p1
.line 187
:cond_10a
invoke-static {}, Lcom/google/zxing/NotFoundException;->getNotFoundInstance()Lcom/google/zxing/NotFoundException;
move-result-object p1
throw p1
.end method
.method abstract getBarcodeFormat()Lcom/google/zxing/BarcodeFormat;
.end method