c.smali

.class public final Landroidx/work/impl/utils/futures/c;
.super Landroidx/work/impl/utils/futures/a;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<V:",
        "Ljava/lang/Object;",
        ">",
        "Landroidx/work/impl/utils/futures/a<",
        "TV;>;"
    }
.end annotation


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

    invoke-direct {p0}, Landroidx/work/impl/utils/futures/a;-><init>()V

    return-void
.end method


# virtual methods
.method public final j(Ljava/lang/Object;)Z
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TV;)Z"
        }
    .end annotation

    if-nez p1, :cond_4

    .line 1
    sget-object p1, Landroidx/work/impl/utils/futures/a;->g:Ljava/lang/Object;

    .line 2
    :cond_4
    sget-object v0, Landroidx/work/impl/utils/futures/a;->f:Landroidx/work/impl/utils/futures/a$a;

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1, p1}, Landroidx/work/impl/utils/futures/a$a;->b(Landroidx/work/impl/utils/futures/a;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_12

    .line 3
    invoke-static {p0}, Landroidx/work/impl/utils/futures/a;->c(Landroidx/work/impl/utils/futures/a;)V

    const/4 p1, 0x1

    goto :goto_13

    :cond_12
    const/4 p1, 0x0

    :goto_13
    return p1
.end method

.method public final k(Ljava/lang/Throwable;)Z
    .registers 4

    .line 1
    new-instance v0, Landroidx/work/impl/utils/futures/a$c;

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

    .line 3
    invoke-direct {v0, p1}, Landroidx/work/impl/utils/futures/a$c;-><init>(Ljava/lang/Throwable;)V

    .line 4
    sget-object p1, Landroidx/work/impl/utils/futures/a;->f:Landroidx/work/impl/utils/futures/a$a;

    const/4 v1, 0x0

    invoke-virtual {p1, p0, v1, v0}, Landroidx/work/impl/utils/futures/a$a;->b(Landroidx/work/impl/utils/futures/a;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_16

    .line 5
    invoke-static {p0}, Landroidx/work/impl/utils/futures/a;->c(Landroidx/work/impl/utils/futures/a;)V

    const/4 p1, 0x1

    goto :goto_17

    :cond_16
    const/4 p1, 0x0

    :goto_17
    return p1
.end method

.method public final l(Lcom/google/common/util/concurrent/c;)Z
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/common/util/concurrent/c<",
            "+TV;>;)Z"
        }
    .end annotation

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

    .line 2
    iget-object v0, p0, Landroidx/work/impl/utils/futures/a;->a:Ljava/lang/Object;

    const/4 v1, 0x0

    if-nez v0, :cond_45

    .line 3
    invoke-interface {p1}, Ljava/util/concurrent/Future;->isDone()Z

    move-result v0

    const/4 v2, 0x1

    const/4 v3, 0x0

    if-eqz v0, :cond_21

    .line 4
    invoke-static {p1}, Landroidx/work/impl/utils/futures/a;->f(Lcom/google/common/util/concurrent/c;)Ljava/lang/Object;

    move-result-object p1

    .line 5
    sget-object v0, Landroidx/work/impl/utils/futures/a;->f:Landroidx/work/impl/utils/futures/a$a;

    invoke-virtual {v0, p0, v3, p1}, Landroidx/work/impl/utils/futures/a$a;->b(Landroidx/work/impl/utils/futures/a;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result p1

    if-eqz p1, :cond_50

    .line 6
    invoke-static {p0}, Landroidx/work/impl/utils/futures/a;->c(Landroidx/work/impl/utils/futures/a;)V

    :goto_1f
    const/4 v1, 0x1

    goto :goto_50

    .line 7
    :cond_21
    new-instance v0, Landroidx/work/impl/utils/futures/a$f;

    invoke-direct {v0, p0, p1}, Landroidx/work/impl/utils/futures/a$f;-><init>(Landroidx/work/impl/utils/futures/a;Lcom/google/common/util/concurrent/c;)V

    .line 8
    sget-object v4, Landroidx/work/impl/utils/futures/a;->f:Landroidx/work/impl/utils/futures/a$a;

    invoke-virtual {v4, p0, v3, v0}, Landroidx/work/impl/utils/futures/a$a;->b(Landroidx/work/impl/utils/futures/a;Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_43

    .line 9
    :try_start_2e
    sget-object v1, Landroidx/work/impl/utils/futures/b;->INSTANCE:Landroidx/work/impl/utils/futures/b;

    invoke-interface {p1, v0, v1}, Lcom/google/common/util/concurrent/c;->o(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
    :try_end_33
    .catchall {:try_start_2e .. :try_end_33} :catchall_34

    goto :goto_1f

    :catchall_34
    move-exception p1

    .line 10
    :try_start_35
    new-instance v1, Landroidx/work/impl/utils/futures/a$c;

    invoke-direct {v1, p1}, Landroidx/work/impl/utils/futures/a$c;-><init>(Ljava/lang/Throwable;)V
    :try_end_3a
    .catchall {:try_start_35 .. :try_end_3a} :catchall_3b

    goto :goto_3d

    .line 11
    :catchall_3b
    sget-object v1, Landroidx/work/impl/utils/futures/a$c;->b:Landroidx/work/impl/utils/futures/a$c;

    .line 12
    :goto_3d
    sget-object p1, Landroidx/work/impl/utils/futures/a;->f:Landroidx/work/impl/utils/futures/a$a;

    invoke-virtual {p1, p0, v0, v1}, Landroidx/work/impl/utils/futures/a$a;->b(Landroidx/work/impl/utils/futures/a;Ljava/lang/Object;Ljava/lang/Object;)Z

    goto :goto_1f

    .line 13
    :cond_43
    iget-object v0, p0, Landroidx/work/impl/utils/futures/a;->a:Ljava/lang/Object;

    .line 14
    :cond_45
    instance-of v2, v0, Landroidx/work/impl/utils/futures/a$b;

    if-eqz v2, :cond_50

    .line 15
    check-cast v0, Landroidx/work/impl/utils/futures/a$b;

    iget-boolean v0, v0, Landroidx/work/impl/utils/futures/a$b;->a:Z

    invoke-interface {p1, v0}, Ljava/util/concurrent/Future;->cancel(Z)Z

    :cond_50
    :goto_50
    return v1
.end method