.class public final Lcom/google/android/gms/internal/ads/t;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public final a:Ljava/lang/Runnable;

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

.field public c:Lz5/ag;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "lock"
    .end annotation
.end field

.field public d:Landroid/content/Context;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "lock"
    .end annotation
.end field

.field public e:Lz5/dg;
    .annotation build Ljavax/annotation/concurrent/GuardedBy;
        value = "lock"
    .end annotation
.end field


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

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

    new-instance v0, Ll5/x;

    invoke-direct {v0, p0}, Ll5/x;-><init>(Lcom/google/android/gms/internal/ads/t;)V

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/t;->a:Ljava/lang/Runnable;

    new-instance v0, Ljava/lang/Object;

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

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/t;->b:Ljava/lang/Object;

    return-void
.end method

.method public static synthetic d(Lcom/google/android/gms/internal/ads/t;)V
    .registers 3

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t;->b:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    if-nez v1, :cond_9

    monitor-exit v0

    return-void

    :cond_9
    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->isConnected()Z

    move-result v1

    if-nez v1, :cond_17

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->isConnecting()Z

    move-result v1

    if-eqz v1, :cond_1c

    :cond_17
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    invoke-virtual {v1}, Lcom/google/android/gms/common/internal/a;->disconnect()V

    :cond_1c
    const/4 v1, 0x0

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    iput-object v1, p0, Lcom/google/android/gms/internal/ads/t;->e:Lz5/dg;

    invoke-static {}, Landroid/os/Binder;->flushPendingCommands()V

    monitor-exit v0

    return-void

    :catchall_26
    move-exception p0

    monitor-exit v0
    :try_end_28
    .catchall {:try_start_3 .. :try_end_28} :catchall_26

    throw p0
.end method


# virtual methods
.method public final a(Landroid/content/Context;)V
    .registers 5

    if-nez p1, :cond_3

    return-void

    :cond_3
    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t;->b:Ljava/lang/Object;

    monitor-enter v0

    :try_start_6
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->d:Landroid/content/Context;

    if-eqz v1, :cond_c

    monitor-exit v0

    return-void

    :cond_c
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/t;->d:Landroid/content/Context;

    sget-object p1, Lz5/so;->o2:Lz5/no;

    .line 1
    sget-object v1, Lz5/xk;->d:Lz5/xk;

    iget-object v2, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 2
    invoke-virtual {v2, p1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_28

    invoke-virtual {p0}, Lcom/google/android/gms/internal/ads/t;->e()V

    goto :goto_44

    :cond_28
    sget-object p1, Lz5/so;->n2:Lz5/no;

    .line 3
    iget-object v1, v1, Lz5/xk;->c:Lcom/google/android/gms/internal/ads/g0;

    .line 4
    invoke-virtual {v1, p1}, Lcom/google/android/gms/internal/ads/g0;->a(Lz5/no;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_44

    new-instance p1, Lz5/wf;

    invoke-direct {p1, p0}, Lz5/wf;-><init>(Lcom/google/android/gms/internal/ads/t;)V

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzf()Lcom/google/android/gms/internal/ads/m;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/google/android/gms/internal/ads/m;->b(Lz5/ye;)V

    :cond_44
    :goto_44
    monitor-exit v0

    return-void

    :catchall_46
    move-exception p1

    monitor-exit v0
    :try_end_48
    .catchall {:try_start_6 .. :try_end_48} :catchall_46

    throw p1
.end method

.method public final b(Lz5/bg;)Lcom/google/android/gms/internal/ads/u;
    .registers 4

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t;->b:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->e:Lz5/dg;

    if-nez v1, :cond_e

    new-instance p1, Lcom/google/android/gms/internal/ads/u;

    invoke-direct {p1}, Lcom/google/android/gms/internal/ads/u;-><init>()V

    monitor-exit v0
    :try_end_d
    .catchall {:try_start_3 .. :try_end_d} :catchall_33

    return-object p1

    :cond_e
    :try_start_e
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    invoke-virtual {v1}, Lz5/ag;->b()Z

    move-result v1

    if-eqz v1, :cond_1e

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->e:Lz5/dg;

    invoke-virtual {v1, p1}, Lz5/dg;->p(Lz5/bg;)Lcom/google/android/gms/internal/ads/u;

    move-result-object p1
    :try_end_1c
    .catch Landroid/os/RemoteException; {:try_start_e .. :try_end_1c} :catch_26
    .catchall {:try_start_e .. :try_end_1c} :catchall_33

    :try_start_1c
    monitor-exit v0
    :try_end_1d
    .catchall {:try_start_1c .. :try_end_1d} :catchall_33

    return-object p1

    :cond_1e
    :try_start_1e
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->e:Lz5/dg;

    invoke-virtual {v1, p1}, Lz5/dg;->l(Lz5/bg;)Lcom/google/android/gms/internal/ads/u;

    move-result-object p1
    :try_end_24
    .catch Landroid/os/RemoteException; {:try_start_1e .. :try_end_24} :catch_26
    .catchall {:try_start_1e .. :try_end_24} :catchall_33

    :try_start_24
    monitor-exit v0

    return-object p1

    :catch_26
    move-exception p1

    const-string v1, "Unable to call into cache service."

    invoke-static {v1, p1}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    new-instance p1, Lcom/google/android/gms/internal/ads/u;

    invoke-direct {p1}, Lcom/google/android/gms/internal/ads/u;-><init>()V

    monitor-exit v0

    return-object p1

    :catchall_33
    move-exception p1

    monitor-exit v0
    :try_end_35
    .catchall {:try_start_24 .. :try_end_35} :catchall_33

    throw p1
.end method

.method public final c(Lz5/bg;)J
    .registers 8

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t;->b:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->e:Lz5/dg;

    const-wide/16 v2, -0x2

    if-nez v1, :cond_b

    monitor-exit v0

    return-wide v2

    :cond_b
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    invoke-virtual {v1}, Lz5/ag;->b()Z

    move-result v1
    :try_end_11
    .catchall {:try_start_3 .. :try_end_11} :catchall_2a

    if-eqz v1, :cond_32

    :try_start_13
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->e:Lz5/dg;

    .line 1
    invoke-virtual {v1}, Lz5/m1;->zza()Landroid/os/Parcel;

    move-result-object v4

    invoke-static {v4, p1}, Lz5/o1;->c(Landroid/os/Parcel;Landroid/os/Parcelable;)V

    const/4 p1, 0x3

    invoke-virtual {v1, p1, v4}, Lz5/m1;->zzbi(ILandroid/os/Parcel;)Landroid/os/Parcel;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Parcel;->readLong()J

    move-result-wide v4

    invoke-virtual {p1}, Landroid/os/Parcel;->recycle()V
    :try_end_28
    .catch Landroid/os/RemoteException; {:try_start_13 .. :try_end_28} :catch_2c
    .catchall {:try_start_13 .. :try_end_28} :catchall_2a

    .line 2
    :try_start_28
    monitor-exit v0

    return-wide v4

    :catchall_2a
    move-exception p1

    goto :goto_34

    :catch_2c
    move-exception p1

    const-string v1, "Unable to call into cache service."

    invoke-static {v1, p1}, Lz5/d50;->zzg(Ljava/lang/String;Ljava/lang/Throwable;)V

    :cond_32
    monitor-exit v0

    return-wide v2

    :goto_34
    monitor-exit v0
    :try_end_35
    .catchall {:try_start_28 .. :try_end_35} :catchall_2a

    throw p1
.end method

.method public final e()V
    .registers 7

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/t;->b:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->d:Landroid/content/Context;

    if-eqz v1, :cond_33

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    if-eqz v1, :cond_c

    goto :goto_33

    :cond_c
    new-instance v1, Lz5/xf;

    invoke-direct {v1, p0}, Lz5/xf;-><init>(Lcom/google/android/gms/internal/ads/t;)V

    new-instance v2, Lz5/yf;

    invoke-direct {v2, p0}, Lz5/yf;-><init>(Lcom/google/android/gms/internal/ads/t;)V

    .line 1
    monitor-enter p0
    :try_end_17
    .catchall {:try_start_3 .. :try_end_17} :catchall_2e

    :try_start_17
    new-instance v3, Lz5/ag;

    iget-object v4, p0, Lcom/google/android/gms/internal/ads/t;->d:Landroid/content/Context;

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzq()Lcom/google/android/gms/ads/internal/util/zzby;

    move-result-object v5

    invoke-virtual {v5}, Lcom/google/android/gms/ads/internal/util/zzby;->zza()Landroid/os/Looper;

    move-result-object v5

    invoke-direct {v3, v4, v5, v1, v2}, Lz5/ag;-><init>(Landroid/content/Context;Landroid/os/Looper;Lcom/google/android/gms/common/internal/a$a;Lcom/google/android/gms/common/internal/a$b;)V
    :try_end_26
    .catchall {:try_start_17 .. :try_end_26} :catchall_30

    :try_start_26
    monitor-exit p0

    .line 2
    iput-object v3, p0, Lcom/google/android/gms/internal/ads/t;->c:Lz5/ag;

    invoke-virtual {v3}, Lcom/google/android/gms/common/internal/a;->checkAvailabilityAndConnect()V

    monitor-exit v0

    return-void

    :catchall_2e
    move-exception v1

    goto :goto_35

    :catchall_30
    move-exception v1

    .line 3
    monitor-exit p0

    throw v1

    .line 4
    :cond_33
    :goto_33
    monitor-exit v0

    return-void

    :goto_35
    monitor-exit v0
    :try_end_36
    .catchall {:try_start_26 .. :try_end_36} :catchall_2e

    throw v1
.end method
