243 lines
3.7 KiB
Smali
243 lines
3.7 KiB
Smali
.class public final Ln0/g0/k/c;
|
|
.super Ljava/lang/Object;
|
|
.source "WebSocketProtocol.kt"
|
|
|
|
|
|
# direct methods
|
|
.method public static final a(I)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const/16 v0, 0x3e8
|
|
|
|
if-lt p0, v0, :cond_5
|
|
|
|
const/16 v0, 0x1388
|
|
|
|
if-lt p0, v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/16 v0, 0x3ee
|
|
|
|
const/16 v1, 0x3ec
|
|
|
|
if-gt v1, p0, :cond_1
|
|
|
|
if-ge v0, p0, :cond_3
|
|
|
|
:cond_1
|
|
const/16 v0, 0xbb7
|
|
|
|
const/16 v1, 0x3f7
|
|
|
|
if-le v1, p0, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-lt v0, p0, :cond_4
|
|
|
|
:cond_3
|
|
const-string v0, "Code "
|
|
|
|
const-string v1, " is reserved and may not be used."
|
|
|
|
invoke-static {v0, p0, v1}, Lf/e/b/a/a;->i(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
:goto_0
|
|
const/4 p0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
:goto_1
|
|
const-string v0, "Code must be in range [1000,5000): "
|
|
|
|
invoke-static {v0, p0}, Lf/e/b/a/a;->h(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_2
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final b(Lo0/e$a;[B)V
|
|
.locals 9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p0, :cond_7
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
array-length v1, p1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:cond_0
|
|
iget-object v3, p0, Lo0/e$a;->h:[B
|
|
|
|
iget v4, p0, Lo0/e$a;->i:I
|
|
|
|
iget v5, p0, Lo0/e$a;->j:I
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
:goto_0
|
|
if-ge v4, v5, :cond_1
|
|
|
|
rem-int/2addr v2, v1
|
|
|
|
aget-byte v7, v3, v4
|
|
|
|
aget-byte v8, p1, v2
|
|
|
|
xor-int/2addr v7, v8
|
|
|
|
int-to-byte v7, v7
|
|
|
|
aput-byte v7, v3, v4
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
add-int/2addr v2, v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-wide v3, p0, Lo0/e$a;->g:J
|
|
|
|
iget-object v5, p0, Lo0/e$a;->d:Lo0/e;
|
|
|
|
if-eqz v5, :cond_5
|
|
|
|
iget-wide v7, v5, Lo0/e;->e:J
|
|
|
|
cmp-long v5, v3, v7
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v6, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v6, :cond_4
|
|
|
|
iget-wide v3, p0, Lo0/e$a;->g:J
|
|
|
|
const-wide/16 v5, -0x1
|
|
|
|
cmp-long v7, v3, v5
|
|
|
|
if-nez v7, :cond_3
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
iget v5, p0, Lo0/e$a;->j:I
|
|
|
|
iget v6, p0, Lo0/e$a;->i:I
|
|
|
|
sub-int/2addr v5, v6
|
|
|
|
int-to-long v5, v5
|
|
|
|
add-long/2addr v3, v5
|
|
|
|
:goto_2
|
|
invoke-virtual {p0, v3, v4}, Lo0/e$a;->a(J)I
|
|
|
|
move-result v3
|
|
|
|
const/4 v4, -0x1
|
|
|
|
if-ne v3, v4, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p1, "no more bytes"
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
|
|
:cond_5
|
|
invoke-static {}, Lj0/n/c/h;->throwNpe()V
|
|
|
|
throw v0
|
|
|
|
:cond_6
|
|
const-string p0, "key"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_7
|
|
const-string p0, "cursor"
|
|
|
|
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final c(I)V
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Ln0/g0/k/c;->a(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
if-nez v0, :cond_2
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
invoke-static {}, Lj0/n/c/h;->throwNpe()V
|
|
|
|
const/4 p0, 0x0
|
|
|
|
throw p0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|