package j0.l.a; import j0.l.b.a; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicLong; import rx.Producer; import rx.Scheduler; import rx.functions.Action0; /* compiled from: OnSubscribeRedo */ public class x implements Producer { public final /* synthetic */ AtomicLong i; public final /* synthetic */ a j; public final /* synthetic */ AtomicBoolean k; public final /* synthetic */ Scheduler.Worker l; public final /* synthetic */ Action0 m; public x(y yVar, AtomicLong atomicLong, a aVar, AtomicBoolean atomicBoolean, Scheduler.Worker worker, Action0 action0) { this.i = atomicLong; this.j = aVar; this.k = atomicBoolean; this.l = worker; this.m = action0; } @Override // rx.Producer public void j(long j) { if (j > 0) { c.q.a.k.a.p(this.i, j); this.j.j(j); if (this.k.compareAndSet(true, false)) { this.l.a(this.m); } } } }