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

161 lines
2.5 KiB
Smali
Raw Normal View History

2020-05-11 19:22:21 +00:00
.class public final Ld0/t$a;
.super Ljava/lang/Object;
.source "SegmentedByteString.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Ld0/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(Ld0/e;I)Lokio/ByteString;
.locals 7
const/4 v0, 0x0
if-eqz p1, :cond_5
iget-wide v1, p1, Ld0/e;->e:J
const-wide/16 v3, 0x0
int-to-long v5, p2
invoke-static/range {v1 .. v6}, Lf/o/a/j/a;->a(JJJ)V
iget-object v1, p1, Ld0/e;->d:Ld0/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, Ld0/r;->c:I
iget v6, v4, Ld0/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, Ld0/r;->f:Ld0/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 {}, Ly/v/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, Ld0/e;->d:Ld0/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, Ld0/r;->a:[B
aput-object v5, v1, p1
iget v5, v4, Ld0/r;->c:I
iget v6, v4, Ld0/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, Ld0/r;->b:I
aput v6, v3, v5
const/4 v5, 0x1
iput-boolean v5, v4, Ld0/r;->d:Z
add-int/2addr p1, v5
iget-object v4, v4, Ld0/r;->f:Ld0/r;
goto :goto_1
:cond_3
invoke-static {}, Ly/v/b/j;->throwNpe()V
throw v0
:cond_4
new-instance p1, Ld0/t;
invoke-direct {p1, v1, v3, v0}, Ld0/t;-><init>([[B[ILkotlin/jvm/internal/DefaultConstructorMarker;)V
return-object p1
:cond_5
const-string p1, "buffer"
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
throw v0
.end method