granularity level: instruction

		.class public final Lo0/o;
.super Ljava/lang/Object;
.source "SourceFile"


.field public final a:Ljava/lang/Object;
.field public final b:Lo0/n;
.field public c:Z
.field public volatile d:Z
.field public e:Ljava/lang/Object;
.field public f:Ljava/lang/Exception;


.method public constructor <init>()V
	.locals 1

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	iput-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	new-instance v0, Lo0/n;
	invoke-direct {v0}, Lo0/n;-><init>()V
	iput-object v0, p0, Lo0/o;->b:Lo0/n;
	return-void
.end method

.method public final a(Ljava/util/concurrent/Executor;Lo0/d;)V
	.locals 2

	iget-object v0, p0, Lo0/o;->b:Lo0/n;
	new-instance v1, Lo0/l;
	invoke-direct {v1, p1, p2}, Lo0/l;-><init>(Ljava/util/concurrent/Executor;Lo0/d;)V
	invoke-virtual {v0, v1}, Lo0/n;->a(Lo0/m;)V
	invoke-virtual {p0}, Lo0/o;->m()V
	return-void
.end method

.method public final b(Ljava/util/concurrent/Executor;Lo0/f;)V
	.locals 2

	iget-object v0, p0, Lo0/o;->b:Lo0/n;
	new-instance v1, Lo0/l;
	invoke-direct {v1, p1, p2}, Lo0/l;-><init>(Ljava/util/concurrent/Executor;Lo0/f;)V
	invoke-virtual {v0, v1}, Lo0/n;->a(Lo0/m;)V
	invoke-virtual {p0}, Lo0/o;->m()V
	return-void
.end method

.method public final c(Ljava/util/concurrent/Executor;Lo0/a;)Lo0/o;
	.locals 4

	new-instance v0, Lo0/o;
	invoke-direct {v0}, Lo0/o;-><init>()V
	iget-object v1, p0, Lo0/o;->b:Lo0/n;
	new-instance v2, Lo0/k;
	const/4 v3, 0x0
	invoke-direct {v2, p1, p2, v0, v3}, Lo0/k;-><init>(Ljava/util/concurrent/Executor;Lo0/a;Lo0/o;I)V
	invoke-virtual {v1, v2}, Lo0/n;->a(Lo0/m;)V
	invoke-virtual {p0}, Lo0/o;->m()V
	return-object v0
.end method

.method public final d(Ljava/util/concurrent/Executor;Lo0/a;)Lo0/o;
	.locals 4

	new-instance v0, Lo0/o;
	invoke-direct {v0}, Lo0/o;-><init>()V
	iget-object v1, p0, Lo0/o;->b:Lo0/n;
	new-instance v2, Lo0/k;
	const/4 v3, 0x1
	invoke-direct {v2, p1, p2, v0, v3}, Lo0/k;-><init>(Ljava/util/concurrent/Executor;Lo0/a;Lo0/o;I)V
	invoke-virtual {v1, v2}, Lo0/n;->a(Lo0/m;)V
	invoke-virtual {p0}, Lo0/o;->m()V
	return-object v0
.end method

.method public final e()Ljava/lang/Exception;
	.locals 2

	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-object v1, p0, Lo0/o;->f:Ljava/lang/Exception;
	monitor-exit v0
	return-object v1
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method

.method public final f()Ljava/lang/Object;
	.locals 3

	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lo0/o;->c:Z
	const-string v2, "Task is not yet complete"
	invoke-static {v2, v1}, Lp0/a;->k(Ljava/lang/String;Z)V
	iget-boolean v1, p0, Lo0/o;->d:Z
	if-nez v1, :cond_1
	iget-object v1, p0, Lo0/o;->f:Ljava/lang/Exception;
	if-nez v1, :cond_0
	iget-object v1, p0, Lo0/o;->e:Ljava/lang/Object;
	monitor-exit v0
	return-object v1
	:cond_0
	new-instance v2, Lo0/g;
	invoke-direct {v2, v1}, Lo0/g;-><init>(Ljava/lang/Exception;)V
	throw v2
	:cond_1
	new-instance v1, Ljava/util/concurrent/CancellationException;
	const-string v2, "Task is already canceled."
	invoke-direct {v1, v2}, Ljava/util/concurrent/CancellationException;-><init>(Ljava/lang/String;)V
	throw v1
	:goto_0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
	:catchall_0
	move-exception v1
	goto :goto_0
.end method

.method public final g()Z
	.locals 3

	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lo0/o;->c:Z
	const/4 v2, 0x0
	if-eqz v1, :cond_0
	iget-boolean v1, p0, Lo0/o;->d:Z
	if-nez v1, :cond_0
	iget-object v1, p0, Lo0/o;->f:Ljava/lang/Exception;
	if-nez v1, :cond_0
	const/4 v2, 0x1
	:cond_0
	monitor-exit v0
	return v2
	:catchall_0
	move-exception v1
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw v1
.end method

.method public final h(Ljava/util/concurrent/Executor;Lo0/h;)Lo0/o;
	.locals 3

	new-instance v0, Lo0/o;
	invoke-direct {v0}, Lo0/o;-><init>()V
	iget-object v1, p0, Lo0/o;->b:Lo0/n;
	new-instance v2, Lo0/l;
	invoke-direct {v2, p1, p2, v0}, Lo0/l;-><init>(Ljava/util/concurrent/Executor;Lo0/h;Lo0/o;)V
	invoke-virtual {v1, v2}, Lo0/n;->a(Lo0/m;)V
	invoke-virtual {p0}, Lo0/o;->m()V
	return-object v0
.end method

.method public final i(Ljava/lang/Exception;)V
	.locals 2

	const-string v0, "Exception must not be null"
	if-eqz p1, :cond_0
	iget-object v1, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v1
	:try_start_0
	invoke-virtual {p0}, Lo0/o;->l()V
	const/4 v0, 0x1
	iput-boolean v0, p0, Lo0/o;->c:Z
	iput-object p1, p0, Lo0/o;->f:Ljava/lang/Exception;
	monitor-exit v1
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	iget-object p1, p0, Lo0/o;->b:Lo0/n;
	invoke-virtual {p1, p0}, Lo0/n;->b(Lo0/o;)V
	return-void
	:catchall_0
	move-exception p1
	:try_start_1
	monitor-exit v1
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw p1
	:cond_0
	new-instance p1, Ljava/lang/NullPointerException;
	invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
	throw p1
.end method

.method public final j(Ljava/lang/Object;)V
	.locals 2

	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	invoke-virtual {p0}, Lo0/o;->l()V
	const/4 v1, 0x1
	iput-boolean v1, p0, Lo0/o;->c:Z
	iput-object p1, p0, Lo0/o;->e:Ljava/lang/Object;
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	iget-object p1, p0, Lo0/o;->b:Lo0/n;
	invoke-virtual {p1, p0}, Lo0/n;->b(Lo0/o;)V
	return-void
	:catchall_0
	move-exception p1
	:try_start_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw p1
.end method

.method public final k()V
	.locals 2

	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lo0/o;->c:Z
	if-eqz v1, :cond_0
	monitor-exit v0
	return-void
	:cond_0
	const/4 v1, 0x1
	iput-boolean v1, p0, Lo0/o;->c:Z
	iput-boolean v1, p0, Lo0/o;->d:Z
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	iget-object v0, p0, Lo0/o;->b:Lo0/n;
	invoke-virtual {v0, p0}, Lo0/n;->b(Lo0/o;)V
	return-void
	:catchall_0
	move-exception v1
	:try_start_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw v1
.end method

.method public final l()V
	.locals 5

	iget-boolean v0, p0, Lo0/o;->c:Z
	if-eqz v0, :cond_5
	sget v0, Lo0/b;->a:I
	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lo0/o;->c:Z
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	if-eqz v1, :cond_4
	invoke-virtual {p0}, Lo0/o;->e()Ljava/lang/Exception;
	move-result-object v0
	if-eqz v0, :cond_0
	const-string v1, "failure"
	goto :goto_0
	:cond_0
	invoke-virtual {p0}, Lo0/o;->g()Z
	move-result v1
	if-eqz v1, :cond_1
	invoke-virtual {p0}, Lo0/o;->f()Ljava/lang/Object;
	move-result-object v1
	invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
	move-result-object v1
	const-string v2, "result "
	invoke-virtual {v2, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	goto :goto_0
	:cond_1
	iget-boolean v1, p0, Lo0/o;->d:Z
	if-eqz v1, :cond_2
	const-string v1, "cancellation"
	goto :goto_0
	:cond_2
	const-string v1, "unknown issue"
	:goto_0
	new-instance v2, Lo0/b;
	const-string v3, "Complete with: "
	invoke-virtual {v1}, Ljava/lang/String;->length()I
	move-result v4
	if-eqz v4, :cond_3
	invoke-virtual {v3, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	goto :goto_1
	:cond_3
	new-instance v1, Ljava/lang/String;
	invoke-direct {v1, v3}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
	:goto_1
	invoke-direct {v2, v1, v0}, Lo0/b;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V
	goto :goto_2
	:cond_4
	new-instance v2, Ljava/lang/IllegalStateException;
	const-string v0, "DuplicateTaskCompletionException can only be created from completed Task."
	invoke-direct {v2, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
	:goto_2
	throw v2
	:catchall_0
	move-exception v1
	:try_start_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw v1
	:cond_5
	return-void
.end method

.method public final m()V
	.locals 2

	iget-object v0, p0, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_0
	iget-boolean v1, p0, Lo0/o;->c:Z
	if-nez v1, :cond_0
	monitor-exit v0
	return-void
	:cond_0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	iget-object v0, p0, Lo0/o;->b:Lo0/n;
	invoke-virtual {v0, p0}, Lo0/n;->b(Lo0/o;)V
	return-void
	:catchall_0
	move-exception v1
	:try_start_1
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	throw v1
.end method