.class public final Lj6/d3;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field public final synthetic r:I

.field public final s:I

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

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

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

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

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


# direct methods
.method public constructor <init>(Lcom/google/android/gms/measurement/internal/b;ILjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
    .registers 8

    const/4 v0, 0x0

    iput v0, p0, Lj6/d3;->r:I

    .line 1
    iput-object p1, p0, Lj6/d3;->x:Ljava/lang/Object;

    iput p2, p0, Lj6/d3;->s:I

    iput-object p3, p0, Lj6/d3;->t:Ljava/lang/String;

    iput-object p4, p0, Lj6/d3;->u:Ljava/lang/Object;

    iput-object p5, p0, Lj6/d3;->v:Ljava/lang/Object;

    iput-object p6, p0, Lj6/d3;->w:Ljava/lang/Object;

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

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;Lj6/h3;ILjava/lang/Throwable;[BLjava/util/Map;)V
    .registers 8

    const/4 v0, 0x1

    iput v0, p0, Lj6/d3;->r:I

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

    const-string v0, "null reference"

    .line 3
    invoke-static {p2, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 4
    iput-object p2, p0, Lj6/d3;->u:Ljava/lang/Object;

    iput p3, p0, Lj6/d3;->s:I

    iput-object p4, p0, Lj6/d3;->v:Ljava/lang/Object;

    iput-object p5, p0, Lj6/d3;->w:Ljava/lang/Object;

    iput-object p1, p0, Lj6/d3;->t:Ljava/lang/String;

    iput-object p6, p0, Lj6/d3;->x:Ljava/lang/Object;

    return-void
.end method


# virtual methods
.method public final run()V
    .registers 14

    iget v0, p0, Lj6/d3;->r:I

    packed-switch v0, :pswitch_data_19c

    goto/16 :goto_17f

    .line 1
    :pswitch_7
    iget-object v0, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v0, Lcom/google/android/gms/measurement/internal/b;

    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v0}, Lcom/google/android/gms/measurement/internal/d;->t()Lcom/google/android/gms/measurement/internal/c;

    move-result-object v0

    invoke-virtual {v0}, Lj6/i4;->m()Z

    move-result v1

    if-eqz v1, :cond_170

    iget-object v1, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    .line 2
    iget-char v2, v1, Lcom/google/android/gms/measurement/internal/b;->c:C

    const/4 v3, 0x1

    const/4 v4, 0x0

    if-nez v2, :cond_8a

    .line 3
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 4
    iget-object v1, v1, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 5
    iget-object v2, v1, Lj6/f;->d:Ljava/lang/Boolean;

    if-nez v2, :cond_69

    monitor-enter v1

    :try_start_2a
    iget-object v2, v1, Lj6/f;->d:Ljava/lang/Boolean;

    if-nez v2, :cond_64

    iget-object v2, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 6
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/d;->a:Landroid/content/Context;

    .line 7
    invoke-virtual {v2}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;

    move-result-object v2

    invoke-static {}, Lcom/google/android/gms/common/util/a;->a()Ljava/lang/String;

    move-result-object v5

    if-eqz v2, :cond_4f

    iget-object v2, v2, Landroid/content/pm/ApplicationInfo;->processName:Ljava/lang/String;

    if-eqz v2, :cond_48

    invoke-virtual {v2, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_48

    move v2, v3

    goto :goto_49

    :cond_48
    move v2, v4

    :goto_49
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    iput-object v2, v1, Lj6/f;->d:Ljava/lang/Boolean;

    :cond_4f
    iget-object v2, v1, Lj6/f;->d:Ljava/lang/Boolean;

    if-nez v2, :cond_64

    sget-object v2, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    iput-object v2, v1, Lj6/f;->d:Ljava/lang/Boolean;

    iget-object v2, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/d;->s()Lcom/google/android/gms/measurement/internal/b;

    move-result-object v2

    .line 8
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/b;->f:Lj6/e3;

    const-string v5, "My process not in the list of running processes"

    .line 9
    invoke-virtual {v2, v5}, Lj6/e3;->c(Ljava/lang/String;)V

    :cond_64
    monitor-exit v1

    goto :goto_69

    :catchall_66
    move-exception v0

    monitor-exit v1
    :try_end_68
    .catchall {:try_start_2a .. :try_end_68} :catchall_66

    throw v0

    :cond_69
    :goto_69
    iget-object v1, v1, Lj6/f;->d:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_7d

    .line 10
    iget-object v1, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    iget-object v2, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v2, 0x43

    goto :goto_88

    :cond_7d
    iget-object v1, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    iget-object v2, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-static {v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    const/16 v2, 0x63

    .line 11
    :goto_88
    iput-char v2, v1, Lcom/google/android/gms/measurement/internal/b;->c:C

    .line 12
    :cond_8a
    iget-object v1, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    .line 13
    iget-wide v5, v1, Lcom/google/android/gms/measurement/internal/b;->d:J

    const-wide/16 v7, 0x0

    cmp-long v2, v5, v7

    if-gez v2, :cond_a2

    .line 14
    iget-object v2, v1, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    .line 15
    iget-object v2, v2, Lcom/google/android/gms/measurement/internal/d;->g:Lj6/f;

    .line 16
    invoke-virtual {v2}, Lj6/f;->o()J

    const-wide/32 v5, 0xb3b0

    .line 17
    iput-wide v5, v1, Lcom/google/android/gms/measurement/internal/b;->d:J

    .line 18
    :cond_a2
    iget v1, p0, Lj6/d3;->s:I

    const-string v2, "01VDIWEA?"

    invoke-virtual {v2, v1}, Ljava/lang/String;->charAt(I)C

    move-result v1

    iget-object v2, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v2, Lcom/google/android/gms/measurement/internal/b;

    .line 19
    iget-char v5, v2, Lcom/google/android/gms/measurement/internal/b;->c:C

    .line 20
    iget-wide v9, v2, Lcom/google/android/gms/measurement/internal/b;->d:J

    .line 21
    iget-object v2, p0, Lj6/d3;->t:Ljava/lang/String;

    iget-object v6, p0, Lj6/d3;->u:Ljava/lang/Object;

    iget-object v11, p0, Lj6/d3;->v:Ljava/lang/Object;

    iget-object v12, p0, Lj6/d3;->w:Ljava/lang/Object;

    invoke-static {v3, v2, v6, v11, v12}, Lcom/google/android/gms/measurement/internal/b;->v(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v6

    add-int/lit8 v6, v6, 0x18

    invoke-direct {v3, v6}, Ljava/lang/StringBuilder;-><init>(I)V

    const-string v6, "2"

    invoke-virtual {v3, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v9, v10}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v1, ":"

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v2

    const/16 v3, 0x400

    if-le v2, v3, :cond_f1

    iget-object v1, p0, Lj6/d3;->t:Ljava/lang/String;

    invoke-virtual {v1, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    :cond_f1
    iget-object v0, v0, Lcom/google/android/gms/measurement/internal/c;->d:Lj6/o3;

    if-eqz v0, :cond_17e

    .line 22
    iget-object v2, v0, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/e;->g()V

    .line 23
    iget-object v2, v0, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v2

    iget-object v3, v0, Lj6/o3;->a:Ljava/lang/String;

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

    move-result-wide v2

    cmp-long v2, v2, v7

    if-nez v2, :cond_10d

    .line 24
    invoke-virtual {v0}, Lj6/o3;->a()V

    :cond_10d
    if-nez v1, :cond_111

    const-string v1, ""

    :cond_111
    iget-object v2, v0, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v2

    iget-object v3, v0, Lj6/o3;->b:Ljava/lang/String;

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

    move-result-wide v2

    cmp-long v4, v2, v7

    const-wide/16 v5, 0x1

    if-gtz v4, :cond_13b

    iget-object v2, v0, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v2}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v2

    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v2

    iget-object v3, v0, Lj6/o3;->c:Ljava/lang/String;

    invoke-interface {v2, v3, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    iget-object v0, v0, Lj6/o3;->b:Ljava/lang/String;

    invoke-interface {v2, v0, v5, v6}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v2}, Landroid/content/SharedPreferences$Editor;->apply()V

    goto :goto_17e

    :cond_13b
    iget-object v4, v0, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    iget-object v4, v4, Lcom/google/android/gms/measurement/internal/e;->a:Lcom/google/android/gms/measurement/internal/d;

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/d;->A()Lcom/google/android/gms/measurement/internal/f;

    move-result-object v4

    invoke-virtual {v4}, Lcom/google/android/gms/measurement/internal/f;->t()Ljava/security/SecureRandom;

    move-result-object v4

    invoke-virtual {v4}, Ljava/security/SecureRandom;->nextLong()J

    move-result-wide v7

    add-long/2addr v2, v5

    const-wide v4, 0x7fffffffffffffffL

    div-long v9, v4, v2

    iget-object v6, v0, Lj6/o3;->e:Lcom/google/android/gms/measurement/internal/c;

    invoke-virtual {v6}, Lcom/google/android/gms/measurement/internal/c;->n()Landroid/content/SharedPreferences;

    move-result-object v6

    invoke-interface {v6}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v6

    and-long/2addr v4, v7

    cmp-long v4, v4, v9

    if-gez v4, :cond_167

    iget-object v4, v0, Lj6/o3;->c:Ljava/lang/String;

    invoke-interface {v6, v4, v1}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    :cond_167
    iget-object v0, v0, Lj6/o3;->b:Ljava/lang/String;

    invoke-interface {v6, v0, v2, v3}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    invoke-interface {v6}, Landroid/content/SharedPreferences$Editor;->apply()V

    goto :goto_17e

    :cond_170
    const/4 v0, 0x6

    .line 25
    iget-object v1, p0, Lj6/d3;->x:Ljava/lang/Object;

    check-cast v1, Lcom/google/android/gms/measurement/internal/b;

    invoke-virtual {v1}, Lcom/google/android/gms/measurement/internal/b;->x()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Persisted config not initialized. Not logging error/warn"

    invoke-static {v0, v1, v2}, Landroid/util/Log;->println(ILjava/lang/String;Ljava/lang/String;)I

    :cond_17e
    :goto_17e
    return-void

    .line 26
    :goto_17f
    iget-object v0, p0, Lj6/d3;->u:Ljava/lang/Object;

    move-object v1, v0

    check-cast v1, Lj6/h3;

    iget-object v2, p0, Lj6/d3;->t:Ljava/lang/String;

    iget v3, p0, Lj6/d3;->s:I

    iget-object v0, p0, Lj6/d3;->v:Ljava/lang/Object;

    move-object v4, v0

    check-cast v4, Ljava/lang/Throwable;

    iget-object v0, p0, Lj6/d3;->w:Ljava/lang/Object;

    move-object v5, v0

    check-cast v5, [B

    iget-object v0, p0, Lj6/d3;->x:Ljava/lang/Object;

    move-object v6, v0

    check-cast v6, Ljava/util/Map;

    invoke-interface/range {v1 .. v6}, Lj6/h3;->b(Ljava/lang/String;ILjava/lang/Throwable;[BLjava/util/Map;)V

    return-void

    nop

    :pswitch_data_19c
    .packed-switch 0x0
        :pswitch_7
    .end packed-switch
.end method
