.class public abstract Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber; .super Ljava/util/concurrent/atomic/AtomicLong; .source "SinglePostCompleteSubscriber.java" # interfaces .implements Lai/r; .implements Lok/e; # annotations .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/util/concurrent/atomic/AtomicLong;", "Lai/r<", "TT;>;", "Lok/e;" } .end annotation # static fields .field public static final COMPLETE_MASK:J = -0x8000000000000000L .field public static final REQUEST_MASK:J = 0x7fffffffffffffffL .field private static final serialVersionUID:J = 0x6de1ba4ffe60ebe0L # instance fields .field public final downstream:Lok/d; .annotation system Ldalvik/annotation/Signature; value = { "Lok/d<", "-TR;>;" } .end annotation .end field .field public produced:J .field public upstream:Lok/e; .field public value:Ljava/lang/Object; .annotation system Ldalvik/annotation/Signature; value = { "TR;" } .end annotation .end field # direct methods .method public constructor (Lok/d;)V .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "downstream" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(", "Lok/d<", "-TR;>;)V" } .end annotation .line 1 invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicLong;->()V .line 2 iput-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->downstream:Lok/d; return-void .end method # virtual methods .method public cancel()V .locals 1 .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->upstream:Lok/e; invoke-interface {v0}, Lok/e;->cancel()V return-void .end method .method public final complete(Ljava/lang/Object;)V .locals 8 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "n" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TR;)V" } .end annotation .line 1 iget-wide v0, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->produced:J const-wide/16 v2, 0x0 cmp-long v4, v0, v2 if-eqz v4, :cond_0 .line 2 invoke-static {p0, v0, v1}, Lio/reactivex/rxjava3/internal/util/b;->e(Ljava/util/concurrent/atomic/AtomicLong;J)J .line 3 :cond_0 :goto_0 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J move-result-wide v0 const-wide/high16 v4, -0x8000000000000000L and-long v6, v0, v4 cmp-long v6, v6, v2 if-eqz v6, :cond_1 .line 4 invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->onDrop(Ljava/lang/Object;)V return-void :cond_1 const-wide v6, 0x7fffffffffffffffL and-long/2addr v0, v6 cmp-long v0, v0, v2 if-eqz v0, :cond_2 const-wide v0, -0x7fffffffffffffffL # -4.9E-324 .line 5 invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicLong;->lazySet(J)V .line 6 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->downstream:Lok/d; invoke-interface {v0, p1}, Lok/d;->onNext(Ljava/lang/Object;)V .line 7 iget-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->downstream:Lok/d; invoke-interface {p1}, Lok/d;->onComplete()V return-void .line 8 :cond_2 iput-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->value:Ljava/lang/Object; .line 9 invoke-virtual {p0, v2, v3, v4, v5}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z move-result v0 if-eqz v0, :cond_3 return-void :cond_3 const/4 v0, 0x0 .line 10 iput-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->value:Ljava/lang/Object; goto :goto_0 .end method .method public onDrop(Ljava/lang/Object;)V .locals 0 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "n" } .end annotation .annotation system Ldalvik/annotation/Signature; value = { "(TR;)V" } .end annotation return-void .end method .method public onSubscribe(Lok/e;)V .locals 1 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "s" } .end annotation .line 1 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->upstream:Lok/e; invoke-static {v0, p1}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->validate(Lok/e;Lok/e;)Z move-result v0 if-eqz v0, :cond_0 .line 2 iput-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->upstream:Lok/e; .line 3 iget-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->downstream:Lok/d; invoke-interface {p1, p0}, Lok/d;->onSubscribe(Lok/e;)V :cond_0 return-void .end method .method public final request(J)V .locals 8 .annotation system Ldalvik/annotation/MethodParameters; accessFlags = { 0x0 } names = { "n" } .end annotation .line 1 invoke-static {p1, p2}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->validate(J)Z move-result v0 if-eqz v0, :cond_2 .line 2 :cond_0 invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J move-result-wide v0 const-wide/high16 v2, -0x8000000000000000L and-long v4, v0, v2 const-wide/16 v6, 0x0 cmp-long v4, v4, v6 if-eqz v4, :cond_1 const-wide p1, -0x7fffffffffffffffL # -4.9E-324 .line 3 invoke-virtual {p0, v2, v3, p1, p2}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z move-result p1 if-eqz p1, :cond_2 .line 4 iget-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->downstream:Lok/d; iget-object p2, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->value:Ljava/lang/Object; invoke-interface {p1, p2}, Lok/d;->onNext(Ljava/lang/Object;)V .line 5 iget-object p1, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->downstream:Lok/d; invoke-interface {p1}, Lok/d;->onComplete()V goto :goto_0 .line 6 :cond_1 invoke-static {v0, v1, p1, p2}, Lio/reactivex/rxjava3/internal/util/b;->c(JJ)J move-result-wide v2 .line 7 invoke-virtual {p0, v0, v1, v2, v3}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z move-result v0 if-eqz v0, :cond_0 .line 8 iget-object v0, p0, Lio/reactivex/rxjava3/internal/subscribers/SinglePostCompleteSubscriber;->upstream:Lok/e; invoke-interface {v0, p1, p2}, Lok/e;->request(J)V :cond_2 :goto_0 return-void .end method