granularity level: instruction

		.class public abstract Lh1/j;
.super Landroid/app/Service;
.source "SourceFile"


.field public static final synthetic f:I
.field public final a:Ljava/util/concurrent/ExecutorService;
.field public b:Lh1/k0;
.field public final c:Ljava/lang/Object;
.field public d:I
.field public e:I


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

	invoke-direct {p0}, Landroid/app/Service;-><init>()V
	new-instance v7, La/b;
	const-string v0, "Firebase-Messaging-Intent-Handle"
	invoke-direct {v7, v0}, La/b;-><init>(Ljava/lang/String;)V
	new-instance v8, Ljava/util/concurrent/ThreadPoolExecutor;
	sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;
	invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
	const-wide/16 v3, 0x3c
	const/4 v2, 0x1
	move-object v0, v8
	move v1, v2
	invoke-direct/range {v0 .. v7}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
	const/4 v0, 0x1
	invoke-virtual {v8, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
	invoke-static {v8}, Ljava/util/concurrent/Executors;->unconfigurableExecutorService(Ljava/util/concurrent/ExecutorService;)Ljava/util/concurrent/ExecutorService;
	move-result-object v0
	iput-object v0, p0, Lh1/j;->a:Ljava/util/concurrent/ExecutorService;
	new-instance v0, Ljava/lang/Object;
	invoke-direct {v0}, Ljava/lang/Object;-><init>()V
	iput-object v0, p0, Lh1/j;->c:Ljava/lang/Object;
	const/4 v0, 0x0
	iput v0, p0, Lh1/j;->e:I
	return-void
.end method

.method public final a(Landroid/content/Intent;)V
	.locals 1

	if-eqz p1, :cond_0
	invoke-static {p1}, Lh1/j0;->a(Landroid/content/Intent;)V
	:cond_0
	iget-object p1, p0, Lh1/j;->c:Ljava/lang/Object;
	monitor-enter p1
	iget v0, p0, Lh1/j;->e:I
	add-int/lit8 v0, v0, -0x1
	iput v0, p0, Lh1/j;->e:I
	if-nez v0, :cond_1
	iget v0, p0, Lh1/j;->d:I
	invoke-virtual {p0, v0}, Landroid/app/Service;->stopSelfResult(I)Z
	:cond_1
	monitor-exit p1
	return-void
	:catchall_0
	move-exception v0
	monitor-exit p1
	:throw0
	throw v0
.end method

.method public abstract b(Landroid/content/Intent;)V
	

	return-void
.end method

.method public final declared-synchronized onBind(Landroid/content/Intent;)Landroid/os/IBinder;
	.locals 1

	monitor-enter p0
	:try_start_0
	const-string p1, "EnhancedIntentService"
	const/4 v0, 0x3
	invoke-static {p1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result p1
	iget-object p1, p0, Lh1/j;->b:Lh1/k0;
	if-nez p1, :cond_1
	new-instance p1, Lh1/k0;
	new-instance v0, Lj1/c;
	invoke-direct {v0, p0}, Lj1/c;-><init>(Ljava/lang/Object;)V
	invoke-direct {p1, v0}, Lh1/k0;-><init>(Lj1/c;)V
	iput-object p1, p0, Lh1/j;->b:Lh1/k0;
	:cond_1
	iget-object p1, p0, Lh1/j;->b:Lh1/k0;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit p0
	return-object p1
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
.end method

.method public final onDestroy()V
	.locals 1

	iget-object v0, p0, Lh1/j;->a:Ljava/util/concurrent/ExecutorService;
	invoke-interface {v0}, Ljava/util/concurrent/ExecutorService;->shutdown()V
	invoke-super {p0}, Landroid/app/Service;->onDestroy()V
	return-void
.end method

.method public final onStartCommand(Landroid/content/Intent;II)I
	.locals 3

	iget-object p2, p0, Lh1/j;->c:Ljava/lang/Object;
	monitor-enter p2
	:try_start_0
	iput p3, p0, Lh1/j;->d:I
	iget p3, p0, Lh1/j;->e:I
	add-int/lit8 p3, p3, 0x1
	iput p3, p0, Lh1/j;->e:I
	monitor-exit p2
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_1
	invoke-static {}, Lh1/z;->a()Lh1/z;
	move-result-object p2
	iget-object p2, p2, Lh1/z;->d:Ljava/lang/Object;
	check-cast p2, Ljava/util/Queue;
	invoke-interface {p2}, Ljava/util/Queue;->poll()Ljava/lang/Object;
	move-result-object p2
	check-cast p2, Landroid/content/Intent;
	const/4 p3, 0x2
	new-instance v0, Lo0/i;
	invoke-direct {v0}, Lo0/i;-><init>()V
	iget-object v1, p0, Lh1/j;->a:Ljava/util/concurrent/ExecutorService;
	new-instance v2, Lh1/i;
	invoke-direct {v2, p0, p2, v0}, Lh1/i;-><init>(Lh1/j;Landroid/content/Intent;Lo0/i;)V
	invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
	iget-object p2, v0, Lo0/i;->a:Lo0/o;
	iget-object v0, p2, Lo0/o;->a:Ljava/lang/Object;
	monitor-enter v0
	:try_start_1
	iget-boolean v1, p2, Lo0/o;->c:Z
	monitor-exit v0
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	new-instance v0, Lh1/h;
	const/4 v1, 0x0
	invoke-direct {v0, v1}, Lh1/h;-><init>(I)V
	new-instance v1, Lq/j;
	invoke-direct {v1, p0, p1, p3}, Lq/j;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
	invoke-virtual {p2, v0, v1}, Lo0/o;->a(Ljava/util/concurrent/Executor;Lo0/d;)V
	const/4 p1, 0x3
	return p1
	:catchall_0
	move-exception p1
	monitor-exit v0
	throw p1
	:catchall_1
	move-exception p1
	monitor-exit p2
	throw p1
.end method