.class public Lla/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lja/a;


# instance fields
.field public a:Z

.field public b:Ljava/io/PrintStream;

.field public c:Z


# direct methods
.method public constructor <init>(Ljava/io/PrintStream;Z)V
    .registers 4

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

    const/4 v0, 0x1

    iput-boolean v0, p0, Lla/a;->a:Z

    const/4 v0, 0x0

    .line 2
    iput-object v0, p0, Lla/a;->b:Ljava/io/PrintStream;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lla/a;->c:Z

    iput-object p1, p0, Lla/a;->b:Ljava/io/PrintStream;

    iput-boolean p2, p0, Lla/a;->c:Z

    if-eqz p1, :cond_13

    return-void

    .line 3
    :cond_13
    new-instance p1, Lja/f;

    const-string p2, "PrintStream cannot be null"

    invoke-direct {p1, p2}, Lja/f;-><init>(Ljava/lang/String;)V

    throw p1
.end method


# virtual methods
.method public a(Lja/d;Ljava/lang/String;)V
    .registers 6

    iget-object v0, p0, Lla/a;->b:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuffer;

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

    check-cast p1, Lka/a;

    .line 1
    iget-object p1, p1, Lka/a;->r:Ljava/lang/String;

    .line 2
    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p1, ": DOWN"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p1, ""

    if-eqz p2, :cond_37

    invoke-virtual {p2}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_37

    new-instance p1, Ljava/lang/StringBuffer;

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

    const-string v2, " ("

    invoke-virtual {p1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p2, ")"

    invoke-virtual {p1, p2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {p1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    :cond_37
    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    return-void
.end method

.method public b(Lja/d;)V
    .registers 4

    iget-object v0, p0, Lla/a;->b:Ljava/io/PrintStream;

    new-instance v1, Ljava/lang/StringBuffer;

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

    check-cast p1, Lka/a;

    .line 1
    iget-object p1, p1, Lka/a;->r:Ljava/lang/String;

    .line 2
    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p1, ": UP"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    return-void
.end method

.method public c(Lja/d;ILjava/lang/String;Ljava/lang/String;)V
    .registers 6

    const-string p1, "UNKNOWN"

    if-eqz p3, :cond_5

    goto :goto_6

    :cond_5
    move-object p3, p1

    :goto_6
    if-eqz p4, :cond_9

    goto :goto_a

    :cond_9
    move-object p4, p1

    .line 1
    :goto_a
    new-instance v0, Ljava/lang/StringBuffer;

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

    packed-switch p2, :pswitch_data_66

    goto :goto_2a

    :pswitch_13
    const-string p1, "DEBUG"

    goto :goto_2a

    :pswitch_16
    const-string p1, "INFO"

    goto :goto_2a

    :pswitch_19
    const-string p1, "NOTICE"

    goto :goto_2a

    :pswitch_1c
    const-string p1, "WARN"

    goto :goto_2a

    :pswitch_1f
    const-string p1, "ERROR"

    goto :goto_2a

    :pswitch_22
    const-string p1, "CRITICAL"

    goto :goto_2a

    :pswitch_25
    const-string p1, "ALERT"

    goto :goto_2a

    :pswitch_28
    const-string p1, "EMERGENCY"

    :goto_2a
    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p1, " "

    invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    iget-boolean p2, p0, Lla/a;->a:Z

    if-eqz p2, :cond_56

    new-instance p2, Ljava/lang/StringBuffer;

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

    invoke-virtual {p2, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p1, " ["

    invoke-virtual {p2, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {p2, p4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string p1, "]"

    invoke-virtual {p2, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {p2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p1

    .line 2
    :cond_56
    iget-boolean p2, p0, Lla/a;->c:Z

    if-eqz p2, :cond_60

    iget-object p2, p0, Lla/a;->b:Ljava/io/PrintStream;

    invoke-virtual {p2, p1}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V

    goto :goto_65

    :cond_60
    iget-object p2, p0, Lla/a;->b:Ljava/io/PrintStream;

    invoke-virtual {p2, p1}, Ljava/io/PrintStream;->print(Ljava/lang/String;)V

    :goto_65
    return-void

    :pswitch_data_66
    .packed-switch 0x0
        :pswitch_28
        :pswitch_25
        :pswitch_22
        :pswitch_1f
        :pswitch_1c
        :pswitch_19
        :pswitch_16
        :pswitch_13
    .end packed-switch
.end method
