o$c$a.smali

.class public final Lio/reactivex/internal/operators/observable/o$c$a;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lio/reactivex/internal/operators/observable/o$c;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "a"
.end annotation


# instance fields
.field public final a:Ljava/util/Collection;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "TU;"
        }
    .end annotation
.end field

.field public final synthetic b:Lio/reactivex/internal/operators/observable/o$c;


# direct methods
.method public constructor <init>(Lio/reactivex/internal/operators/observable/o$c;Ljava/util/Collection;)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TU;)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lio/reactivex/internal/operators/observable/o$c$a;->b:Lio/reactivex/internal/operators/observable/o$c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p2, p0, Lio/reactivex/internal/operators/observable/o$c$a;->a:Ljava/util/Collection;

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 5

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v0

    invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;

    move-result-object v1

    if-ne v0, v1, :cond_c

    const/4 v0, 0x1

    goto :goto_d

    :cond_c
    const/4 v0, 0x0

    :goto_d
    if-eqz v0, :cond_18

    const-string v1, "run"

    const-string v2, "io/reactivex/internal/operators/observable/ObservableBufferTimed$BufferSkipBoundedObserver$RemoveFromBuffer"

    const-string v3, "runnable"

    invoke-static {v1, v2, v3}, Lcom/shopee/monitor/trace/c;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 1
    :cond_18
    iget-object v1, p0, Lio/reactivex/internal/operators/observable/o$c$a;->b:Lio/reactivex/internal/operators/observable/o$c;

    monitor-enter v1

    .line 2
    :try_start_1b
    iget-object v2, p0, Lio/reactivex/internal/operators/observable/o$c$a;->b:Lio/reactivex/internal/operators/observable/o$c;

    iget-object v2, v2, Lio/reactivex/internal/operators/observable/o$c;->l:Ljava/util/LinkedList;

    iget-object v3, p0, Lio/reactivex/internal/operators/observable/o$c$a;->a:Ljava/util/Collection;

    invoke-virtual {v2, v3}, Ljava/util/LinkedList;->remove(Ljava/lang/Object;)Z

    .line 3
    monitor-exit v1
    :try_end_25
    .catchall {:try_start_1b .. :try_end_25} :catchall_3a

    .line 4
    iget-object v1, p0, Lio/reactivex/internal/operators/observable/o$c$a;->b:Lio/reactivex/internal/operators/observable/o$c;

    iget-object v2, p0, Lio/reactivex/internal/operators/observable/o$c$a;->a:Ljava/util/Collection;

    iget-object v3, v1, Lio/reactivex/internal/operators/observable/o$c;->k:Lio/reactivex/t$c;

    .line 5
    invoke-virtual {v1, v2, v3}, Lio/reactivex/internal/observers/s;->e(Ljava/lang/Object;Lio/reactivex/disposables/b;)V

    if-eqz v0, :cond_39

    const-string v0, "run"

    const-string v1, "io/reactivex/internal/operators/observable/ObservableBufferTimed$BufferSkipBoundedObserver$RemoveFromBuffer"

    const-string v2, "runnable"

    .line 6
    invoke-static {v0, v1, v2}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_39
    return-void

    :catchall_3a
    move-exception v2

    .line 7
    :try_start_3b
    monitor-exit v1
    :try_end_3c
    .catchall {:try_start_3b .. :try_end_3c} :catchall_3a

    if-eqz v0, :cond_47

    const-string v0, "run"

    const-string v1, "io/reactivex/internal/operators/observable/ObservableBufferTimed$BufferSkipBoundedObserver$RemoveFromBuffer"

    const-string v3, "runnable"

    invoke-static {v0, v1, v3}, Lcom/shopee/monitor/trace/c;->b(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    :cond_47
    throw v2
.end method