.class public final Lcom/google/android/gms/common/b;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation runtime Ljavax/annotation/CheckReturnValue;
.end annotation


# static fields
.field public static final a:Lm5/u;

.field public static final b:Lm5/u;

.field public static volatile c:Lp5/c0;

.field public static final d:Ljava/lang/Object;

.field public static e:Landroid/content/Context;


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

    new-instance v0, Lm5/o;

    const-string v1, "0\u0082\u0005\u00c80\u0082\u0003\u00b0\u00a0\u0003\u0002\u0001\u0002\u0002\u0014\u0010\u008ae\u0008s\u00f9/\u008eQ\u00ed"

    invoke-static {v1}, Lm5/s;->D(Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, v1}, Lm5/o;-><init>([B)V

    new-instance v0, Lm5/p;

    const-string v1, "0\u0082\u0006\u00040\u0082\u0003\u00ec\u00a0\u0003\u0002\u0001\u0002\u0002\u0014\u0003\u00a3\u00b2\u00ad\u00d7\u00e1r\u00cak\u00ec"

    invoke-static {v1}, Lm5/s;->D(Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, v1}, Lm5/p;-><init>([B)V

    new-instance v0, Lm5/q;

    const-string v1, "0\u0082\u0004C0\u0082\u0003+\u00a0\u0003\u0002\u0001\u0002\u0002\t\u0000\u00c2\u00e0\u0087FdJ0\u008d0"

    invoke-static {v1}, Lm5/s;->D(Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, v1}, Lm5/q;-><init>([B)V

    sput-object v0, Lcom/google/android/gms/common/b;->a:Lm5/u;

    new-instance v0, Lm5/r;

    const-string v1, "0\u0082\u0004\u00a80\u0082\u0003\u0090\u00a0\u0003\u0002\u0001\u0002\u0002\t\u0000\u00d5\u0085\u00b8l}\u00d3N\u00f50"

    invoke-static {v1}, Lm5/s;->D(Ljava/lang/String;)[B

    move-result-object v1

    invoke-direct {v0, v1}, Lm5/r;-><init>([B)V

    sput-object v0, Lcom/google/android/gms/common/b;->b:Lm5/u;

    new-instance v0, Ljava/lang/Object;

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

    sput-object v0, Lcom/google/android/gms/common/b;->d:Ljava/lang/Object;

    return-void
.end method

.method public static a()V
    .registers 4

    sget-object v0, Lcom/google/android/gms/common/b;->c:Lp5/c0;

    if-eqz v0, :cond_5

    return-void

    :cond_5
    sget-object v0, Lcom/google/android/gms/common/b;->e:Landroid/content/Context;

    const-string v1, "null reference"

    .line 1
    invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 2
    sget-object v0, Lcom/google/android/gms/common/b;->d:Ljava/lang/Object;

    monitor-enter v0

    :try_start_f
    sget-object v1, Lcom/google/android/gms/common/b;->c:Lp5/c0;

    if-nez v1, :cond_41

    sget-object v1, Lcom/google/android/gms/common/b;->e:Landroid/content/Context;

    sget-object v2, Lcom/google/android/gms/dynamite/DynamiteModule;->d:Lcom/google/android/gms/dynamite/DynamiteModule$b;

    const-string v3, "com.google.android.gms.googlecertificates"

    invoke-static {v1, v2, v3}, Lcom/google/android/gms/dynamite/DynamiteModule;->d(Landroid/content/Context;Lcom/google/android/gms/dynamite/DynamiteModule$b;Ljava/lang/String;)Lcom/google/android/gms/dynamite/DynamiteModule;

    move-result-object v1

    const-string v2, "com.google.android.gms.common.GoogleCertificatesImpl"

    invoke-virtual {v1, v2}, Lcom/google/android/gms/dynamite/DynamiteModule;->c(Ljava/lang/String;)Landroid/os/IBinder;

    move-result-object v1

    sget v2, Lp5/b0;->r:I

    if-nez v1, :cond_29

    const/4 v1, 0x0

    goto :goto_3f

    :cond_29
    const-string v2, "com.google.android.gms.common.internal.IGoogleCertificatesApi"

    .line 3
    invoke-interface {v1, v2}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object v2

    instance-of v3, v2, Lp5/c0;

    if-eqz v3, :cond_39

    move-object v1, v2

    check-cast v1, Lp5/c0;

    goto :goto_3f

    :catchall_37
    move-exception v1

    goto :goto_43

    :cond_39
    new-instance v2, Lp5/a0;

    invoke-direct {v2, v1}, Lp5/a0;-><init>(Landroid/os/IBinder;)V

    move-object v1, v2

    .line 4
    :goto_3f
    sput-object v1, Lcom/google/android/gms/common/b;->c:Lp5/c0;

    :cond_41
    monitor-exit v0

    return-void

    :goto_43
    monitor-exit v0
    :try_end_44
    .catchall {:try_start_f .. :try_end_44} :catchall_37

    throw v1
.end method

.method public static b(Ljava/lang/String;Lm5/s;ZZ)Lcom/google/android/gms/common/e;
    .registers 9

    const-string v0, "Failed to get Google certificates from remote"

    const-string v1, "GoogleCertificates"

    :try_start_4
    invoke-static {}, Lcom/google/android/gms/common/b;->a()V
    :try_end_7
    .catch Lcom/google/android/gms/dynamite/DynamiteModule$a; {:try_start_4 .. :try_end_7} :catch_3f

    sget-object v2, Lcom/google/android/gms/common/b;->e:Landroid/content/Context;

    const-string v3, "null reference"

    .line 1
    invoke-static {v2, v3}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 2
    new-instance v2, Lcom/google/android/gms/common/d;

    invoke-direct {v2, p0, p1, p2, p3}, Lcom/google/android/gms/common/d;-><init>(Ljava/lang/String;Lm5/s;ZZ)V

    :try_start_13
    sget-object p3, Lcom/google/android/gms/common/b;->c:Lp5/c0;

    sget-object v3, Lcom/google/android/gms/common/b;->e:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v3

    .line 3
    new-instance v4, Lx5/b;

    invoke-direct {v4, v3}, Lx5/b;-><init>(Ljava/lang/Object;)V

    .line 4
    invoke-interface {p3, v2, v4}, Lp5/c0;->m1(Lcom/google/android/gms/common/d;Lx5/a;)Z

    move-result p3
    :try_end_24
    .catch Landroid/os/RemoteException; {:try_start_13 .. :try_end_24} :catch_34

    if-eqz p3, :cond_29

    sget-object p0, Lcom/google/android/gms/common/e;->d:Lcom/google/android/gms/common/e;

    return-object p0

    :cond_29
    new-instance p3, Lm5/n;

    invoke-direct {p3, p2, p0, p1}, Lm5/n;-><init>(ZLjava/lang/String;Lm5/s;)V

    .line 5
    new-instance p0, Lm5/a0;

    invoke-direct {p0, p3}, Lm5/a0;-><init>(Ljava/util/concurrent/Callable;)V

    return-object p0

    :catch_34
    move-exception p0

    .line 6
    invoke-static {v1, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    const-string p1, "module call"

    invoke-static {p1, p0}, Lcom/google/android/gms/common/e;->c(Ljava/lang/String;Ljava/lang/Throwable;)Lcom/google/android/gms/common/e;

    move-result-object p0

    return-object p0

    :catch_3f
    move-exception p0

    invoke-static {v1, v0, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

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

    move-result-object p1

    const-string p2, "module init: "

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

    move-result p3

    if-eqz p3, :cond_58

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

    move-result-object p1

    goto :goto_5d

    :cond_58
    new-instance p1, Ljava/lang/String;

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

    :goto_5d
    invoke-static {p1, p0}, Lcom/google/android/gms/common/e;->c(Ljava/lang/String;Ljava/lang/Throwable;)Lcom/google/android/gms/common/e;

    move-result-object p0

    return-object p0
.end method
