.class public Lw8/a;
.super Ln2/b;
.source ""


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<E:",
        "Ljava/lang/Object;",
        ">",
        "Ln2/b<",
        "TE;>;"
    }
.end annotation


# instance fields
.field public B:Lja/d;

.field public C:Lja/b;

.field public D:Ln2/g;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ln2/g<",
            "TE;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ln2/b;-><init>()V

    return-void
.end method


# virtual methods
.method public A(Ljava/lang/Object;)V
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TE;)V"
        }
    .end annotation

    iget-object v0, p0, Lw8/a;->B:Lja/d;

    .line 1
    instance-of v1, p1, Lk2/c;

    const/4 v2, 0x6

    if-eqz v1, :cond_46

    move-object v1, p1

    check-cast v1, Lk2/c;

    .line 2
    invoke-interface {v1}, Lk2/c;->a()Lb2/b;

    move-result-object v1

    iget v3, v1, Lb2/b;->r:I

    const/16 v4, 0x1388

    if-eq v3, v4, :cond_45

    const/16 v4, 0x2710

    if-eq v3, v4, :cond_45

    const/16 v4, 0x4e20

    if-eq v3, v4, :cond_46

    const/16 v2, 0x7530

    if-eq v3, v2, :cond_43

    const v2, 0x9c40

    if-ne v3, v2, :cond_27

    const/4 v2, 0x3

    goto :goto_46

    :cond_27
    new-instance p1, Ljava/lang/IllegalArgumentException;

    new-instance v0, Ljava/lang/StringBuilder;

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

    const-string v2, "Level "

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

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v1, " is not a valid level for a printing method"

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

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

    move-result-object v0

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

    throw p1

    :cond_43
    const/4 v2, 0x4

    goto :goto_46

    :cond_45
    const/4 v2, 0x7

    .line 3
    :cond_46
    :goto_46
    iget-object v1, p0, Lw8/a;->D:Ln2/g;

    invoke-interface {v1, p1}, Ln2/g;->r(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, v2, p1}, Lja/d;->h(ILjava/lang/String;)V

    return-void
.end method

.method public start()V
    .registers 4

    const/4 v0, 0x1

    .line 1
    iput-boolean v0, p0, Ln2/b;->v:Z

    .line 2
    monitor-enter p0

    :try_start_4
    iget-object v0, p0, Lw8/a;->C:Lja/b;

    invoke-interface {v0}, Lja/b;->B()Ljava/lang/Class;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lja/d;

    iput-object v1, p0, Lw8/a;->B:Lja/d;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    iget-object v2, p0, Lw8/a;->C:Lja/b;

    invoke-interface {v1, v0, v2}, Lja/d;->D(Ljava/lang/String;Lja/b;)V
    :try_end_1b
    .catch Ljava/lang/ClassCastException; {:try_start_4 .. :try_end_1b} :catch_2d
    .catch Ljava/lang/IllegalAccessException; {:try_start_4 .. :try_end_1b} :catch_26
    .catch Ljava/lang/InstantiationException; {:try_start_4 .. :try_end_1b} :catch_1f
    .catchall {:try_start_4 .. :try_end_1b} :catchall_1d

    :try_start_1b
    monitor-exit p0

    return-void

    :catchall_1d
    move-exception v0

    goto :goto_34

    :catch_1f
    move-exception v0

    new-instance v1, Lja/f;

    invoke-direct {v1, v0}, Lja/f;-><init>(Ljava/lang/Throwable;)V

    throw v1

    :catch_26
    move-exception v0

    new-instance v1, Lja/f;

    invoke-direct {v1, v0}, Lja/f;-><init>(Ljava/lang/Throwable;)V

    throw v1

    :catch_2d
    move-exception v0

    new-instance v1, Lja/f;

    invoke-direct {v1, v0}, Lja/f;-><init>(Ljava/lang/Throwable;)V

    throw v1

    :goto_34
    monitor-exit p0
    :try_end_35
    .catchall {:try_start_1b .. :try_end_35} :catchall_1d

    throw v0
.end method

.method public stop()V
    .registers 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Ln2/b;->v:Z

    .line 2
    monitor-enter p0

    :try_start_4
    iget-object v0, p0, Lw8/a;->B:Lja/d;

    if-eqz v0, :cond_e

    invoke-interface {v0}, Lja/d;->shutdown()V

    const/4 v0, 0x0

    iput-object v0, p0, Lw8/a;->B:Lja/d;

    :cond_e
    monitor-exit p0

    return-void

    :catchall_10
    move-exception v0

    monitor-exit p0
    :try_end_12
    .catchall {:try_start_4 .. :try_end_12} :catchall_10

    throw v0
.end method
