apkfuckery/com.discord/smali_classes2/p0/p.smali

183 lines
3.4 KiB
Smali
Raw Normal View History

2020-09-02 04:07:20 +00:00
.class public final Lp0/p;
.super Ljava/lang/Object;
2020-09-09 19:21:20 +00:00
.source "JvmOkio.kt"
2020-09-02 04:07:20 +00:00
# interfaces
2020-09-09 19:21:20 +00:00
.implements Lp0/v;
2020-09-02 04:07:20 +00:00
# instance fields
2020-09-09 19:21:20 +00:00
.field public final d:Ljava/io/OutputStream;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
.field public final e:Lp0/y;
2020-09-02 04:07:20 +00:00
# direct methods
2020-09-09 19:21:20 +00:00
.method public constructor <init>(Ljava/io/OutputStream;Lp0/y;)V
2020-09-02 04:07:20 +00:00
.locals 1
2020-09-09 19:21:20 +00:00
const-string v0, "out"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "timeout"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p2, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-object p1, p0, Lp0/p;->d:Ljava/io/OutputStream;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-object p2, p0, Lp0/p;->e:Lp0/y;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
# virtual methods
2020-09-02 04:07:20 +00:00
.method public close()V
2020-09-09 19:21:20 +00:00
.locals 1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/p;->d:Ljava/io/OutputStream;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
2020-09-02 04:07:20 +00:00
return-void
.end method
.method public flush()V
.locals 1
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/p;->d:Ljava/io/OutputStream;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
return-void
2020-09-02 04:07:20 +00:00
.end method
2020-09-09 19:21:20 +00:00
.method public timeout()Lp0/y;
2020-09-02 04:07:20 +00:00
.locals 1
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/p;->e:Lp0/y;
2020-09-02 04:07:20 +00:00
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
2020-09-09 19:21:20 +00:00
const-string v0, "sink("
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0}, Lf/e/b/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-09-02 04:07:20 +00:00
move-result-object v0
2020-09-09 19:21:20 +00:00
iget-object v1, p0, Lp0/p;->d:Ljava/io/OutputStream;
2020-09-02 04:07:20 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const/16 v1, 0x29
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public write(Lp0/e;J)V
2020-09-09 19:21:20 +00:00
.locals 7
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-string v0, "source"
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p1, v0}, Lk0/n/c/i;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-wide v1, p1, Lp0/e;->e:J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
const-wide/16 v3, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-wide v5, p2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static/range {v1 .. v6}, Lk0/j/a;->n(JJJ)V
2020-09-02 04:07:20 +00:00
:cond_0
2020-09-09 19:21:20 +00:00
:goto_0
const-wide/16 v0, 0x0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
cmp-long v2, p2, v0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-lez v2, :cond_2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p0, Lp0/p;->e:Lp0/y;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Lp0/y;->f()V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v0, p1, Lp0/e;->d:Lp0/s;
2020-09-02 04:07:20 +00:00
if-eqz v0, :cond_1
2020-09-09 19:21:20 +00:00
iget v1, v0, Lp0/s;->c:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget v2, v0, Lp0/s;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sub-int/2addr v1, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v1, v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-wide v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
long-to-int v2, v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v1, p0, Lp0/p;->d:Ljava/io/OutputStream;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-object v3, v0, Lp0/s;->a:[B
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget v4, v0, Lp0/s;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v1, v3, v4, v2}, Ljava/io/OutputStream;->write([BII)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget v1, v0, Lp0/s;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
add-int/2addr v1, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput v1, v0, Lp0/s;->b:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
int-to-long v2, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sub-long/2addr p2, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget-wide v4, p1, Lp0/e;->e:J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
sub-long/2addr v4, v2
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-wide v4, p1, Lp0/e;->e:J
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iget v2, v0, Lp0/s;->c:I
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
if-ne v1, v2, :cond_0
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-virtual {v0}, Lp0/s;->a()Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
move-result-object v1
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
iput-object v1, p1, Lp0/e;->d:Lp0/s;
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
invoke-static {v0}, Lp0/t;->a(Lp0/s;)V
2020-09-02 04:07:20 +00:00
2020-09-09 19:21:20 +00:00
goto :goto_0
2020-09-08 08:16:32 +00:00
:cond_1
2020-09-09 19:21:20 +00:00
invoke-static {}, Lk0/n/c/i;->throwNpe()V
2020-09-08 08:16:32 +00:00
const/4 p1, 0x0
throw p1
2020-09-09 19:21:20 +00:00
:cond_2
return-void
2020-09-02 04:07:20 +00:00
.end method