granularity level: instruction
.class public final synthetic Lh1/p;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Lo0/h;
.field public final synthetic a:Lcom/google/firebase/messaging/FirebaseMessaging;
.field public final synthetic b:Ljava/lang/String;
.field public final synthetic c:Lh1/a0;
.method public synthetic constructor <init>(Lcom/google/firebase/messaging/FirebaseMessaging;Ljava/lang/String;Lh1/a0;)V
.locals 0
iput-object p1, p0, Lh1/p;->a:Lcom/google/firebase/messaging/FirebaseMessaging;
iput-object p2, p0, Lh1/p;->b:Ljava/lang/String;
iput-object p3, p0, Lh1/p;->c:Lh1/a0;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public final e(Ljava/lang/Object;)Lo0/o;
.locals 9
iget-object v0, p0, Lh1/p;->a:Lcom/google/firebase/messaging/FirebaseMessaging;
iget-object v1, p0, Lh1/p;->b:Ljava/lang/String;
iget-object v2, p0, Lh1/p;->c:Lh1/a0;
check-cast p1, Ljava/lang/String;
iget-object v3, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
const-class v4, Lcom/google/firebase/messaging/FirebaseMessaging;
monitor-enter v4
:try_start_0
sget-object v5, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
if-nez v5, :cond_0
new-instance v5, Lj1/c;
invoke-direct {v5, v3}, Lj1/c;-><init>(Landroid/content/Context;)V
sput-object v5, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
:cond_0
sget-object v3, Lcom/google/firebase/messaging/FirebaseMessaging;->k:Lj1/c;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_2
monitor-exit v4
iget-object v4, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
invoke-virtual {v4}, Lp0/g;->a()V
iget-object v4, v4, Lp0/g;->b:Ljava/lang/String;
const-string v5, "[DEFAULT]"
invoke-virtual {v5, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_1
const-string v4, ""
goto :goto_0
:cond_1
iget-object v4, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
invoke-virtual {v4}, Lp0/g;->c()Ljava/lang/String;
move-result-object v4
:goto_0
iget-object v5, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->h:Lh1/t;
monitor-enter v5
:try_start_1
iget-object v6, v5, Lh1/t;->b:Ljava/lang/String;
if-nez v6, :cond_2
invoke-virtual {v5}, Lh1/t;->d()V
:cond_2
iget-object v6, v5, Lh1/t;->b:Ljava/lang/String;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_1
monitor-exit v5
monitor-enter v3
:try_start_2
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v7
invoke-static {p1, v6, v7, v8}, Lh1/a0;->a(Ljava/lang/String;Ljava/lang/String;J)Ljava/lang/String;
move-result-object v5
if-nez v5, :cond_3
goto :goto_1
:cond_3
iget-object v6, v3, Lj1/c;->a:Ljava/lang/Object;
check-cast v6, Landroid/content/SharedPreferences;
invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v6
invoke-static {v4, v1}, Lj1/c;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-interface {v6, v1, v5}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->commit()Z
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:goto_1
monitor-exit v3
if-eqz v2, :cond_4
iget-object v1, v2, Lh1/a0;->a:Ljava/lang/String;
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_6
:cond_4
iget-object v1, v0, 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_6
const/4 v1, 0x3
const-string v2, "FirebaseMessaging"
invoke-static {v2, v1}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v1
if-eqz v1, :cond_5
const-string v1, "Invoking onNewToken for app: "
invoke-static {v1}, Lc0/b;->b(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v3, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->a:Lp0/g;
invoke-virtual {v3}, Lp0/g;->a()V
iget-object v3, v3, Lp0/g;->b:Ljava/lang/String;
invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_5
new-instance v1, Landroid/content/Intent;
const-string v2, "com.google.firebase.messaging.NEW_TOKEN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v2, "token"
invoke-virtual {v1, v2, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
new-instance v2, Lh1/l;
iget-object v0, v0, Lcom/google/firebase/messaging/FirebaseMessaging;->b:Landroid/content/Context;
invoke-direct {v2, v0}, Lh1/l;-><init>(Landroid/content/Context;)V
invoke-virtual {v2, v1}, Lh1/l;->b(Landroid/content/Intent;)Lo0/o;
:cond_6
invoke-static {p1}, Lf0/a;->j(Ljava/lang/Object;)Lo0/o;
move-result-object p1
return-object p1
:catchall_0
move-exception p1
monitor-exit v3
throw p1
:catchall_1
move-exception p1
monitor-exit v5
throw p1
:catchall_2
move-exception p1
monitor-exit v4
throw p1
.end method