granularity level: instruction

		.class public Lcom/google/firebase/messaging/FirebaseMessaging;
.super Ljava/lang/Object;
.source "SourceFile"


.field public static final j:J
.field public static k:Lj1/c;
.field public static l:Li/d;
.field public static m:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
.field public final a:Lp0/g;
.field public final b:Landroid/content/Context;
.field public final c:Ll/h;
.field public final d:Lh1/x;
.field public final e:Lh1/r;
.field public final f:Ljava/util/concurrent/Executor;
.field public final g:Lo0/o;
.field public final h:Lh1/t;
.field public i:Z


.method public static constructor <clinit>()V
	.locals 3

	sget-object v0, Ljava/util/concurrent/TimeUnit;->HOURS:Ljava/util/concurrent/TimeUnit;
	const-wide/16 v1, 0x8
	invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/TimeUnit;->toSeconds(J)J
	move-result-wide v0
	sput-wide v0, Lcom/google/firebase/messaging/FirebaseMessaging;->j:J
	return-void
.end method

.method public constructor <init>(Lp0/g;La1/a;Lb1/a;Lb1/a;Lc1/e;Li/d;Ly0/b;)V
	.locals 18

	move-object/from16 v0, p0
	move-object/from16 v7, p1
	new-instance v8, Lh1/t;
	invoke-virtual/range {p1 .. p1}, Lp0/g;->a()V
	iget-object v1, v7, Lp0/g;->a:Landroid/content/Context;
	invoke-direct {v8, v1}, Lh1/t;-><init>(Landroid/content/Context;)V
	new-instance v9, Ll/h;
	move-object v1, v9
	move-object/from16 v2, p1
	move-object v3, v8
	move-object/from16 v4, p3
	move-object/from16 v5, p4
	move-object/from16 v6, p5
	invoke-direct/range {v1 .. v6}, Ll/h;-><init>(Lp0/g;Lh1/t;Lb1/a;Lb1/a;Lc1/e;)V
	new-instance v1, La/b;
	const-string v2, "Firebase-Messaging-Task"
	invoke-direct {v1, v2}, La/b;-><init>(Ljava/lang/String;)V
	invoke-static {v1}, Ljava/util/concurrent/Executors;->newSingleThreadExecutor(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;
	move-result-object v1
	new-instance v2, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
	new-instance v3, La/b;
	const-string v4, "Firebase-Messaging-Init"
	invoke-direct {v3, v4}, La/b;-><init>(Ljava/lang/String;)V
	const/4 v4, 0x1
	invoke-direct {v2, v4, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V
	new-instance v3, Ljava/util/concurrent/ThreadPoolExecutor;
	sget-object v15, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	new-instance v16, Ljava/util/concurrent/LinkedBlockingQueue;
	invoke-direct/range {v16 .. v16}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
	new-instance v5, La/b;
	const-string v6, "Firebase-Messaging-File-Io"
	invoke-direct {v5, v6}, La/b;-><init>(Ljava/lang/String;)V
	const/4 v11, 0x0
	const/4 v12, 0x1
	const-wide/16 v13, 0x1e
	move-object v10, v3
	move-object/from16 v17, v5
	invoke-direct/range {v10 .. v17}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;Ljava/util/concurrent/ThreadFactory;)V
	invoke-direct/range {p0 .. p0}, Ljava/lang/Object;-><init>()V
	const/4 v5, 0x0
	iput-boolean v5, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->i:Z
	sput-object p6, Lcom/google/firebase/messaging/FirebaseMessaging;->l:Li/d;
	iput-object v7, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
	new-instance v6, Lh1/r;
	move-object/from16 v10, p7
	invoke-direct {v6, v0, v10}, Lh1/r;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Ly0/b;)V
	iput-object v6, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->e:Lh1/r;
	invoke-virtual/range {p1 .. p1}, Lp0/g;->a()V
	iget-object v6, v7, Lp0/g;->a:Landroid/content/Context;
	iput-object v6, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
	new-instance v10, Lh1/m;
	invoke-direct {v10}, Lh1/m;-><init>()V
	iput-object v8, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->h:Lh1/t;
	iput-object v9, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->c:Ll/h;
	new-instance v11, Lh1/x;
	invoke-direct {v11, v1}, Lh1/x;-><init>(Ljava/util/concurrent/ExecutorService;)V
	iput-object v11, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->d:Lh1/x;
	iput-object v3, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->f:Ljava/util/concurrent/Executor;
	invoke-virtual/range {p1 .. p1}, Lp0/g;->a()V
	iget-object v1, v7, Lp0/g;->a:Landroid/content/Context;
	instance-of v3, v1, Landroid/app/Application;
	if-eqz v3, :cond_0
	check-cast v1, Landroid/app/Application;
	invoke-virtual {v1, v10}, Landroid/app/Application;->registerActivityLifecycleCallbacks(Landroid/app/Application$ActivityLifecycleCallbacks;)V
	goto :goto_0
	:cond_0
	new-instance v3, Ljava/lang/StringBuilder;
	invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
	const-string v7, "Context "
	invoke-virtual {v3, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
	const-string v1, " was not an application, can\'t register for lifecycle callbacks. Some notification events may be dropped as a result."
	invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	const-string v3, "FirebaseMessaging"
	invoke-static {v3, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
	:goto_0
	if-eqz p2, :cond_1
	invoke-interface/range {p2 .. p2}, La1/a;->c()V
	:cond_1
	new-instance v1, Lh1/o;
	invoke-direct {v1, v0, v5}, Lh1/o;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;I)V
	invoke-virtual {v2, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
	new-instance v1, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
	new-instance v3, La/b;
	const-string v5, "Firebase-Messaging-Topics-Io"
	invoke-direct {v3, v5}, La/b;-><init>(Ljava/lang/String;)V
	invoke-direct {v1, v4, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V
	sget v3, Lh1/g0;->j:I
	new-instance v3, Lh1/f0;
	move-object/from16 p1, v3
	move-object/from16 p2, v6
	move-object/from16 p3, v9
	move-object/from16 p4, p0
	move-object/from16 p5, v8
	move-object/from16 p6, v1
	invoke-direct/range {p1 .. p6}, Lh1/f0;-><init>(Landroid/content/Context;Ll/h;Lcom/google/firebase/messaging/FirebaseMessaging;Lh1/t;Ljava/util/concurrent/ScheduledThreadPoolExecutor;)V
	invoke-static {v1, v3}, Lf0/a;->d(Ljava/util/concurrent/Executor;Ljava/util/concurrent/Callable;)Lo0/o;
	move-result-object v1
	iput-object v1, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->g:Lo0/o;
	new-instance v3, Lh1/n;
	invoke-direct {v3, v0}, Lh1/n;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;)V
	invoke-virtual {v1, v2, v3}, Lo0/o;->b(Ljava/util/concurrent/Executor;Lo0/f;)V
	new-instance v1, Lh1/o;
	invoke-direct {v1, v0, v4}, Lh1/o;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;I)V
	invoke-virtual {v2, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->execute(Ljava/lang/Runnable;)V
	return-void
.end method

.method public static b(Lh1/c0;J)V
	.locals 5

	const-class v0, Lcom/google/firebase/messaging/FirebaseMessaging;
	monitor-enter v0
	:try_start_0
	sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->m:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
	if-nez v1, :cond_0
	new-instance v1, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
	const/4 v2, 0x1
	new-instance v3, La/b;
	const-string v4, "TAG"
	invoke-direct {v3, v4}, La/b;-><init>(Ljava/lang/String;)V
	invoke-direct {v1, v2, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;)V
	sput-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->m:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
	:cond_0
	sget-object v1, Lcom/google/firebase/messaging/FirebaseMessaging;->m:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
	sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	invoke-virtual {v1, p0, p1, p2, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
	monitor-exit v0
	return-void
	:catchall_0
	move-exception p0
	monitor-exit v0
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	throw p0
.end method

.method public static declared-synchronized getInstance(Lp0/g;)Lcom/google/firebase/messaging/FirebaseMessaging;
	.locals 2
	.annotation build Landroidx/annotation/Keep;
	.end annotation

	const-class v0, Lcom/google/firebase/messaging/FirebaseMessaging;
	monitor-enter v0
	:try_start_0
	invoke-virtual {p0}, Lp0/g;->a()V
	iget-object p0, p0, Lp0/g;->d:Lr0/h;
	invoke-virtual {p0, v0}, Lp0/a;->a(Ljava/lang/Class;)Ljava/lang/Object;
	move-result-object p0
	check-cast p0, Lcom/google/firebase/messaging/FirebaseMessaging;
	const-string v1, "Firebase Messaging component is not present"
	invoke-static {p0, v1}, Lp0/a;->i(Ljava/lang/Object;Ljava/lang/String;)V
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit v0
	return-object p0
	:catchall_0
	move-exception p0
	monitor-exit v0
	throw p0
.end method

.method public final a()Ljava/lang/String;
	.locals 7

	invoke-virtual {p0}, Lcom/google/firebase/messaging/FirebaseMessaging;->c()Lh1/a0;
	move-result-object v0
	invoke-virtual {p0, v0}, Lcom/google/firebase/messaging/FirebaseMessaging;->e(Lh1/a0;)Z
	move-result v1
	if-nez v1, :cond_0
	iget-object v0, v0, Lh1/a0;->a:Ljava/lang/String;
	return-object v0
	:cond_0
	iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
	invoke-static {v1}, Lh1/t;->a(Lp0/g;)Ljava/lang/String;
	move-result-object v1
	iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->d:Lh1/x;
	monitor-enter v2
	:try_start_0
	iget-object v3, v2, Lh1/x;->b:Lb/b;
	invoke-virtual {v3, v1}, Lb/i;->get(Ljava/lang/Object;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Lo0/o;
	const/4 v4, 0x3
	if-eqz v3, :cond_1
	const-string v0, "FirebaseMessaging"
	invoke-static {v0, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v0
	if-eqz v0, :cond_3
	const-string v0, "FirebaseMessaging"
	new-instance v4, Ljava/lang/StringBuilder;
	invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
	const-string v5, "Joining ongoing request for: "
	invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v1
	invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	goto :goto_0
	:cond_1
	const-string v3, "FirebaseMessaging"
	invoke-static {v3, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v3
	if-eqz v3, :cond_2
	const-string v3, "FirebaseMessaging"
	new-instance v4, Ljava/lang/StringBuilder;
	invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V
	const-string v5, "Making new request for: "
	invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object v4
	invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_2
	iget-object v3, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->c:Ll/h;
	iget-object v4, v3, Ll/h;->a:Ljava/lang/Object;
	check-cast v4, Lp0/g;
	invoke-static {v4}, Lh1/t;->a(Lp0/g;)Ljava/lang/String;
	move-result-object v4
	new-instance v5, Landroid/os/Bundle;
	invoke-direct {v5}, Landroid/os/Bundle;-><init>()V
	const-string v6, "*"
	invoke-virtual {v3, v4, v6, v5}, Ll/h;->h(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Lo0/o;
	move-result-object v4
	invoke-virtual {v3, v4}, Ll/h;->c(Lo0/o;)Lo0/o;
	move-result-object v3
	iget-object v4, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->f:Ljava/util/concurrent/Executor;
	new-instance v5, Lh1/p;
	invoke-direct {v5, p0, v1, v0}, Lh1/p;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;Ljava/lang/String;Lh1/a0;)V
	invoke-virtual {v3, v4, v5}, Lo0/o;->h(Ljava/util/concurrent/Executor;Lo0/h;)Lo0/o;
	move-result-object v0
	iget-object v3, v2, Lh1/x;->a:Ljava/util/concurrent/Executor;
	new-instance v4, Lq/j;
	const/4 v5, 0x4
	invoke-direct {v4, v2, v1, v5}, Lq/j;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
	invoke-virtual {v0, v3, v4}, Lo0/o;->d(Ljava/util/concurrent/Executor;Lo0/a;)Lo0/o;
	move-result-object v3
	iget-object v0, v2, Lh1/x;->b:Lb/b;
	invoke-virtual {v0, v1, v3}, Lb/i;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	:goto_0
	:cond_3
	monitor-exit v2
	:try_start_1
	invoke-static {v3}, Lf0/a;->a(Lo0/o;)Ljava/lang/Object;
	move-result-object v0
	check-cast v0, Ljava/lang/String;
	:try_end_1
	.catch Ljava/util/concurrent/ExecutionException; {:try_start_1 .. :try_end_1} :catch_1
	.catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0
	return-object v0
	:catch_0
	move-exception v0
	goto :goto_1
	:catch_1
	move-exception v0
	:goto_1
	new-instance v1, Ljava/io/IOException;
	invoke-direct {v1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
	throw v1
	:catchall_0
	move-exception v0
	monitor-exit v2
	throw v0
.end method

.method public final c()Lh1/a0;
	.locals 4

	iget-object v0, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
	const-class v1, Lcom/google/firebase/messaging/FirebaseMessaging;
	monitor-enter v1
	:try_start_0
	sget-object v2, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
	if-nez v2, :cond_0
	new-instance v2, Lj1/c;
	invoke-direct {v2, v0}, Lj1/c;-><init>(Landroid/content/Context;)V
	sput-object v2, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
	:cond_0
	sget-object v0, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_1
	monitor-exit v1
	iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
	invoke-virtual {v1}, Lp0/g;->a()V
	iget-object v1, v1, Lp0/g;->b:Ljava/lang/String;
	const-string v2, "[DEFAULT]"
	invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result v1
	if-eqz v1, :cond_1
	const-string v1, ""
	goto :goto_0
	:cond_1
	iget-object v1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
	invoke-virtual {v1}, Lp0/g;->c()Ljava/lang/String;
	move-result-object v1
	:goto_0
	iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
	invoke-static {v2}, Lh1/t;->a(Lp0/g;)Ljava/lang/String;
	move-result-object v2
	monitor-enter v0
	:try_start_1
	iget-object v3, v0, Lj1/c;->a:Ljava/lang/Object;
	check-cast v3, Landroid/content/SharedPreferences;
	invoke-static {v1, v2}, Lj1/c;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	const/4 v2, 0x0
	invoke-interface {v3, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	invoke-static {v1}, Lh1/a0;->b(Ljava/lang/String;)Lh1/a0;
	move-result-object v1
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	monitor-exit v0
	return-object v1
	:catchall_0
	move-exception v1
	monitor-exit v0
	throw v1
	:catchall_1
	move-exception v0
	monitor-exit v1
	throw v0
.end method

.method public final declared-synchronized d(J)V
	.locals 4

	monitor-enter p0
	const-wide/16 v0, 0x2
	mul-long v0, v0, p1
	const-wide/16 v2, 0x1e
	:try_start_0
	invoke-static {v2, v3, v0, v1}, Ljava/lang/Math;->max(JJ)J
	move-result-wide v0
	sget-wide v2, Lcom/google/firebase/messaging/FirebaseMessaging;->j:J
	invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
	move-result-wide v0
	new-instance v2, Lh1/c0;
	invoke-direct {v2, p0, v0, v1}, Lh1/c0;-><init>(Lcom/google/firebase/messaging/FirebaseMessaging;J)V
	invoke-static {v2, p1, p2}, Lcom/google/firebase/messaging/FirebaseMessaging;->b(Lh1/c0;J)V
	const/4 p1, 0x1
	iput-boolean p1, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->i:Z
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit p0
	return-void
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
.end method

.method public final e(Lh1/a0;)Z
	.locals 10

	const/4 v0, 0x1
	const/4 v1, 0x0
	if-eqz p1, :cond_4
	iget-object v2, p0, Lcom/google/firebase/messaging/FirebaseMessaging;->h:Lh1/t;
	monitor-enter v2
	:try_start_0
	iget-object v3, v2, Lh1/t;->b:Ljava/lang/String;
	if-nez v3, :cond_0
	invoke-virtual {v2}, Lh1/t;->d()V
	:cond_0
	iget-object v3, v2, Lh1/t;->b:Ljava/lang/String;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	monitor-exit v2
	invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
	move-result-wide v4
	iget-wide v6, p1, Lh1/a0;->c:J
	sget-wide v8, Lh1/a0;->d:J
	add-long/2addr v6, v8
	cmp-long v2, v4, v6
	if-gtz v2, :cond_2
	iget-object p1, p1, Lh1/a0;->b:Ljava/lang/String;
	invoke-virtual {v3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
	move-result p1
	if-nez p1, :cond_1
	goto :goto_0
	:cond_1
	const/4 p1, 0x0
	goto :goto_1
	:goto_0
	:cond_2
	const/4 p1, 0x1
	:goto_1
	if-eqz p1, :cond_3
	goto :goto_2
	:cond_3
	const/4 v0, 0x0
	goto :goto_2
	:catchall_0
	move-exception p1
	monitor-exit v2
	throw p1
	:goto_2
	:cond_4
	return v0
.end method