1084 lines
20 KiB
Smali
1084 lines
20 KiB
Smali
.class public final Lokhttp3/internal/http2/Huffman;
|
|
.super Ljava/lang/Object;
|
|
.source "Huffman.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/internal/http2/Huffman$Node;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000H\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0002\u0008\u0002\n\u0002\u0010\u0015\n\u0002\u0008\u0002\n\u0002\u0010\u0012\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0006\u0008\u00c6\u0002\u0018\u00002\u00020\u0001:\u0001\u001eB\t\u0008\u0002\u00a2\u0006\u0004\u0008\u001c\u0010\u001dJ \u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0002H\u0002J\u0016\u0010\u000c\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\u00082\u0006\u0010\u000b\u001a\u00020\nJ\u000e\u0010\u000e\u001a\u00020\u00022\u0006\u0010\r\u001a\u00020\u0008J\u001e\u0010\u0012\u001a\u00020\u00062\u0006\u0010\t\u001a\u00020\u000f2\u0006\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u000b\u001a\u00020\nR\u0014\u0010\u0014\u001a\u00020\u00138\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0014\u0010\u0015R\u0014\u0010\u0017\u001a\u00020\u00168\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u0017\u0010\u0018R\u0014\u0010\u001a\u001a\u00020\u00198\u0002X\u0082\u0004\u00a2\u0006\u0006\n\u0004\u0008\u001a\u0010\u001b\u00a8\u0006\u001f"
|
|
}
|
|
d2 = {
|
|
"Lokhttp3/internal/http2/Huffman;",
|
|
"",
|
|
"",
|
|
"symbol",
|
|
"code",
|
|
"codeBitCount",
|
|
"Lkotlin/d1;",
|
|
"addCode",
|
|
"Lokio/ByteString;",
|
|
"source",
|
|
"Lzj/n;",
|
|
"sink",
|
|
"encode",
|
|
"bytes",
|
|
"encodedLength",
|
|
"Lzj/o;",
|
|
"",
|
|
"byteCount",
|
|
"decode",
|
|
"",
|
|
"CODES",
|
|
"[I",
|
|
"",
|
|
"CODE_BIT_COUNTS",
|
|
"[B",
|
|
"Lokhttp3/internal/http2/Huffman$Node;",
|
|
"root",
|
|
"Lokhttp3/internal/http2/Huffman$Node;",
|
|
"<init>",
|
|
"()V",
|
|
"Node",
|
|
"okhttp"
|
|
}
|
|
k = 0x1
|
|
mv = {
|
|
0x1,
|
|
0x4,
|
|
0x0
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final CODES:[I
|
|
|
|
.field private static final CODE_BIT_COUNTS:[B
|
|
|
|
.field public static final INSTANCE:Lokhttp3/internal/http2/Huffman;
|
|
|
|
.field private static final root:Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
new-instance v0, Lokhttp3/internal/http2/Huffman;
|
|
|
|
invoke-direct {v0}, Lokhttp3/internal/http2/Huffman;-><init>()V
|
|
|
|
sput-object v0, Lokhttp3/internal/http2/Huffman;->INSTANCE:Lokhttp3/internal/http2/Huffman;
|
|
|
|
const/16 v1, 0x100
|
|
|
|
new-array v2, v1, [I
|
|
|
|
.line 2
|
|
fill-array-data v2, :array_0
|
|
|
|
sput-object v2, Lokhttp3/internal/http2/Huffman;->CODES:[I
|
|
|
|
new-array v1, v1, [B
|
|
|
|
.line 3
|
|
fill-array-data v1, :array_1
|
|
|
|
sput-object v1, Lokhttp3/internal/http2/Huffman;->CODE_BIT_COUNTS:[B
|
|
|
|
.line 4
|
|
new-instance v2, Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
invoke-direct {v2}, Lokhttp3/internal/http2/Huffman$Node;-><init>()V
|
|
|
|
sput-object v2, Lokhttp3/internal/http2/Huffman;->root:Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
.line 5
|
|
array-length v1, v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_0
|
|
|
|
.line 6
|
|
sget-object v3, Lokhttp3/internal/http2/Huffman;->CODES:[I
|
|
|
|
aget v3, v3, v2
|
|
|
|
sget-object v4, Lokhttp3/internal/http2/Huffman;->CODE_BIT_COUNTS:[B
|
|
|
|
aget-byte v4, v4, v2
|
|
|
|
invoke-direct {v0, v2, v3, v4}, Lokhttp3/internal/http2/Huffman;->addCode(III)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
nop
|
|
|
|
:array_0
|
|
.array-data 4
|
|
0x1ff8
|
|
0x7fffd8
|
|
0xfffffe2
|
|
0xfffffe3
|
|
0xfffffe4
|
|
0xfffffe5
|
|
0xfffffe6
|
|
0xfffffe7
|
|
0xfffffe8
|
|
0xffffea
|
|
0x3ffffffc # 1.9999995f
|
|
0xfffffe9
|
|
0xfffffea
|
|
0x3ffffffd # 1.9999996f
|
|
0xfffffeb
|
|
0xfffffec
|
|
0xfffffed
|
|
0xfffffee
|
|
0xfffffef
|
|
0xffffff0
|
|
0xffffff1
|
|
0xffffff2
|
|
0x3ffffffe # 1.9999998f
|
|
0xffffff3
|
|
0xffffff4
|
|
0xffffff5
|
|
0xffffff6
|
|
0xffffff7
|
|
0xffffff8
|
|
0xffffff9
|
|
0xffffffa
|
|
0xffffffb
|
|
0x14
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ffdf
|
|
0xffffec
|
|
0xffffed
|
|
0x3fffd7
|
|
0x7fffe0
|
|
0xffffee
|
|
0x7fffe1
|
|
0x7fffe2
|
|
0x7fffe3
|
|
0x7fffe4
|
|
0x1fffdc
|
|
0x3fffd8
|
|
0x7fffe5
|
|
0x3fffd9
|
|
0x7fffe6
|
|
0x7fffe7
|
|
0xffffef
|
|
0x3fffda
|
|
0x1fffdd
|
|
0xfffe9
|
|
0x3fffdb
|
|
0x3fffdc
|
|
0x7fffe8
|
|
0x7fffe9
|
|
0x1fffde
|
|
0x7fffea
|
|
0x3fffdd
|
|
0x3fffde
|
|
0xfffff0
|
|
0x1fffdf
|
|
0x3fffdf
|
|
0x7fffeb
|
|
0x7fffec
|
|
0x1fffe0
|
|
0x1fffe1
|
|
0x3fffe0
|
|
0x1fffe2
|
|
0x7fffed
|
|
0x3fffe1
|
|
0x7fffee
|
|
0x7fffef
|
|
0xfffea
|
|
0x3fffe2
|
|
0x3fffe3
|
|
0x3fffe4
|
|
0x7ffff0
|
|
0x3fffe5
|
|
0x3fffe6
|
|
0x7ffff1
|
|
0x3ffffe0
|
|
0x3ffffe1
|
|
0xfffeb
|
|
0x7fff1
|
|
0x3fffe7
|
|
0x7ffff2
|
|
0x3fffe8
|
|
0x1ffffec
|
|
0x3ffffe2
|
|
0x3ffffe3
|
|
0x3ffffe4
|
|
0x7ffffde
|
|
0x7ffffdf
|
|
0x3ffffe5
|
|
0xfffff1
|
|
0x1ffffed
|
|
0x7fff2
|
|
0x1fffe3
|
|
0x3ffffe6
|
|
0x7ffffe0
|
|
0x7ffffe1
|
|
0x3ffffe7
|
|
0x7ffffe2
|
|
0xfffff2
|
|
0x1fffe4
|
|
0x1fffe5
|
|
0x3ffffe8
|
|
0x3ffffe9
|
|
0xffffffd
|
|
0x7ffffe3
|
|
0x7ffffe4
|
|
0x7ffffe5
|
|
0xfffec
|
|
0xfffff3
|
|
0xfffed
|
|
0x1fffe6
|
|
0x3fffe9
|
|
0x1fffe7
|
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0x16t
|
|
0x17t
|
|
0x16t
|
|
0x16t
|
|
0x17t
|
|
0x1at
|
|
0x1at
|
|
0x14t
|
|
0x13t
|
|
0x16t
|
|
0x17t
|
|
0x16t
|
|
0x19t
|
|
0x1at
|
|
0x1at
|
|
0x1at
|
|
0x1bt
|
|
0x1bt
|
|
0x1at
|
|
0x18t
|
|
0x19t
|
|
0x13t
|
|
0x15t
|
|
0x1at
|
|
0x1bt
|
|
0x1bt
|
|
0x1at
|
|
0x1bt
|
|
0x18t
|
|
0x15t
|
|
0x15t
|
|
0x1at
|
|
0x1at
|
|
0x1ct
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x14t
|
|
0x18t
|
|
0x14t
|
|
0x15t
|
|
0x16t
|
|
0x15t
|
|
0x15t
|
|
0x17t
|
|
0x16t
|
|
0x16t
|
|
0x19t
|
|
0x19t
|
|
0x18t
|
|
0x18t
|
|
0x1at
|
|
0x17t
|
|
0x1at
|
|
0x1bt
|
|
0x1at
|
|
0x1at
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x1ct
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x1bt
|
|
0x1at
|
|
.end array-data
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final addCode(III)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
invoke-direct {v0, p1, p3}, Lokhttp3/internal/http2/Huffman$Node;-><init>(II)V
|
|
|
|
.line 2
|
|
sget-object p1, Lokhttp3/internal/http2/Huffman;->root:Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
:goto_0
|
|
const/16 v1, 0x8
|
|
|
|
if-le p3, v1, :cond_1
|
|
|
|
add-int/lit8 p3, p3, -0x8
|
|
|
|
ushr-int v1, p2, p3
|
|
|
|
and-int/lit16 v1, v1, 0xff
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Huffman$Node;->getChildren()[Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
aget-object v2, p1, v1
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
.line 5
|
|
new-instance v2, Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
invoke-direct {v2}, Lokhttp3/internal/http2/Huffman$Node;-><init>()V
|
|
|
|
.line 6
|
|
aput-object v2, p1, v1
|
|
|
|
:cond_0
|
|
move-object p1, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
sub-int/2addr v1, p3
|
|
|
|
shl-int/2addr p2, v1
|
|
|
|
and-int/lit16 p2, p2, 0xff
|
|
|
|
const/4 p3, 0x1
|
|
|
|
shl-int/2addr p3, v1
|
|
|
|
.line 7
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Huffman$Node;->getChildren()[Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
add-int/2addr p3, p2
|
|
|
|
invoke-static {p1, v0, p2, p3}, Lkotlin/collections/n;->n2([Ljava/lang/Object;Ljava/lang/Object;II)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final decode(Lzj/o;JLzj/n;)V
|
|
.locals 8
|
|
.param p1 # Lzj/o;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Lzj/n;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p4, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
sget-object v0, Lokhttp3/internal/http2/Huffman;->root:Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
move-wide v3, v2
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
cmp-long v5, v3, p2
|
|
|
|
const/16 v6, 0xff
|
|
|
|
if-gez v5, :cond_2
|
|
|
|
.line 2
|
|
invoke-interface {p1}, Lzj/o;->readByte()B
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v5, v6}, Lokhttp3/internal/Util;->and(BI)I
|
|
|
|
move-result v5
|
|
|
|
shl-int/lit8 v1, v1, 0x8
|
|
|
|
or-int/2addr v1, v5
|
|
|
|
add-int/lit8 v2, v2, 0x8
|
|
|
|
:goto_1
|
|
const/16 v5, 0x8
|
|
|
|
if-lt v2, v5, :cond_1
|
|
|
|
add-int/lit8 v5, v2, -0x8
|
|
|
|
ushr-int v7, v1, v5
|
|
|
|
and-int/2addr v7, v6
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Huffman$Node;->getChildren()[Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
aget-object v0, v0, v7
|
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Huffman$Node;->getChildren()[Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
move-result-object v7
|
|
|
|
if-nez v7, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Huffman$Node;->getSymbol()I
|
|
|
|
move-result v5
|
|
|
|
invoke-interface {p4, v5}, Lzj/n;->writeByte(I)Lzj/n;
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Huffman$Node;->getTerminalBitCount()I
|
|
|
|
move-result v0
|
|
|
|
sub-int/2addr v2, v0
|
|
|
|
.line 7
|
|
sget-object v0, Lokhttp3/internal/http2/Huffman;->root:Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
move v2, v5
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const-wide/16 v5, 0x1
|
|
|
|
add-long/2addr v3, v5
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
:goto_2
|
|
if-lez v2, :cond_4
|
|
|
|
rsub-int/lit8 p1, v2, 0x8
|
|
|
|
shl-int p1, v1, p1
|
|
|
|
and-int/2addr p1, v6
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Lokhttp3/internal/http2/Huffman$Node;->getChildren()[Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-static {p2}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
aget-object p1, p2, p1
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/f0;->m(Ljava/lang/Object;)V
|
|
|
|
.line 9
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Huffman$Node;->getChildren()[Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_4
|
|
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Huffman$Node;->getTerminalBitCount()I
|
|
|
|
move-result p2
|
|
|
|
if-le p2, v2, :cond_3
|
|
|
|
goto :goto_3
|
|
|
|
.line 10
|
|
:cond_3
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Huffman$Node;->getSymbol()I
|
|
|
|
move-result p2
|
|
|
|
invoke-interface {p4, p2}, Lzj/n;->writeByte(I)Lzj/n;
|
|
|
|
.line 11
|
|
invoke-virtual {p1}, Lokhttp3/internal/http2/Huffman$Node;->getTerminalBitCount()I
|
|
|
|
move-result p1
|
|
|
|
sub-int/2addr v2, p1
|
|
|
|
.line 12
|
|
sget-object v0, Lokhttp3/internal/http2/Huffman;->root:Lokhttp3/internal/http2/Huffman$Node;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
:goto_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final encode(Lokio/ByteString;Lzj/n;)V
|
|
.locals 8
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lzj/n;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "source"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v0, "sink"
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
move-wide v3, v2
|
|
|
|
move v2, v1
|
|
|
|
:goto_0
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v1}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v5
|
|
|
|
const/16 v6, 0xff
|
|
|
|
invoke-static {v5, v6}, Lokhttp3/internal/Util;->and(BI)I
|
|
|
|
move-result v5
|
|
|
|
.line 3
|
|
sget-object v6, Lokhttp3/internal/http2/Huffman;->CODES:[I
|
|
|
|
aget v6, v6, v5
|
|
|
|
.line 4
|
|
sget-object v7, Lokhttp3/internal/http2/Huffman;->CODE_BIT_COUNTS:[B
|
|
|
|
aget-byte v5, v7, v5
|
|
|
|
shl-long/2addr v3, v5
|
|
|
|
int-to-long v6, v6
|
|
|
|
or-long/2addr v3, v6
|
|
|
|
add-int/2addr v2, v5
|
|
|
|
:goto_1
|
|
const/16 v5, 0x8
|
|
|
|
if-lt v2, v5, :cond_0
|
|
|
|
add-int/lit8 v2, v2, -0x8
|
|
|
|
shr-long v5, v3, v2
|
|
|
|
long-to-int v5, v5
|
|
|
|
.line 5
|
|
invoke-interface {p2, v5}, Lzj/n;->writeByte(I)Lzj/n;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
if-lez v2, :cond_2
|
|
|
|
rsub-int/lit8 p1, v2, 0x8
|
|
|
|
shl-long v0, v3, p1
|
|
|
|
const-wide/16 v3, 0xff
|
|
|
|
ushr-long v2, v3, v2
|
|
|
|
or-long/2addr v0, v2
|
|
|
|
long-to-int p1, v0
|
|
|
|
.line 6
|
|
invoke-interface {p2, p1}, Lzj/n;->writeByte(I)Lzj/n;
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final encodedLength(Lokio/ByteString;)I
|
|
.locals 6
|
|
.param p1 # Lokio/ByteString;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "bytes"
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Lokio/ByteString;->size()I
|
|
|
|
move-result v0
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p1, v3}, Lokio/ByteString;->getByte(I)B
|
|
|
|
move-result v4
|
|
|
|
const/16 v5, 0xff
|
|
|
|
invoke-static {v4, v5}, Lokhttp3/internal/Util;->and(BI)I
|
|
|
|
move-result v4
|
|
|
|
.line 3
|
|
sget-object v5, Lokhttp3/internal/http2/Huffman;->CODE_BIT_COUNTS:[B
|
|
|
|
aget-byte v4, v5, v4
|
|
|
|
int-to-long v4, v4
|
|
|
|
add-long/2addr v1, v4
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x7
|
|
|
|
int-to-long v3, p1
|
|
|
|
add-long/2addr v1, v3
|
|
|
|
const/4 p1, 0x3
|
|
|
|
shr-long v0, v1, p1
|
|
|
|
long-to-int p1, v0
|
|
|
|
return p1
|
|
.end method
|