.class public final Lcom/google/android/gms/common/internal/l;
.super Lp5/x;
.source ""


# instance fields
.field public final g:Landroid/os/IBinder;

.field public final synthetic h:Lcom/google/android/gms/common/internal/a;


# direct methods
.method public constructor <init>(Lcom/google/android/gms/common/internal/a;ILandroid/os/IBinder;Landroid/os/Bundle;)V
    .registers 5

    iput-object p1, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-direct {p0, p1, p2, p4}, Lp5/x;-><init>(Lcom/google/android/gms/common/internal/a;ILandroid/os/Bundle;)V

    iput-object p3, p0, Lcom/google/android/gms/common/internal/l;->g:Landroid/os/IBinder;

    return-void
.end method


# virtual methods
.method public final d()Z
    .registers 8

    const-string v0, "GmsClient"

    const/4 v1, 0x0

    :try_start_3
    iget-object v2, p0, Lcom/google/android/gms/common/internal/l;->g:Landroid/os/IBinder;

    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
    invoke-interface {v2}, Landroid/os/IBinder;->getInterfaceDescriptor()Ljava/lang/String;

    move-result-object v2
    :try_end_e
    .catch Landroid/os/RemoteException; {:try_start_3 .. :try_end_e} :catch_81

    iget-object v3, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->getServiceDescriptor()Ljava/lang/String;

    move-result-object v3

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

    move-result v3

    if-nez v3, :cond_44

    iget-object v3, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->getServiceDescriptor()Ljava/lang/String;

    move-result-object v3

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

    move-result-object v4

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

    move-result v4

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

    move-result-object v5

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

    move-result v5

    new-instance v6, Ljava/lang/StringBuilder;

    add-int/lit8 v4, v4, 0x22

    add-int/2addr v4, v5

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

    const-string v4, "service descriptor mismatch: "

    const-string v5, " vs. "

    invoke-static {v6, v4, v3, v5, v2}, Lb1/e;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

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

    return v1

    :cond_44
    iget-object v0, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    iget-object v2, p0, Lcom/google/android/gms/common/internal/l;->g:Landroid/os/IBinder;

    invoke-virtual {v0, v2}, Lcom/google/android/gms/common/internal/a;->createServiceInterface(Landroid/os/IBinder;)Landroid/os/IInterface;

    move-result-object v0

    if-eqz v0, :cond_80

    iget-object v2, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    const/4 v3, 0x2

    const/4 v4, 0x4

    invoke-static {v2, v3, v4, v0}, Lcom/google/android/gms/common/internal/a;->zzl(Lcom/google/android/gms/common/internal/a;IILandroid/os/IInterface;)Z

    move-result v2

    if-nez v2, :cond_61

    iget-object v2, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    const/4 v3, 0x3

    invoke-static {v2, v3, v4, v0}, Lcom/google/android/gms/common/internal/a;->zzl(Lcom/google/android/gms/common/internal/a;IILandroid/os/IInterface;)Z

    move-result v0

    if-eqz v0, :cond_80

    :cond_61
    iget-object v0, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lcom/google/android/gms/common/internal/a;->zzf(Lcom/google/android/gms/common/internal/a;Lm5/b;)Lm5/b;

    iget-object v0, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-virtual {v0}, Lcom/google/android/gms/common/internal/a;->getConnectionHint()Landroid/os/Bundle;

    move-result-object v0

    iget-object v1, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-static {v1}, Lcom/google/android/gms/common/internal/a;->zzk(Lcom/google/android/gms/common/internal/a;)Lcom/google/android/gms/common/internal/a$a;

    move-result-object v1

    if-eqz v1, :cond_7e

    iget-object v1, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-static {v1}, Lcom/google/android/gms/common/internal/a;->zzk(Lcom/google/android/gms/common/internal/a;)Lcom/google/android/gms/common/internal/a$a;

    move-result-object v1

    invoke-interface {v1, v0}, Lcom/google/android/gms/common/internal/a$a;->D(Landroid/os/Bundle;)V

    :cond_7e
    const/4 v0, 0x1

    return v0

    :cond_80
    return v1

    :catch_81
    const-string v2, "service probably died"

    invoke-static {v0, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    return v1
.end method

.method public final e(Lm5/b;)V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-static {v0}, Lcom/google/android/gms/common/internal/a;->zzn(Lcom/google/android/gms/common/internal/a;)Lcom/google/android/gms/common/internal/a$b;

    move-result-object v0

    if-eqz v0, :cond_11

    iget-object v0, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-static {v0}, Lcom/google/android/gms/common/internal/a;->zzn(Lcom/google/android/gms/common/internal/a;)Lcom/google/android/gms/common/internal/a$b;

    move-result-object v0

    invoke-interface {v0, p1}, Lcom/google/android/gms/common/internal/a$b;->l(Lm5/b;)V

    :cond_11
    iget-object v0, p0, Lcom/google/android/gms/common/internal/l;->h:Lcom/google/android/gms/common/internal/a;

    invoke-virtual {v0, p1}, Lcom/google/android/gms/common/internal/a;->onConnectionFailed(Lm5/b;)V

    return-void
.end method
