granularity level: instruction

		.class public final Lh1/t;
.super Ljava/lang/Object;
.source "SourceFile"


.field public final a:Landroid/content/Context;
.field public b:Ljava/lang/String;
.field public c:Ljava/lang/String;
.field public d:I
.field public e:I


.method public constructor <init>(Landroid/content/Context;)V
	.locals 1

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	const/4 v0, 0x0
	iput v0, p0, Lh1/t;->e:I
	iput-object p1, p0, Lh1/t;->a:Landroid/content/Context;
	return-void
.end method

.method public static a(Lp0/g;)Ljava/lang/String;
	.locals 3

	invoke-virtual {p0}, Lp0/g;->a()V
	iget-object v0, p0, Lp0/g;->c:Lp0/h;
	iget-object v0, v0, Lp0/h;->e:Ljava/lang/String;
	return-object v0
.end method

.method public final b(Ljava/lang/String;)Landroid/content/pm/PackageInfo;
	.locals 2

	iget-object v0, p0, Lh1/t;->a:Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	const/4 v1, 0x0
	invoke-virtual {v0, p1, v1}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
	move-result-object p1
	return-object p1
.end method

.method public final c()Z
	.locals 6

	monitor-enter p0
	iget v0, p0, Lh1/t;->e:I
	const/4 v1, 0x2
	const/4 v2, 0x1
	const/4 v3, 0x0
	if-eqz v0, :cond_0
	goto/16 :goto_1
	:cond_0
	iget-object v0, p0, Lh1/t;->a:Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
	move-result-object v0
	const-string v4, "com.google.android.c2dm.permission.SEND"
	const-string v5, "com.google.android.gms"
	invoke-virtual {v0, v4, v5}, Landroid/content/pm/PackageManager;->checkPermission(Ljava/lang/String;Ljava/lang/String;)I
	move-result v4
	const/4 v5, -0x1
	invoke-static {}, Lp0/a;->u()Z
	move-result v4
	:try_start_2
	new-instance v4, Landroid/content/Intent;
	const-string v5, "com.google.iid.TOKEN_REQUEST"
	invoke-direct {v4, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
	const-string v5, "com.google.android.gms"
	invoke-virtual {v4, v5}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
	invoke-virtual {v0, v4, v3}, Landroid/content/pm/PackageManager;->queryBroadcastReceivers(Landroid/content/Intent;I)Ljava/util/List;
	move-result-object v0
	invoke-interface {v0}, Ljava/util/List;->size()I
	move-result v0
	iput v1, p0, Lh1/t;->e:I
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	monitor-exit p0
	goto :goto_2
	:goto_1
	monitor-exit p0
	move v1, v0
	:goto_2
	return v2
	:catchall_0
	move-exception v0
	monitor-exit p0
	throw v0
.end method

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

	monitor-enter p0
	:try_start_0
	iget-object v0, p0, Lh1/t;->a:Landroid/content/Context;
	invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
	move-result-object v0
	invoke-virtual {p0, v0}, Lh1/t;->b(Ljava/lang/String;)Landroid/content/pm/PackageInfo;
	move-result-object v0
	if-eqz v0, :cond_0
	iget v1, v0, Landroid/content/pm/PackageInfo;->versionCode:I
	invoke-static {v1}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;
	move-result-object v1
	iput-object v1, p0, Lh1/t;->b:Ljava/lang/String;
	iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
	iput-object v0, p0, Lh1/t;->c:Ljava/lang/String;
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_0
	:cond_0
	monitor-exit p0
	return-void
	:catchall_0
	move-exception v0
	monitor-exit p0
	throw v0
.end method