.class Lcom/igexin/b/a/b/a/a/i;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/igexin/b/a/b/a/a/d;


# direct methods
.method public constructor <init>(Lcom/igexin/b/a/b/a/a/d;)V
    .locals 0

    iput-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

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

    move-result-object p1

    invoke-direct {p0, p1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 2

    iget v0, p1, Landroid/os/Message;->what:I

    const/4 v1, 0x0

    packed-switch v0, :pswitch_data_0

    goto/16 :goto_2

    :pswitch_0
    iget-object v0, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {v0}, Lcom/igexin/b/a/b/a/a/d;->c(Lcom/igexin/b/a/b/a/a/d;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "S-SM|tcp already close reconnect immediately"

    invoke-static {v0}, Lcom/igexin/b/a/c/b;->a(Ljava/lang/String;)V

    invoke-static {}, Lcom/igexin/push/core/a/f;->a()Lcom/igexin/push/core/a/f;

    move-result-object v0

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    invoke-virtual {v0, p1}, Lcom/igexin/push/core/a/f;->c(Z)V

    goto :goto_2

    :cond_0
    const-string p1, "S-SM|reconnect will run after close"

    invoke-static {p1}, Lcom/igexin/b/a/c/b;->a(Ljava/lang/String;)V

    :cond_1
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->i(Lcom/igexin/b/a/b/a/a/d;)V

    goto :goto_2

    :pswitch_1
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->e(Lcom/igexin/b/a/b/a/a/d;)V

    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->f(Lcom/igexin/b/a/b/a/a/d;)Lcom/igexin/b/a/b/a/a/c;

    move-result-object p1

    if-nez p1, :cond_3

    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->g(Lcom/igexin/b/a/b/a/a/d;)Lcom/igexin/b/a/b/a/a/l;

    move-result-object p1

    if-nez p1, :cond_3

    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->h(Lcom/igexin/b/a/b/a/a/d;)Lcom/igexin/b/a/b/a/a/j;

    move-result-object p1

    if-eqz p1, :cond_2

    goto :goto_0

    :cond_2
    invoke-static {}, Lcom/igexin/push/core/a/f;->a()Lcom/igexin/push/core/a/f;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/igexin/push/core/a/f;->c(Z)V

    goto :goto_2

    :cond_3
    :goto_0
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->c(Lcom/igexin/b/a/b/a/a/d;)Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_1

    :pswitch_2
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->c(Lcom/igexin/b/a/b/a/a/d;)Z

    move-result p1

    if-eqz p1, :cond_4

    :goto_1
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->d(Lcom/igexin/b/a/b/a/a/d;)V

    goto :goto_2

    :pswitch_3
    iget-object v0, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast p1, Ljava/net/Socket;

    invoke-static {v0, p1}, Lcom/igexin/b/a/b/a/a/d;->a(Lcom/igexin/b/a/b/a/a/d;Ljava/net/Socket;)V

    goto :goto_2

    :pswitch_4
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1, v1}, Lcom/igexin/b/a/b/a/a/d;->a(Lcom/igexin/b/a/b/a/a/d;Z)Z

    goto :goto_2

    :pswitch_5
    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->a(Lcom/igexin/b/a/b/a/a/d;)Z

    move-result p1

    if-nez p1, :cond_4

    iget-object p1, p0, Lcom/igexin/b/a/b/a/a/i;->a:Lcom/igexin/b/a/b/a/a/d;

    invoke-static {p1}, Lcom/igexin/b/a/b/a/a/d;->b(Lcom/igexin/b/a/b/a/a/d;)V

    :cond_4
    :goto_2
    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method
