mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
1138 lines
18 KiB
Smali
1138 lines
18 KiB
Smali
|
.class public final Lcom/google/zxing/common/BitArray;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "BitArray.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/lang/Cloneable;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private bits:[I
|
||
|
|
||
|
.field private size:I
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
.line 31
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
iput v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
new-array v0, v0, [I
|
||
|
|
||
|
iput-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(I)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 36
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
.line 38
|
||
|
invoke-static {p1}, Lcom/google/zxing/common/BitArray;->makeArray(I)[I
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>([II)V
|
||
|
.locals 0
|
||
|
|
||
|
.line 42
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
iput p2, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private ensureCapacity(I)V
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 56
|
||
|
array-length v0, v0
|
||
|
|
||
|
shl-int/lit8 v0, v0, 0x5
|
||
|
|
||
|
if-le p1, v0, :cond_0
|
||
|
|
||
|
.line 57
|
||
|
invoke-static {p1}, Lcom/google/zxing/common/BitArray;->makeArray(I)[I
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 58
|
||
|
array-length v1, v0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-static {v0, v2, p1, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
||
|
|
||
|
iput-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private static makeArray(I)[I
|
||
|
.locals 0
|
||
|
|
||
|
add-int/lit8 p0, p0, 0x1f
|
||
|
|
||
|
.line 323
|
||
|
div-int/lit8 p0, p0, 0x20
|
||
|
|
||
|
new-array p0, p0, [I
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public appendBit(Z)V
|
||
|
.locals 4
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
add-int/2addr v0, v1
|
||
|
|
||
|
.line 217
|
||
|
invoke-direct {p0, v0}, Lcom/google/zxing/common/BitArray;->ensureCapacity(I)V
|
||
|
|
||
|
if-eqz p1, :cond_0
|
||
|
|
||
|
iget-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
.line 219
|
||
|
div-int/lit8 v2, v0, 0x20
|
||
|
|
||
|
aget v3, p1, v2
|
||
|
|
||
|
and-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
shl-int v0, v1, v0
|
||
|
|
||
|
or-int/2addr v0, v3
|
||
|
|
||
|
aput v0, p1, v2
|
||
|
|
||
|
:cond_0
|
||
|
iget p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
add-int/2addr p1, v1
|
||
|
|
||
|
iput p1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public appendBitArray(Lcom/google/zxing/common/BitArray;)V
|
||
|
.locals 3
|
||
|
|
||
|
.line 243
|
||
|
iget v0, p1, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
iget v1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
add-int/2addr v1, v0
|
||
|
|
||
|
.line 244
|
||
|
invoke-direct {p0, v1}, Lcom/google/zxing/common/BitArray;->ensureCapacity(I)V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v1, v0, :cond_0
|
||
|
|
||
|
.line 246
|
||
|
invoke-virtual {p1, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-virtual {p0, v2}, Lcom/google/zxing/common/BitArray;->appendBit(Z)V
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public appendBits(II)V
|
||
|
.locals 2
|
||
|
|
||
|
if-ltz p2, :cond_2
|
||
|
|
||
|
const/16 v0, 0x20
|
||
|
|
||
|
if-gt p2, v0, :cond_2
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
add-int/2addr v0, p2
|
||
|
|
||
|
.line 236
|
||
|
invoke-direct {p0, v0}, Lcom/google/zxing/common/BitArray;->ensureCapacity(I)V
|
||
|
|
||
|
:goto_0
|
||
|
if-lez p2, :cond_1
|
||
|
|
||
|
add-int/lit8 v0, p2, -0x1
|
||
|
|
||
|
shr-int v0, p1, v0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
and-int/2addr v0, v1
|
||
|
|
||
|
if-ne v0, v1, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
.line 238
|
||
|
:goto_1
|
||
|
invoke-virtual {p0, v1}, Lcom/google/zxing/common/BitArray;->appendBit(Z)V
|
||
|
|
||
|
add-int/lit8 p2, p2, -0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
|
||
|
.line 234
|
||
|
:cond_2
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p1, "Num bits must be between 0 and 32"
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public clear()V
|
||
|
.locals 4
|
||
|
|
||
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 176
|
||
|
array-length v0, v0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
move v2, v1
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v2, v0, :cond_0
|
||
|
|
||
|
iget-object v3, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 178
|
||
|
aput v1, v3, v2
|
||
|
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public clone()Lcom/google/zxing/common/BitArray;
|
||
|
.locals 2
|
||
|
|
||
|
.line 354
|
||
|
new-instance v0, Lcom/google/zxing/common/BitArray;
|
||
|
|
||
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
invoke-virtual {v1}, [I->clone()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
check-cast v1, [I
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
invoke-direct {v0, v1, p0}, Lcom/google/zxing/common/BitArray;-><init>([II)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic clone()Ljava/lang/Object;
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/CloneNotSupportedException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.line 26
|
||
|
invoke-virtual {p0}, Lcom/google/zxing/common/BitArray;->clone()Lcom/google/zxing/common/BitArray;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public equals(Ljava/lang/Object;)Z
|
||
|
.locals 3
|
||
|
|
||
|
.line 328
|
||
|
instance-of v0, p1, Lcom/google/zxing/common/BitArray;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
.line 331
|
||
|
:cond_0
|
||
|
check-cast p1, Lcom/google/zxing/common/BitArray;
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
.line 332
|
||
|
iget v2, p1, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-ne v0, v2, :cond_1
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
iget-object p1, p1, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
invoke-static {p0, p1}, Ljava/util/Arrays;->equals([I[I)Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
if-eqz p0, :cond_1
|
||
|
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
return p0
|
||
|
|
||
|
:cond_1
|
||
|
return v1
|
||
|
.end method
|
||
|
|
||
|
.method public flip(I)V
|
||
|
.locals 3
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 86
|
||
|
div-int/lit8 v0, p1, 0x20
|
||
|
|
||
|
aget v1, p0, v0
|
||
|
|
||
|
and-int/lit8 p1, p1, 0x1f
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
shl-int p1, v2, p1
|
||
|
|
||
|
xor-int/2addr p1, v1
|
||
|
|
||
|
aput p1, p0, v0
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public get(I)Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 68
|
||
|
div-int/lit8 v0, p1, 0x20
|
||
|
|
||
|
aget p0, p0, v0
|
||
|
|
||
|
and-int/lit8 p1, p1, 0x1f
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
shl-int p1, v0, p1
|
||
|
|
||
|
and-int/2addr p0, p1
|
||
|
|
||
|
if-eqz p0, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public getBitArray()[I
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public getNextSet(I)I
|
||
|
.locals 3
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-lt p1, v0, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
.line 99
|
||
|
:cond_0
|
||
|
div-int/lit8 v0, p1, 0x20
|
||
|
|
||
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 100
|
||
|
aget v1, v1, v0
|
||
|
|
||
|
and-int/lit8 p1, p1, 0x1f
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
shl-int p1, v2, p1
|
||
|
|
||
|
neg-int p1, p1
|
||
|
|
||
|
and-int/2addr p1, v1
|
||
|
|
||
|
:goto_0
|
||
|
if-nez p1, :cond_2
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
iget-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 104
|
||
|
array-length v1, p1
|
||
|
|
||
|
if-ne v0, v1, :cond_1
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
return p0
|
||
|
|
||
|
.line 107
|
||
|
:cond_1
|
||
|
aget p1, p1, v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
shl-int/lit8 v0, v0, 0x5
|
||
|
|
||
|
.line 109
|
||
|
invoke-static {p1}, Ljava/lang/Integer;->numberOfTrailingZeros(I)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
add-int/2addr v0, p1
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
.line 110
|
||
|
invoke-static {v0, p0}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public getNextUnset(I)I
|
||
|
.locals 3
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-lt p1, v0, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
.line 122
|
||
|
:cond_0
|
||
|
div-int/lit8 v0, p1, 0x20
|
||
|
|
||
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 123
|
||
|
aget v1, v1, v0
|
||
|
|
||
|
not-int v1, v1
|
||
|
|
||
|
and-int/lit8 p1, p1, 0x1f
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
shl-int p1, v2, p1
|
||
|
|
||
|
neg-int p1, p1
|
||
|
|
||
|
and-int/2addr p1, v1
|
||
|
|
||
|
:goto_0
|
||
|
if-nez p1, :cond_2
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
iget-object p1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 127
|
||
|
array-length v1, p1
|
||
|
|
||
|
if-ne v0, v1, :cond_1
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
return p0
|
||
|
|
||
|
.line 130
|
||
|
:cond_1
|
||
|
aget p1, p1, v0
|
||
|
|
||
|
not-int p1, p1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
shl-int/lit8 v0, v0, 0x5
|
||
|
|
||
|
.line 132
|
||
|
invoke-static {p1}, Ljava/lang/Integer;->numberOfTrailingZeros(I)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
add-int/2addr v0, p1
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
.line 133
|
||
|
invoke-static {v0, p0}, Ljava/lang/Math;->min(II)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public getSize()I
|
||
|
.locals 0
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public getSizeInBytes()I
|
||
|
.locals 0
|
||
|
|
||
|
iget p0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
add-int/lit8 p0, p0, 0x7
|
||
|
|
||
|
.line 52
|
||
|
div-int/lit8 p0, p0, 0x8
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public hashCode()I
|
||
|
.locals 1
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
mul-int/lit8 v0, v0, 0x1f
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 337
|
||
|
invoke-static {p0}, Ljava/util/Arrays;->hashCode([I)I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
add-int/2addr v0, p0
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public isRange(IIZ)Z
|
||
|
.locals 8
|
||
|
|
||
|
if-lt p2, p1, :cond_6
|
||
|
|
||
|
if-ltz p1, :cond_6
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-gt p2, v0, :cond_6
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
if-ne p2, p1, :cond_0
|
||
|
|
||
|
return v0
|
||
|
|
||
|
:cond_0
|
||
|
add-int/lit8 p2, p2, -0x1
|
||
|
|
||
|
.line 199
|
||
|
div-int/lit8 v1, p1, 0x20
|
||
|
|
||
|
.line 200
|
||
|
div-int/lit8 v2, p2, 0x20
|
||
|
|
||
|
move v3, v1
|
||
|
|
||
|
:goto_0
|
||
|
if-gt v3, v2, :cond_5
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
const/16 v5, 0x1f
|
||
|
|
||
|
if-le v3, v1, :cond_1
|
||
|
|
||
|
move v6, v4
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
and-int/lit8 v6, p1, 0x1f
|
||
|
|
||
|
:goto_1
|
||
|
if-ge v3, v2, :cond_2
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
and-int/2addr v5, p2
|
||
|
|
||
|
:goto_2
|
||
|
const/4 v7, 0x2
|
||
|
|
||
|
shl-int v5, v7, v5
|
||
|
|
||
|
shl-int v6, v0, v6
|
||
|
|
||
|
sub-int/2addr v5, v6
|
||
|
|
||
|
iget-object v6, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 209
|
||
|
aget v6, v6, v3
|
||
|
|
||
|
and-int/2addr v6, v5
|
||
|
|
||
|
if-eqz p3, :cond_3
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
move v5, v4
|
||
|
|
||
|
:goto_3
|
||
|
if-eq v6, v5, :cond_4
|
||
|
|
||
|
return v4
|
||
|
|
||
|
:cond_4
|
||
|
add-int/lit8 v3, v3, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_5
|
||
|
return v0
|
||
|
|
||
|
.line 193
|
||
|
:cond_6
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public reverse()V
|
||
|
.locals 13
|
||
|
|
||
|
iget-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 294
|
||
|
array-length v0, v0
|
||
|
|
||
|
new-array v0, v0, [I
|
||
|
|
||
|
iget v1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
sub-int/2addr v1, v2
|
||
|
|
||
|
.line 296
|
||
|
div-int/lit8 v1, v1, 0x20
|
||
|
|
||
|
add-int/lit8 v3, v1, 0x1
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
move v5, v4
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v5, v3, :cond_0
|
||
|
|
||
|
iget-object v6, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 299
|
||
|
aget v6, v6, v5
|
||
|
|
||
|
int-to-long v6, v6
|
||
|
|
||
|
shr-long v8, v6, v2
|
||
|
|
||
|
const-wide/32 v10, 0x55555555
|
||
|
|
||
|
and-long/2addr v8, v10
|
||
|
|
||
|
and-long/2addr v6, v10
|
||
|
|
||
|
shl-long/2addr v6, v2
|
||
|
|
||
|
or-long/2addr v6, v8
|
||
|
|
||
|
const/4 v8, 0x2
|
||
|
|
||
|
shr-long v9, v6, v8
|
||
|
|
||
|
const-wide/32 v11, 0x33333333
|
||
|
|
||
|
and-long/2addr v9, v11
|
||
|
|
||
|
and-long/2addr v6, v11
|
||
|
|
||
|
shl-long/2addr v6, v8
|
||
|
|
||
|
or-long/2addr v6, v9
|
||
|
|
||
|
const/4 v8, 0x4
|
||
|
|
||
|
shr-long v9, v6, v8
|
||
|
|
||
|
const-wide/32 v11, 0xf0f0f0f
|
||
|
|
||
|
and-long/2addr v9, v11
|
||
|
|
||
|
and-long/2addr v6, v11
|
||
|
|
||
|
shl-long/2addr v6, v8
|
||
|
|
||
|
or-long/2addr v6, v9
|
||
|
|
||
|
const/16 v8, 0x8
|
||
|
|
||
|
shr-long v9, v6, v8
|
||
|
|
||
|
const-wide/32 v11, 0xff00ff
|
||
|
|
||
|
and-long/2addr v9, v11
|
||
|
|
||
|
and-long/2addr v6, v11
|
||
|
|
||
|
shl-long/2addr v6, v8
|
||
|
|
||
|
or-long/2addr v6, v9
|
||
|
|
||
|
const/16 v8, 0x10
|
||
|
|
||
|
shr-long v9, v6, v8
|
||
|
|
||
|
const-wide/32 v11, 0xffff
|
||
|
|
||
|
and-long/2addr v9, v11
|
||
|
|
||
|
and-long/2addr v6, v11
|
||
|
|
||
|
shl-long/2addr v6, v8
|
||
|
|
||
|
or-long/2addr v6, v9
|
||
|
|
||
|
sub-int v8, v1, v5
|
||
|
|
||
|
long-to-int v6, v6
|
||
|
|
||
|
.line 305
|
||
|
aput v6, v0, v8
|
||
|
|
||
|
add-int/lit8 v5, v5, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
iget v5, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
shl-int/lit8 v6, v3, 0x5
|
||
|
|
||
|
if-eq v5, v6, :cond_2
|
||
|
|
||
|
sub-int/2addr v6, v5
|
||
|
|
||
|
.line 310
|
||
|
aget v4, v0, v4
|
||
|
|
||
|
ushr-int/2addr v4, v6
|
||
|
|
||
|
:goto_1
|
||
|
if-ge v2, v3, :cond_1
|
||
|
|
||
|
.line 312
|
||
|
aget v5, v0, v2
|
||
|
|
||
|
rsub-int/lit8 v7, v6, 0x20
|
||
|
|
||
|
shl-int v7, v5, v7
|
||
|
|
||
|
or-int/2addr v4, v7
|
||
|
|
||
|
add-int/lit8 v7, v2, -0x1
|
||
|
|
||
|
.line 314
|
||
|
aput v4, v0, v7
|
||
|
|
||
|
ushr-int v4, v5, v6
|
||
|
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.line 317
|
||
|
:cond_1
|
||
|
aput v4, v0, v1
|
||
|
|
||
|
:cond_2
|
||
|
iput-object v0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public set(I)V
|
||
|
.locals 3
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 77
|
||
|
div-int/lit8 v0, p1, 0x20
|
||
|
|
||
|
aget v1, p0, v0
|
||
|
|
||
|
and-int/lit8 p1, p1, 0x1f
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
shl-int p1, v2, p1
|
||
|
|
||
|
or-int/2addr p1, v1
|
||
|
|
||
|
aput p1, p0, v0
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setBulk(II)V
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 144
|
||
|
div-int/lit8 p1, p1, 0x20
|
||
|
|
||
|
aput p2, p0, p1
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setRange(II)V
|
||
|
.locals 6
|
||
|
|
||
|
if-lt p2, p1, :cond_4
|
||
|
|
||
|
if-ltz p1, :cond_4
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-gt p2, v0, :cond_4
|
||
|
|
||
|
if-ne p2, p1, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
add-int/lit8 p2, p2, -0x1
|
||
|
|
||
|
.line 161
|
||
|
div-int/lit8 v0, p1, 0x20
|
||
|
|
||
|
.line 162
|
||
|
div-int/lit8 v1, p2, 0x20
|
||
|
|
||
|
move v2, v0
|
||
|
|
||
|
:goto_0
|
||
|
if-gt v2, v1, :cond_3
|
||
|
|
||
|
const/16 v3, 0x1f
|
||
|
|
||
|
if-le v2, v0, :cond_1
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
and-int/lit8 v4, p1, 0x1f
|
||
|
|
||
|
:goto_1
|
||
|
if-ge v2, v1, :cond_2
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
and-int/2addr v3, p2
|
||
|
|
||
|
:goto_2
|
||
|
const/4 v5, 0x2
|
||
|
|
||
|
shl-int v3, v5, v3
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
shl-int v4, v5, v4
|
||
|
|
||
|
sub-int/2addr v3, v4
|
||
|
|
||
|
iget-object v4, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 168
|
||
|
aget v5, v4, v2
|
||
|
|
||
|
or-int/2addr v3, v5
|
||
|
|
||
|
aput v3, v4, v2
|
||
|
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
return-void
|
||
|
|
||
|
.line 155
|
||
|
:cond_4
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/IllegalArgumentException;-><init>()V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|
||
|
|
||
|
.method public toBytes(I[BII)V
|
||
|
.locals 6
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
move v1, v0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v1, p4, :cond_2
|
||
|
|
||
|
move v2, v0
|
||
|
|
||
|
move v3, v2
|
||
|
|
||
|
:goto_1
|
||
|
const/16 v4, 0x8
|
||
|
|
||
|
if-ge v2, v4, :cond_1
|
||
|
|
||
|
.line 273
|
||
|
invoke-virtual {p0, p1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_0
|
||
|
|
||
|
rsub-int/lit8 v4, v2, 0x7
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
shl-int v4, v5, v4
|
||
|
|
||
|
or-int/2addr v3, v4
|
||
|
|
||
|
:cond_0
|
||
|
add-int/lit8 p1, p1, 0x1
|
||
|
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
add-int v2, p3, v1
|
||
|
|
||
|
int-to-byte v3, v3
|
||
|
|
||
|
.line 278
|
||
|
aput-byte v3, p2, v2
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public toString()Ljava/lang/String;
|
||
|
.locals 3
|
||
|
|
||
|
.line 342
|
||
|
new-instance v0, Ljava/lang/StringBuilder;
|
||
|
|
||
|
iget v1, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
div-int/lit8 v2, v1, 0x8
|
||
|
|
||
|
add-int/2addr v1, v2
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(I)V
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
iget v2, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-ge v1, v2, :cond_2
|
||
|
|
||
|
and-int/lit8 v2, v1, 0x7
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
const/16 v2, 0x20
|
||
|
|
||
|
.line 345
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
.line 347
|
||
|
:cond_0
|
||
|
invoke-virtual {p0, v1}, Lcom/google/zxing/common/BitArray;->get(I)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/16 v2, 0x58
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/16 v2, 0x2e
|
||
|
|
||
|
:goto_1
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.line 349
|
||
|
:cond_2
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public xor(Lcom/google/zxing/common/BitArray;)V
|
||
|
.locals 4
|
||
|
|
||
|
iget v0, p0, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
.line 251
|
||
|
iget v1, p1, Lcom/google/zxing/common/BitArray;->size:I
|
||
|
|
||
|
if-ne v0, v1, :cond_1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v1, p0, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
.line 254
|
||
|
array-length v2, v1
|
||
|
|
||
|
if-ge v0, v2, :cond_0
|
||
|
|
||
|
.line 257
|
||
|
aget v2, v1, v0
|
||
|
|
||
|
iget-object v3, p1, Lcom/google/zxing/common/BitArray;->bits:[I
|
||
|
|
||
|
aget v3, v3, v0
|
||
|
|
||
|
xor-int/2addr v2, v3
|
||
|
|
||
|
aput v2, v1, v0
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
|
||
|
.line 252
|
||
|
:cond_1
|
||
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string p1, "Sizes don\'t match"
|
||
|
|
||
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p0
|
||
|
.end method
|