.class public final Lg6/h6;
.super Lg6/h;
.source ""


# instance fields
.field public final synthetic t:I

.field public final u:Ljava/lang/Object;


# direct methods
.method public constructor <init>(Landroidx/appcompat/widget/d0;)V
    .registers 3

    const/4 v0, 0x3

    iput v0, p0, Lg6/h6;->t:I

    const-string v0, "internal.registerCallback"

    .line 1
    invoke-direct {p0, v0}, Lg6/h;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lg6/h6;->u:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Landroidx/fragment/app/k0;)V
    .registers 3

    const/4 v0, 0x0

    iput v0, p0, Lg6/h6;->t:I

    const-string v0, "internal.eventLogger"

    .line 2
    invoke-direct {p0, v0}, Lg6/h;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lg6/h6;->u:Ljava/lang/Object;

    return-void
.end method

.method public constructor <init>(Lj6/w3;)V
    .registers 7

    const/4 v0, 0x1

    iput v0, p0, Lg6/h6;->t:I

    const-string v1, "internal.logger"

    .line 3
    invoke-direct {p0, v1}, Lg6/h;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lg6/h6;->u:Ljava/lang/Object;

    iget-object p1, p0, Lg6/h;->s:Ljava/util/Map;

    new-instance v1, Lg6/ec;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2, v0}, Lg6/ec;-><init>(Lg6/h6;ZZ)V

    const-string v3, "log"

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

    iget-object p1, p0, Lg6/h;->s:Ljava/util/Map;

    new-instance v1, Lg6/ab;

    invoke-direct {v1}, Lg6/ab;-><init>()V

    const-string v4, "silent"

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

    iget-object p1, p0, Lg6/h;->s:Ljava/util/Map;

    invoke-interface {p1, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lg6/h;

    new-instance v1, Lg6/ec;

    invoke-direct {v1, p0, v0, v0}, Lg6/ec;-><init>(Lg6/h6;ZZ)V

    .line 4
    iget-object p1, p1, Lg6/h;->s:Ljava/util/Map;

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

    .line 5
    iget-object p1, p0, Lg6/h;->s:Ljava/util/Map;

    new-instance v0, Lg6/bc;

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

    const-string v1, "unmonitored"

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

    iget-object p1, p0, Lg6/h;->s:Ljava/util/Map;

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lg6/h;

    new-instance v0, Lg6/ec;

    invoke-direct {v0, p0, v2, v2}, Lg6/ec;-><init>(Lg6/h6;ZZ)V

    .line 6
    iget-object p1, p1, Lg6/h;->s:Ljava/util/Map;

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

    return-void
.end method

.method public constructor <init>(Ljava/util/concurrent/Callable;)V
    .registers 3

    const/4 v0, 0x2

    iput v0, p0, Lg6/h6;->t:I

    const-string v0, "internal.appMetadata"

    .line 7
    invoke-direct {p0, v0}, Lg6/h;-><init>(Ljava/lang/String;)V

    iput-object p1, p0, Lg6/h6;->u:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final b(Ls1/g;Ljava/util/List;)Lg6/n;
    .registers 8

    iget v0, p0, Lg6/h6;->t:I

    const/4 v1, 0x2

    const/4 v2, 0x1

    const/4 v3, 0x0

    const/4 v4, 0x3

    packed-switch v0, :pswitch_data_146

    goto :goto_74

    .line 1
    :pswitch_a
    :try_start_a
    iget-object p1, p0, Lg6/h6;->u:Ljava/lang/Object;

    check-cast p1, Ljava/util/concurrent/Callable;

    invoke-interface {p1}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;

    move-result-object p1

    invoke-static {p1}, Lw2/m;->g(Ljava/lang/Object;)Lg6/n;

    move-result-object p1
    :try_end_16
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_16} :catch_17

    goto :goto_19

    :catch_17
    sget-object p1, Lg6/n;->b:Lg6/n;

    :goto_19
    return-object p1

    .line 2
    :pswitch_1a
    sget-object p1, Lg6/n;->b:Lg6/n;

    return-object p1

    .line 3
    :pswitch_1d
    iget-object v0, p0, Lg6/h;->r:Ljava/lang/String;

    invoke-static {v0, v4, p2}, Le/d;->u(Ljava/lang/String;ILjava/util/List;)V

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

    move-result-object v0

    check-cast v0, Lg6/n;

    invoke-virtual {p1, v0}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object v0

    invoke-interface {v0}, Lg6/n;->zzi()Ljava/lang/String;

    move-result-object v0

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

    move-result-object v2

    check-cast v2, Lg6/n;

    invoke-virtual {p1, v2}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object v2

    invoke-interface {v2}, Lg6/n;->zzh()Ljava/lang/Double;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v2

    invoke-static {v2, v3}, Le/d;->j(D)D

    move-result-wide v2

    double-to-long v2, v2

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

    move-result-object p2

    check-cast p2, Lg6/n;

    invoke-virtual {p1, p2}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object p1

    instance-of p2, p1, Lg6/k;

    if-eqz p2, :cond_5c

    check-cast p1, Lg6/k;

    invoke-static {p1}, Le/d;->t(Lg6/k;)Ljava/util/Map;

    move-result-object p1

    goto :goto_61

    :cond_5c
    new-instance p1, Ljava/util/HashMap;

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

    :goto_61
    iget-object p2, p0, Lg6/h6;->u:Ljava/lang/Object;

    check-cast p2, Landroidx/fragment/app/k0;

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

    check-cast p2, Ljava/util/List;

    new-instance v1, Lg6/b;

    invoke-direct {v1, v0, v2, v3, p1}, Lg6/b;-><init>(Ljava/lang/String;JLjava/util/Map;)V

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

    .line 5
    sget-object p1, Lg6/n;->b:Lg6/n;

    return-object p1

    .line 6
    :goto_74
    iget-object v0, p0, Lg6/h;->r:Ljava/lang/String;

    invoke-static {v0, v4, p2}, Le/d;->u(Ljava/lang/String;ILjava/util/List;)V

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

    move-result-object v0

    check-cast v0, Lg6/n;

    invoke-virtual {p1, v0}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object v0

    invoke-interface {v0}, Lg6/n;->zzi()Ljava/lang/String;

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

    move-result-object v0

    check-cast v0, Lg6/n;

    invoke-virtual {p1, v0}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object v0

    instance-of v3, v0, Lg6/m;

    if-eqz v3, :cond_13e

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

    move-result-object p2

    check-cast p2, Lg6/n;

    invoke-virtual {p1, p2}, Ls1/g;->g(Lg6/n;)Lg6/n;

    move-result-object p1

    instance-of p2, p1, Lg6/k;

    if-eqz p2, :cond_136

    check-cast p1, Lg6/k;

    .line 7
    iget-object p2, p1, Lg6/k;->r:Ljava/util/Map;

    const-string v1, "type"

    invoke-interface {p2, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result p2

    if-eqz p2, :cond_12e

    .line 8
    invoke-virtual {p1, v1}, Lg6/k;->a(Ljava/lang/String;)Lg6/n;

    move-result-object p2

    invoke-interface {p2}, Lg6/n;->zzi()Ljava/lang/String;

    move-result-object p2

    .line 9
    iget-object v1, p1, Lg6/k;->r:Ljava/util/Map;

    const-string v3, "priority"

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

    move-result v1

    if-eqz v1, :cond_d1

    .line 10
    invoke-virtual {p1, v3}, Lg6/k;->a(Ljava/lang/String;)Lg6/n;

    move-result-object p1

    invoke-interface {p1}, Lg6/n;->zzh()Ljava/lang/Double;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Double;->doubleValue()D

    move-result-wide v3

    invoke-static {v3, v4}, Le/d;->k(D)I

    move-result p1

    goto :goto_d3

    :cond_d1
    const/16 p1, 0x3e8

    :goto_d3
    iget-object v1, p0, Lg6/h6;->u:Ljava/lang/Object;

    check-cast v1, Landroidx/appcompat/widget/d0;

    check-cast v0, Lg6/m;

    invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "create"

    .line 11
    invoke-virtual {v3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_e7

    iget-object p2, v1, Landroidx/appcompat/widget/d0;->s:Ljava/lang/Object;

    goto :goto_f1

    :cond_e7
    const-string v3, "edit"

    invoke-virtual {v3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_112

    iget-object p2, v1, Landroidx/appcompat/widget/d0;->r:Ljava/lang/Object;

    :goto_f1
    check-cast p2, Ljava/util/TreeMap;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {p2, v1}, Ljava/util/TreeMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_108

    invoke-virtual {p2}, Ljava/util/TreeMap;->lastKey()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Integer;

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    add-int/2addr p1, v2

    :cond_108
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {p2, p1, v0}, Ljava/util/TreeMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 12
    sget-object p1, Lg6/n;->b:Lg6/n;

    return-object p1

    .line 13
    :cond_112
    new-instance p1, Ljava/lang/IllegalStateException;

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

    move-result-object p2

    const-string v0, "Unknown callback type: "

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

    move-result v1

    if-eqz v1, :cond_125

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

    move-result-object p2

    goto :goto_12a

    :cond_125
    new-instance p2, Ljava/lang/String;

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

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

    throw p1

    .line 14
    :cond_12e
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string p2, "Undefined rule type"

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

    throw p1

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

    const-string p2, "Invalid callback params"

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

    throw p1

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

    const-string p2, "Invalid callback type"

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

    throw p1

    :pswitch_data_146
    .packed-switch 0x0
        :pswitch_1d
        :pswitch_1a
        :pswitch_a
    .end packed-switch
.end method
