apkfuckery/com.discord/smali_classes2/g0/m/e/j$g.smali

149 lines
2.8 KiB
Smali

.class public final Lg0/m/e/j$g;
.super Ljava/lang/Object;
.source "ScalarSynchronousObservable.java"
# interfaces
.implements Lrx/Producer;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lg0/m/e/j;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "g"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/Producer;"
}
.end annotation
# instance fields
.field public final d:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
.field public final e:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field public f:Z
# direct methods
.method public constructor <init>(Lrx/Subscriber;Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;TT;)V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lg0/m/e/j$g;->d:Lrx/Subscriber;
iput-object p2, p0, Lg0/m/e/j$g;->e:Ljava/lang/Object;
return-void
.end method
# virtual methods
.method public a(J)V
.locals 3
iget-boolean v0, p0, Lg0/m/e/j$g;->f:Z
if-eqz v0, :cond_0
return-void
:cond_0
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-ltz v2, :cond_4
if-nez v2, :cond_1
return-void
:cond_1
const/4 p1, 0x1
iput-boolean p1, p0, Lg0/m/e/j$g;->f:Z
iget-object p1, p0, Lg0/m/e/j$g;->d:Lrx/Subscriber;
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
move-result p2
if-eqz p2, :cond_2
return-void
:cond_2
iget-object p2, p0, Lg0/m/e/j$g;->e:Ljava/lang/Object;
:try_start_0
invoke-interface {p1, p2}, Lg0/g;->onNext(Ljava/lang/Object;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
move-result p2
if-eqz p2, :cond_3
return-void
:cond_3
invoke-interface {p1}, Lg0/g;->onCompleted()V
return-void
:catchall_0
move-exception v0
invoke-static {v0, p1, p2}, Lf/o/a/j/a;->a(Ljava/lang/Throwable;Lg0/g;Ljava/lang/Object;)V
return-void
:cond_4
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "n >= required but it was "
invoke-static {v1, p1, p2}, Lf/e/b/a/a;->a(Ljava/lang/String;J)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method