.class public abstract Lz2/g;
.super Lc3/d;
.source ""

# interfaces
.implements Ln2/g;


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


# instance fields
.field public v:Z

.field public w:Lz2/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz2/b<",
            "TE;>;"
        }
    .end annotation
.end field

.field public x:Ljava/lang/String;

.field public y:Lh2/g;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lh2/g;"
        }
    .end annotation
.end field

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


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

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

    .line 2
    new-instance v0, Ljava/util/HashMap;

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

    iput-object v0, p0, Lz2/g;->z:Ljava/util/Map;

    return-void
.end method


# virtual methods
.method public k(Ln2/e;)V
    .registers 2

    .line 1
    iput-object p1, p0, Lc3/d;->t:Ln2/e;

    return-void
.end method

.method public n()Z
    .registers 2

    .line 1
    iget-boolean v0, p0, Lz2/g;->v:Z

    return v0
.end method

.method public start()V
    .registers 7

    iget-object v0, p0, Lz2/g;->x:Ljava/lang/String;

    if-eqz v0, :cond_93

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

    move-result v0

    if-nez v0, :cond_c

    goto/16 :goto_93

    :cond_c
    :try_start_c
    new-instance v0, La3/e;

    iget-object v1, p0, Lz2/g;->x:Ljava/lang/String;

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

    .line 1
    iget-object v1, p0, Lc3/d;->t:Ln2/e;

    if-eqz v1, :cond_1a

    .line 2
    invoke-virtual {v0, v1}, Lc3/d;->k(Ln2/e;)V

    .line 3
    :cond_1a
    invoke-virtual {v0}, La3/e;->B()La3/d;

    move-result-object v1

    .line 4
    new-instance v2, Ljava/util/HashMap;

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

    .line 5
    sget-object v3, Lb2/e;->A:Ljava/util/Map;

    if-eqz v3, :cond_2a

    .line 6
    invoke-virtual {v2, v3}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    .line 7
    :cond_2a
    iget-object v3, p0, Lc3/d;->t:Ln2/e;

    if-eqz v3, :cond_3b

    const-string v4, "PATTERN_RULE_REGISTRY"

    .line 8
    invoke-interface {v3, v4}, Ln2/e;->f(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map;

    if-eqz v3, :cond_3b

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    :cond_3b
    iget-object v3, p0, Lz2/g;->z:Ljava/util/Map;

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->putAll(Ljava/util/Map;)V

    .line 9
    new-instance v3, La3/a;

    invoke-direct {v3, v1, v2}, La3/a;-><init>(La3/d;Ljava/util/Map;)V

    iget-object v0, v0, Lc3/d;->t:Ln2/e;

    invoke-virtual {v3, v0}, Lc3/d;->k(Ln2/e;)V

    invoke-virtual {v3}, La3/a;->B()Lz2/b;

    move-result-object v0

    .line 10
    iput-object v0, p0, Lz2/g;->w:Lz2/b;

    iget-object v1, p0, Lz2/g;->y:Lh2/g;

    if-eqz v1, :cond_57

    invoke-virtual {v1, v0}, Lh2/g;->a(Lz2/b;)V

    .line 11
    :cond_57
    iget-object v0, p0, Lc3/d;->t:Ln2/e;

    .line 12
    iget-object v1, p0, Lz2/g;->w:Lz2/b;

    :goto_5b
    if-eqz v1, :cond_6c

    .line 13
    instance-of v2, v1, Lc3/c;

    if-eqz v2, :cond_67

    move-object v2, v1

    check-cast v2, Lc3/c;

    invoke-interface {v2, v0}, Lc3/c;->k(Ln2/e;)V

    .line 14
    :cond_67
    iget-object v1, v1, Lz2/b;->r:Ljava/lang/Object;

    check-cast v1, Lz2/b;

    goto :goto_5b

    .line 15
    :cond_6c
    iget-object v0, p0, Lz2/g;->w:Lz2/b;

    invoke-static {v0}, Le/g;->f(Lz2/b;)V

    const/4 v0, 0x1

    .line 16
    iput-boolean v0, p0, Lz2/g;->v:Z
    :try_end_74
    .catch Lc3/i; {:try_start_c .. :try_end_74} :catch_75

    goto :goto_92

    :catch_75
    move-exception v0

    .line 17
    iget-object v1, p0, Lc3/d;->t:Ln2/e;

    .line 18
    invoke-interface {v1}, Ln2/e;->d()Ln2/d;

    move-result-object v1

    new-instance v2, Ld3/a;

    const-string v3, "Failed to parse pattern \""

    invoke-static {v3}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 19
    iget-object v4, p0, Lz2/g;->x:Ljava/lang/String;

    const-string v5, "\"."

    .line 20
    invoke-static {v3, v4, v5}, Landroidx/activity/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3, p0, v0}, Ld3/a;-><init>(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Throwable;)V

    invoke-virtual {v1, v2}, Ln2/d;->a(Ld3/d;)V

    :goto_92
    return-void

    :cond_93
    :goto_93
    const-string v0, "Empty or null pattern."

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

    return-void
.end method

.method public stop()V
    .registers 2

    const/4 v0, 0x0

    .line 1
    iput-boolean v0, p0, Lz2/g;->v:Z

    return-void
.end method

.method public toString()Ljava/lang/String;
    .registers 4

    new-instance v0, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

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

    move-result-object v1

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

    const-string v1, "(\""

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

    .line 1
    iget-object v1, p0, Lz2/g;->x:Ljava/lang/String;

    const-string v2, "\")"

    .line 2
    invoke-static {v0, v1, v2}, Landroidx/activity/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public y()Ln2/e;
    .registers 2

    .line 1
    iget-object v0, p0, Lc3/d;->t:Ln2/e;

    return-object v0
.end method
