.class public Lu2/i;
.super Lu2/a;
.source ""


# instance fields
.field public x:I


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

    invoke-direct {p0}, Lu2/a;-><init>()V

    const/4 v0, 0x2

    iput v0, p0, Lu2/i;->x:I

    return-void
.end method


# virtual methods
.method public G(Lw2/i;Ljava/net/URL;)V
    .registers 8

    const-string v0, "]"

    .line 1
    :try_start_2
    invoke-virtual {p2}, Ljava/net/URL;->openStream()Ljava/io/InputStream;

    move-result-object v1
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_6} :catch_7

    goto :goto_24

    :catch_7
    move-exception v1

    .line 2
    iget-boolean v2, p0, Lu2/a;->w:Z

    if-nez v2, :cond_23

    const-string v2, "Failed to open ["

    .line 3
    invoke-static {v2}, Landroidx/activity/c;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

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

    move-result-object v3

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

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

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

    move-result-object v2

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

    :cond_23
    const/4 v1, 0x0

    :goto_24
    if-eqz v1, :cond_75

    .line 4
    :try_start_26
    iget-object v2, p0, Lc3/d;->t:Ln2/e;

    .line 5
    invoke-static {v2, p2}, Lx2/a;->b(Ln2/e;Ljava/net/URL;)V

    invoke-virtual {p0, v1, p2}, Lu2/i;->H(Ljava/io/InputStream;Ljava/net/URL;)Lv2/e;

    move-result-object v2

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

    .line 7
    iget-object v4, v2, Lv2/e;->r:Lc3/d;

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

    .line 8
    new-instance v3, Lorg/xml/sax/InputSource;

    invoke-direct {v3, v1}, Lorg/xml/sax/InputSource;-><init>(Ljava/io/InputStream;)V

    invoke-virtual {v2, v3}, Lv2/e;->d(Lorg/xml/sax/InputSource;)Ljava/util/List;

    .line 9
    invoke-virtual {p0, v2}, Lu2/i;->I(Lv2/e;)V

    .line 10
    iget-object p1, p1, Lw2/i;->y:Lw2/j;

    .line 11
    iget-object p1, p1, Lw2/j;->g:Lw2/g;

    .line 12
    iget-object v2, v2, Lv2/e;->s:Ljava/util/List;

    .line 13
    iget v3, p0, Lu2/i;->x:I

    .line 14
    iget-object v4, p1, Lw2/g;->b:Ljava/util/List;

    iget p1, p1, Lw2/g;->c:I

    add-int/2addr p1, v3

    invoke-interface {v4, p1, v2}, Ljava/util/List;->addAll(ILjava/util/Collection;)Z
    :try_end_51
    .catch Lw2/k; {:try_start_26 .. :try_end_51} :catch_54
    .catchall {:try_start_26 .. :try_end_51} :catchall_52

    goto :goto_75

    :catchall_52
    move-exception p1

    goto :goto_71

    :catch_54
    move-exception p1

    .line 15
    :try_start_55
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "Failed processing ["

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

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

    move-result-object p2

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

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

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

    move-result-object p2

    invoke-virtual {p0, p2, p1}, Lc3/d;->g(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_70
    .catchall {:try_start_55 .. :try_end_70} :catchall_52

    goto :goto_77

    .line 16
    :goto_71
    :try_start_71
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V
    :try_end_74
    .catch Ljava/io/IOException; {:try_start_71 .. :try_end_74} :catch_74

    .line 17
    :catch_74
    throw p1

    :cond_75
    :goto_75
    if-eqz v1, :cond_7a

    .line 18
    :goto_77
    :try_start_77
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V
    :try_end_7a
    .catch Ljava/io/IOException; {:try_start_77 .. :try_end_7a} :catch_7a

    :catch_7a
    :cond_7a
    return-void
.end method

.method public H(Ljava/io/InputStream;Ljava/net/URL;)Lv2/e;
    .registers 3

    new-instance p1, Lv2/e;

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

    .line 2
    invoke-direct {p1, p2}, Lv2/e;-><init>(Ln2/e;)V

    return-object p1
.end method

.method public final I(Lv2/e;)V
    .registers 9

    .line 1
    iget-object p1, p1, Lv2/e;->s:Ljava/util/List;

    .line 2
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_9

    return-void

    :cond_9
    const/4 v0, 0x0

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

    move-result-object v1

    check-cast v1, Lv2/d;

    const-string v2, "configuration"

    const-string v3, "included"

    if-eqz v1, :cond_2c

    .line 3
    iget-object v4, v1, Lv2/d;->b:Ljava/lang/String;

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

    move-result v4

    if-lez v4, :cond_21

    iget-object v1, v1, Lv2/d;->b:Ljava/lang/String;

    goto :goto_23

    :cond_21
    iget-object v1, v1, Lv2/d;->a:Ljava/lang/String;

    .line 4
    :goto_23
    invoke-virtual {v3, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

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

    move-result v1

    goto :goto_2e

    :cond_2c
    move v1, v0

    move v4, v1

    :goto_2e
    if-nez v4, :cond_32

    if-eqz v1, :cond_66

    :cond_32
    invoke-interface {p1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

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

    move-result v0

    if-nez v0, :cond_3c

    return-void

    :cond_3c
    add-int/lit8 v0, v0, -0x1

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

    move-result-object v5

    check-cast v5, Lv2/d;

    if-eqz v5, :cond_66

    .line 5
    iget-object v6, v5, Lv2/d;->b:Ljava/lang/String;

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

    move-result v6

    if-lez v6, :cond_51

    iget-object v5, v5, Lv2/d;->b:Ljava/lang/String;

    goto :goto_53

    :cond_51
    iget-object v5, v5, Lv2/d;->a:Ljava/lang/String;

    :goto_53
    if-eqz v4, :cond_5b

    .line 6
    invoke-virtual {v3, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_63

    :cond_5b
    if-eqz v1, :cond_66

    invoke-virtual {v2, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_66

    :cond_63
    invoke-interface {p1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    :cond_66
    return-void
.end method
