.class public Lcom/a/a/n;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/a/a/s;


# static fields
.field static final synthetic a:Z


# instance fields
.field b:Lcom/a/a/s;

.field c:Z

.field d:Lcom/a/a/o;

.field e:Lcom/a/a/a/g;

.field f:I

.field g:Z


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

    const-class v0, Lcom/a/a/n;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    sput-boolean v0, Lcom/a/a/n;->a:Z

    return-void

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public constructor <init>(Lcom/a/a/s;)V
    .locals 1

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

    new-instance v0, Lcom/a/a/o;

    invoke-direct {v0}, Lcom/a/a/o;-><init>()V

    iput-object v0, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    const v0, 0x7fffffff

    iput v0, p0, Lcom/a/a/n;->f:I

    invoke-virtual {p0, p1}, Lcom/a/a/n;->a(Lcom/a/a/s;)V

    return-void
.end method

.method static synthetic a(Lcom/a/a/n;)V
    .locals 0

    invoke-direct {p0}, Lcom/a/a/n;->c()V

    return-void
.end method

.method private c()V
    .locals 2

    iget-boolean v0, p0, Lcom/a/a/n;->c:Z

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-virtual {v0}, Lcom/a/a/o;->g()Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    iget-object v1, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-interface {v0, v1}, Lcom/a/a/s;->a(Lcom/a/a/o;)V

    iget-object v0, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-virtual {v0}, Lcom/a/a/o;->l()I

    move-result v0

    if-nez v0, :cond_2

    iget-boolean v0, p0, Lcom/a/a/n;->g:Z

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    invoke-interface {v0}, Lcom/a/a/s;->e()V

    :cond_2
    iget-object v0, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-virtual {v0}, Lcom/a/a/o;->g()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/a/a/n;->e:Lcom/a/a/a/g;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/a/a/n;->e:Lcom/a/a/a/g;

    invoke-interface {v0}, Lcom/a/a/a/g;->a()V

    goto :goto_0
.end method


# virtual methods
.method public a()I
    .locals 1

    iget v0, p0, Lcom/a/a/n;->f:I

    return v0
.end method

.method public a(I)V
    .locals 1

    sget-boolean v0, Lcom/a/a/n;->a:Z

    if-nez v0, :cond_0

    if-gez p1, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

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

    throw v0

    :cond_0
    iput p1, p0, Lcom/a/a/n;->f:I

    return-void
.end method

.method public a(Lcom/a/a/a/a;)V
    .locals 1

    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    invoke-interface {v0, p1}, Lcom/a/a/s;->a(Lcom/a/a/a/a;)V

    return-void
.end method

.method public a(Lcom/a/a/a/g;)V
    .locals 0

    iput-object p1, p0, Lcom/a/a/n;->e:Lcom/a/a/a/g;

    return-void
.end method

.method public a(Lcom/a/a/o;)V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lcom/a/a/n;->a(Lcom/a/a/o;Z)V

    return-void
.end method

.method protected final a(Lcom/a/a/o;Z)V
    .locals 2

    invoke-virtual {p0}, Lcom/a/a/n;->g()Lcom/a/a/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a/a/e;->c()Ljava/lang/Thread;

    move-result-object v0

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    if-eq v0, v1, :cond_1

    invoke-virtual {p0}, Lcom/a/a/n;->g()Lcom/a/a/e;

    move-result-object v0

    new-instance v1, Lcom/a/a/ak;

    invoke-direct {v1, p0, p1, p2}, Lcom/a/a/ak;-><init>(Lcom/a/a/n;Lcom/a/a/o;Z)V

    invoke-virtual {v0, v1}, Lcom/a/a/e;->b(Ljava/lang/Runnable;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/a/a/n;->b()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    invoke-interface {v0, p1}, Lcom/a/a/s;->a(Lcom/a/a/o;)V

    :cond_2
    invoke-virtual {p1}, Lcom/a/a/o;->l()I

    move-result v0

    if-lez v0, :cond_0

    invoke-virtual {p1}, Lcom/a/a/o;->l()I

    move-result v0

    iget v1, p0, Lcom/a/a/n;->f:I

    invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I

    move-result v0

    if-eqz p2, :cond_3

    invoke-virtual {p1}, Lcom/a/a/o;->l()I

    move-result v0

    :cond_3
    if-lez v0, :cond_0

    iget-object v1, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-virtual {p1, v1, v0}, Lcom/a/a/o;->a(Lcom/a/a/o;I)V

    goto :goto_0
.end method

.method public a(Lcom/a/a/s;)V
    .locals 2

    iput-object p1, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    new-instance v1, Lcom/a/a/aj;

    invoke-direct {v1, p0}, Lcom/a/a/aj;-><init>(Lcom/a/a/n;)V

    invoke-interface {v0, v1}, Lcom/a/a/s;->a(Lcom/a/a/a/g;)V

    return-void
.end method

.method public b()Z
    .locals 1

    iget-object v0, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-virtual {v0}, Lcom/a/a/o;->g()Z

    move-result v0

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/a/a/n;->c:Z

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public e()V
    .locals 2

    invoke-virtual {p0}, Lcom/a/a/n;->g()Lcom/a/a/e;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a/a/e;->c()Ljava/lang/Thread;

    move-result-object v0

    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v1

    if-eq v0, v1, :cond_0

    invoke-virtual {p0}, Lcom/a/a/n;->g()Lcom/a/a/e;

    move-result-object v0

    new-instance v1, Lcom/a/a/al;

    invoke-direct {v1, p0}, Lcom/a/a/al;-><init>(Lcom/a/a/n;)V

    invoke-virtual {v0, v1}, Lcom/a/a/e;->b(Ljava/lang/Runnable;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/a/a/n;->d:Lcom/a/a/o;

    invoke-virtual {v0}, Lcom/a/a/o;->g()Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/a/a/n;->g:Z

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    invoke-interface {v0}, Lcom/a/a/s;->e()V

    goto :goto_0
.end method

.method public g()Lcom/a/a/e;
    .locals 1

    iget-object v0, p0, Lcom/a/a/n;->b:Lcom/a/a/s;

    invoke-interface {v0}, Lcom/a/a/s;->g()Lcom/a/a/e;

    move-result-object v0

    return-object v0
.end method

.method public h()Lcom/a/a/a/g;
    .locals 1

    iget-object v0, p0, Lcom/a/a/n;->e:Lcom/a/a/a/g;

    return-object v0
.end method
