f.smali

.class public Ln8/f;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ln8/i;
.implements Ln8/j;


# instance fields
.field private final a:Lcom/google/firebase/inject/Provider;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/firebase/inject/Provider<",
            "Ln8/q;",
            ">;"
        }
    .end annotation
.end field

.field private final b:Landroid/content/Context;

.field private final c:Lcom/google/firebase/inject/Provider;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/firebase/inject/Provider<",
            "Lcom/google/firebase/platforminfo/h;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ln8/g;",
            ">;"
        }
    .end annotation
.end field

.field private final e:Ljava/util/concurrent/Executor;


# direct methods
.method private constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lcom/google/firebase/inject/Provider;Ljava/util/concurrent/Executor;)V
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Ljava/util/Set<",
            "Ln8/g;",
            ">;",
            "Lcom/google/firebase/inject/Provider<",
            "Lcom/google/firebase/platforminfo/h;",
            ">;",
            "Ljava/util/concurrent/Executor;",
            ")V"
        }
    .end annotation

    new-instance v1, Ln8/e;

    invoke-direct {v1, p1, p2}, Ln8/e;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    move-object v0, p0

    move-object v2, p3

    move-object v3, p5

    move-object v4, p4

    move-object v5, p1

    invoke-direct/range {v0 .. v5}, Ln8/f;-><init>(Lcom/google/firebase/inject/Provider;Ljava/util/Set;Ljava/util/concurrent/Executor;Lcom/google/firebase/inject/Provider;Landroid/content/Context;)V

    return-void
.end method

.method constructor <init>(Lcom/google/firebase/inject/Provider;Ljava/util/Set;Ljava/util/concurrent/Executor;Lcom/google/firebase/inject/Provider;Landroid/content/Context;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/firebase/inject/Provider<",
            "Ln8/q;",
            ">;",
            "Ljava/util/Set<",
            "Ln8/g;",
            ">;",
            "Ljava/util/concurrent/Executor;",
            "Lcom/google/firebase/inject/Provider<",
            "Lcom/google/firebase/platforminfo/h;",
            ">;",
            "Landroid/content/Context;",
            ")V"
        }
    .end annotation

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

    iput-object p1, p0, Ln8/f;->a:Lcom/google/firebase/inject/Provider;

    iput-object p2, p0, Ln8/f;->d:Ljava/util/Set;

    iput-object p3, p0, Ln8/f;->e:Ljava/util/concurrent/Executor;

    iput-object p4, p0, Ln8/f;->c:Lcom/google/firebase/inject/Provider;

    iput-object p5, p0, Ln8/f;->b:Landroid/content/Context;

    return-void
.end method

.method public static synthetic c(Ln8/f;)Ljava/lang/Void;
    .registers 1

    invoke-direct {p0}, Ln8/f;->k()Ljava/lang/Void;

    move-result-object p0

    return-object p0
.end method

.method public static synthetic d(Ln8/f;)Ljava/lang/String;
    .registers 1

    invoke-direct {p0}, Ln8/f;->i()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static synthetic e(Landroid/content/Context;Ljava/lang/String;)Ln8/q;
    .registers 2

    invoke-static {p0, p1}, Ln8/f;->j(Landroid/content/Context;Ljava/lang/String;)Ln8/q;

    move-result-object p0

    return-object p0
.end method

.method public static synthetic f(Lt7/t;Lt7/e;)Ln8/f;
    .registers 2

    invoke-static {p0, p1}, Ln8/f;->h(Lt7/t;Lt7/e;)Ln8/f;

    move-result-object p0

    return-object p0
.end method

.method public static g()Lt7/c;
    .registers 4
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lt7/c<",
            "Ln8/f;",
            ">;"
        }
    .end annotation

    const-class v0, Ls7/a;

    const-class v1, Ljava/util/concurrent/Executor;

    invoke-static {v0, v1}, Lt7/t;->a(Ljava/lang/Class;Ljava/lang/Class;)Lt7/t;

    move-result-object v0

    const/4 v1, 0x2

    new-array v1, v1, [Ljava/lang/Class;

    const/4 v2, 0x0

    const-class v3, Ln8/i;

    aput-object v3, v1, v2

    const/4 v2, 0x1

    const-class v3, Ln8/j;

    aput-object v3, v1, v2

    const-class v2, Ln8/f;

    invoke-static {v2, v1}, Lt7/c;->d(Ljava/lang/Class;[Ljava/lang/Class;)Lt7/c$b;

    move-result-object v1

    const-class v2, Landroid/content/Context;

    invoke-static {v2}, Lt7/n;->j(Ljava/lang/Class;)Lt7/n;

    move-result-object v2

    invoke-virtual {v1, v2}, Lt7/c$b;->b(Lt7/n;)Lt7/c$b;

    move-result-object v1

    const-class v2, Lcom/google/firebase/FirebaseApp;

    invoke-static {v2}, Lt7/n;->j(Ljava/lang/Class;)Lt7/n;

    move-result-object v2

    invoke-virtual {v1, v2}, Lt7/c$b;->b(Lt7/n;)Lt7/c$b;

    move-result-object v1

    const-class v2, Ln8/g;

    invoke-static {v2}, Lt7/n;->n(Ljava/lang/Class;)Lt7/n;

    move-result-object v2

    invoke-virtual {v1, v2}, Lt7/c$b;->b(Lt7/n;)Lt7/c$b;

    move-result-object v1

    const-class v2, Lcom/google/firebase/platforminfo/h;

    invoke-static {v2}, Lt7/n;->l(Ljava/lang/Class;)Lt7/n;

    move-result-object v2

    invoke-virtual {v1, v2}, Lt7/c$b;->b(Lt7/n;)Lt7/c$b;

    move-result-object v1

    invoke-static {v0}, Lt7/n;->k(Lt7/t;)Lt7/n;

    move-result-object v2

    invoke-virtual {v1, v2}, Lt7/c$b;->b(Lt7/n;)Lt7/c$b;

    move-result-object v1

    new-instance v2, Ln8/d;

    invoke-direct {v2, v0}, Ln8/d;-><init>(Lt7/t;)V

    invoke-virtual {v1, v2}, Lt7/c$b;->f(Lt7/h;)Lt7/c$b;

    move-result-object v0

    invoke-virtual {v0}, Lt7/c$b;->d()Lt7/c;

    move-result-object v0

    return-object v0
.end method

.method private static synthetic h(Lt7/t;Lt7/e;)Ln8/f;
    .registers 9

    new-instance v6, Ln8/f;

    const-class v0, Landroid/content/Context;

    invoke-interface {p1, v0}, Lt7/e;->a(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    move-object v1, v0

    check-cast v1, Landroid/content/Context;

    const-class v0, Lcom/google/firebase/FirebaseApp;

    invoke-interface {p1, v0}, Lt7/e;->a(Ljava/lang/Class;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/google/firebase/FirebaseApp;

    invoke-virtual {v0}, Lcom/google/firebase/FirebaseApp;->getPersistenceKey()Ljava/lang/String;

    move-result-object v2

    const-class v0, Ln8/g;

    invoke-interface {p1, v0}, Lt7/e;->f(Ljava/lang/Class;)Ljava/util/Set;

    move-result-object v3

    const-class v0, Lcom/google/firebase/platforminfo/h;

    invoke-interface {p1, v0}, Lt7/e;->d(Ljava/lang/Class;)Lcom/google/firebase/inject/Provider;

    move-result-object v4

    invoke-interface {p1, p0}, Lt7/e;->c(Lt7/t;)Ljava/lang/Object;

    move-result-object p0

    move-object v5, p0

    check-cast v5, Ljava/util/concurrent/Executor;

    move-object v0, v6

    invoke-direct/range {v0 .. v5}, Ln8/f;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/Set;Lcom/google/firebase/inject/Provider;Ljava/util/concurrent/Executor;)V

    return-object v6
.end method

.method private synthetic i()Ljava/lang/String;
    .registers 8

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ln8/f;->a:Lcom/google/firebase/inject/Provider;

    invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ln8/q;

    invoke-virtual {v0}, Ln8/q;->c()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0}, Ln8/q;->b()V

    new-instance v0, Lorg/json/JSONArray;

    invoke-direct {v0}, Lorg/json/JSONArray;-><init>()V

    const/4 v2, 0x0

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

    move-result v3

    if-ge v2, v3, :cond_44

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

    move-result-object v3

    check-cast v3, Ln8/r;

    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4}, Lorg/json/JSONObject;-><init>()V

    const-string v5, "agent"

    invoke-virtual {v3}, Ln8/r;->c()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v5, "dates"

    new-instance v6, Lorg/json/JSONArray;

    invoke-virtual {v3}, Ln8/r;->b()Ljava/util/List;

    move-result-object v3

    invoke-direct {v6, v3}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V

    invoke-virtual {v4, v5, v6}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v0, v4}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;

    add-int/lit8 v2, v2, 0x1

    goto :goto_16

    :cond_44
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "heartbeats"

    invoke-virtual {v1, v2, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v0, "version"

    const-string v2, "2"

    invoke-virtual {v1, v0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    new-instance v0, Ljava/io/ByteArrayOutputStream;

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

    new-instance v2, Landroid/util/Base64OutputStream;

    const/16 v3, 0xb

    invoke-direct {v2, v0, v3}, Landroid/util/Base64OutputStream;-><init>(Ljava/io/OutputStream;I)V
    :try_end_61
    .catchall {:try_start_1 .. :try_end_61} :catchall_95

    :try_start_61
    new-instance v3, Ljava/util/zip/GZIPOutputStream;

    invoke-direct {v3, v2}, Ljava/util/zip/GZIPOutputStream;-><init>(Ljava/io/OutputStream;)V
    :try_end_66
    .catchall {:try_start_61 .. :try_end_66} :catchall_8b

    :try_start_66
    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v1

    const-string v4, "UTF-8"

    invoke-virtual {v1, v4}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/io/OutputStream;->write([B)V
    :try_end_73
    .catchall {:try_start_66 .. :try_end_73} :catchall_81

    :try_start_73
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_76
    .catchall {:try_start_73 .. :try_end_76} :catchall_8b

    :try_start_76
    invoke-virtual {v2}, Landroid/util/Base64OutputStream;->close()V

    const-string v1, "UTF-8"

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

    move-result-object v0

    monitor-exit p0
    :try_end_80
    .catchall {:try_start_76 .. :try_end_80} :catchall_95

    return-object v0

    :catchall_81
    move-exception v0

    :try_start_82
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_85
    .catchall {:try_start_82 .. :try_end_85} :catchall_86

    goto :goto_8a

    :catchall_86
    move-exception v1

    :try_start_87
    invoke-virtual {v0, v1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V

    :goto_8a
    throw v0
    :try_end_8b
    .catchall {:try_start_87 .. :try_end_8b} :catchall_8b

    :catchall_8b
    move-exception v0

    :try_start_8c
    invoke-virtual {v2}, Landroid/util/Base64OutputStream;->close()V
    :try_end_8f
    .catchall {:try_start_8c .. :try_end_8f} :catchall_90

    goto :goto_94

    :catchall_90
    move-exception v1

    :try_start_91
    invoke-virtual {v0, v1}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V

    :goto_94
    throw v0

    :catchall_95
    move-exception v0

    monitor-exit p0
    :try_end_97
    .catchall {:try_start_91 .. :try_end_97} :catchall_95

    goto :goto_99

    :goto_98
    throw v0

    :goto_99
    goto :goto_98
.end method

.method private static synthetic j(Landroid/content/Context;Ljava/lang/String;)Ln8/q;
    .registers 3

    new-instance v0, Ln8/q;

    invoke-direct {v0, p0, p1}, Ln8/q;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    return-object v0
.end method

.method private synthetic k()Ljava/lang/Void;
    .registers 5

    monitor-enter p0

    :try_start_1
    iget-object v0, p0, Ln8/f;->a:Lcom/google/firebase/inject/Provider;

    invoke-interface {v0}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ln8/q;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iget-object v3, p0, Ln8/f;->c:Lcom/google/firebase/inject/Provider;

    invoke-interface {v3}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/google/firebase/platforminfo/h;

    invoke-interface {v3}, Lcom/google/firebase/platforminfo/h;->a()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v1, v2, v3}, Ln8/q;->k(JLjava/lang/String;)V

    monitor-exit p0

    const/4 v0, 0x0

    return-object v0

    :catchall_1f
    move-exception v0

    monitor-exit p0
    :try_end_21
    .catchall {:try_start_1 .. :try_end_21} :catchall_1f

    throw v0
.end method


# virtual methods
.method public a()Lcom/google/android/gms/tasks/Task;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/android/gms/tasks/Task<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Ln8/f;->b:Landroid/content/Context;

    invoke-static {v0}, Landroidx/core/os/r;->a(Landroid/content/Context;)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_11

    const-string v0, ""

    invoke-static {v0}, Lcom/google/android/gms/tasks/b;->e(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0

    :cond_11
    iget-object v0, p0, Ln8/f;->e:Ljava/util/concurrent/Executor;

    new-instance v1, Ln8/c;

    invoke-direct {v1, p0}, Ln8/c;-><init>(Ln8/f;)V

    invoke-static {v0, v1}, Lcom/google/android/gms/tasks/b;->c(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0
.end method

.method public declared-synchronized b(Ljava/lang/String;)Ln8/j$a;
    .registers 4
    .param p1    # Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    monitor-enter p0

    :try_start_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-object p1, p0, Ln8/f;->a:Lcom/google/firebase/inject/Provider;

    invoke-interface {p1}, Lcom/google/firebase/inject/Provider;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ln8/q;

    invoke-virtual {p1, v0, v1}, Ln8/q;->i(J)Z

    move-result v0

    if-eqz v0, :cond_1a

    invoke-virtual {p1}, Ln8/q;->g()V

    sget-object p1, Ln8/j$a;->d:Ln8/j$a;
    :try_end_18
    .catchall {:try_start_1 .. :try_end_18} :catchall_1e

    monitor-exit p0

    return-object p1

    :cond_1a
    :try_start_1a
    sget-object p1, Ln8/j$a;->b:Ln8/j$a;
    :try_end_1c
    .catchall {:try_start_1a .. :try_end_1c} :catchall_1e

    monitor-exit p0

    return-object p1

    :catchall_1e
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public l()Lcom/google/android/gms/tasks/Task;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/android/gms/tasks/Task<",
            "Ljava/lang/Void;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Ln8/f;->d:Ljava/util/Set;

    invoke-interface {v0}, Ljava/util/Set;->size()I

    move-result v0

    const/4 v1, 0x0

    if-gtz v0, :cond_e

    invoke-static {v1}, Lcom/google/android/gms/tasks/b;->e(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0

    :cond_e
    iget-object v0, p0, Ln8/f;->b:Landroid/content/Context;

    invoke-static {v0}, Landroidx/core/os/r;->a(Landroid/content/Context;)Z

    move-result v0

    xor-int/lit8 v0, v0, 0x1

    if-eqz v0, :cond_1d

    invoke-static {v1}, Lcom/google/android/gms/tasks/b;->e(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0

    :cond_1d
    iget-object v0, p0, Ln8/f;->e:Ljava/util/concurrent/Executor;

    new-instance v1, Ln8/b;

    invoke-direct {v1, p0}, Ln8/b;-><init>(Ln8/f;)V

    invoke-static {v0, v1}, Lcom/google/android/gms/tasks/b;->c(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lcom/google/android/gms/tasks/Task;

    move-result-object v0

    return-object v0
.end method