.class public final Lz5/gs0;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/xs0;


# static fields
.field public static final f:Ljava/util/regex/Pattern;


# instance fields
.field public final a:Lcom/google/android/gms/internal/ads/v3;

.field public final b:Lz5/gc1;

.field public final c:Lz5/m31;

.field public final d:Ljava/util/concurrent/ScheduledExecutorService;

.field public final e:Lz5/du0;


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

    const-string v0, "Received error HTTP response code: (.*)"

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    sput-object v0, Lz5/gs0;->f:Ljava/util/regex/Pattern;

    return-void
.end method

.method public constructor <init>(Lz5/m31;Lcom/google/android/gms/internal/ads/v3;Lz5/gc1;Ljava/util/concurrent/ScheduledExecutorService;Lz5/du0;)V
    .registers 6

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

    iput-object p1, p0, Lz5/gs0;->c:Lz5/m31;

    iput-object p2, p0, Lz5/gs0;->a:Lcom/google/android/gms/internal/ads/v3;

    iput-object p3, p0, Lz5/gs0;->b:Lz5/gc1;

    iput-object p4, p0, Lz5/gs0;->d:Ljava/util/concurrent/ScheduledExecutorService;

    iput-object p5, p0, Lz5/gs0;->e:Lz5/du0;

    return-void
.end method


# virtual methods
.method public final a(Lcom/google/android/gms/internal/ads/k1;)Lz5/fc1;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/android/gms/internal/ads/k1;",
            ")",
            "Lz5/fc1<",
            "Lz5/i31;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lz5/gs0;->a:Lcom/google/android/gms/internal/ads/v3;

    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

    if-eqz v1, :cond_1c

    new-instance v1, Lz5/ys0;

    const/4 v2, 0x1

    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_35

    .line 3
    :cond_1c
    iget-object v1, v0, Lcom/google/android/gms/internal/ads/v3;->s:Ljava/lang/Object;

    check-cast v1, Lz5/gc1;

    new-instance v2, Lz5/w10;

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

    invoke-interface {v1, v2}, Lz5/gc1;->Q(Ljava/util/concurrent/Callable;)Lz5/fc1;

    move-result-object v1

    const-class v2, Ljava/util/concurrent/ExecutionException;

    sget-object v3, Lz5/tr0;->a:Lz5/sb1;

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

    check-cast v4, Lz5/gc1;

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

    move-result-object v2

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

    move-result v1

    new-instance v3, Lz5/ur0;

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

    const-class p1, Lz5/ys0;

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

    check-cast v0, Lz5/gc1;

    invoke-static {v2, p1, 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 p1

    .line 4
    new-instance v0, Lz5/hs0;

    invoke-direct {v0, p0}, Lz5/hs0;-><init>(Lz5/gs0;)V

    iget-object v1, p0, Lz5/gs0;->b:Lz5/gc1;

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

    move-result-object p1

    sget-object v0, Lz5/so;->o3:Lz5/no;

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

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

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

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

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

    move-result v0

    if-eqz v0, :cond_86

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

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

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

    move-result-object v0

    check-cast v0, Ljava/lang/Integer;

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

    move-result v0

    int-to-long v0, v0

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

    iget-object v3, p0, Lz5/gs0;->d:Ljava/util/concurrent/ScheduledExecutorService;

    invoke-static {p1, v0, v1, v2, v3}, Lcom/google/android/gms/internal/ads/h8;->t(Lz5/fc1;JLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/ScheduledExecutorService;)Lz5/fc1;

    move-result-object p1

    const-class v0, Ljava/util/concurrent/TimeoutException;

    sget-object v1, Lz5/fs0;->a:Lz5/sb1;

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

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

    move-result-object p1

    :cond_86
    new-instance v0, Lz5/ex0;

    invoke-direct {v0, p0}, Lz5/ex0;-><init>(Lz5/gs0;)V

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

    .line 9
    new-instance v2, Ll5/m;

    invoke-direct {v2, p1, v0}, Ll5/m;-><init>(Ljava/util/concurrent/Future;Lz5/zb1;)V

    move-object v0, p1

    check-cast v0, Lcom/google/android/gms/internal/ads/w7;

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

    return-object p1
.end method
