apkfuckery/com.discord/smali_classes2/y/t$a.smali

161 lines
2.5 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public final Ly/t$a;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "SegmentedByteString.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2019-12-21 01:41:59 +00:00
value = Ly/t;
2019-12-06 03:29:40 +00:00
.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
2019-12-21 01:41:59 +00:00
.method public final a(Ly/e;I)Lokio/ByteString;
2019-12-06 03:29:40 +00:00
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_5
2019-12-21 01:41:59 +00:00
iget-wide v1, p1, Ly/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v3, 0x0
int-to-long v5, p2
2020-01-07 02:40:43 +00:00
invoke-static/range {v1 .. v6}, Lu/a/a2/w;->a(JJJ)V
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget-object v1, p1, Ly/e;->d:Ly/r;
2019-12-06 03:29:40 +00:00
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
2019-12-21 01:41:59 +00:00
iget v5, v4, Ly/r;->c:I
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget v6, v4, Ly/r;->b:I
2019-12-06 03:29:40 +00:00
if-eq v5, v6, :cond_0
sub-int/2addr v5, v6
add-int/2addr v1, v5
add-int/lit8 v3, v3, 0x1
2019-12-21 01:41:59 +00:00
iget-object v4, v4, Ly/r;->f:Ly/r;
2019-12-06 03:29:40 +00:00
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
2019-12-21 01:41:59 +00:00
invoke-static {}, Lt/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_2
new-array v1, v3, [[B
mul-int/lit8 v3, v3, 0x2
new-array v3, v3, [I
2019-12-21 01:41:59 +00:00
iget-object p1, p1, Ly/e;->d:Ly/r;
2019-12-06 03:29:40 +00:00
move-object v4, p1
const/4 p1, 0x0
:goto_1
if-ge v2, p2, :cond_4
if-eqz v4, :cond_3
2019-12-21 01:41:59 +00:00
iget-object v5, v4, Ly/r;->a:[B
2019-12-06 03:29:40 +00:00
aput-object v5, v1, p1
2019-12-21 01:41:59 +00:00
iget v5, v4, Ly/r;->c:I
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
iget v6, v4, Ly/r;->b:I
2019-12-06 03:29:40 +00:00
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
2019-12-21 01:41:59 +00:00
iget v6, v4, Ly/r;->b:I
2019-12-06 03:29:40 +00:00
aput v6, v3, v5
const/4 v5, 0x1
2019-12-21 01:41:59 +00:00
iput-boolean v5, v4, Ly/r;->d:Z
2019-12-06 03:29:40 +00:00
add-int/2addr p1, v5
2019-12-21 01:41:59 +00:00
iget-object v4, v4, Ly/r;->f:Ly/r;
2019-12-06 03:29:40 +00:00
goto :goto_1
:cond_3
2019-12-21 01:41:59 +00:00
invoke-static {}, Lt/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_4
2019-12-21 01:41:59 +00:00
new-instance p1, Ly/t;
2019-12-06 03:29:40 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {p1, v1, v3, v0}, Ly/t;-><init>([[B[ILkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-12-06 03:29:40 +00:00
return-object p1
:cond_5
const-string p1, "buffer"
2019-12-21 01:41:59 +00:00
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method