granularity level: instruction

		.class public final Lh1/h0;
.super Landroid/content/BroadcastReceiver;
.source "SourceFile"


.field public a:Lh1/i0;
.field public final synthetic b:Lh1/i0;


.method public constructor <init>(Lh1/i0;Lh1/i0;)V
	.locals 0

	iput-object p1, p0, Lh1/h0;->b:Lh1/i0;
	invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
	iput-object p2, p0, Lh1/h0;->a:Lh1/i0;
	return-void
.end method

.method public final a()V
	.locals 4

	const/4 v0, 0x3
	const-string v1, "FirebaseMessaging"
	invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v2
	if-nez v2, :cond_1
	sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v3, 0x17
	if-ne v2, v3, :cond_0
	invoke-static {v1, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v0
	if-eqz v0, :cond_0
	goto :goto_0
	:cond_0
	const/4 v0, 0x0
	goto :goto_1
	:cond_1
	:goto_0
	const/4 v0, 0x1
	:goto_1
	if-eqz v0, :cond_2
	const-string v0, "Connectivity change received registered"
	invoke-static {v1, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_2
	iget-object v0, p0, Lh1/h0;->b:Lh1/i0;
	iget-object v0, v0, Lh1/i0;->a:Landroid/content/Context;
	new-instance v1, Landroid/content/IntentFilter;
	const-string v2, "android.net.conn.CONNECTIVITY_CHANGE"
	invoke-direct {v1, v2}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
	invoke-virtual {v0, p0, v1}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
	return-void
.end method

.method public final declared-synchronized onReceive(Landroid/content/Context;Landroid/content/Intent;)V
	.locals 4

	monitor-enter p0
	:try_start_0
	iget-object p2, p0, Lh1/h0;->a:Lh1/i0;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	if-nez p2, :cond_0
	monitor-exit p0
	return-void
	:try_start_1
	:cond_0
	invoke-virtual {p2}, Lh1/i0;->d()Z
	move-result p2
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_0
	if-nez p2, :cond_1
	monitor-exit p0
	return-void
	:try_start_2
	:cond_1
	const-string p2, "FirebaseMessaging"
	const/4 v0, 0x3
	invoke-static {p2, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v1
	if-nez v1, :cond_3
	sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v2, 0x17
	if-ne v1, v2, :cond_2
	invoke-static {p2, v0}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result p2
	if-eqz p2, :cond_2
	goto :goto_0
	:cond_2
	const/4 p2, 0x0
	goto :goto_1
	:goto_0
	:cond_3
	const/4 p2, 0x1
	:goto_1
	if-eqz p2, :cond_4
	const-string p2, "FirebaseMessaging"
	const-string v0, "Connectivity changed. Starting background sync."
	invoke-static {p2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_4
	iget-object p2, p0, Lh1/h0;->a:Lh1/i0;
	iget-object v0, p2, Lh1/i0;->d:Lh1/g0;
	const-wide/16 v1, 0x0
	iget-object v0, v0, Lh1/g0;->f:Ljava/util/concurrent/ScheduledExecutorService;
	sget-object v3, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
	invoke-interface {v0, p2, v1, v2, v3}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
	invoke-virtual {p1, p0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
	const/4 p1, 0x0
	iput-object p1, p0, Lh1/h0;->a:Lh1/i0;
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	monitor-exit p0
	return-void
	:catchall_0
	move-exception p1
	monitor-exit p0
	throw p1
.end method