apkfuckery/com.discord/smali_classes2/okhttp3/internal/j/d$a.smali

260 lines
5.4 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/internal/j/d$a;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "WebSocketWriter.kt"
2019-07-24 11:27:29 +00:00
# interfaces
2019-11-28 00:30:53 +00:00
.implements Lokio/v;
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/internal/j/d;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-11-28 00:30:53 +00:00
accessFlags = 0x11
2019-07-24 11:27:29 +00:00
name = "a"
.end annotation
# instance fields
2019-12-06 01:29:57 +00:00
.field bAP:I
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.field bBg:Z
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.field final synthetic bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
.field contentLength:J
2019-07-24 11:27:29 +00:00
2019-10-09 23:16:36 +00:00
.field w:Z
2019-07-24 11:27:29 +00:00
# direct methods
2019-11-28 00:30:53 +00:00
.method public constructor <init>(Lokhttp3/internal/j/d;)V
2019-07-24 11:27:29 +00:00
.locals 0
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iput-object p1, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final close()V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_0
2019-12-06 01:29:57 +00:00
iget-object v1, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget v2, p0, Lokhttp3/internal/j/d$a;->bAP:I
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, v1, Lokhttp3/internal/j/d;->ma:Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v3, v0, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-boolean v5, p0, Lokhttp3/internal/j/d$a;->bBg:Z
2019-07-24 11:27:29 +00:00
const/4 v6, 0x1
invoke-virtual/range {v1 .. v6}, Lokhttp3/internal/j/d;->a(IJZZ)V
const/4 v0, 0x1
2019-10-09 23:16:36 +00:00
iput-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x0
2019-12-06 01:29:57 +00:00
iput-boolean v1, v0, Lokhttp3/internal/j/d;->bBf:Z
2019-07-24 11:27:29 +00:00
return-void
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
check-cast v0, Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
throw v0
.end method
.method public final flush()V
.locals 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_0
2019-12-06 01:29:57 +00:00
iget-object v1, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget v2, p0, Lokhttp3/internal/j/d$a;->bAP:I
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, v1, Lokhttp3/internal/j/d;->ma:Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v3, v0, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-boolean v5, p0, Lokhttp3/internal/j/d$a;->bBg:Z
2019-07-24 11:27:29 +00:00
const/4 v6, 0x0
invoke-virtual/range {v1 .. v6}, Lokhttp3/internal/j/d;->a(IJZZ)V
const/4 v0, 0x0
2019-12-06 01:29:57 +00:00
iput-boolean v0, p0, Lokhttp3/internal/j/d$a;->bBg:Z
2019-07-24 11:27:29 +00:00
return-void
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "closed"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
check-cast v0, Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
throw v0
.end method
2019-11-28 00:30:53 +00:00
.method public final timeout()Lokio/y;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, v0, Lokhttp3/internal/j/d;->bvO:Lokio/BufferedSink;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v0}, Lokio/BufferedSink;->timeout()Lokio/y;
2019-07-24 11:27:29 +00:00
move-result-object v0
return-object v0
.end method
2019-11-28 00:30:53 +00:00
.method public final write(Lokio/f;J)V
2019-07-24 11:27:29 +00:00
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-11-28 00:30:53 +00:00
const-string v0, "source"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-10-09 23:16:36 +00:00
iget-boolean v0, p0, Lokhttp3/internal/j/d$a;->w:Z
2019-07-24 11:27:29 +00:00
if-nez v0, :cond_2
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object v0, v0, Lokhttp3/internal/j/d;->ma:Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {v0, p1, p2, p3}, Lokio/f;->write(Lokio/f;J)V
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-boolean p1, p0, Lokhttp3/internal/j/d$a;->bBg:Z
2019-07-24 11:27:29 +00:00
const/4 p2, 0x0
if-eqz p1, :cond_0
iget-wide v0, p0, Lokhttp3/internal/j/d$a;->contentLength:J
const-wide/16 v2, -0x1
cmp-long p1, v0, v2
if-eqz p1, :cond_0
2019-12-06 01:29:57 +00:00
iget-object p1, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object p1, p1, Lokhttp3/internal/j/d;->ma:Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v0, p1, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
iget-wide v2, p0, Lokhttp3/internal/j/d$a;->contentLength:J
const-wide/16 v4, 0x2000
sub-long/2addr v2, v4
cmp-long p1, v0, v2
if-lez p1, :cond_0
const/4 p1, 0x1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
2019-12-06 01:29:57 +00:00
iget-object p3, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-object p3, p3, Lokhttp3/internal/j/d;->ma:Lokio/f;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
invoke-virtual {p3}, Lokio/f;->Im()J
2019-07-24 11:27:29 +00:00
move-result-wide v2
const-wide/16 v0, 0x0
cmp-long p3, v2, v0
if-lez p3, :cond_1
if-nez p1, :cond_1
2019-12-06 01:29:57 +00:00
iget-object v0, p0, Lokhttp3/internal/j/d$a;->bBh:Lokhttp3/internal/j/d;
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget v1, p0, Lokhttp3/internal/j/d$a;->bAP:I
2019-07-24 11:27:29 +00:00
2019-12-06 01:29:57 +00:00
iget-boolean v4, p0, Lokhttp3/internal/j/d$a;->bBg:Z
2019-07-24 11:27:29 +00:00
const/4 v5, 0x0
invoke-virtual/range {v0 .. v5}, Lokhttp3/internal/j/d;->a(IJZZ)V
2019-12-06 01:29:57 +00:00
iput-boolean p2, p0, Lokhttp3/internal/j/d$a;->bBg:Z
2019-07-24 11:27:29 +00:00
:cond_1
return-void
:cond_2
new-instance p1, Ljava/io/IOException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
check-cast p1, Ljava/lang/Throwable;
2019-07-24 11:27:29 +00:00
throw p1
.end method