apkfuckery/com.discord/smali_classes2/okio/c$a.smali

354 lines
5.9 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lokio/c$a;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "Buffer.java"
2019-02-04 20:08:30 +00:00
# interfaces
.implements Ljava/io/Closeable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokio/c;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
2019-03-26 19:13:28 +00:00
.field public buT:Z
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
.field private buU:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
.field public buq:Lokio/c;
2019-02-04 20:08:30 +00:00
.field public data:[B
.field public end:I
.field public offset:J
.field public start:I
# direct methods
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-wide/16 v0, -0x1
iput-wide v0, p0, Lokio/c$a;->offset:J
const/4 v0, -0x1
iput v0, p0, Lokio/c$a;->start:I
iput v0, p0, Lokio/c$a;->end:I
return-void
.end method
# virtual methods
2019-02-27 21:13:14 +00:00
.method public final az(J)I
2019-02-04 20:08:30 +00:00
.locals 11
const-wide/16 v0, -0x1
cmp-long v2, p1, v0
if-ltz v2, :cond_8
2019-03-26 19:13:28 +00:00
iget-object v2, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v2, v2, Lokio/c;->size:J
cmp-long v4, p1, v2
if-gtz v4, :cond_8
cmp-long v2, p1, v0
if-eqz v2, :cond_7
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v0, v0, Lokio/c;->size:J
cmp-long v2, p1, v0
if-nez v2, :cond_0
goto/16 :goto_3
:cond_0
const-wide/16 v0, 0x0
2019-03-26 19:13:28 +00:00
iget-object v2, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v2, v2, Lokio/c;->size:J
2019-03-26 19:13:28 +00:00
iget-object v4, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v4, v4, Lokio/c;->buR:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v5, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v5, v5, Lokio/c;->buR:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v6, p0, Lokio/c$a;->buU:Lokio/m;
2019-02-04 20:08:30 +00:00
if-eqz v6, :cond_2
2019-02-04 20:29:01 +00:00
iget-wide v7, p0, Lokio/c$a;->offset:J
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
iget v9, p0, Lokio/c$a;->start:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v6, v6, Lokio/m;->pos:I
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-int/2addr v9, v6
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
int-to-long v9, v9
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
sub-long/2addr v7, v9
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
cmp-long v6, v7, p1
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
if-lez v6, :cond_1
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v5, p0, Lokio/c$a;->buU:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-wide v2, v7
2019-02-04 20:08:30 +00:00
goto :goto_0
:cond_1
2019-03-26 19:13:28 +00:00
iget-object v4, p0, Lokio/c$a;->buU:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-02-04 20:29:01 +00:00
move-wide v0, v7
2019-02-04 20:08:30 +00:00
:cond_2
:goto_0
sub-long v6, v2, p1
sub-long v8, p1, v0
cmp-long v10, v6, v8
if-lez v10, :cond_3
:goto_1
2019-02-27 21:13:14 +00:00
iget v2, v4, Lokio/m;->limit:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v3, v4, Lokio/m;->pos:I
2019-02-04 20:08:30 +00:00
sub-int/2addr v2, v3
int-to-long v2, v2
add-long/2addr v2, v0
cmp-long v5, p1, v2
if-ltz v5, :cond_4
2019-02-27 21:13:14 +00:00
iget v2, v4, Lokio/m;->limit:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v3, v4, Lokio/m;->pos:I
2019-02-04 20:08:30 +00:00
sub-int/2addr v2, v3
int-to-long v2, v2
add-long/2addr v0, v2
2019-03-26 19:13:28 +00:00
iget-object v4, v4, Lokio/m;->bvk:Lokio/m;
2019-02-04 20:08:30 +00:00
goto :goto_1
:cond_3
move-wide v0, v2
move-object v4, v5
:goto_2
cmp-long v2, v0, p1
if-lez v2, :cond_4
2019-03-26 19:13:28 +00:00
iget-object v4, v4, Lokio/m;->bvl:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v2, v4, Lokio/m;->limit:I
2019-02-04 20:08:30 +00:00
2019-02-27 21:13:14 +00:00
iget v3, v4, Lokio/m;->pos:I
2019-02-04 20:08:30 +00:00
sub-int/2addr v2, v3
int-to-long v2, v2
sub-long/2addr v0, v2
goto :goto_2
:cond_4
2019-03-26 19:13:28 +00:00
iget-boolean v2, p0, Lokio/c$a;->buT:Z
2019-02-04 20:08:30 +00:00
if-eqz v2, :cond_6
2019-03-26 19:13:28 +00:00
iget-boolean v2, v4, Lokio/m;->bvj:Z
2019-02-04 20:08:30 +00:00
if-eqz v2, :cond_6
2019-03-22 22:04:12 +00:00
invoke-virtual {v4}, Lokio/m;->Cv()Lokio/m;
2019-02-04 20:08:30 +00:00
move-result-object v2
2019-03-26 19:13:28 +00:00
iget-object v3, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iget-object v3, v3, Lokio/c;->buR:Lokio/m;
2019-02-04 20:08:30 +00:00
if-ne v3, v4, :cond_5
2019-03-26 19:13:28 +00:00
iget-object v3, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object v2, v3, Lokio/c;->buR:Lokio/m;
2019-02-04 20:08:30 +00:00
:cond_5
2019-02-27 21:13:14 +00:00
invoke-virtual {v4, v2}, Lokio/m;->a(Lokio/m;)Lokio/m;
2019-02-04 20:08:30 +00:00
move-result-object v4
2019-03-26 19:13:28 +00:00
iget-object v2, v4, Lokio/m;->bvl:Lokio/m;
2019-02-04 20:08:30 +00:00
2019-03-22 22:04:12 +00:00
invoke-virtual {v2}, Lokio/m;->Cw()Lokio/m;
2019-02-04 20:08:30 +00:00
:cond_6
2019-03-26 19:13:28 +00:00
iput-object v4, p0, Lokio/c$a;->buU:Lokio/m;
2019-02-04 20:08:30 +00:00
iput-wide p1, p0, Lokio/c$a;->offset:J
2019-02-27 21:13:14 +00:00
iget-object v2, v4, Lokio/m;->data:[B
2019-02-04 20:08:30 +00:00
iput-object v2, p0, Lokio/c$a;->data:[B
2019-02-27 21:13:14 +00:00
iget v2, v4, Lokio/m;->pos:I
2019-02-04 20:08:30 +00:00
sub-long/2addr p1, v0
2019-02-17 02:24:41 +00:00
long-to-int p2, p1
2019-02-04 20:08:30 +00:00
2019-02-17 02:24:41 +00:00
add-int/2addr v2, p2
2019-02-04 20:08:30 +00:00
iput v2, p0, Lokio/c$a;->start:I
2019-02-27 21:13:14 +00:00
iget p1, v4, Lokio/m;->limit:I
2019-02-04 20:08:30 +00:00
iput p1, p0, Lokio/c$a;->end:I
iget p1, p0, Lokio/c$a;->end:I
iget p2, p0, Lokio/c$a;->start:I
sub-int/2addr p1, p2
return p1
:cond_7
:goto_3
const/4 v0, 0x0
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lokio/c$a;->buU:Lokio/m;
2019-02-04 20:08:30 +00:00
iput-wide p1, p0, Lokio/c$a;->offset:J
iput-object v0, p0, Lokio/c$a;->data:[B
const/4 p1, -0x1
iput p1, p0, Lokio/c$a;->start:I
iput p1, p0, Lokio/c$a;->end:I
return p1
:cond_8
new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
const/4 v1, 0x2
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
aput-object p1, v1, v2
const/4 p1, 0x1
2019-03-26 19:13:28 +00:00
iget-object p2, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
iget-wide v2, p2, Lokio/c;->size:J
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p2
aput-object p2, v1, p1
const-string p1, "offset=%s > size=%s"
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
throw v0
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
.method public final close()V
.locals 3
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_0
const/4 v0, 0x0
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lokio/c$a;->buq:Lokio/c;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lokio/c$a;->buU:Lokio/m;
2019-02-04 20:08:30 +00:00
const-wide/16 v1, -0x1
iput-wide v1, p0, Lokio/c$a;->offset:J
iput-object v0, p0, Lokio/c$a;->data:[B
const/4 v0, -0x1
iput v0, p0, Lokio/c$a;->start:I
iput v0, p0, Lokio/c$a;->end:I
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "not attached to a buffer"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method