.class public La3/e;
.super Lc3/d;
.source ""


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


# static fields
.field public static final x:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public final v:Ljava/util/List;

.field public w:I


# direct methods
.method public static constructor <clinit>()V
    .registers 3

    new-instance v0, Ljava/util/HashMap;

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

    sput-object v0, La3/e;->x:Ljava/util/Map;

    const-string v1, "BARE"

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

    move-result-object v1

    const-class v2, Lz2/e;

    invoke-virtual {v2}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-class v1, Lz2/h;

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    const-string v2, "replace"

    invoke-interface {v0, v2, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .registers 4

    new-instance v0, Lb3/c;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lb3/c;-><init>(I)V

    .line 1
    invoke-direct {p0}, Lc3/d;-><init>()V

    iput v1, p0, La3/e;->w:I

    :try_start_b
    new-instance v1, La3/h;

    invoke-direct {v1, p1, v0}, La3/h;-><init>(Ljava/lang/String;Lb3/b;)V

    invoke-virtual {v1}, La3/h;->c()Ljava/util/List;

    move-result-object p1

    iput-object p1, p0, La3/e;->v:Ljava/util/List;
    :try_end_16
    .catch Ljava/lang/IllegalArgumentException; {:try_start_b .. :try_end_16} :catch_17

    return-void

    :catch_17
    move-exception p1

    new-instance v0, Lc3/i;

    const-string v1, "Failed to initialize Parser"

    invoke-direct {v0, v1, p1}, Lc3/i;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v0
.end method


# virtual methods
.method public A()La3/c;
    .registers 6

    invoke-virtual {p0}, La3/e;->E()La3/g;

    move-result-object v0

    const-string v1, "a LEFT_PARENTHESIS or KEYWORD"

    invoke-virtual {p0, v0, v1}, La3/e;->D(La3/g;Ljava/lang/String;)V

    .line 1
    iget v1, v0, La3/g;->a:I

    const/16 v2, 0x3ec

    const/16 v3, 0x3ee

    if-eq v1, v2, :cond_7f

    const/16 v2, 0x3ed

    if-ne v1, v2, :cond_68

    .line 2
    invoke-virtual {p0}, La3/e;->C()V

    .line 3
    iget-object v0, v0, La3/g;->b:Ljava/lang/Object;

    .line 4
    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 5
    new-instance v1, La3/b;

    invoke-direct {v1, v0}, La3/b;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, La3/e;->B()La3/d;

    move-result-object v0

    .line 6
    iput-object v0, v1, La3/b;->f:La3/d;

    .line 7
    invoke-virtual {p0}, La3/e;->F()La3/g;

    move-result-object v0

    if-eqz v0, :cond_49

    .line 8
    iget v2, v0, La3/g;->a:I

    const/16 v4, 0x29

    if-ne v2, v4, :cond_49

    .line 9
    invoke-virtual {p0}, La3/e;->E()La3/g;

    move-result-object v0

    if-eqz v0, :cond_48

    .line 10
    iget v2, v0, La3/g;->a:I

    if-ne v2, v3, :cond_48

    .line 11
    iget-object v0, v0, La3/g;->b:Ljava/lang/Object;

    .line 12
    check-cast v0, Ljava/util/List;

    .line 13
    iput-object v0, v1, La3/f;->e:Ljava/util/List;

    .line 14
    invoke-virtual {p0}, La3/e;->C()V

    :cond_48
    return-object v1

    :cond_49
    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "Expecting RIGHT_PARENTHESIS token but got "

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

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

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

    move-result-object v0

    invoke-virtual {p0, v0}, Lc3/d;->t(Ljava/lang/String;)V

    const-string v1, "See also http://logback.qos.ch/codes.html#missingRightParenthesis"

    invoke-virtual {p0, v1}, Lc3/d;->t(Ljava/lang/String;)V

    new-instance v1, Lc3/i;

    invoke-direct {v1, v0}, Lc3/i;-><init>(Ljava/lang/String;)V

    throw v1

    .line 15
    :cond_68
    new-instance v1, Ljava/lang/IllegalStateException;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "Unexpected token "

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

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

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

    move-result-object v0

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

    throw v1

    .line 16
    :cond_7f
    invoke-virtual {p0}, La3/e;->F()La3/g;

    move-result-object v0

    new-instance v1, La3/f;

    .line 17
    iget-object v0, v0, La3/g;->b:Ljava/lang/Object;

    .line 18
    invoke-direct {v1, v0}, La3/f;-><init>(Ljava/lang/Object;)V

    invoke-virtual {p0}, La3/e;->E()La3/g;

    move-result-object v0

    if-eqz v0, :cond_9d

    .line 19
    iget v2, v0, La3/g;->a:I

    if-ne v2, v3, :cond_9d

    .line 20
    iget-object v0, v0, La3/g;->b:Ljava/lang/Object;

    .line 21
    check-cast v0, Ljava/util/List;

    .line 22
    iput-object v0, v1, La3/f;->e:Ljava/util/List;

    .line 23
    invoke-virtual {p0}, La3/e;->C()V

    :cond_9d
    return-object v1
.end method

.method public B()La3/d;
    .registers 8

    .line 1
    invoke-virtual {p0}, La3/e;->E()La3/g;

    move-result-object v0

    const-string v1, "a LITERAL or \'%\'"

    invoke-virtual {p0, v0, v1}, La3/e;->D(La3/g;Ljava/lang/String;)V

    .line 2
    iget v1, v0, La3/g;->a:I

    const/16 v2, 0x25

    const/4 v3, 0x0

    const/4 v4, 0x0

    if-eq v1, v2, :cond_24

    const/16 v2, 0x3e8

    if-eq v1, v2, :cond_18

    move-object v1, v4

    goto/16 :goto_aa

    .line 3
    :cond_18
    invoke-virtual {p0}, La3/e;->C()V

    new-instance v1, La3/d;

    .line 4
    iget-object v0, v0, La3/g;->b:Ljava/lang/Object;

    .line 5
    invoke-direct {v1, v3, v0}, La3/d;-><init>(ILjava/lang/Object;)V

    goto/16 :goto_aa

    :cond_24
    invoke-virtual {p0}, La3/e;->C()V

    invoke-virtual {p0}, La3/e;->E()La3/g;

    move-result-object v0

    const-string v1, "a FORMAT_MODIFIER, SIMPLE_KEYWORD or COMPOUND_KEYWORD"

    invoke-virtual {p0, v0, v1}, La3/e;->D(La3/g;Ljava/lang/String;)V

    .line 6
    iget v1, v0, La3/g;->a:I

    const/16 v2, 0x3ea

    if-ne v1, v2, :cond_a5

    .line 7
    iget-object v0, v0, La3/g;->b:Ljava/lang/Object;

    .line 8
    check-cast v0, Ljava/lang/String;

    const-string v1, "Argument cannot be null"

    .line 9
    invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    new-instance v1, Lz2/d;

    invoke-direct {v1}, Lz2/d;-><init>()V

    const/16 v2, 0x2e

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

    move-result v2

    const/4 v5, -0x1

    if-eq v2, v5, :cond_6e

    invoke-virtual {v0, v3, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v5

    add-int/lit8 v2, v2, 0x1

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

    move-result v6

    if-eq v2, v6, :cond_60

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

    move-result-object v0

    move-object v2, v0

    move-object v0, v5

    goto :goto_6f

    :cond_60
    new-instance v1, Ljava/lang/IllegalArgumentException;

    const-string v2, "Formatting string ["

    const-string v3, "] should not end with \'.\'"

    invoke-static {v2, v0, v3}, Le/b;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

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

    throw v1

    :cond_6e
    move-object v2, v4

    :goto_6f
    if-eqz v0, :cond_85

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

    move-result v5

    if-lez v5, :cond_85

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    if-ltz v0, :cond_80

    iput v0, v1, Lz2/d;->a:I

    goto :goto_85

    :cond_80
    neg-int v0, v0

    iput v0, v1, Lz2/d;->a:I

    iput-boolean v3, v1, Lz2/d;->c:Z

    :cond_85
    :goto_85
    if-eqz v2, :cond_9b

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

    move-result v0

    if-lez v0, :cond_9b

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    if-ltz v0, :cond_96

    iput v0, v1, Lz2/d;->b:I

    goto :goto_9b

    :cond_96
    neg-int v0, v0

    iput v0, v1, Lz2/d;->b:I

    iput-boolean v3, v1, Lz2/d;->d:Z

    .line 10
    :cond_9b
    :goto_9b
    invoke-virtual {p0}, La3/e;->C()V

    invoke-virtual {p0}, La3/e;->A()La3/c;

    move-result-object v0

    .line 11
    iput-object v1, v0, La3/c;->d:Lz2/d;

    goto :goto_a9

    .line 12
    :cond_a5
    invoke-virtual {p0}, La3/e;->A()La3/c;

    move-result-object v0

    :goto_a9
    move-object v1, v0

    :goto_aa
    if-nez v1, :cond_ad

    return-object v4

    .line 13
    :cond_ad
    invoke-virtual {p0}, La3/e;->E()La3/g;

    move-result-object v0

    if-nez v0, :cond_b4

    goto :goto_b8

    :cond_b4
    invoke-virtual {p0}, La3/e;->B()La3/d;

    move-result-object v4

    :goto_b8
    if-eqz v4, :cond_bc

    .line 14
    iput-object v4, v1, La3/d;->c:La3/d;

    :cond_bc
    return-object v1
.end method

.method public C()V
    .registers 2

    iget v0, p0, La3/e;->w:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, La3/e;->w:I

    return-void
.end method

.method public D(La3/g;Ljava/lang/String;)V
    .registers 4

    if-eqz p1, :cond_3

    return-void

    :cond_3
    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v0, "All tokens consumed but was expecting "

    invoke-static {v0, p2}, Le/a;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

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

    throw p1
.end method

.method public E()La3/g;
    .registers 3

    iget v0, p0, La3/e;->w:I

    iget-object v1, p0, La3/e;->v:Ljava/util/List;

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

    move-result v1

    if-ge v0, v1, :cond_15

    iget-object v0, p0, La3/e;->v:Ljava/util/List;

    iget v1, p0, La3/e;->w:I

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

    move-result-object v0

    check-cast v0, La3/g;

    return-object v0

    :cond_15
    const/4 v0, 0x0

    return-object v0
.end method

.method public F()La3/g;
    .registers 4

    iget v0, p0, La3/e;->w:I

    iget-object v1, p0, La3/e;->v:Ljava/util/List;

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

    move-result v1

    if-ge v0, v1, :cond_19

    iget-object v0, p0, La3/e;->v:Ljava/util/List;

    iget v1, p0, La3/e;->w:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, La3/e;->w:I

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

    move-result-object v0

    check-cast v0, La3/g;

    return-object v0

    :cond_19
    const/4 v0, 0x0

    return-object v0
.end method
