194 lines
3.3 KiB
Smali
194 lines
3.3 KiB
Smali
.class public final Lokhttp3/internal/j/b;
|
|
.super Ljava/lang/Object;
|
|
.source "WebSocketProtocol.java"
|
|
|
|
|
|
# direct methods
|
|
.method static a(Lokio/c$a;[B)V
|
|
.locals 7
|
|
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Lokio/c$a;->data:[B
|
|
|
|
iget v3, p0, Lokio/c$a;->start:I
|
|
|
|
iget v4, p0, Lokio/c$a;->end:I
|
|
|
|
:goto_0
|
|
if-ge v3, v4, :cond_1
|
|
|
|
rem-int/2addr v1, v0
|
|
|
|
aget-byte v5, v2, v3
|
|
|
|
aget-byte v6, p1, v1
|
|
|
|
xor-int/2addr v5, v6
|
|
|
|
int-to-byte v5, v5
|
|
|
|
aput-byte v5, v2, v3
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
iget-wide v2, p0, Lokio/c$a;->offset:J
|
|
|
|
iget-object v4, p0, Lokio/c$a;->bvV:Lokio/c;
|
|
|
|
iget-wide v4, v4, Lokio/c;->size:J
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
iget-wide v2, p0, Lokio/c$a;->offset:J
|
|
|
|
const-wide/16 v4, -0x1
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/c$a;->aH(J)I
|
|
|
|
move-result v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-wide v2, p0, Lokio/c$a;->offset:J
|
|
|
|
iget v4, p0, Lokio/c$a;->end:I
|
|
|
|
iget v5, p0, Lokio/c$a;->start:I
|
|
|
|
sub-int/2addr v4, v5
|
|
|
|
int-to-long v4, v4
|
|
|
|
add-long/2addr v2, v4
|
|
|
|
invoke-virtual {p0, v2, v3}, Lokio/c$a;->aH(J)I
|
|
|
|
move-result v2
|
|
|
|
:goto_1
|
|
const/4 v3, -0x1
|
|
|
|
if-ne v2, v3, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {p0}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
goto :goto_3
|
|
|
|
:goto_2
|
|
throw p0
|
|
|
|
:goto_3
|
|
goto :goto_2
|
|
.end method
|
|
|
|
.method static dw(I)Ljava/lang/String;
|
|
.locals 2
|
|
|
|
const/16 v0, 0x3e8
|
|
|
|
if-lt p0, v0, :cond_4
|
|
|
|
const/16 v0, 0x1388
|
|
|
|
if-lt p0, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v0, 0x3ec
|
|
|
|
if-lt p0, v0, :cond_1
|
|
|
|
const/16 v0, 0x3ee
|
|
|
|
if-le p0, v0, :cond_2
|
|
|
|
:cond_1
|
|
const/16 v0, 0x3f4
|
|
|
|
if-lt p0, v0, :cond_3
|
|
|
|
const/16 v0, 0xbb7
|
|
|
|
if-gt p0, v0, :cond_3
|
|
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "Code "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
const-string p0, " is reserved and may not be used."
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
const/4 p0, 0x0
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
:goto_0
|
|
invoke-static {p0}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "Code must be in range [1000,5000): "
|
|
|
|
invoke-virtual {v0, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method static dx(I)V
|
|
.locals 1
|
|
|
|
invoke-static {p0}, Lokhttp3/internal/j/b;->dw(I)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|