granularity level: instruction

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


.field public a:Lh1/c0;


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

	invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
	iput-object p1, p0, Lh1/b0;->a:Lh1/c0;
	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
	new-instance v0, Landroid/content/IntentFilter;
	const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
	invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
	iget-object v1, p0, Lh1/b0;->a:Lh1/c0;
	iget-object v1, v1, Lh1/c0;->c:Lcom/google/firebase/messaging/FirebaseMessaging;
	iget-object v1, v1, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
	invoke-virtual {v1, p0, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
	return-void
.end method

.method public final onReceive(Landroid/content/Context;Landroid/content/Intent;)V
	.locals 2

	iget-object p1, p0, Lh1/b0;->a:Lh1/c0;
	if-nez p1, :cond_0
	return-void
	:cond_0
	invoke-virtual {p1}, Lh1/c0;->a()Z
	move-result p1
	if-nez p1, :cond_1
	return-void
	:cond_1
	const/4 p1, 0x3
	const-string p2, "FirebaseMessaging"
	invoke-static {p2, p1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result v0
	if-nez v0, :cond_3
	sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
	const/16 v1, 0x17
	if-ne v0, v1, :cond_2
	invoke-static {p2, p1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
	move-result p1
	if-eqz p1, :cond_2
	goto :goto_0
	:cond_2
	const/4 p1, 0x0
	goto :goto_1
	:goto_0
	:cond_3
	const/4 p1, 0x1
	:goto_1
	if-eqz p1, :cond_4
	const-string p1, "Connectivity changed. Starting background sync."
	invoke-static {p2, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
	:cond_4
	iget-object p1, p0, Lh1/b0;->a:Lh1/c0;
	iget-object p2, p1, Lh1/c0;->c:Lcom/google/firebase/messaging/FirebaseMessaging;
	const-wide/16 v0, 0x0
	invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	invoke-static {p1, v0, v1}, Lcom/google/firebase/messaging/FirebaseMessaging;->b(Lh1/c0;J)V
	iget-object p1, p0, Lh1/b0;->a:Lh1/c0;
	iget-object p1, p1, Lh1/c0;->c:Lcom/google/firebase/messaging/FirebaseMessaging;
	iget-object p1, p1, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
	invoke-virtual {p1, p0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
	const/4 p1, 0x0
	iput-object p1, p0, Lh1/b0;->a:Lh1/c0;
	return-void
.end method