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

# interfaces
.implements Lja/d;


# instance fields
.field public r:Ljava/lang/String;

.field public s:Lka/c;

.field public t:Lna/a;

.field public u:Lna/a;

.field public v:Ljava/lang/Object;

.field public w:Z

.field public x:Ljava/util/List;


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

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

    const/4 v0, 0x0

    iput-object v0, p0, Lka/a;->r:Ljava/lang/String;

    iput-object v0, p0, Lka/a;->s:Lka/c;

    iput-object v0, p0, Lka/a;->t:Lna/a;

    iput-object v0, p0, Lka/a;->u:Lna/a;

    new-instance v0, Ljava/lang/Object;

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

    iput-object v0, p0, Lka/a;->v:Ljava/lang/Object;

    const/4 v0, 0x0

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

    new-instance v0, Ljava/util/ArrayList;

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

    iput-object v0, p0, Lka/a;->x:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public D(Ljava/lang/String;Lja/b;)V
    .registers 3

    iput-object p1, p0, Lka/a;->r:Ljava/lang/String;

    :try_start_2
    check-cast p2, Lka/c;

    iput-object p2, p0, Lka/a;->s:Lka/c;
    :try_end_6
    .catch Ljava/lang/ClassCastException; {:try_start_2 .. :try_end_6} :catch_a

    invoke-virtual {p0}, Lka/a;->e()V

    return-void

    :catch_a
    new-instance p1, Lja/f;

    const-string p2, "provided config must implement AbstractSyslogConfigIF"

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

    throw p1
.end method

.method public b(ILjava/lang/String;Ljava/lang/Throwable;)V
    .registers 9

    if-eqz p3, :cond_7

    invoke-virtual {p3}, Ljava/lang/Throwable;->toString()Ljava/lang/String;

    move-result-object p3

    goto :goto_9

    :cond_7
    const-string p3, "UNKNOWN"

    .line 1
    :goto_9
    iget-object v0, p0, Lka/a;->v:Ljava/lang/Object;

    monitor-enter v0

    :try_start_c
    iget-boolean v1, p0, Lka/a;->w:Z

    monitor-exit v0
    :try_end_f
    .catchall {:try_start_c .. :try_end_f} :catchall_3a

    if-nez v1, :cond_15

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, v0}, Lka/a;->m(Z)V

    :cond_15
    iget-object v0, p0, Lka/a;->s:Lka/c;

    invoke-interface {v0}, Lka/c;->y()Ljava/util/List;

    move-result-object v0

    const/4 v2, 0x0

    :goto_1c
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v3

    if-ge v2, v3, :cond_39

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lja/a;

    if-nez v1, :cond_32

    :try_start_2a
    invoke-interface {v3, p0, p3}, Lja/a;->a(Lja/d;Ljava/lang/String;)V

    iget-object v4, p0, Lka/a;->x:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_32
    invoke-interface {v3, p0, p1, p2, p3}, Lja/a;->c(Lja/d;ILjava/lang/String;Ljava/lang/String;)V
    :try_end_35
    .catch Ljava/lang/Exception; {:try_start_2a .. :try_end_35} :catch_36

    goto :goto_39

    :catch_36
    add-int/lit8 v2, v2, 0x1

    goto :goto_1c

    :cond_39
    :goto_39
    return-void

    :catchall_3a
    move-exception p1

    .line 3
    :try_start_3b
    monitor-exit v0
    :try_end_3c
    .catchall {:try_start_3b .. :try_end_3c} :catchall_3a

    throw p1
.end method

.method public d()Lka/d;
    .registers 5

    iget-object v0, p0, Lka/a;->s:Lka/c;

    invoke-interface {v0}, Lka/c;->c0()Ljava/lang/Class;

    move-result-object v0

    const/4 v1, 0x0

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

    move-result-object v0

    check-cast v0, Lka/d;
    :try_end_d
    .catch Ljava/lang/InstantiationException; {:try_start_7 .. :try_end_d} :catch_28
    .catch Ljava/lang/IllegalAccessException; {:try_start_7 .. :try_end_d} :catch_15

    :try_start_d
    invoke-virtual {v0, p0}, Lka/d;->b(Lka/a;)V
    :try_end_10
    .catch Ljava/lang/InstantiationException; {:try_start_d .. :try_end_10} :catch_13
    .catch Ljava/lang/IllegalAccessException; {:try_start_d .. :try_end_10} :catch_11

    goto :goto_34

    :catch_11
    move-exception v1

    goto :goto_19

    :catch_13
    move-exception v1

    goto :goto_2c

    :catch_15
    move-exception v0

    move-object v3, v1

    move-object v1, v0

    move-object v0, v3

    :goto_19
    iget-object v2, p0, Lka/a;->s:Lka/c;

    invoke-interface {v2}, Lja/b;->N()Z

    move-result v2

    if-nez v2, :cond_22

    goto :goto_34

    :cond_22
    new-instance v0, Lja/f;

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

    throw v0

    :catch_28
    move-exception v0

    move-object v3, v1

    move-object v1, v0

    move-object v0, v3

    :goto_2c
    iget-object v2, p0, Lka/a;->s:Lka/c;

    invoke-interface {v2}, Lja/b;->N()Z

    move-result v2

    if-nez v2, :cond_35

    :goto_34
    return-object v0

    :cond_35
    new-instance v0, Lja/f;

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

    throw v0
.end method

.method public abstract e()V
.end method

.method public f(Lna/a;ILjava/lang/String;)V
    .registers 6

    iget-object v0, p0, Lka/a;->s:Lka/c;

    invoke-interface {v0}, Lja/b;->j()Z

    move-result v0

    const-string v1, ": "

    if-eqz v0, :cond_13

    invoke-virtual {p0, p3, v1}, Lka/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p0, p2, p3}, Lka/a;->g(ILjava/lang/String;)Ljava/lang/String;

    move-result-object p3

    goto :goto_1b

    :cond_13
    invoke-virtual {p0, p2, p3}, Lka/a;->g(ILjava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {p0, p3, v1}, Lka/a;->k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    :goto_1b
    :try_start_1b
    invoke-virtual {p0, p1, p2, p3}, Lka/a;->o(Lna/a;ILjava/lang/String;)V
    :try_end_1e
    .catch Lja/f; {:try_start_1b .. :try_end_1e} :catch_1f

    goto :goto_39

    :catch_1f
    move-exception p1

    invoke-virtual {p1}, Ljava/lang/RuntimeException;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    if-eqz v0, :cond_2e

    invoke-virtual {p1}, Ljava/lang/RuntimeException;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    invoke-virtual {p0, p2, p3, v0}, Lka/a;->b(ILjava/lang/String;Ljava/lang/Throwable;)V

    goto :goto_31

    :cond_2e
    invoke-virtual {p0, p2, p3, p1}, Lka/a;->b(ILjava/lang/String;Ljava/lang/Throwable;)V

    :goto_31
    iget-object p2, p0, Lka/a;->s:Lka/c;

    invoke-interface {p2}, Lja/b;->G()Z

    move-result p2

    if-nez p2, :cond_3a

    :goto_39
    return-void

    :cond_3a
    throw p1
.end method

.method public g(ILjava/lang/String;)Ljava/lang/String;
    .registers 11

    iget-object v0, p0, Lka/a;->s:Lka/c;

    invoke-interface {v0}, Lka/c;->b0()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_32

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x1

    if-ge v1, v2, :cond_10

    goto :goto_32

    :cond_10
    iget-object v1, p0, Lka/a;->s:Lka/c;

    invoke-interface {v1}, Lja/b;->S()I

    move-result v1

    const/4 v2, 0x0

    move-object v7, p2

    move p2, v2

    :goto_19
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v2

    if-ge p2, v2, :cond_31

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lja/e;

    iget-object v4, p0, Lka/a;->s:Lka/c;

    move-object v3, p0

    move v5, v1

    move v6, p1

    invoke-interface/range {v2 .. v7}, Lja/e;->O(Lja/d;Lja/b;IILjava/lang/String;)Ljava/lang/String;

    move-result-object v7

    add-int/lit8 p2, p2, 0x1

    goto :goto_19

    :cond_31
    return-object v7

    :cond_32
    :goto_32
    return-object p2
.end method

.method public h(ILjava/lang/String;)V
    .registers 5

    iget-object v0, p0, Lka/a;->s:Lka/c;

    invoke-interface {v0}, Lja/b;->c()Z

    move-result v0

    if-eqz v0, :cond_1f

    new-instance v0, Lpa/a;

    const/4 v1, 0x0

    invoke-direct {v0, v1, v1, p2}, Lpa/a;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)V

    .line 1
    iget-object v1, p0, Lka/a;->u:Lna/a;

    if-nez v1, :cond_16

    .line 2
    sget-object v1, Loa/a;->r:Lna/a;

    .line 3
    iput-object v1, p0, Lka/a;->u:Lna/a;

    :cond_16
    iget-object v1, p0, Lka/a;->u:Lna/a;

    .line 4
    invoke-virtual {v0}, Lpa/a;->e()Ljava/lang/String;

    move-result-object v0

    .line 5
    invoke-virtual {p0, v1, p1, v0}, Lka/a;->f(Lna/a;ILjava/lang/String;)V

    .line 6
    :cond_1f
    iget-object v0, p0, Lka/a;->t:Lna/a;

    if-nez v0, :cond_27

    .line 7
    sget-object v0, Lna/b;->r:Lna/a;

    .line 8
    iput-object v0, p0, Lka/a;->t:Lna/a;

    :cond_27
    iget-object v0, p0, Lka/a;->t:Lna/a;

    .line 9
    invoke-virtual {p0, v0, p1, p2}, Lka/a;->f(Lna/a;ILjava/lang/String;)V

    return-void
.end method

.method public k(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .registers 7

    iget-object v0, p0, Lka/a;->s:Lka/c;

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

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuffer;

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

    const-string v2, ""

    if-eqz v0, :cond_29

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

    move-result-object v3

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

    move-result v3

    if-eqz v3, :cond_1a

    goto :goto_29

    :cond_1a
    new-instance v2, Ljava/lang/StringBuffer;

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

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

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

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

    move-result-object v2

    :cond_29
    :goto_29
    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    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

    return-object p1
.end method

.method public m(Z)V
    .registers 5

    iget-boolean v0, p0, Lka/a;->w:Z

    if-eq v0, p1, :cond_2c

    iget-object v0, p0, Lka/a;->v:Ljava/lang/Object;

    monitor-enter v0

    if-nez p1, :cond_25

    const/4 v1, 0x0

    :goto_a
    :try_start_a
    iget-object v2, p0, Lka/a;->x:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_20

    iget-object v2, p0, Lka/a;->x:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lja/a;

    invoke-interface {v2, p0}, Lja/a;->b(Lja/d;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_a

    :cond_20
    iget-object v1, p0, Lka/a;->x:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->clear()V

    :cond_25
    iput-boolean p1, p0, Lka/a;->w:Z

    monitor-exit v0

    goto :goto_2c

    :catchall_29
    move-exception p1

    monitor-exit v0
    :try_end_2b
    .catchall {:try_start_a .. :try_end_2b} :catchall_29

    throw p1

    :cond_2c
    :goto_2c
    return-void
.end method

.method public o(Lna/a;ILjava/lang/String;)V
    .registers 22

    move-object/from16 v0, p0

    iget-object v1, v0, Lka/a;->s:Lka/c;

    invoke-interface {v1}, Lja/b;->S()I

    move-result v1

    iget-object v2, v0, Lka/a;->s:Lka/c;

    invoke-interface {v2}, Lja/b;->U()Z

    move-result v2

    iget-object v3, v0, Lka/a;->s:Lka/c;

    invoke-interface {v3}, Lja/b;->d0()Z

    move-result v3

    move-object/from16 v11, p1

    move/from16 v4, p2

    invoke-virtual {v11, v1, v4, v2, v3}, Lna/a;->d(IIZZ)Ljava/lang/String;

    move-result-object v1

    invoke-virtual/range {p3 .. p3}, Ljava/lang/String;->length()I

    move-result v2

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v3

    iget-object v4, v0, Lka/a;->s:Lka/c;

    invoke-interface {v4}, Lja/b;->i()I

    move-result v4

    sub-int v3, v4, v3

    iget-object v4, v0, Lka/a;->s:Lka/c;

    .line 1
    :try_start_2e
    invoke-interface {v4}, Lja/b;->r()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v4}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v1
    :try_end_36
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_2e .. :try_end_36} :catch_37

    goto :goto_3b

    :catch_37
    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

    .line 2
    :goto_3b
    iget-object v4, v0, Lka/a;->s:Lka/c;

    .line 3
    :try_start_3d
    invoke-interface {v4}, Lja/b;->r()Ljava/lang/String;

    move-result-object v4
    :try_end_41
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_3d .. :try_end_41} :catch_48

    move-object/from16 v5, p3

    :try_start_43
    invoke-virtual {v5, v4}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v4
    :try_end_47
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_43 .. :try_end_47} :catch_4a

    goto :goto_4e

    :catch_48
    move-object/from16 v5, p3

    :catch_4a
    invoke-virtual/range {p3 .. p3}, Ljava/lang/String;->getBytes()[B

    move-result-object v4

    :goto_4e
    move-object v12, v4

    .line 4
    iget-object v4, v0, Lka/a;->s:Lka/c;

    invoke-interface {v4}, Lja/b;->M()Z

    move-result v4

    if-eqz v4, :cond_5d

    if-lez v3, :cond_5d

    if-le v2, v3, :cond_5d

    move v8, v3

    goto :goto_5e

    :cond_5d
    move v8, v2

    :goto_5e
    if-gt v8, v3, :cond_70

    const/4 v7, 0x0

    const/4 v9, 0x0

    const/4 v10, 0x0

    move-object/from16 v4, p1

    move-object v5, v1

    move-object v6, v12

    .line 5
    invoke-virtual/range {v4 .. v10}, Lna/a;->b([B[BII[B[B)[B

    move-result-object v1

    .line 6
    invoke-virtual {v0, v1}, Lka/a;->p([B)V

    goto/16 :goto_db

    :cond_70
    iget-object v2, v0, Lka/a;->s:Lka/c;

    invoke-interface {v2}, Lka/c;->u()[B

    move-result-object v2

    iget-object v4, v0, Lka/a;->s:Lka/c;

    invoke-interface {v4}, Lka/c;->n()[B

    move-result-object v13

    const/4 v14, 0x0

    move v15, v8

    move/from16 v16, v14

    :goto_80
    if-lez v15, :cond_db

    const/4 v4, 0x1

    if-nez v16, :cond_87

    move v5, v4

    goto :goto_88

    :cond_87
    move v5, v14

    :goto_88
    if-eqz v2, :cond_8e

    if-nez v5, :cond_8e

    move v6, v4

    goto :goto_8f

    :cond_8e
    move v6, v14

    :goto_8f
    if-eqz v2, :cond_99

    if-nez v5, :cond_9a

    array-length v5, v2

    sub-int v5, v3, v5

    if-le v15, v5, :cond_99

    goto :goto_9a

    :cond_99
    move v4, v14

    :cond_9a
    :goto_9a
    if-eqz v2, :cond_a0

    if-eqz v6, :cond_a0

    array-length v5, v2

    goto :goto_a1

    :cond_a0
    move v5, v14

    :goto_a1
    sub-int v5, v3, v5

    if-eqz v13, :cond_a9

    if-eqz v4, :cond_a9

    array-length v7, v13

    goto :goto_aa

    :cond_a9
    move v7, v14

    :goto_aa
    sub-int/2addr v5, v7

    if-le v5, v15, :cond_b0

    move/from16 v17, v15

    goto :goto_b2

    :cond_b0
    move/from16 v17, v5

    :goto_b2
    if-ltz v17, :cond_d3

    const/4 v5, 0x0

    if-eqz v6, :cond_b9

    move-object v9, v2

    goto :goto_ba

    :cond_b9
    move-object v9, v5

    :goto_ba
    if-eqz v4, :cond_be

    move-object v10, v13

    goto :goto_bf

    :cond_be
    move-object v10, v5

    :goto_bf
    move-object/from16 v4, p1

    move-object v5, v1

    move-object v6, v12

    move/from16 v7, v16

    move/from16 v8, v17

    invoke-virtual/range {v4 .. v10}, Lna/a;->b([B[BII[B[B)[B

    move-result-object v4

    invoke-virtual {v0, v4}, Lka/a;->p([B)V

    add-int v16, v16, v17

    sub-int v15, v15, v17

    goto :goto_80

    :cond_d3
    new-instance v1, Lja/f;

    const-string v2, "Message length < 0; recommendation: increase the size of maxMessageLength"

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

    throw v1

    :cond_db
    :goto_db
    return-void
.end method

.method public abstract p([B)V
.end method
