.class public final synthetic Lz5/gz;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lz5/x6;
.implements Lz5/a51;


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

.field public final s:Ljava/lang/Object;

.field public final t:Ljava/lang/Object;

.field public final u:Ljava/lang/Object;

.field public final v:Z


# direct methods
.method public constructor <init>(Lz5/ef0;Lz5/lp1;Lz5/g61;Ljava/io/IOException;Z)V
    .registers 6

    .line 2
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lz5/gz;->r:Ljava/lang/Object;

    iput-object p2, p0, Lz5/gz;->s:Ljava/lang/Object;

    iput-object p3, p0, Lz5/gz;->t:Ljava/lang/Object;

    iput-object p4, p0, Lz5/gz;->u:Ljava/lang/Object;

    iput-boolean p5, p0, Lz5/gz;->v:Z

    return-void
.end method

.method public constructor <init>(Lz5/r6;ZLjava/util/ArrayList;Lz5/fi;Lcom/google/android/gms/internal/ads/z;)V
    .registers 6

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lz5/gz;->r:Ljava/lang/Object;

    iput-boolean p2, p0, Lz5/gz;->v:Z

    iput-object p3, p0, Lz5/gz;->s:Ljava/lang/Object;

    iput-object p4, p0, Lz5/gz;->t:Ljava/lang/Object;

    iput-object p5, p0, Lz5/gz;->u:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public zza(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 14

    iget-object v0, p0, Lz5/gz;->r:Ljava/lang/Object;

    check-cast v0, Lz5/r6;

    iget-boolean v1, p0, Lz5/gz;->v:Z

    iget-object v2, p0, Lz5/gz;->s:Ljava/lang/Object;

    check-cast v2, Ljava/util/ArrayList;

    iget-object v3, p0, Lz5/gz;->t:Ljava/lang/Object;

    check-cast v3, Lz5/fi;

    iget-object v4, p0, Lz5/gz;->u:Ljava/lang/Object;

    check-cast v4, Lcom/google/android/gms/internal/ads/z;

    check-cast p1, Landroid/database/sqlite/SQLiteDatabase;

    iget-object v5, v0, Lz5/r6;->r:Ljava/lang/Object;

    check-cast v5, Lz5/iu0;

    .line 1
    iget-object v5, v5, Lz5/iu0;->f:Lcom/google/android/gms/ads/internal/util/zzg;

    .line 2
    invoke-interface {v5}, Lcom/google/android/gms/ads/internal/util/zzg;->zzC()Z

    move-result v5

    const/4 v6, 0x0

    if-eqz v5, :cond_23

    goto/16 :goto_197

    :cond_23
    iget-object v0, v0, Lz5/r6;->r:Ljava/lang/Object;

    check-cast v0, Lz5/iu0;

    .line 3
    invoke-static {}, Lz5/ji;->G()Lz5/ii;

    move-result-object v5

    .line 4
    iget-boolean v7, v5, Lz5/uk1;->t:Z

    const/4 v8, 0x0

    if-eqz v7, :cond_35

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_35
    iget-object v7, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v7, Lz5/ji;

    invoke-static {v7, v2}, Lz5/ji;->L(Lz5/ji;Ljava/lang/Iterable;)V

    .line 5
    iget-object v2, v0, Lz5/iu0;->a:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zze()Lcom/google/android/gms/ads/internal/util/zzad;

    move-result-object v7

    invoke-virtual {v7, v2}, Lcom/google/android/gms/ads/internal/util/zzad;->zzf(Landroid/content/ContentResolver;)I

    move-result v2

    const/4 v7, 0x1

    if-eqz v2, :cond_4f

    move v2, v7

    goto :goto_50

    :cond_4f
    move v2, v8

    :goto_50
    invoke-static {v2}, Lz5/iu0;->a(Z)I

    move-result v2

    .line 6
    iget-boolean v9, v5, Lz5/uk1;->t:Z

    if-eqz v9, :cond_5d

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_5d
    iget-object v9, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v9, Lz5/ji;

    invoke-static {v9, v2}, Lz5/ji;->W(Lz5/ji;I)V

    .line 7
    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zze()Lcom/google/android/gms/ads/internal/util/zzad;

    move-result-object v2

    iget-object v9, v0, Lz5/iu0;->a:Landroid/content/Context;

    iget-object v10, v0, Lz5/iu0;->c:Landroid/telephony/TelephonyManager;

    invoke-virtual {v2, v9, v10}, Lcom/google/android/gms/ads/internal/util/zzad;->zzq(Landroid/content/Context;Landroid/telephony/TelephonyManager;)I

    move-result v2

    .line 8
    iget-boolean v9, v5, Lz5/uk1;->t:Z

    if-eqz v9, :cond_79

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_79
    iget-object v9, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v9, Lz5/ji;

    invoke-static {v9, v2}, Lz5/ji;->w(Lz5/ji;I)V

    .line 9
    iget-object v2, v0, Lz5/iu0;->d:Lz5/du0;

    .line 10
    iget-object v9, v2, Lz5/du0;->f:Ljava/lang/Object;

    monitor-enter v9

    :try_start_85
    iget-wide v10, v2, Lz5/du0;->b:J

    monitor-exit v9
    :try_end_88
    .catchall {:try_start_85 .. :try_end_88} :catchall_1a1

    .line 11
    iget-boolean v2, v5, Lz5/uk1;->t:Z

    if-eqz v2, :cond_91

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_91
    iget-object v2, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/ji;

    invoke-static {v2, v10, v11}, Lz5/ji;->J(Lz5/ji;J)V

    .line 12
    iget-object v2, v0, Lz5/iu0;->d:Lz5/du0;

    .line 13
    monitor-enter v2

    :try_start_9b
    iget-object v9, v2, Lz5/du0;->h:Ljava/lang/Object;

    monitor-enter v9
    :try_end_9e
    .catchall {:try_start_9b .. :try_end_9e} :catchall_19e

    :try_start_9e
    iget-wide v10, v2, Lz5/du0;->d:J

    monitor-exit v9
    :try_end_a1
    .catchall {:try_start_9e .. :try_end_a1} :catchall_19b

    monitor-exit v2

    .line 14
    iget-boolean v2, v5, Lz5/uk1;->t:Z

    if-eqz v2, :cond_ab

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_ab
    iget-object v2, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/ji;

    invoke-static {v2, v10, v11}, Lz5/ji;->K(Lz5/ji;J)V

    .line 15
    iget-object v2, v0, Lz5/iu0;->d:Lz5/du0;

    .line 16
    iget-object v10, v2, Lz5/du0;->e:Ljava/lang/Object;

    monitor-enter v10

    :try_start_b7
    iget v2, v2, Lz5/du0;->a:I

    monitor-exit v10
    :try_end_ba
    .catchall {:try_start_b7 .. :try_end_ba} :catchall_198

    .line 17
    iget-boolean v9, v5, Lz5/uk1;->t:Z

    if-eqz v9, :cond_c3

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_c3
    iget-object v9, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v9, Lz5/ji;

    invoke-static {v9, v2}, Lz5/ji;->N(Lz5/ji;I)V

    .line 18
    iget-boolean v2, v5, Lz5/uk1;->t:Z

    if-eqz v2, :cond_d3

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_d3
    iget-object v2, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/ji;

    invoke-static {v2, v4}, Lz5/ji;->O(Lz5/ji;Lcom/google/android/gms/internal/ads/z;)V

    .line 19
    iget-boolean v2, v5, Lz5/uk1;->t:Z

    if-eqz v2, :cond_e3

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_e3
    iget-object v2, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/ji;

    invoke-static {v2, v3}, Lz5/ji;->M(Lz5/ji;Lz5/fi;)V

    .line 20
    iget v2, v0, Lz5/iu0;->g:I

    .line 21
    iget-boolean v3, v5, Lz5/uk1;->t:Z

    if-eqz v3, :cond_f5

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_f5
    iget-object v3, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v3, Lz5/ji;

    invoke-static {v3, v2}, Lz5/ji;->x(Lz5/ji;I)V

    .line 22
    invoke-static {v1}, Lz5/iu0;->a(Z)I

    move-result v2

    .line 23
    iget-boolean v3, v5, Lz5/uk1;->t:Z

    if-eqz v3, :cond_109

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_109
    iget-object v3, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v3, Lz5/ji;

    invoke-static {v3, v2}, Lz5/ji;->U(Lz5/ji;I)V

    .line 24
    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

    .line 25
    iget-boolean v4, v5, Lz5/uk1;->t:Z

    if-eqz v4, :cond_121

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_121
    iget-object v4, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v4, Lz5/ji;

    invoke-static {v4, v2, v3}, Lz5/ji;->I(Lz5/ji;J)V

    .line 26
    iget-object v0, v0, Lz5/iu0;->a:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v0

    invoke-static {}, Lcom/google/android/gms/ads/internal/zzt;->zze()Lcom/google/android/gms/ads/internal/util/zzad;

    move-result-object v2

    invoke-virtual {v2, v0}, Lcom/google/android/gms/ads/internal/util/zzad;->zze(Landroid/content/ContentResolver;)I

    move-result v0

    if-eqz v0, :cond_13a

    move v0, v7

    goto :goto_13b

    :cond_13a
    move v0, v8

    :goto_13b
    invoke-static {v0}, Lz5/iu0;->a(Z)I

    move-result v0

    .line 27
    iget-boolean v2, v5, Lz5/uk1;->t:Z

    if-eqz v2, :cond_148

    invoke-virtual {v5}, Lz5/uk1;->i()V

    iput-boolean v8, v5, Lz5/uk1;->t:Z

    :cond_148
    iget-object v2, v5, Lz5/uk1;->s:Lz5/xk1;

    check-cast v2, Lz5/ji;

    invoke-static {v2, v0}, Lz5/ji;->V(Lz5/ji;I)V

    .line 28
    invoke-virtual {v5}, Lz5/uk1;->m()Lz5/xk1;

    move-result-object v0

    check-cast v0, Lz5/ji;

    invoke-virtual {v0}, Lz5/pj1;->j()[B

    move-result-object v0

    .line 29
    new-instance v2, Landroid/content/ContentValues;

    invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

    const-string v3, "timestamp"

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

    move-result-object v4

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

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

    const-string v3, "serialized_proto_data"

    invoke-virtual {v2, v3, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;[B)V

    const-string v0, "offline_signal_contents"

    invoke-virtual {p1, v0, v6, v2}, Landroid/database/sqlite/SQLiteDatabase;->insert(Ljava/lang/String;Ljava/lang/String;Landroid/content/ContentValues;)J

    new-array v0, v7, [Ljava/lang/Object;

    const-string v2, "total_requests"

    aput-object v2, v0, v8

    const-string v2, "UPDATE offline_signal_statistics SET value = value+1 WHERE statistic_name = \'%s\'"

    invoke-static {v2, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    if-nez v1, :cond_197

    new-array v0, v7, [Ljava/lang/Object;

    const-string v1, "failed_requests"

    aput-object v1, v0, v8

    invoke-static {v2, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    :cond_197
    :goto_197
    return-object v6

    :catchall_198
    move-exception p1

    .line 30
    :try_start_199
    monitor-exit v10
    :try_end_19a
    .catchall {:try_start_199 .. :try_end_19a} :catchall_198

    throw p1

    :catchall_19b
    move-exception p1

    .line 31
    :try_start_19c
    monitor-exit v9
    :try_end_19d
    .catchall {:try_start_19c .. :try_end_19d} :catchall_19b

    :try_start_19d
    throw p1
    :try_end_19e
    .catchall {:try_start_19d .. :try_end_19e} :catchall_19e

    :catchall_19e
    move-exception p1

    monitor-exit v2

    throw p1

    :catchall_1a1
    move-exception p1

    .line 32
    :try_start_1a2
    monitor-exit v9
    :try_end_1a3
    .catchall {:try_start_1a2 .. :try_end_1a3} :catchall_1a1

    throw p1
.end method

.method public zza(Ljava/lang/Object;)V
    .registers 9

    iget-object v0, p0, Lz5/gz;->r:Ljava/lang/Object;

    move-object v2, v0

    check-cast v2, Lz5/ef0;

    iget-object v0, p0, Lz5/gz;->s:Ljava/lang/Object;

    move-object v3, v0

    check-cast v3, Lz5/lp1;

    iget-object v0, p0, Lz5/gz;->t:Ljava/lang/Object;

    move-object v4, v0

    check-cast v4, Lz5/g61;

    iget-object v0, p0, Lz5/gz;->u:Ljava/lang/Object;

    move-object v5, v0

    check-cast v5, Ljava/io/IOException;

    iget-boolean v6, p0, Lz5/gz;->v:Z

    move-object v1, p1

    check-cast v1, Lz5/kf0;

    invoke-interface/range {v1 .. v6}, Lz5/kf0;->i(Lz5/ef0;Lz5/lp1;Lz5/g61;Ljava/io/IOException;Z)V

    return-void
.end method
