b$1.smali

.class final Lcom/subgraph/orchid/c/b$1;
.super Ljava/lang/Object;
.source "DashboardConnection.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/subgraph/orchid/c/b;
.end annotation


# instance fields
.field private synthetic bGH:Ljava/io/PrintWriter;

.field private synthetic bGI:Lcom/subgraph/orchid/c/b;


# direct methods
.method constructor <init>(Lcom/subgraph/orchid/c/b;Ljava/io/PrintWriter;)V
    .registers 3

    .prologue
    .line 124
    iput-object p1, p0, Lcom/subgraph/orchid/c/b$1;->bGI:Lcom/subgraph/orchid/c/b;

    iput-object p2, p0, Lcom/subgraph/orchid/c/b$1;->bGH:Ljava/io/PrintWriter;

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

    return-void
.end method


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

    .prologue
    .line 126
    iget-object v1, p0, Lcom/subgraph/orchid/c/b$1;->bGI:Lcom/subgraph/orchid/c/b;

    iget-object v2, p0, Lcom/subgraph/orchid/c/b$1;->bGH:Ljava/io/PrintWriter;

    .line 1110
    :try_start_4
    iget-object v0, v1, Lcom/subgraph/orchid/c/b;->socket:Ljava/net/Socket;

    invoke-virtual {v0}, Ljava/net/Socket;->isClosed()Z

    move-result v0

    if-eqz v0, :cond_d

    .line 3046
    :goto_c
    return-void

    .line 2089
    :cond_d
    invoke-static {v2}, Lcom/subgraph/orchid/c/b;->b(Ljava/io/Writer;)V

    .line 2090
    const-string v0, "?25l"

    invoke-virtual {v2, v0}, Ljava/io/Writer;->write(Ljava/lang/String;)V

    .line 2099
    invoke-static {v2}, Lcom/subgraph/orchid/c/b;->b(Ljava/io/Writer;)V

    .line 2100
    const-string v0, "2J"

    invoke-virtual {v2, v0}, Ljava/io/PrintWriter;->write(Ljava/lang/String;)V

    .line 2104
    invoke-static {v2}, Lcom/subgraph/orchid/c/b;->b(Ljava/io/Writer;)V

    .line 2105
    const-string v0, "%d;%dH"

    const/4 v3, 0x2

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    const/4 v5, 0x1

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x1

    const/4 v5, 0x1

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v2, v0, v3}, Ljava/io/PrintWriter;->printf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintWriter;

    .line 1116
    iget-object v3, v1, Lcom/subgraph/orchid/c/b;->bBy:Lcom/subgraph/orchid/c/a;

    .line 2159
    monitor-enter v3
    :try_end_3b
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_3b} :catch_54

    .line 2160
    :try_start_3b
    iget v4, v3, Lcom/subgraph/orchid/c/a;->flags:I

    .line 2161
    monitor-exit v3
    :try_end_3e
    .catchall {:try_start_3b .. :try_end_3e} :catchall_5d

    .line 2163
    :try_start_3e
    iget-object v0, v3, Lcom/subgraph/orchid/c/a;->bGD:Ljava/util/List;

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

    move-result-object v5

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

    move-result v0

    if-eqz v0, :cond_60

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

    move-result-object v0

    check-cast v0, Lcom/subgraph/orchid/c/c;

    .line 2164
    invoke-interface {v0, v3, v2, v4}, Lcom/subgraph/orchid/c/c;->a(Lcom/subgraph/orchid/c/d;Ljava/io/PrintWriter;I)V
    :try_end_53
    .catch Ljava/io/IOException; {:try_start_3e .. :try_end_53} :catch_54

    goto :goto_44

    .line 1119
    :catch_54
    move-exception v0

    iget-object v0, v1, Lcom/subgraph/orchid/c/b;->socket:Ljava/net/Socket;

    .line 3045
    :try_start_57
    invoke-virtual {v0}, Ljava/net/Socket;->close()V
    :try_end_5a
    .catch Ljava/io/IOException; {:try_start_57 .. :try_end_5a} :catch_5b

    goto :goto_c

    .line 127
    :catch_5b
    move-exception v0

    goto :goto_c

    .line 2161
    :catchall_5d
    move-exception v0

    :try_start_5e
    monitor-exit v3
    :try_end_5f
    .catchall {:try_start_5e .. :try_end_5f} :catchall_5d

    :try_start_5f
    throw v0

    .line 1117
    :cond_60
    invoke-virtual {v2}, Ljava/io/PrintWriter;->flush()V
    :try_end_63
    .catch Ljava/io/IOException; {:try_start_5f .. :try_end_63} :catch_54

    goto :goto_c
.end method