.class public abstract Lcom/google/android/gms/internal/ads/k7;
.super Lcom/google/android/gms/internal/ads/g8;
.source ""

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<V:",
        "Ljava/lang/Object;",
        "X:",
        "Ljava/lang/Throwable;",
        "F:",
        "Ljava/lang/Object;",
        "T:",
        "Ljava/lang/Object;",
        ">",
        "Lcom/google/android/gms/internal/ads/g8<",
        "TV;>;",
        "Ljava/lang/Runnable;"
    }
.end annotation


# instance fields
.field public A:Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "TF;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public y:Lz5/fc1;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/fc1<",
            "+TV;>;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field

.field public z:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class<",
            "TX;>;"
        }
    .end annotation

    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lz5/fc1;Ljava/lang/Class;Ljava/lang/Object;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lz5/fc1<",
            "+TV;>;",
            "Ljava/lang/Class<",
            "TX;>;TF;)V"
        }
    .end annotation

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

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

    iput-object p1, p0, Lcom/google/android/gms/internal/ads/k7;->y:Lz5/fc1;

    iput-object p2, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

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

    iput-object p3, p0, Lcom/google/android/gms/internal/ads/k7;->A:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final f()Ljava/lang/String;
    .registers 8
    .annotation runtime Ljavax/annotation/CheckForNull;
    .end annotation

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k7;->y:Lz5/fc1;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/k7;->A:Ljava/lang/Object;

    invoke-super {p0}, Lcom/google/android/gms/internal/ads/w7;->f()Ljava/lang/String;

    move-result-object v3

    if-eqz v0, :cond_24

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v4, Ljava/lang/StringBuilder;

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

    move-result v5

    add-int/lit8 v5, v5, 0x10

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

    const-string v5, "inputFuture=["

    const-string v6, "], "

    invoke-static {v4, v5, v0, v6}, Li/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_26

    :cond_24
    const-string v0, ""

    :goto_26
    if-eqz v1, :cond_56

    if-nez v2, :cond_2b

    goto :goto_56

    :cond_2b
    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

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

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

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

    move-result v4

    add-int/lit8 v4, v4, 0x1d

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

    move-result v5

    add-int/2addr v5, v4

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

    move-result v4

    add-int/2addr v4, v5

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

    const-string v4, "exceptionType=["

    const-string v5, "], fallback=["

    invoke-static {v3, v0, v4, v1, v5}, Lb1/f;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    const-string v0, "]"

    invoke-static {v3, v2, v0}, Landroidx/activity/b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_56
    :goto_56
    if-eqz v3, :cond_6a

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

    move-result v1

    if-eqz v1, :cond_63

    invoke-virtual {v0, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_69

    :cond_63
    new-instance v1, Ljava/lang/String;

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

    move-object v0, v1

    :goto_69
    return-object v0

    :cond_6a
    const/4 v0, 0x0

    return-object v0
.end method

.method public final g()V
    .registers 2

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k7;->y:Lz5/fc1;

    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/w7;->m(Ljava/util/concurrent/Future;)V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/k7;->y:Lz5/fc1;

    iput-object v0, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

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

    return-void
.end method

.method public abstract r(Ljava/lang/Object;)V
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation
.end method

.method public final run()V
    .registers 11

    iget-object v0, p0, Lcom/google/android/gms/internal/ads/k7;->y:Lz5/fc1;

    iget-object v1, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

    iget-object v2, p0, Lcom/google/android/gms/internal/ads/k7;->A:Ljava/lang/Object;

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-nez v0, :cond_c

    move v5, v3

    goto :goto_d

    :cond_c
    move v5, v4

    :goto_d
    if-nez v1, :cond_11

    move v6, v3

    goto :goto_12

    :cond_11
    move v6, v4

    :goto_12
    or-int/2addr v5, v6

    if-nez v2, :cond_16

    goto :goto_17

    :cond_16
    move v3, v4

    :goto_17
    or-int/2addr v3, v5

    if-nez v3, :cond_a3

    .line 1
    iget-object v3, p0, Lcom/google/android/gms/internal/ads/w7;->r:Ljava/lang/Object;

    instance-of v3, v3, Lcom/google/android/gms/internal/ads/m7;

    if-eqz v3, :cond_22

    goto/16 :goto_a3

    :cond_22
    const/4 v3, 0x0

    .line 2
    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->y:Lz5/fc1;

    :try_start_25
    instance-of v4, v0, Lz5/nc1;

    if-eqz v4, :cond_31

    move-object v4, v0

    check-cast v4, Lz5/nc1;

    invoke-virtual {v4}, Lz5/nc1;->a()Ljava/lang/Throwable;

    move-result-object v4

    goto :goto_32

    :cond_31
    move-object v4, v3

    :goto_32
    if-nez v4, :cond_78

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->z(Ljava/util/concurrent/Future;)Ljava/lang/Object;

    move-result-object v5
    :try_end_38
    .catch Ljava/util/concurrent/ExecutionException; {:try_start_25 .. :try_end_38} :catch_3b
    .catchall {:try_start_25 .. :try_end_38} :catchall_39

    goto :goto_79

    :catchall_39
    move-exception v4

    goto :goto_78

    :catch_3b
    move-exception v4

    invoke-virtual {v4}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;

    move-result-object v5

    if-nez v5, :cond_77

    new-instance v5, Ljava/lang/NullPointerException;

    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v6

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

    move-result-object v6

    invoke-virtual {v4}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

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

    move-result-object v4

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

    move-result v7

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

    move-result v8

    new-instance v9, Ljava/lang/StringBuilder;

    add-int/lit8 v7, v7, 0x23

    add-int/2addr v7, v8

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

    const-string v7, "Future type "

    const-string v8, " threw "

    invoke-static {v9, v7, v6, v8, v4}, Lb1/f;->a(Ljava/lang/StringBuilder;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    const-string v4, " without a cause"

    invoke-virtual {v9, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v5, v4}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    :cond_77
    move-object v4, v5

    :cond_78
    :goto_78
    move-object v5, v3

    :goto_79
    if-nez v4, :cond_7f

    invoke-virtual {p0, v5}, Lcom/google/android/gms/internal/ads/w7;->j(Ljava/lang/Object;)Z

    return-void

    :cond_7f
    invoke-virtual {v1, v4}, Ljava/lang/Class;->isInstance(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_a0

    :try_start_85
    invoke-virtual {p0, v2, v4}, Lcom/google/android/gms/internal/ads/k7;->s(Ljava/lang/Object;Ljava/lang/Throwable;)Ljava/lang/Object;

    move-result-object v0
    :try_end_89
    .catchall {:try_start_85 .. :try_end_89} :catchall_91

    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->A:Ljava/lang/Object;

    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/k7;->r(Ljava/lang/Object;)V

    return-void

    :catchall_91
    move-exception v0

    :try_start_92
    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/w7;->k(Ljava/lang/Throwable;)Z
    :try_end_95
    .catchall {:try_start_92 .. :try_end_95} :catchall_9a

    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->A:Ljava/lang/Object;

    return-void

    :catchall_9a
    move-exception v0

    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->z:Ljava/lang/Class;

    iput-object v3, p0, Lcom/google/android/gms/internal/ads/k7;->A:Ljava/lang/Object;

    throw v0

    :cond_a0
    invoke-virtual {p0, v0}, Lcom/google/android/gms/internal/ads/w7;->l(Lz5/fc1;)Z

    :cond_a3
    :goto_a3
    return-void
.end method

.method public abstract s(Ljava/lang/Object;Ljava/lang/Throwable;)Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TF;TX;)TT;"
        }
    .end annotation
.end method
