160 lines
2.5 KiB
Smali
160 lines
2.5 KiB
Smali
.class public final Ly/t$a;
|
|
.super Ljava/lang/Object;
|
|
.source "SegmentedByteString.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Ly/t;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Ly/e;I)Lokio/ByteString;
|
|
.locals 7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
iget-wide v1, p1, Ly/e;->e:J
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
int-to-long v5, p2
|
|
|
|
invoke-static/range {v1 .. v6}, Le/k/a/b/e/p/g;->a(JJJ)V
|
|
|
|
iget-object v1, p1, Ly/e;->d:Ly/r;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
move-object v4, v1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v1, p2, :cond_2
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
iget v5, v4, Ly/r;->c:I
|
|
|
|
iget v6, v4, Ly/r;->b:I
|
|
|
|
if-eq v5, v6, :cond_0
|
|
|
|
sub-int/2addr v5, v6
|
|
|
|
add-int/2addr v1, v5
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
iget-object v4, v4, Ly/r;->f:Ly/r;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
const-string p2, "s.limit == s.pos"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
new-array v1, v3, [[B
|
|
|
|
mul-int/lit8 v3, v3, 0x2
|
|
|
|
new-array v3, v3, [I
|
|
|
|
iget-object p1, p1, Ly/e;->d:Ly/r;
|
|
|
|
move-object v4, p1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
:goto_1
|
|
if-ge v2, p2, :cond_4
|
|
|
|
if-eqz v4, :cond_3
|
|
|
|
iget-object v5, v4, Ly/r;->a:[B
|
|
|
|
aput-object v5, v1, p1
|
|
|
|
iget v5, v4, Ly/r;->c:I
|
|
|
|
iget v6, v4, Ly/r;->b:I
|
|
|
|
sub-int/2addr v5, v6
|
|
|
|
add-int/2addr v2, v5
|
|
|
|
invoke-static {v2, p2}, Ljava/lang/Math;->min(II)I
|
|
|
|
move-result v5
|
|
|
|
aput v5, v3, p1
|
|
|
|
array-length v5, v1
|
|
|
|
add-int/2addr v5, p1
|
|
|
|
iget v6, v4, Ly/r;->b:I
|
|
|
|
aput v6, v3, v5
|
|
|
|
const/4 v5, 0x1
|
|
|
|
iput-boolean v5, v4, Ly/r;->d:Z
|
|
|
|
add-int/2addr p1, v5
|
|
|
|
iget-object v4, v4, Ly/r;->f:Ly/r;
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-static {}, Lt/u/b/j;->throwNpe()V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
new-instance p1, Ly/t;
|
|
|
|
invoke-direct {p1, v1, v3, v0}, Ly/t;-><init>([[B[ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
return-object p1
|
|
|
|
:cond_5
|
|
const-string p1, "buffer"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|