apkfuckery/com.discord/smali_classes2/c0/r.smali

387 lines
6.1 KiB
Smali
Raw Normal View History

2020-05-11 18:18:42 +00:00
.class public final Lc0/r;
2020-04-17 19:35:49 +00:00
.super Ljava/lang/Object;
2020-05-11 18:18:42 +00:00
.source "Segment.kt"
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
# instance fields
.field public final a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.field public b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.field public c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.field public d:Z
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.field public e:Z
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.field public f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.field public g:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
# direct methods
2020-04-17 19:35:49 +00:00
.method public constructor <init>()V
2020-05-11 18:18:42 +00:00
.locals 1
2020-04-17 19:35:49 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-05-11 18:18:42 +00:00
const/16 v0, 0x2000
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
new-array v0, v0, [B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object v0, p0, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 v0, 0x1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-boolean v0, p0, Lc0/r;->e:Z
2020-04-17 19:35:49 +00:00
const/4 v0, 0x0
2020-05-11 18:18:42 +00:00
iput-boolean v0, p0, Lc0/r;->d:Z
2020-04-17 19:35:49 +00:00
return-void
2020-05-11 18:18:42 +00:00
.end method
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.method public constructor <init>([BIIZZ)V
.locals 0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
if-eqz p1, :cond_0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object p1, p0, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput p2, p0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput p3, p0, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-boolean p4, p0, Lc0/r;->d:Z
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-boolean p5, p0, Lc0/r;->e:Z
2020-04-17 19:35:49 +00:00
return-void
:cond_0
2020-05-11 18:18:42 +00:00
const-string p1, "data"
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
const/4 p1, 0x0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
throw p1
2020-04-17 19:35:49 +00:00
.end method
2020-05-11 18:18:42 +00:00
# virtual methods
.method public final a()Lc0/r;
.locals 4
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v0, p0, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 v1, 0x0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-eq v0, p0, :cond_0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
goto :goto_0
2020-04-17 19:35:49 +00:00
:cond_0
2020-05-11 18:18:42 +00:00
move-object v0, v1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
:goto_0
iget-object v2, p0, Lc0/r;->g:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-eqz v2, :cond_2
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v3, p0, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object v3, v2, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v3, p0, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-eqz v3, :cond_1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object v2, v3, Lc0/r;->g:Lc0/r;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iput-object v1, p0, Lc0/r;->f:Lc0/r;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iput-object v1, p0, Lc0/r;->g:Lc0/r;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
return-object v0
2020-05-07 23:11:04 +00:00
:cond_1
2020-05-11 18:18:42 +00:00
invoke-static {}, Lx/u/b/j;->throwNpe()V
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
throw v1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
:cond_2
invoke-static {}, Lx/u/b/j;->throwNpe()V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
throw v1
2020-05-07 23:11:04 +00:00
.end method
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
.method public final a(I)Lc0/r;
.locals 5
2020-04-17 19:35:49 +00:00
2020-05-07 23:11:04 +00:00
const/4 v0, 0x0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-lez p1, :cond_0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iget v1, p0, Lc0/r;->c:I
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iget v2, p0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
sub-int/2addr v1, v2
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
if-gt p1, v1, :cond_0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
const/4 v1, 0x1
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
goto :goto_0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
:cond_0
const/4 v1, 0x0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
:goto_0
if-eqz v1, :cond_3
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/16 v1, 0x400
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-lt p1, v1, :cond_1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-virtual {p0}, Lc0/r;->b()Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
move-result-object v0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
goto :goto_1
2020-04-17 19:35:49 +00:00
2020-05-07 23:11:04 +00:00
:cond_1
2020-05-11 18:18:42 +00:00
invoke-static {}, Lc0/s;->a()Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v2, p0, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v3, p0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v4, v1, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-static {v2, v3, v4, v0, p1}, Le/o/a/j/a;->b([BI[BII)V
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
move-object v0, v1
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
:goto_1
iget v1, v0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
add-int/2addr v1, p1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput v1, v0, Lc0/r;->c:I
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iget v1, p0, Lc0/r;->b:I
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
add-int/2addr v1, p1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput v1, p0, Lc0/r;->b:I
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iget-object p1, p0, Lc0/r;->g:Lc0/r;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
if-eqz p1, :cond_2
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
invoke-virtual {p1, v0}, Lc0/r;->a(Lc0/r;)Lc0/r;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
return-object v0
2020-04-17 19:35:49 +00:00
:cond_2
2020-05-11 18:18:42 +00:00
invoke-static {}, Lx/u/b/j;->throwNpe()V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 p1, 0x0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
throw p1
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
const-string v0, "byteCount out of range"
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
move-result-object v0
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-04-17 19:35:49 +00:00
throw p1
.end method
2020-05-11 18:18:42 +00:00
.method public final a(Lc0/r;)Lc0/r;
.locals 2
2020-04-17 19:35:49 +00:00
const/4 v0, 0x0
if-eqz p1, :cond_1
2020-05-11 18:18:42 +00:00
iput-object p0, p1, Lc0/r;->g:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v1, p0, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object v1, p1, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v1, p0, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-eqz v1, :cond_0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object p1, v1, Lc0/r;->g:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-object p1, p0, Lc0/r;->f:Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
return-object p1
2020-04-17 19:35:49 +00:00
:cond_0
2020-05-11 18:18:42 +00:00
invoke-static {}, Lx/u/b/j;->throwNpe()V
2020-04-17 19:35:49 +00:00
throw v0
:cond_1
2020-05-11 18:18:42 +00:00
const-string p1, "segment"
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
2020-04-17 19:35:49 +00:00
throw v0
.end method
2020-05-11 18:18:42 +00:00
.method public final a(Lc0/r;I)V
.locals 4
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-eqz p1, :cond_4
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-boolean v0, p1, Lc0/r;->e:Z
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-eqz v0, :cond_3
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v0, p1, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
add-int v1, v0, p2
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/16 v2, 0x2000
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-le v1, v2, :cond_2
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-boolean v1, p1, Lc0/r;->d:Z
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-nez v1, :cond_1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
add-int v1, v0, p2
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v3, p1, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
sub-int/2addr v1, v3
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
if-gt v1, v2, :cond_0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v1, p1, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
sub-int/2addr v0, v3
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 v2, 0x0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-static {v1, v3, v1, v2, v0}, Le/o/a/j/a;->b([BI[BII)V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v0, p1, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v1, p1, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
sub-int/2addr v0, v1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput v0, p1, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput v2, p1, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
goto :goto_0
2020-04-17 19:35:49 +00:00
:cond_0
2020-05-11 18:18:42 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
throw p1
2020-04-17 19:35:49 +00:00
:cond_1
2020-05-11 18:18:42 +00:00
new-instance p1, Ljava/lang/IllegalArgumentException;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
throw p1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
:cond_2
:goto_0
iget-object v0, p0, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v1, p0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v2, p1, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v3, p1, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-static {v0, v1, v2, v3, p2}, Le/o/a/j/a;->b([BI[BII)V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v0, p1, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
add-int/2addr v0, p2
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iput v0, p1, Lc0/r;->c:I
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
iget p1, p0, Lc0/r;->b:I
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
add-int/2addr p1, p2
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput p1, p0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-07 23:11:04 +00:00
return-void
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
:cond_3
new-instance p1, Ljava/lang/IllegalStateException;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const-string p2, "only owner can write"
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
move-result-object p2
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-05-07 23:11:04 +00:00
2020-05-11 18:18:42 +00:00
throw p1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
:cond_4
const-string p1, "sink"
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-static {p1}, Lx/u/b/j;->a(Ljava/lang/String;)V
2020-04-17 19:35:49 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-05-11 18:18:42 +00:00
.method public final b()Lc0/r;
.locals 7
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 v0, 0x1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iput-boolean v0, p0, Lc0/r;->d:Z
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
new-instance v0, Lc0/r;
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget-object v2, p0, Lc0/r;->a:[B
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v3, p0, Lc0/r;->b:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
iget v4, p0, Lc0/r;->c:I
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 v5, 0x1
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
const/4 v6, 0x0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
move-object v1, v0
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
invoke-direct/range {v1 .. v6}, Lc0/r;-><init>([BIIZZ)V
2020-04-17 19:35:49 +00:00
2020-05-11 18:18:42 +00:00
return-object v0
2020-04-17 19:35:49 +00:00
.end method