e.smali

.class final Lcom/google/common/util/concurrent/e;
.super Ljava/lang/Object;
.source "AbstractService.java"


# instance fields
.field final aYw:Lcom/google/common/util/concurrent/Service$State;

.field final aYx:Z

.field final aYy:Ljava/lang/Throwable;


# direct methods
.method constructor <init>(Lcom/google/common/util/concurrent/Service$State;)V
    .registers 4

    .prologue
    .line 516
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-direct {p0, p1, v0, v1}, Lcom/google/common/util/concurrent/e;-><init>(Lcom/google/common/util/concurrent/Service$State;ZLjava/lang/Throwable;)V

    .line 517
    return-void
.end method

.method constructor <init>(Lcom/google/common/util/concurrent/Service$State;ZLjava/lang/Throwable;)V
    .registers 9

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

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

    .line 521
    if-eqz p2, :cond_b

    sget-object v0, Lcom/google/common/util/concurrent/Service$State;->STARTING:Lcom/google/common/util/concurrent/Service$State;

    if-ne p1, v0, :cond_34

    :cond_b
    move v0, v2

    :goto_c
    const-string v3, "shudownWhenStartupFinishes can only be set if state is STARTING. Got %s instead."

    new-array v4, v2, [Ljava/lang/Object;

    aput-object p1, v4, v1

    invoke-static {v0, v3, v4}, Lcom/google/common/base/n;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V

    .line 524
    if-eqz p3, :cond_36

    move v0, v2

    :goto_18
    sget-object v3, Lcom/google/common/util/concurrent/Service$State;->FAILED:Lcom/google/common/util/concurrent/Service$State;

    if-ne p1, v3, :cond_38

    move v3, v2

    :goto_1d
    xor-int/2addr v0, v3

    if-nez v0, :cond_3a

    move v0, v2

    :goto_21
    const-string v3, "A failure cause should be set if and only if the state is failed.  Got %s and %s instead."

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    aput-object p1, v4, v1

    aput-object p3, v4, v2

    invoke-static {v0, v3, v4}, Lcom/google/common/base/n;->checkArgument(ZLjava/lang/String;[Ljava/lang/Object;)V

    .line 527
    iput-object p1, p0, Lcom/google/common/util/concurrent/e;->aYw:Lcom/google/common/util/concurrent/Service$State;

    .line 528
    iput-boolean p2, p0, Lcom/google/common/util/concurrent/e;->aYx:Z

    .line 529
    iput-object p3, p0, Lcom/google/common/util/concurrent/e;->aYy:Ljava/lang/Throwable;

    .line 530
    return-void

    :cond_34
    move v0, v1

    .line 521
    goto :goto_c

    :cond_36
    move v0, v1

    .line 524
    goto :goto_18

    :cond_38
    move v3, v1

    goto :goto_1d

    :cond_3a
    move v0, v1

    goto :goto_21
.end method