.class public final Lz5/a20;
.super Ll/c;
.source ""


# instance fields
.field public final a:Ljava/lang/Object;

.field public final b:Landroid/content/Context;

.field public c:Landroid/content/SharedPreferences;

.field public final d:Lcom/google/android/gms/internal/ads/x0;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/android/gms/internal/ads/x0;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/google/android/gms/internal/ads/x0;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Lcom/google/android/gms/internal/ads/x0;",
            ")V"
        }
    .end annotation

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Ll/c;-><init>(I)V

    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lz5/a20;->a:Ljava/lang/Object;

    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object p1

    iput-object p1, p0, Lz5/a20;->b:Landroid/content/Context;

    iput-object p2, p0, Lz5/a20;->d:Lcom/google/android/gms/internal/ads/x0;

    return-void
.end method

.method public static e(Landroid/content/Context;)Lorg/json/JSONObject;
    .registers 5

    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_5
    const-string v1, "js"

    invoke-static {}, Lz5/g50;->c()Lz5/g50;

    move-result-object v2

    iget-object v2, v2, Lz5/g50;->r:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "mf"

    sget-object v2, Lz5/sp;->a:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v2}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "cl"

    const-string v2, "407425155"

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "rapid_rc"

    const-string v2, "dev"

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "rapid_rollup"

    const-string v2, "HEAD"

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "admob_module_version"

    const v2, 0xbdfcb8

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "dynamite_local_version"

    const v3, 0xcbe6c14

    invoke-virtual {v0, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string v1, "dynamite_version"

    const-string v3, "com.google.android.gms.ads.dynamite"

    invoke-static {p0, v3}, Lcom/google/android/gms/dynamite/DynamiteModule;->b(Landroid/content/Context;Ljava/lang/String;)I

    move-result p0

    invoke-virtual {v0, v1, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    const-string p0, "container_version"

    invoke-virtual {v0, p0, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
    :try_end_50
    .catch Lorg/json/JSONException; {:try_start_5 .. :try_end_50} :catch_50

    :catch_50
    return-object v0
.end method


# virtual methods
.method public final d()Lz5/fc1;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lz5/fc1<",
            "Ljava/lang/Void;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lz5/a20;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lz5/a20;->c:Landroid/content/SharedPreferences;

    if-eqz v1, :cond_9

    :goto_7
    monitor-exit v0

    goto :goto_15

    :cond_9
    iget-object v1, p0, Lz5/a20;->b:Landroid/content/Context;

    const-string v2, "google_ads_flags_meta"

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v1

    iput-object v1, p0, Lz5/a20;->c:Landroid/content/SharedPreferences;
    :try_end_14
    .catchall {:try_start_3 .. :try_end_14} :catchall_56

    goto :goto_7

    :goto_15
    iget-object v0, p0, Lz5/a20;->c:Landroid/content/SharedPreferences;

    const-string v1, "js_last_update"

    const-wide/16 v2, 0x0

    invoke-interface {v0, v1, v2, v3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide v0

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zzj()Lu5/c;

    move-result-object v2

    invoke-interface {v2}, Lu5/c;->b()J

    move-result-wide v2

    sub-long/2addr v2, v0

    sget-object v0, Lz5/sp;->b:Lcom/google/android/gms/internal/ads/k;

    invoke-virtual {v0}, Lcom/google/android/gms/internal/ads/k;->l()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    cmp-long v0, v2, v0

    if-gez v0, :cond_3e

    const/4 v0, 0x0

    invoke-static {v0}, Lcom/google/android/gms/internal/ads/h8;->e(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v0

    return-object v0

    :cond_3e
    iget-object v0, p0, Lz5/a20;->b:Landroid/content/Context;

    invoke-static {v0}, Lz5/a20;->e(Landroid/content/Context;)Lorg/json/JSONObject;

    move-result-object v0

    iget-object v1, p0, Lz5/a20;->d:Lcom/google/android/gms/internal/ads/x0;

    invoke-virtual {v1, v0}, Lcom/google/android/gms/internal/ads/x0;->a(Ljava/lang/Object;)Lz5/fc1;

    move-result-object v0

    new-instance v1, Lz5/z10;

    invoke-direct {v1, p0}, Lz5/z10;-><init>(Lz5/a20;)V

    sget-object v2, Lz5/k50;->f:Lz5/gc1;

    invoke-static {v0, v1, v2}, Lcom/google/android/gms/internal/ads/h8;->v(Lz5/fc1;Lz5/n91;Ljava/util/concurrent/Executor;)Lz5/fc1;

    move-result-object v0

    return-object v0

    :catchall_56
    move-exception v1

    :try_start_57
    monitor-exit v0
    :try_end_58
    .catchall {:try_start_57 .. :try_end_58} :catchall_56

    throw v1
.end method
