.class public final Lg6/n0;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Lg6/h2;

.field public b:Ls1/g;

.field public final c:Landroidx/fragment/app/k0;

.field public final d:Landroidx/appcompat/widget/d0;


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

    new-instance v0, Lg6/h2;

    invoke-direct {v0}, Lg6/h2;-><init>()V

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

    iput-object v0, p0, Lg6/n0;->a:Lg6/h2;

    iget-object v1, v0, Lg6/h2;->b:Ls1/g;

    invoke-virtual {v1}, Ls1/g;->f()Ls1/g;

    move-result-object v1

    iput-object v1, p0, Lg6/n0;->b:Ls1/g;

    new-instance v1, Landroidx/fragment/app/k0;

    const/4 v2, 0x5

    invoke-direct {v1, v2}, Landroidx/fragment/app/k0;-><init>(I)V

    iput-object v1, p0, Lg6/n0;->c:Landroidx/fragment/app/k0;

    new-instance v1, Landroidx/appcompat/widget/d0;

    const/4 v2, 0x6

    invoke-direct {v1, v2}, Landroidx/appcompat/widget/d0;-><init>(I)V

    iput-object v1, p0, Lg6/n0;->d:Landroidx/appcompat/widget/d0;

    new-instance v1, Lg6/a;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lg6/a;-><init>(Lg6/n0;I)V

    iget-object v2, v0, Lg6/h2;->d:Landroidx/lifecycle/s;

    .line 1
    iget-object v2, v2, Landroidx/lifecycle/s;->a:Ljava/util/Map;

    const-string v3, "internal.registerCallback"

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

    .line 2
    new-instance v1, Lg6/a;

    const/4 v2, 0x1

    invoke-direct {v1, p0, v2}, Lg6/a;-><init>(Lg6/n0;I)V

    iget-object v0, v0, Lg6/h2;->d:Landroidx/lifecycle/s;

    .line 3
    iget-object v0, v0, Landroidx/lifecycle/s;->a:Ljava/util/Map;

    const-string v2, "internal.eventLogger"

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

    return-void
.end method


# virtual methods
.method public final a(Lg6/u3;)V
    .registers 9

    :try_start_0
    iget-object v0, p0, Lg6/n0;->a:Lg6/h2;

    iget-object v0, v0, Lg6/h2;->b:Ls1/g;

    invoke-virtual {v0}, Ls1/g;->f()Ls1/g;

    move-result-object v0

    iput-object v0, p0, Lg6/n0;->b:Ls1/g;

    invoke-virtual {p1}, Lg6/u3;->t()Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lg6/n0;->a:Lg6/h2;

    iget-object v2, p0, Lg6/n0;->b:Ls1/g;

    const/4 v3, 0x0

    new-array v4, v3, [Lg6/y3;

    invoke-interface {v0, v4}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object v0

    check-cast v0, [Lg6/y3;

    invoke-virtual {v1, v2, v0}, Lg6/h2;->a(Ls1/g;[Lg6/y3;)Lg6/n;

    move-result-object v0

    instance-of v0, v0, Lg6/f;

    if-nez v0, :cond_c5

    invoke-virtual {p1}, Lg6/u3;->o()Lg6/q3;

    move-result-object p1

    invoke-virtual {p1}, Lg6/q3;->u()Ljava/util/List;

    move-result-object p1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_2f
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_c4

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lg6/s3;

    invoke-virtual {v0}, Lg6/s3;->t()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0}, Lg6/s3;->s()Ljava/lang/String;

    move-result-object v0

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_47
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_2f

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lg6/y3;

    iget-object v4, p0, Lg6/n0;->a:Lg6/h2;

    iget-object v5, p0, Lg6/n0;->b:Ls1/g;

    const/4 v6, 0x1

    new-array v6, v6, [Lg6/y3;

    aput-object v2, v6, v3

    invoke-virtual {v4, v5, v6}, Lg6/h2;->a(Ls1/g;[Lg6/y3;)Lg6/n;

    move-result-object v2

    instance-of v4, v2, Lg6/k;

    if-eqz v4, :cond_bc

    iget-object v4, p0, Lg6/n0;->b:Ls1/g;

    invoke-virtual {v4, v0}, Ls1/g;->l(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_6e

    const/4 v4, 0x0

    goto :goto_94

    :cond_6e
    invoke-virtual {v4, v0}, Ls1/g;->i(Ljava/lang/String;)Lg6/n;

    move-result-object v4

    instance-of v5, v4, Lg6/h;

    if-nez v5, :cond_92

    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v1, "Invalid function name: "

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_89

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

    move-result-object v0

    goto :goto_8e

    :cond_89
    new-instance v0, Ljava/lang/String;

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

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

    throw p1

    :cond_92
    check-cast v4, Lg6/h;

    :goto_94
    if-nez v4, :cond_b2

    new-instance p1, Ljava/lang/IllegalStateException;

    const-string v1, "Rule function is undefined: "

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_a9

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

    move-result-object v0

    goto :goto_ae

    :cond_a9
    new-instance v0, Ljava/lang/String;

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

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

    throw p1

    :cond_b2
    iget-object v5, p0, Lg6/n0;->b:Ls1/g;

    invoke-static {v2}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;

    move-result-object v2

    invoke-virtual {v4, v5, v2}, Lg6/h;->b(Ls1/g;Ljava/util/List;)Lg6/n;

    goto :goto_47

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

    const-string v0, "Invalid rule definition"

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

    throw p1

    :cond_c4
    return-void

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

    const-string v0, "Program loading failed"

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

    throw p1
    :try_end_cd
    .catchall {:try_start_0 .. :try_end_cd} :catchall_cd

    :catchall_cd
    move-exception p1

    new-instance v0, Lg6/g1;

    invoke-direct {v0, p1}, Lg6/g1;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public final b(Lg6/b;)Z
    .registers 5

    :try_start_0
    iget-object v0, p0, Lg6/n0;->c:Landroidx/fragment/app/k0;

    .line 1
    iput-object p1, v0, Landroidx/fragment/app/k0;->s:Ljava/lang/Object;

    invoke-virtual {p1}, Lg6/b;->a()Lg6/b;

    move-result-object p1

    iput-object p1, v0, Landroidx/fragment/app/k0;->t:Ljava/lang/Object;

    iget-object p1, v0, Landroidx/fragment/app/k0;->u:Ljava/lang/Object;

    check-cast p1, Ljava/util/List;

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

    .line 2
    iget-object p1, p0, Lg6/n0;->a:Lg6/h2;

    iget-object p1, p1, Lg6/h2;->c:Ls1/g;

    new-instance v0, Lg6/g;

    const-wide/16 v1, 0x0

    invoke-static {v1, v2}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v1

    invoke-direct {v0, v1}, Lg6/g;-><init>(Ljava/lang/Double;)V

    const-string v1, "runtime.counter"

    invoke-virtual {p1, v1, v0}, Ls1/g;->k(Ljava/lang/String;Lg6/n;)V

    iget-object p1, p0, Lg6/n0;->d:Landroidx/appcompat/widget/d0;

    iget-object v0, p0, Lg6/n0;->b:Ls1/g;

    invoke-virtual {v0}, Ls1/g;->f()Ls1/g;

    move-result-object v0

    iget-object v1, p0, Lg6/n0;->c:Landroidx/fragment/app/k0;

    invoke-virtual {p1, v0, v1}, Landroidx/appcompat/widget/d0;->f(Ls1/g;Landroidx/fragment/app/k0;)V

    invoke-virtual {p0}, Lg6/n0;->c()Z

    move-result p1

    const/4 v0, 0x1

    if-nez p1, :cond_49

    .line 3
    iget-object p1, p0, Lg6/n0;->c:Landroidx/fragment/app/k0;

    .line 4
    iget-object p1, p1, Landroidx/fragment/app/k0;->u:Ljava/lang/Object;

    check-cast p1, Ljava/util/List;

    .line 5
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1
    :try_end_43
    .catchall {:try_start_0 .. :try_end_43} :catchall_4a

    xor-int/2addr p1, v0

    if-eqz p1, :cond_47

    goto :goto_49

    :cond_47
    const/4 p1, 0x0

    return p1

    :cond_49
    :goto_49
    return v0

    :catchall_4a
    move-exception p1

    .line 6
    new-instance v0, Lg6/g1;

    invoke-direct {v0, p1}, Lg6/g1;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public final c()Z
    .registers 3

    iget-object v0, p0, Lg6/n0;->c:Landroidx/fragment/app/k0;

    .line 1
    iget-object v1, v0, Landroidx/fragment/app/k0;->t:Ljava/lang/Object;

    check-cast v1, Lg6/b;

    .line 2
    iget-object v0, v0, Landroidx/fragment/app/k0;->s:Ljava/lang/Object;

    check-cast v0, Lg6/b;

    .line 3
    invoke-virtual {v1, v0}, Lg6/b;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_12

    const/4 v0, 0x1

    return v0

    :cond_12
    const/4 v0, 0x0

    return v0
.end method
