apkfuckery/com.discord/smali_classes2/d0/u.smali

811 lines
12 KiB
Smali
Raw Normal View History

2020-11-16 22:05:17 +00:00
.class public final Ld0/u;
.super Lokio/ByteString;
.source "SegmentedByteString.kt"
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
# instance fields
.field public final transient h:[[B
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
.field public final transient i:[I
2020-11-12 02:11:44 +00:00
# direct methods
2020-11-16 22:05:17 +00:00
.method public constructor <init>([[B[I)V
2020-11-12 02:11:44 +00:00
.locals 1
2020-11-16 22:05:17 +00:00
const-string v0, "segments"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "directory"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Lokio/ByteString;->f:Lokio/ByteString;
invoke-virtual {v0}, Lokio/ByteString;->i()[B
2020-11-13 19:18:44 +00:00
2020-11-16 22:05:17 +00:00
move-result-object v0
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
invoke-direct {p0, v0}, Lokio/ByteString;-><init>([B)V
iput-object p1, p0, Ld0/u;->h:[[B
iput-object p2, p0, Ld0/u;->i:[I
2020-11-12 02:11:44 +00:00
return-void
.end method
2020-11-16 22:05:17 +00:00
.method private final writeReplace()Ljava/lang/Object;
.locals 1
invoke-virtual {p0}, Ld0/u;->w()Lokio/ByteString;
2020-11-12 02:11:44 +00:00
2020-11-16 22:05:17 +00:00
move-result-object v0
2020-11-13 01:15:36 +00:00
2020-11-16 22:05:17 +00:00
return-object v0
2020-11-12 02:11:44 +00:00
.end method
# virtual methods
2020-11-16 22:05:17 +00:00
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
const/4 v1, 0x0
if-ne p1, p0, :cond_0
goto :goto_0
:cond_0
instance-of v2, p1, Lokio/ByteString;
if-eqz v2, :cond_1
check-cast p1, Lokio/ByteString;
invoke-virtual {p1}, Lokio/ByteString;->j()I
move-result v2
invoke-virtual {p0}, Ld0/u;->j()I
move-result v3
if-ne v2, v3, :cond_1
invoke-virtual {p0}, Ld0/u;->j()I
move-result v2
invoke-virtual {p0, v1, p1, v1, v2}, Ld0/u;->n(ILokio/ByteString;II)Z
move-result p1
if-eqz p1, :cond_1
goto :goto_0
:cond_1
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public f()Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Ld0/u;->w()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->f()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public g(Ljava/lang/String;)Lokio/ByteString;
.locals 6
const-string v0, "algorithm"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p1
iget-object v0, p0, Ld0/u;->h:[[B
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v3, p0, Ld0/u;->i:[I
add-int v4, v0, v1
aget v4, v3, v4
aget v3, v3, v1
iget-object v5, p0, Ld0/u;->h:[[B
aget-object v5, v5, v1
sub-int v2, v3, v2
invoke-virtual {p1, v5, v4, v2}, Ljava/security/MessageDigest;->update([BII)V
add-int/lit8 v1, v1, 0x1
move v2, v3
goto :goto_0
:cond_0
new-instance v0, Lokio/ByteString;
invoke-virtual {p1}, Ljava/security/MessageDigest;->digest()[B
move-result-object p1
const-string v1, "digest.digest()"
invoke-static {p1, v1}, Ly/m/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v0, p1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method
.method public hashCode()I
.locals 8
iget v0, p0, Lokio/ByteString;->d:I
if-eqz v0, :cond_0
goto :goto_2
:cond_0
iget-object v0, p0, Ld0/u;->h:[[B
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x1
const/4 v3, 0x0
:goto_0
if-ge v1, v0, :cond_2
iget-object v4, p0, Ld0/u;->i:[I
add-int v5, v0, v1
aget v5, v4, v5
aget v4, v4, v1
iget-object v6, p0, Ld0/u;->h:[[B
aget-object v6, v6, v1
sub-int v3, v4, v3
add-int/2addr v3, v5
:goto_1
if-ge v5, v3, :cond_1
mul-int/lit8 v2, v2, 0x1f
aget-byte v7, v6, v5
add-int/2addr v2, v7
add-int/lit8 v5, v5, 0x1
goto :goto_1
:cond_1
add-int/lit8 v1, v1, 0x1
move v3, v4
goto :goto_0
:cond_2
iput v2, p0, Lokio/ByteString;->d:I
move v0, v2
:goto_2
return v0
.end method
.method public j()I
.locals 2
iget-object v0, p0, Ld0/u;->i:[I
iget-object v1, p0, Ld0/u;->h:[[B
array-length v1, v1
add-int/lit8 v1, v1, -0x1
aget v0, v0, v1
return v0
.end method
.method public k()Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Ld0/u;->w()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->k()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public l()[B
2020-11-13 01:15:36 +00:00
.locals 1
2020-11-16 22:05:17 +00:00
invoke-virtual {p0}, Ld0/u;->u()[B
move-result-object v0
return-object v0
.end method
.method public m(I)B
.locals 7
iget-object v0, p0, Ld0/u;->i:[I
iget-object v1, p0, Ld0/u;->h:[[B
array-length v1, v1
add-int/lit8 v1, v1, -0x1
aget v0, v0, v1
int-to-long v1, v0
int-to-long v3, p1
const-wide/16 v5, 0x1
invoke-static/range {v1 .. v6}, Lz/a/g0;->m(JJJ)V
invoke-static {p0, p1}, Lz/a/g0;->E(Ld0/u;I)I
move-result v0
if-nez v0, :cond_0
const/4 v1, 0x0
goto :goto_0
:cond_0
iget-object v1, p0, Ld0/u;->i:[I
add-int/lit8 v2, v0, -0x1
aget v1, v1, v2
:goto_0
iget-object v2, p0, Ld0/u;->i:[I
iget-object v3, p0, Ld0/u;->h:[[B
array-length v4, v3
add-int/2addr v4, v0
aget v2, v2, v4
aget-object v0, v3, v0
sub-int/2addr p1, v1
add-int/2addr p1, v2
aget-byte p1, v0, p1
return p1
.end method
.method public n(ILokio/ByteString;II)Z
.locals 6
const-string v0, "other"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
if-ltz p1, :cond_4
invoke-virtual {p0}, Ld0/u;->j()I
move-result v1
sub-int/2addr v1, p4
if-le p1, v1, :cond_0
goto :goto_2
:cond_0
add-int/2addr p4, p1
invoke-static {p0, p1}, Lz/a/g0;->E(Ld0/u;I)I
move-result v1
:goto_0
if-ge p1, p4, :cond_3
if-nez v1, :cond_1
const/4 v2, 0x0
goto :goto_1
:cond_1
iget-object v2, p0, Ld0/u;->i:[I
add-int/lit8 v3, v1, -0x1
aget v2, v2, v3
:goto_1
iget-object v3, p0, Ld0/u;->i:[I
aget v4, v3, v1
sub-int/2addr v4, v2
iget-object v5, p0, Ld0/u;->h:[[B
array-length v5, v5
add-int/2addr v5, v1
aget v3, v3, v5
add-int/2addr v4, v2
invoke-static {p4, v4}, Ljava/lang/Math;->min(II)I
move-result v4
sub-int/2addr v4, p1
sub-int v2, p1, v2
add-int/2addr v2, v3
iget-object v3, p0, Ld0/u;->h:[[B
aget-object v3, v3, v1
2020-11-13 01:15:36 +00:00
2020-11-16 22:05:17 +00:00
invoke-virtual {p2, p3, v3, v2, v4}, Lokio/ByteString;->o(I[BII)Z
2020-11-13 01:15:36 +00:00
2020-11-16 22:05:17 +00:00
move-result v2
2020-11-13 01:15:36 +00:00
2020-11-16 22:05:17 +00:00
if-nez v2, :cond_2
2020-11-13 01:15:36 +00:00
2020-11-16 22:05:17 +00:00
goto :goto_2
:cond_2
add-int/2addr p3, v4
add-int/2addr p1, v4
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_3
const/4 v0, 0x1
:cond_4
:goto_2
return v0
.end method
.method public o(I[BII)Z
.locals 6
const-string v0, "other"
invoke-static {p2, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
if-ltz p1, :cond_4
invoke-virtual {p0}, Ld0/u;->j()I
move-result v1
sub-int/2addr v1, p4
if-gt p1, v1, :cond_4
if-ltz p3, :cond_4
array-length v1, p2
sub-int/2addr v1, p4
if-le p3, v1, :cond_0
goto :goto_2
:cond_0
add-int/2addr p4, p1
invoke-static {p0, p1}, Lz/a/g0;->E(Ld0/u;I)I
move-result v1
:goto_0
if-ge p1, p4, :cond_3
if-nez v1, :cond_1
const/4 v2, 0x0
goto :goto_1
:cond_1
iget-object v2, p0, Ld0/u;->i:[I
add-int/lit8 v3, v1, -0x1
aget v2, v2, v3
:goto_1
iget-object v3, p0, Ld0/u;->i:[I
aget v4, v3, v1
sub-int/2addr v4, v2
iget-object v5, p0, Ld0/u;->h:[[B
array-length v5, v5
add-int/2addr v5, v1
aget v3, v3, v5
add-int/2addr v4, v2
invoke-static {p4, v4}, Ljava/lang/Math;->min(II)I
move-result v4
sub-int/2addr v4, p1
sub-int v2, p1, v2
add-int/2addr v2, v3
iget-object v3, p0, Ld0/u;->h:[[B
aget-object v3, v3, v1
invoke-static {v3, v2, p2, p3, v4}, Lz/a/g0;->d([BI[BII)Z
move-result v2
if-nez v2, :cond_2
goto :goto_2
:cond_2
add-int/2addr p3, v4
add-int/2addr p1, v4
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_3
const/4 v0, 0x1
:cond_4
:goto_2
return v0
.end method
.method public p()Lokio/ByteString;
.locals 1
invoke-virtual {p0}, Ld0/u;->w()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->p()Lokio/ByteString;
move-result-object v0
return-object v0
.end method
.method public r(Ljava/io/OutputStream;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-string v0, "out"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Ld0/u;->h:[[B
array-length v0, v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v3, p0, Ld0/u;->i:[I
add-int v4, v0, v1
aget v4, v3, v4
aget v3, v3, v1
iget-object v5, p0, Ld0/u;->h:[[B
aget-object v5, v5, v1
sub-int v2, v3, v2
invoke-virtual {p1, v5, v4, v2}, Ljava/io/OutputStream;->write([BII)V
add-int/lit8 v1, v1, 0x1
move v2, v3
goto :goto_0
:cond_0
2020-11-12 02:11:44 +00:00
return-void
.end method
2020-11-16 22:05:17 +00:00
.method public s(Ld0/e;II)V
.locals 10
const-string v0, "buffer"
invoke-static {p1, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
add-int/2addr p3, p2
invoke-static {p0, p2}, Lz/a/g0;->E(Ld0/u;I)I
move-result v0
:goto_0
if-ge p2, p3, :cond_3
if-nez v0, :cond_0
const/4 v1, 0x0
goto :goto_1
:cond_0
iget-object v1, p0, Ld0/u;->i:[I
add-int/lit8 v2, v0, -0x1
aget v1, v1, v2
:goto_1
iget-object v2, p0, Ld0/u;->i:[I
aget v3, v2, v0
sub-int/2addr v3, v1
iget-object v4, p0, Ld0/u;->h:[[B
array-length v4, v4
add-int/2addr v4, v0
aget v2, v2, v4
add-int/2addr v3, v1
invoke-static {p3, v3}, Ljava/lang/Math;->min(II)I
move-result v3
sub-int/2addr v3, p2
sub-int v1, p2, v1
add-int v6, v1, v2
iget-object v1, p0, Ld0/u;->h:[[B
aget-object v5, v1, v0
new-instance v1, Ld0/s;
add-int v7, v6, v3
const/4 v8, 0x1
const/4 v9, 0x0
move-object v4, v1
invoke-direct/range {v4 .. v9}, Ld0/s;-><init>([BIIZZ)V
iget-object v2, p1, Ld0/e;->d:Ld0/s;
if-nez v2, :cond_1
iput-object v1, v1, Ld0/s;->g:Ld0/s;
iput-object v1, v1, Ld0/s;->f:Ld0/s;
iput-object v1, p1, Ld0/e;->d:Ld0/s;
goto :goto_2
:cond_1
iget-object v2, v2, Ld0/s;->g:Ld0/s;
if-eqz v2, :cond_2
invoke-virtual {v2, v1}, Ld0/s;->b(Ld0/s;)Ld0/s;
:goto_2
add-int/2addr p2, v3
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_2
invoke-static {}, Ly/m/c/j;->throwNpe()V
const/4 p1, 0x0
throw p1
:cond_3
iget-wide p2, p1, Ld0/e;->e:J
invoke-virtual {p0}, Ld0/u;->j()I
move-result v0
int-to-long v0, v0
add-long/2addr p2, v0
iput-wide p2, p1, Ld0/e;->e:J
return-void
.end method
.method public toString()Ljava/lang/String;
.locals 1
invoke-virtual {p0}, Ld0/u;->w()Lokio/ByteString;
move-result-object v0
invoke-virtual {v0}, Lokio/ByteString;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public u()[B
.locals 9
invoke-virtual {p0}, Ld0/u;->j()I
move-result v0
new-array v0, v0, [B
iget-object v1, p0, Ld0/u;->h:[[B
array-length v1, v1
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
:goto_0
if-ge v2, v1, :cond_0
iget-object v5, p0, Ld0/u;->i:[I
add-int v6, v1, v2
aget v6, v5, v6
aget v5, v5, v2
iget-object v7, p0, Ld0/u;->h:[[B
aget-object v7, v7, v2
sub-int v3, v5, v3
add-int v8, v6, v3
invoke-static {v7, v0, v4, v6, v8}, Ly/h/f;->copyInto([B[BIII)[B
add-int/2addr v4, v3
add-int/lit8 v2, v2, 0x1
move v3, v5
goto :goto_0
:cond_0
return-object v0
.end method
.method public final w()Lokio/ByteString;
.locals 2
new-instance v0, Lokio/ByteString;
invoke-virtual {p0}, Ld0/u;->u()[B
move-result-object v1
invoke-direct {v0, v1}, Lokio/ByteString;-><init>([B)V
return-object v0
.end method