apkfuckery/com.discord/smali_classes2/d0/y.smali

225 lines
3.8 KiB
Smali
Raw Normal View History

2020-11-14 03:19:56 +00:00
.class public Ld0/y;
2020-11-12 02:11:44 +00:00
.super Ljava/lang/Object;
2020-11-14 03:19:56 +00:00
.source "Timeout.kt"
2020-11-12 02:11:44 +00:00
# static fields
2020-11-14 03:19:56 +00:00
.field public static final d:Ld0/y;
2020-11-12 02:11:44 +00:00
# instance fields
2020-11-14 03:19:56 +00:00
.field public a:Z
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
.field public b:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
.field public c:J
2020-11-12 02:11:44 +00:00
# direct methods
.method public static constructor <clinit>()V
2020-11-14 03:19:56 +00:00
.locals 1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
new-instance v0, Ld0/y$a;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0}, Ld0/y$a;-><init>()V
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
sput-object v0, Ld0/y;->d:Ld0/y;
2020-11-12 02:11:44 +00:00
return-void
.end method
2020-11-14 03:19:56 +00:00
.method public constructor <init>()V
.locals 0
2020-11-12 02:11:44 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
# virtual methods
.method public a()Ld0/y;
.locals 1
2020-11-12 02:11:44 +00:00
const/4 v0, 0x0
2020-11-14 03:19:56 +00:00
iput-boolean v0, p0, Ld0/y;->a:Z
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return-object p0
2020-11-13 01:15:36 +00:00
.end method
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
.method public b()Ld0/y;
.locals 2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-wide/16 v0, 0x0
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
iput-wide v0, p0, Ld0/y;->c:J
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
return-object p0
.end method
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
.method public c()J
.locals 2
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
iget-boolean v0, p0, Ld0/y;->a:Z
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v0, :cond_0
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-wide v0, p0, Ld0/y;->b:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return-wide v0
2020-11-12 02:11:44 +00:00
:cond_0
2020-11-14 03:19:56 +00:00
new-instance v0, Ljava/lang/IllegalStateException;
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const-string v1, "No deadline"
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
move-result-object v1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
throw v0
.end method
2020-11-14 03:19:56 +00:00
.method public d(J)Ld0/y;
.locals 1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const/4 v0, 0x1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
iput-boolean v0, p0, Ld0/y;->a:Z
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
iput-wide p1, p0, Ld0/y;->b:J
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
return-object p0
.end method
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
.method public e()Z
.locals 1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
iget-boolean v0, p0, Ld0/y;->a:Z
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
return v0
2020-11-12 02:11:44 +00:00
.end method
2020-11-14 03:19:56 +00:00
.method public f()V
.locals 5
.annotation system Ldalvik/annotation/Throws;
2020-11-12 02:11:44 +00:00
value = {
2020-11-14 03:19:56 +00:00
Ljava/io/IOException;
2020-11-12 02:11:44 +00:00
}
.end annotation
2020-11-14 03:19:56 +00:00
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
2020-11-12 02:11:44 +00:00
move-result v0
2020-11-14 03:19:56 +00:00
if-nez v0, :cond_2
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-boolean v0, p0, Ld0/y;->a:Z
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
if-eqz v0, :cond_1
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
iget-wide v0, p0, Ld0/y;->b:J
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {}, Ljava/lang/System;->nanoTime()J
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
move-result-wide v2
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
sub-long/2addr v0, v2
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const-wide/16 v2, 0x0
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v4, v0, v2
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
if-lez v4, :cond_0
2020-11-12 02:11:44 +00:00
goto :goto_0
:cond_0
2020-11-14 03:19:56 +00:00
new-instance v0, Ljava/io/InterruptedIOException;
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
const-string v1, "deadline reached"
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
2020-11-12 02:11:44 +00:00
throw v0
:cond_1
:goto_0
2020-11-14 03:19:56 +00:00
return-void
2020-11-14 02:19:59 +00:00
:cond_2
2020-11-14 03:19:56 +00:00
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
2020-11-14 02:19:59 +00:00
move-result-object v0
2020-11-14 03:19:56 +00:00
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
new-instance v0, Ljava/io/InterruptedIOException;
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const-string v1, "interrupted"
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
2020-11-14 02:19:59 +00:00
throw v0
.end method
2020-11-14 03:19:56 +00:00
.method public g(JLjava/util/concurrent/TimeUnit;)Ld0/y;
.locals 3
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const-string v0, "unit"
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {p3, v0}, Ly/m/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const-wide/16 v0, 0x0
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
cmp-long v2, p1, v0
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
if-ltz v2, :cond_0
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
const/4 v0, 0x1
2020-11-14 02:19:59 +00:00
goto :goto_0
:cond_0
2020-11-14 03:19:56 +00:00
const/4 v0, 0x0
2020-11-14 02:19:59 +00:00
:goto_0
2020-11-14 03:19:56 +00:00
if-eqz v0, :cond_1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {p3, p1, p2}, Ljava/util/concurrent/TimeUnit;->toNanos(J)J
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
move-result-wide p1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
iput-wide p1, p0, Ld0/y;->c:J
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
return-object p0
2020-11-14 02:19:59 +00:00
:cond_1
2020-11-14 03:19:56 +00:00
const-string p3, "timeout < 0: "
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-static {p3, p1, p2}, Lf/e/c/a/a;->o(Ljava/lang/String;J)Ljava/lang/String;
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
move-result-object p1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
new-instance p2, Ljava/lang/IllegalArgumentException;
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
move-result-object p1
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
2020-11-14 02:19:59 +00:00
2020-11-14 03:19:56 +00:00
throw p2
2020-11-14 02:19:59 +00:00
.end method
2020-11-14 03:19:56 +00:00
.method public h()J
2020-11-14 02:19:59 +00:00
.locals 2
2020-11-14 03:19:56 +00:00
iget-wide v0, p0, Ld0/y;->c:J
2020-11-12 02:11:44 +00:00
2020-11-14 03:19:56 +00:00
return-wide v0
2020-11-12 02:11:44 +00:00
.end method