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

161 lines
2.5 KiB
Smali
Raw Normal View History

2020-03-27 22:23:51 +00:00
.class public final Ld0/t$a;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "SegmentedByteString.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-03-27 22:23:51 +00:00
value = Ld0/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
2020-03-27 22:23:51 +00:00
.method public final a(Ld0/e;I)Lokio/ByteString;
2019-12-06 03:29:40 +00:00
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_5
2020-03-27 22:23:51 +00:00
iget-wide v1, p1, Ld0/e;->e:J
2019-12-06 03:29:40 +00:00
const-wide/16 v3, 0x0
int-to-long v5, p2
2020-03-27 22:23:51 +00:00
invoke-static/range {v1 .. v6}, Lz/a/a2/w;->a(JJJ)V
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget-object v1, p1, Ld0/e;->d:Ld0/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
2020-03-27 22:23:51 +00:00
iget v5, v4, Ld0/r;->c:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v6, v4, Ld0/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
2020-03-27 22:23:51 +00:00
iget-object v4, v4, Ld0/r;->f:Ld0/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
2020-03-27 22:23:51 +00:00
invoke-static {}, Ly/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
2020-03-27 22:23:51 +00:00
iget-object p1, p1, Ld0/e;->d:Ld0/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
2020-03-27 22:23:51 +00:00
iget-object v5, v4, Ld0/r;->a:[B
2019-12-06 03:29:40 +00:00
aput-object v5, v1, p1
2020-03-27 22:23:51 +00:00
iget v5, v4, Ld0/r;->c:I
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
iget v6, v4, Ld0/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
2020-03-27 22:23:51 +00:00
iget v6, v4, Ld0/r;->b:I
2019-12-06 03:29:40 +00:00
aput v6, v3, v5
const/4 v5, 0x1
2020-03-27 22:23:51 +00:00
iput-boolean v5, v4, Ld0/r;->d:Z
2019-12-06 03:29:40 +00:00
add-int/2addr p1, v5
2020-03-27 22:23:51 +00:00
iget-object v4, v4, Ld0/r;->f:Ld0/r;
2019-12-06 03:29:40 +00:00
goto :goto_1
:cond_3
2020-03-27 22:23:51 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v0
:cond_4
2020-03-27 22:23:51 +00:00
new-instance p1, Ld0/t;
2019-12-06 03:29:40 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {p1, v1, v3, v0}, Ld0/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"
2020-03-27 22:23:51 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
.end method