.class public La3/h;
.super Ljava/lang/Object;
.source ""


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

.field public final b:I

.field public final c:Lb3/b;

.field public d:I

.field public e:I


# direct methods
.method public constructor <init>(Ljava/lang/String;Lb3/b;)V
    .registers 4

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

    const/4 v0, 0x1

    iput v0, p0, La3/h;->d:I

    const/4 v0, 0x0

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

    if-eqz p1, :cond_1c

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

    move-result v0

    if-eqz v0, :cond_1c

    iput-object p1, p0, La3/h;->a:Ljava/lang/String;

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

    move-result p1

    iput p1, p0, La3/h;->b:I

    iput-object p2, p0, La3/h;->c:Lb3/b;

    return-void

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

    const-string p2, "null or empty pattern string not allowed"

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

    throw p1
.end method


# virtual methods
.method public final a(ILjava/lang/StringBuffer;Ljava/util/List;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I",
            "Ljava/lang/StringBuffer;",
            "Ljava/util/List<",
            "La3/g;",
            ">;)V"
        }
    .end annotation

    invoke-virtual {p2}, Ljava/lang/StringBuffer;->length()I

    move-result v0

    if-lez v0, :cond_16

    new-instance v0, La3/g;

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

    move-result-object v1

    invoke-direct {v0, p1, v1}, La3/g;-><init>(ILjava/lang/Object;)V

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

    const/4 p1, 0x0

    invoke-virtual {p2, p1}, Ljava/lang/StringBuffer;->setLength(I)V

    :cond_16
    return-void
.end method

.method public b(Ljava/lang/String;Ljava/lang/StringBuffer;)V
    .registers 6

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

    iget v1, p0, La3/h;->b:I

    if-ge v0, v1, :cond_17

    iget-object v1, p0, La3/h;->a:Ljava/lang/String;

    add-int/lit8 v2, v0, 0x1

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

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

    move-result v0

    iget-object v1, p0, La3/h;->c:Lb3/b;

    iget v2, p0, La3/h;->e:I

    invoke-interface {v1, p1, p2, v0, v2}, Lb3/b;->c(Ljava/lang/String;Ljava/lang/StringBuffer;CI)V

    :cond_17
    return-void
.end method

.method public c()Ljava/util/List;
    .registers 18

    move-object/from16 v0, p0

    new-instance v1, Ljava/util/ArrayList;

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

    new-instance v2, Ljava/lang/StringBuffer;

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

    :cond_c
    :goto_c
    iget v3, v0, La3/h;->e:I

    iget v4, v0, La3/h;->b:I

    const/4 v5, 0x3

    const/4 v6, 0x4

    const/16 v7, 0x3ec

    const/16 v8, 0x3e8

    const/4 v9, 0x2

    const/4 v10, 0x1

    if-ge v3, v4, :cond_1c2

    iget-object v4, v0, La3/h;->a:Ljava/lang/String;

    invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C

    move-result v3

    iget v4, v0, La3/h;->e:I

    add-int/2addr v4, v10

    iput v4, v0, La3/h;->e:I

    iget v4, v0, La3/h;->d:I

    invoke-static {v4}, Ls/f;->a(I)I

    move-result v4

    const-string v11, "%()"

    const/16 v12, 0x29

    const/16 v13, 0x25

    const/16 v14, 0x5c

    if-eqz v4, :cond_1a0

    const/16 v8, 0x28

    if-eq v4, v10, :cond_180

    const/16 v15, 0x7b

    if-eq v4, v9, :cond_133

    if-eq v4, v5, :cond_5c

    if-eq v4, v6, :cond_42

    goto :goto_c

    .line 1
    :cond_42
    sget-object v4, La3/g;->c:La3/g;

    invoke-virtual {v1, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    if-eq v3, v12, :cond_c

    if-eq v3, v14, :cond_54

    if-eq v3, v15, :cond_51

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

    goto :goto_59

    :cond_51
    iput v6, v0, La3/h;->d:I

    goto :goto_c

    :cond_54
    const-string v3, "%{}"

    invoke-virtual {v0, v3, v2}, La3/h;->b(Ljava/lang/String;Ljava/lang/StringBuffer;)V

    :goto_59
    iput v10, v0, La3/h;->d:I

    goto :goto_c

    .line 2
    :cond_5c
    iget-object v4, v0, La3/h;->a:Ljava/lang/String;

    iget v5, v0, La3/h;->b:I

    .line 3
    new-instance v6, Ljava/lang/StringBuffer;

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

    new-instance v7, Ljava/util/ArrayList;

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

    const/4 v11, 0x0

    const/4 v12, 0x0

    :goto_6c
    iget v13, v0, La3/h;->e:I

    const/16 v15, 0x3ee

    const/16 v8, 0x7d

    if-ge v13, v5, :cond_107

    const/16 v13, 0x2c

    if-eqz v11, :cond_ce

    if-eq v11, v10, :cond_a1

    if-eq v11, v9, :cond_80

    :cond_7c
    :goto_7c
    const/16 v16, 0x0

    goto/16 :goto_f9

    :cond_80
    if-ne v3, v12, :cond_87

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

    move-result-object v3

    goto :goto_c3

    :cond_87
    if-ne v3, v14, :cond_a5

    invoke-static {v12}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;

    .line 4
    iget v3, v0, La3/h;->e:I

    if-ge v3, v5, :cond_7c

    add-int/lit8 v8, v3, 0x1

    iput v8, v0, La3/h;->e:I

    invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C

    move-result v3

    const-string v8, "\\"

    .line 5
    invoke-virtual {v6, v8}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_7c

    :cond_a1
    if-eq v3, v13, :cond_bb

    if-eq v3, v8, :cond_a9

    .line 6
    :cond_a5
    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto :goto_7c

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

    move-result-object v3

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

    move-result-object v3

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 7
    new-instance v3, La3/g;

    invoke-direct {v3, v15, v7}, La3/g;-><init>(ILjava/lang/Object;)V

    goto/16 :goto_120

    .line 8
    :cond_bb
    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v3

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

    move-result-object v3

    :goto_c3
    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const/4 v3, 0x0

    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->setLength(I)V

    move v11, v3

    move/from16 v16, v11

    goto :goto_f9

    :cond_ce
    const/16 v16, 0x0

    const/16 v9, 0x9

    if-eq v3, v9, :cond_f9

    const/16 v9, 0xa

    if-eq v3, v9, :cond_f9

    const/16 v9, 0xd

    if-eq v3, v9, :cond_f9

    const/16 v9, 0x20

    if-eq v3, v9, :cond_f9

    const/16 v9, 0x22

    if-eq v3, v9, :cond_f7

    const/16 v9, 0x27

    if-eq v3, v9, :cond_f7

    if-eq v3, v13, :cond_f9

    if-eq v3, v8, :cond_f1

    invoke-virtual {v6, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    move v11, v10

    goto :goto_f9

    .line 9
    :cond_f1
    new-instance v3, La3/g;

    invoke-direct {v3, v15, v7}, La3/g;-><init>(ILjava/lang/Object;)V

    goto :goto_120

    :cond_f7
    move v12, v3

    const/4 v11, 0x2

    .line 10
    :cond_f9
    :goto_f9
    iget v3, v0, La3/h;->e:I

    invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C

    move-result v3

    iget v8, v0, La3/h;->e:I

    add-int/2addr v8, v10

    iput v8, v0, La3/h;->e:I

    const/4 v9, 0x2

    goto/16 :goto_6c

    :cond_107
    const-string v4, "Unexpected end of pattern string in OptionTokenizer"

    if-ne v3, v8, :cond_12d

    if-nez v11, :cond_10e

    goto :goto_11b

    :cond_10e
    if-ne v11, v10, :cond_127

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

    move-result-object v3

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

    move-result-object v3

    invoke-virtual {v7, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 11
    :goto_11b
    new-instance v3, La3/g;

    invoke-direct {v3, v15, v7}, La3/g;-><init>(ILjava/lang/Object;)V

    :goto_120
    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iput v10, v0, La3/h;->d:I

    goto/16 :goto_c

    .line 12
    :cond_127
    new-instance v1, Lc3/i;

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

    throw v1

    :cond_12d
    new-instance v1, Lc3/i;

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

    throw v1

    .line 13
    :cond_133
    invoke-static {v3}, Ljava/lang/Character;->isJavaIdentifierPart(C)Z

    move-result v4

    if-eqz v4, :cond_13e

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

    goto/16 :goto_c

    :cond_13e
    if-ne v3, v15, :cond_144

    invoke-virtual {v0, v7, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    goto :goto_15b

    :cond_144
    if-ne v3, v8, :cond_14c

    const/16 v3, 0x3ed

    invoke-virtual {v0, v3, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    goto :goto_17c

    :cond_14c
    invoke-virtual {v0, v7, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    if-ne v3, v13, :cond_158

    sget-object v3, La3/g;->e:La3/g;

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const/4 v6, 0x2

    goto :goto_15b

    :cond_158
    if-ne v3, v12, :cond_15f

    const/4 v6, 0x5

    :goto_15b
    iput v6, v0, La3/h;->d:I

    goto/16 :goto_c

    :cond_15f
    if-ne v3, v14, :cond_179

    iget v3, v0, La3/h;->e:I

    iget v4, v0, La3/h;->b:I

    if-ge v3, v4, :cond_17c

    iget-object v4, v0, La3/h;->a:Ljava/lang/String;

    add-int/lit8 v5, v3, 0x1

    iput v5, v0, La3/h;->e:I

    invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C

    move-result v3

    iget-object v4, v0, La3/h;->c:Lb3/b;

    iget v5, v0, La3/h;->e:I

    invoke-interface {v4, v11, v2, v3, v5}, Lb3/b;->c(Ljava/lang/String;Ljava/lang/StringBuffer;CI)V

    goto :goto_17c

    :cond_179
    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_17c
    :goto_17c
    iput v10, v0, La3/h;->d:I

    goto/16 :goto_c

    :cond_180
    const/16 v4, 0x3ea

    if-ne v3, v8, :cond_190

    .line 14
    invoke-virtual {v0, v4, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    sget-object v3, La3/g;->d:La3/g;

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iput v10, v0, La3/h;->d:I

    goto/16 :goto_c

    :cond_190
    invoke-static {v3}, Ljava/lang/Character;->isJavaIdentifierStart(C)Z

    move-result v6

    if-eqz v6, :cond_19b

    invoke-virtual {v0, v4, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    iput v5, v0, La3/h;->d:I

    :cond_19b
    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto/16 :goto_c

    :cond_1a0
    if-eq v3, v13, :cond_1b5

    if-eq v3, v12, :cond_1b0

    if-eq v3, v14, :cond_1ab

    .line 15
    invoke-virtual {v2, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    goto/16 :goto_c

    :cond_1ab
    invoke-virtual {v0, v11, v2}, La3/h;->b(Ljava/lang/String;Ljava/lang/StringBuffer;)V

    goto/16 :goto_c

    :cond_1b0
    invoke-virtual {v0, v8, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    const/4 v9, 0x5

    goto :goto_1be

    :cond_1b5
    invoke-virtual {v0, v8, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    sget-object v3, La3/g;->e:La3/g;

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    const/4 v9, 0x2

    :goto_1be
    iput v9, v0, La3/h;->d:I

    goto/16 :goto_c

    .line 16
    :cond_1c2
    iget v3, v0, La3/h;->d:I

    invoke-static {v3}, Ls/f;->a(I)I

    move-result v3

    if-eqz v3, :cond_1ef

    if-eq v3, v10, :cond_1e7

    const/4 v4, 0x2

    if-eq v3, v4, :cond_1da

    if-eq v3, v5, :cond_1e7

    if-eq v3, v6, :cond_1d4

    goto :goto_1f2

    :cond_1d4
    sget-object v2, La3/g;->c:La3/g;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1f2

    :cond_1da
    new-instance v3, La3/g;

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

    move-result-object v2

    invoke-direct {v3, v7, v2}, La3/g;-><init>(ILjava/lang/Object;)V

    invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1f2

    :cond_1e7
    new-instance v1, Lc3/i;

    const-string v2, "Unexpected end of pattern string"

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

    throw v1

    :cond_1ef
    invoke-virtual {v0, v8, v2, v1}, La3/h;->a(ILjava/lang/StringBuffer;Ljava/util/List;)V

    :goto_1f2
    return-object v1
.end method
