.class public final Lj6/r3;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroid/content/ServiceConnection;


# instance fields
.field public final r:Ljava/lang/String;

.field public final synthetic s:Lj6/s3;


# direct methods
.method public constructor <init>(Lj6/s3;Ljava/lang/String;)V
    .registers 3

    iput-object p1, p0, Lj6/r3;->s:Lj6/s3;

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

    iput-object p2, p0, Lj6/r3;->r:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public final onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V
    .registers 4

    if-eqz p2, :cond_59

    :try_start_2
    sget p1, Lg6/h0;->r:I

    const-string p1, "com.google.android.finsky.externalreferrer.IGetInstallReferrerService"

    .line 1
    invoke-interface {p2, p1}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface;

    move-result-object p1

    instance-of v0, p1, Lg6/i0;

    if-eqz v0, :cond_11

    check-cast p1, Lg6/i0;

    goto :goto_16

    :cond_11
    new-instance p1, Lg6/g0;

    invoke-direct {p1, p2}, Lg6/g0;-><init>(Landroid/os/IBinder;)V

    :goto_16
    if-nez p1, :cond_28

    .line 2
    iget-object p1, p0, Lj6/r3;->s:Lj6/s3;

    iget-object p1, p1, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 3
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string p2, "Install Referrer Service implementation was not found"

    .line 4
    invoke-virtual {p1, p2}, Lj6/e3;->c(Ljava/lang/String;)V

    return-void

    :cond_28
    iget-object p2, p0, Lj6/r3;->s:Lj6/s3;

    iget-object p2, p2, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p2}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p2

    .line 5
    iget-object p2, p2, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v0, "Install Referrer Service connected"

    .line 6
    invoke-virtual {p2, v0}, Lj6/e3;->c(Ljava/lang/String;)V

    iget-object p2, p0, Lj6/r3;->s:Lj6/s3;

    iget-object p2, p2, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p2}, Lcom/google/android/gms/measurement/internal/d;->c()Lj6/d4;

    move-result-object p2

    new-instance v0, Lz5/i3;

    invoke-direct {v0, p0, p1, p0}, Lz5/i3;-><init>(Lj6/r3;Lg6/i0;Landroid/content/ServiceConnection;)V

    invoke-virtual {p2, v0}, Lj6/d4;->r(Ljava/lang/Runnable;)V
    :try_end_47
    .catch Ljava/lang/RuntimeException; {:try_start_2 .. :try_end_47} :catch_48

    return-void

    :catch_48
    move-exception p1

    iget-object p2, p0, Lj6/r3;->s:Lj6/s3;

    iget-object p2, p2, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p2}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p2

    .line 7
    iget-object p2, p2, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string v0, "Exception occurred while calling Install Referrer API"

    .line 8
    invoke-virtual {p2, v0, p1}, Lj6/e3;->d(Ljava/lang/String;Ljava/lang/Object;)V

    return-void

    :cond_59
    iget-object p1, p0, Lj6/r3;->s:Lj6/s3;

    iget-object p1, p1, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 9
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->i:Lj6/e3;

    const-string p2, "Install Referrer connection returned with null binder"

    .line 10
    invoke-virtual {p1, p2}, Lj6/e3;->c(Ljava/lang/String;)V

    return-void
.end method

.method public final onServiceDisconnected(Landroid/content/ComponentName;)V
    .registers 3

    iget-object p1, p0, Lj6/r3;->s:Lj6/s3;

    iget-object p1, p1, Lj6/s3;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {p1}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object p1

    .line 1
    iget-object p1, p1, Lcom/google/android/gms/measurement/internal/b;->n:Lj6/e3;

    const-string v0, "Install Referrer Service disconnected"

    .line 2
    invoke-virtual {p1, v0}, Lj6/e3;->c(Ljava/lang/String;)V

    return-void
.end method
