.class public final Lcom/google/android/gms/ads/nonagon/signalgeneration/zzaf;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/sb1;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lz5/sb1<",
        "Lcom/google/android/gms/internal/ads/k1;",
        "Lcom/google/android/gms/ads/nonagon/signalgeneration/zzah;",
        ">;"
    }
.end annotation


# instance fields
.field private final zza:Ljava/util/concurrent/Executor;

.field private final zzb:Lz5/ds0;


# direct methods
.method public constructor <init>(Ljava/util/concurrent/Executor;Lz5/ds0;)V
    .registers 3

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

    iput-object p1, p0, Lcom/google/android/gms/ads/nonagon/signalgeneration/zzaf;->zza:Ljava/util/concurrent/Executor;

    iput-object p2, p0, Lcom/google/android/gms/ads/nonagon/signalgeneration/zzaf;->zzb:Lz5/ds0;

    return-void
.end method


# virtual methods
.method public final zza(Ljava/lang/Object;)Lz5/fc1;
    .registers 10

    check-cast p1, Lcom/google/android/gms/internal/ads/k1;

    iget-object v0, p0, Lcom/google/android/gms/ads/nonagon/signalgeneration/zzaf;->zzb:Lz5/ds0;

    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 1
    iget-object v1, p1, Lcom/google/android/gms/internal/ads/k1;->u:Ljava/lang/String;

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

    invoke-static {v1}, Lcom/google/android/gms/ads/internal/util/zzs;->zzF(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_1e

    new-instance v1, Lz5/ys0;

    invoke-direct {v1, v2}, Lz5/ys0;-><init>(I)V

    .line 2
    new-instance v2, Lcom/google/android/gms/internal/ads/i8;

    invoke-direct {v2, v1}, Lcom/google/android/gms/internal/ads/i8;-><init>(Ljava/lang/Throwable;)V

    goto :goto_42

    .line 3
    :cond_1e
    iget-object v1, v0, Lz5/ds0;->c:Lz5/ns0;

    iget-object v3, v1, Lz5/ms0;->s:Ljava/lang/Object;

    monitor-enter v3

    :try_start_23
    iget-boolean v4, v1, Lz5/ms0;->t:Z

    if-eqz v4, :cond_2b

    :goto_27
    iget-object v1, v1, Lz5/ms0;->r:Lcom/google/android/gms/internal/ads/y1;

    move-object v2, v1

    goto :goto_41

    :cond_2b
    iput-boolean v2, v1, Lz5/ms0;->t:Z

    iput-object p1, v1, Lz5/ms0;->v:Lcom/google/android/gms/internal/ads/k1;

    iget-object v2, v1, Lz5/ms0;->w:Lz5/g10;

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

    iget-object v2, v1, Lz5/ms0;->r:Lcom/google/android/gms/internal/ads/y1;

    new-instance v4, Lz5/dc0;

    invoke-direct {v4, v1}, Lz5/dc0;-><init>(Lz5/ns0;)V

    sget-object v5, Lz5/k50;->f:Lz5/gc1;

    invoke-virtual {v2, v4, v5}, Lcom/google/android/gms/internal/ads/y1;->zze(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V

    goto :goto_27

    :goto_41
    monitor-exit v3
    :try_end_42
    .catchall {:try_start_23 .. :try_end_42} :catchall_7e

    :goto_42
    invoke-static {}, Landroid/os/Binder;->getCallingUid()I

    move-result v1

    invoke-static {v2}, Lz5/vb1;->q(Lz5/fc1;)Lz5/vb1;

    move-result-object v2

    sget-object v3, Lz5/so;->p3:Lz5/no;

    .line 4
    sget-object v4, Lz5/xk;->d:Lz5/xk;

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

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

    move-result-object v3

    check-cast v3, Ljava/lang/Integer;

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    sget-object v4, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;

    iget-object v5, v0, Lz5/ds0;->a:Ljava/util/concurrent/ScheduledExecutorService;

    int-to-long v6, v3

    invoke-static {v2, v6, v7, v4, v5}, Lcom/google/android/gms/internal/ads/h8;->t(Lz5/fc1;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lz5/fc1;

    move-result-object v2

    check-cast v2, Lz5/vb1;

    new-instance v3, Lz5/ur0;

    invoke-direct {v3, v0, p1, v1}, Lz5/ur0;-><init>(Lz5/ds0;Lcom/google/android/gms/internal/ads/k1;I)V

    const-class v1, Ljava/lang/Throwable;

    iget-object v0, v0, Lz5/ds0;->b:Lz5/gc1;

    invoke-static {v2, v1, v3, v0}, Lcom/google/android/gms/internal/ads/h8;->s(Lz5/fc1;Ljava/lang/Class;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v0

    .line 6
    new-instance v1, Lcom/google/android/gms/ads/nonagon/signalgeneration/zzae;

    invoke-direct {v1, p1}, Lcom/google/android/gms/ads/nonagon/signalgeneration/zzae;-><init>(Lcom/google/android/gms/internal/ads/k1;)V

    iget-object p1, p0, Lcom/google/android/gms/ads/nonagon/signalgeneration/zzaf;->zza:Ljava/util/concurrent/Executor;

    invoke-static {v0, v1, p1}, Lcom/google/android/gms/internal/ads/h8;->u(Lz5/fc1;Lz5/sb1;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object p1

    return-object p1

    :catchall_7e
    move-exception p1

    .line 7
    :try_start_7f
    monitor-exit v3
    :try_end_80
    .catchall {:try_start_7f .. :try_end_80} :catchall_7e

    throw p1
.end method
