.class public Ln2/c$a;
.super Ljava/lang/Thread;
.source ""


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Ln2/c;
.end annotation

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


# instance fields
.field public final synthetic r:Ln2/c;


# direct methods
.method public constructor <init>(Ln2/c;)V
    .registers 2

    iput-object p1, p0, Ln2/c$a;->r:Ln2/c;

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

    return-void
.end method


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

    iget-object v0, p0, Ln2/c$a;->r:Ln2/c;

    iget-object v1, v0, Ln2/c;->B:Lc3/b;

    .line 1
    :goto_4
    iget-boolean v2, v0, Ln2/h;->v:Z

    if-eqz v2, :cond_12

    .line 2
    :try_start_8
    iget-object v2, v0, Ln2/c;->C:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v2}, Ljava/util/concurrent/BlockingQueue;->take()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v1, v2}, Lc3/b;->a(Ljava/lang/Object;)I
    :try_end_11
    .catch Ljava/lang/InterruptedException; {:try_start_8 .. :try_end_11} :catch_12

    goto :goto_4

    :catch_12
    :cond_12
    iget-object v2, p0, Ln2/c$a;->r:Ln2/c;

    const-string v3, "Worker thread will flush remaining events before exiting."

    invoke-virtual {v2, v3}, Lc3/d;->u(Ljava/lang/String;)V

    iget-object v0, v0, Ln2/c;->C:Ljava/util/concurrent/BlockingQueue;

    invoke-interface {v0}, Ljava/util/concurrent/BlockingQueue;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_1f
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2d

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v1, v2}, Lc3/b;->a(Ljava/lang/Object;)I

    goto :goto_1f

    :cond_2d
    invoke-virtual {v1}, Lc3/b;->b()V

    return-void
.end method
