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

# interfaces
.implements Ljava/lang/Runnable;


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method


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

    .line 1
    sget-object v1, Lz5/g71;->g:Lz5/g71;

    const/4 v2, 0x0

    .line 2
    iput v2, v1, Lz5/g71;->b:I

    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v3

    iput-wide v3, v1, Lz5/g71;->f:J

    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

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

    .line 3
    sget-object v3, Lz5/n61;->c:Lz5/n61;

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-eqz v3, :cond_e8

    .line 4
    invoke-virtual {v3}, Lz5/n61;->b()Ljava/util/Collection;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_1e
    :goto_1e
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_e8

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lz5/k61;

    invoke-virtual {v6}, Lz5/k61;->e()Landroid/view/View;

    move-result-object v7

    .line 5
    iget-boolean v8, v6, Lz5/k61;->e:Z

    if-eqz v8, :cond_38

    iget-boolean v8, v6, Lz5/k61;->f:Z

    if-nez v8, :cond_38

    move v8, v5

    goto :goto_39

    :cond_38
    move v8, v2

    :goto_39
    if-eqz v8, :cond_1e

    .line 6
    iget-object v8, v6, Lz5/k61;->g:Ljava/lang/String;

    if-eqz v7, :cond_d6

    .line 7
    invoke-virtual {v7}, Landroid/view/View;->hasWindowFocus()Z

    move-result v9

    if-nez v9, :cond_48

    const-string v9, "noWindowFocus"

    goto :goto_70

    :cond_48
    new-instance v9, Ljava/util/HashSet;

    invoke-direct {v9}, Ljava/util/HashSet;-><init>()V

    move-object v10, v7

    :goto_4e
    if-eqz v10, :cond_68

    invoke-static {v10}, Lz5/a71;->a(Landroid/view/View;)Ljava/lang/String;

    move-result-object v11

    if-eqz v11, :cond_58

    move-object v9, v11

    goto :goto_70

    :cond_58
    invoke-virtual {v9, v10}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    invoke-virtual {v10}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v10

    instance-of v11, v10, Landroid/view/View;

    if-eqz v11, :cond_66

    check-cast v10, Landroid/view/View;

    goto :goto_4e

    :cond_66
    move-object v10, v4

    goto :goto_4e

    :cond_68
    iget-object v10, v0, Lz5/rv0;->u:Ljava/lang/Object;

    check-cast v10, Ljava/util/HashSet;

    invoke-virtual {v10, v9}, Ljava/util/HashSet;->addAll(Ljava/util/Collection;)Z

    move-object v9, v4

    :goto_70
    if-nez v9, :cond_bf

    iget-object v9, v0, Lz5/rv0;->v:Ljava/lang/Object;

    check-cast v9, Ljava/util/HashSet;

    invoke-virtual {v9, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    iget-object v9, v0, Lz5/rv0;->r:Ljava/lang/Object;

    check-cast v9, Ljava/util/HashMap;

    invoke-virtual {v9, v7, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 8
    iget-object v7, v6, Lz5/k61;->b:Ljava/util/List;

    .line 9
    invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v7

    :cond_86
    :goto_86
    invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z

    move-result v8

    if-eqz v8, :cond_1e

    invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lz5/p61;

    .line 10
    iget-object v9, v8, Lz5/p61;->a:Lz5/n71;

    .line 11
    invoke-virtual {v9}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Landroid/view/View;

    if-eqz v9, :cond_86

    iget-object v10, v0, Lz5/rv0;->s:Ljava/lang/Object;

    check-cast v10, Ljava/util/HashMap;

    invoke-virtual {v10, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v10

    check-cast v10, Lz5/b71;

    if-eqz v10, :cond_b0

    .line 12
    iget-object v8, v6, Lz5/k61;->g:Ljava/lang/String;

    .line 13
    iget-object v9, v10, Lz5/b71;->b:Ljava/util/ArrayList;

    invoke-virtual {v9, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_86

    .line 14
    :cond_b0
    iget-object v10, v0, Lz5/rv0;->s:Ljava/lang/Object;

    check-cast v10, Ljava/util/HashMap;

    new-instance v11, Lz5/b71;

    .line 15
    iget-object v12, v6, Lz5/k61;->g:Ljava/lang/String;

    .line 16
    invoke-direct {v11, v8, v12}, Lz5/b71;-><init>(Lz5/p61;Ljava/lang/String;)V

    invoke-virtual {v10, v9, v11}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_86

    :cond_bf
    iget-object v6, v0, Lz5/rv0;->w:Ljava/lang/Object;

    check-cast v6, Ljava/util/HashSet;

    invoke-virtual {v6, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    iget-object v6, v0, Lz5/rv0;->t:Ljava/lang/Object;

    check-cast v6, Ljava/util/HashMap;

    invoke-virtual {v6, v8, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    iget-object v6, v0, Lz5/rv0;->x:Ljava/lang/Object;

    check-cast v6, Ljava/util/HashMap;

    invoke-virtual {v6, v8, v9}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_1e

    :cond_d6
    iget-object v6, v0, Lz5/rv0;->w:Ljava/lang/Object;

    check-cast v6, Ljava/util/HashSet;

    invoke-virtual {v6, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    iget-object v6, v0, Lz5/rv0;->x:Ljava/lang/Object;

    check-cast v6, Ljava/util/HashMap;

    const-string v7, "noAdView"

    invoke-virtual {v6, v8, v7}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_1e

    .line 17
    :cond_e8
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v6

    iget-object v0, v1, Lz5/g71;->c:Landroidx/appcompat/widget/n;

    .line 18
    iget-object v0, v0, Landroidx/appcompat/widget/n;->t:Ljava/lang/Object;

    move-object v3, v0

    check-cast v3, Lz5/i51;

    .line 19
    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

    .line 20
    iget-object v0, v0, Lz5/rv0;->w:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashSet;

    .line 21
    invoke-virtual {v0}, Ljava/util/HashSet;->size()I

    move-result v0

    if-lez v0, :cond_175

    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

    .line 22
    iget-object v0, v0, Lz5/rv0;->w:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashSet;

    .line 23
    invoke-virtual {v0}, Ljava/util/HashSet;->iterator()Ljava/util/Iterator;

    move-result-object v8

    :goto_109
    invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_175

    invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    move-object v9, v0

    check-cast v9, Ljava/lang/String;

    invoke-static {v2, v2, v2, v2}, Lz5/z61;->a(IIII)Lorg/json/JSONObject;

    move-result-object v12

    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

    .line 24
    iget-object v0, v0, Lz5/rv0;->t:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashMap;

    invoke-virtual {v0, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    .line 25
    iget-object v10, v1, Lz5/g71;->c:Landroidx/appcompat/widget/n;

    .line 26
    iget-object v10, v10, Landroidx/appcompat/widget/n;->s:Ljava/lang/Object;

    check-cast v10, Lz5/w61;

    .line 27
    iget-object v11, v1, Lz5/g71;->d:Lz5/rv0;

    .line 28
    iget-object v11, v11, Lz5/rv0;->x:Ljava/lang/Object;

    check-cast v11, Ljava/util/HashMap;

    invoke-virtual {v11, v9}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v11

    check-cast v11, Ljava/lang/String;

    if-eqz v11, :cond_159

    .line 29
    invoke-virtual {v10, v0}, Lz5/w61;->zza(Landroid/view/View;)Lorg/json/JSONObject;

    move-result-object v10

    :try_start_13e
    const-string v0, "adSessionId"

    .line 30
    invoke-virtual {v10, v0, v9}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_143
    .catch Lorg/json/JSONException; {:try_start_13e .. :try_end_143} :catch_144

    goto :goto_14a

    :catch_144
    move-exception v0

    const-string v13, "Error with setting ad session id"

    invoke-static {v13, v0}, Lp/e;->l(Ljava/lang/String;Ljava/lang/Exception;)V

    :goto_14a
    :try_start_14a
    const-string v0, "notVisibleReason"

    .line 31
    invoke-virtual {v10, v0, v11}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_14f
    .catch Lorg/json/JSONException; {:try_start_14a .. :try_end_14f} :catch_150

    goto :goto_156

    :catch_150
    move-exception v0

    const-string v11, "Error with setting not visible reason"

    invoke-static {v11, v0}, Lp/e;->l(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 32
    :goto_156
    invoke-static {v12, v10}, Lz5/z61;->c(Lorg/json/JSONObject;Lorg/json/JSONObject;)V

    :cond_159
    invoke-static {v12}, Lz5/z61;->d(Lorg/json/JSONObject;)V

    new-instance v11, Ljava/util/HashSet;

    invoke-direct {v11}, Ljava/util/HashSet;-><init>()V

    invoke-virtual {v11, v9}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z

    iget-object v10, v1, Lz5/g71;->e:Lz5/n50;

    .line 33
    iget-object v0, v10, Lz5/n50;->t:Ljava/lang/Object;

    check-cast v0, Lcom/google/android/gms/internal/ads/v3;

    new-instance v15, Lz5/k71;

    move-object v9, v15

    move-wide v13, v6

    invoke-direct/range {v9 .. v14}, Lz5/k71;-><init>(Lz5/n50;Ljava/util/HashSet;Lorg/json/JSONObject;J)V

    invoke-virtual {v0, v15}, Lcom/google/android/gms/internal/ads/v3;->f(Lz5/i71;)V

    goto :goto_109

    .line 34
    :cond_175
    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

    .line 35
    iget-object v0, v0, Lz5/rv0;->v:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashSet;

    .line 36
    invoke-virtual {v0}, Ljava/util/HashSet;->size()I

    move-result v0

    if-lez v0, :cond_1a3

    invoke-static {v2, v2, v2, v2}, Lz5/z61;->a(IIII)Lorg/json/JSONObject;

    move-result-object v12

    .line 37
    invoke-virtual {v3, v4, v12, v1, v5}, Lz5/i51;->a(Landroid/view/View;Lorg/json/JSONObject;Lz5/t61;Z)V

    .line 38
    invoke-static {v12}, Lz5/z61;->d(Lorg/json/JSONObject;)V

    iget-object v10, v1, Lz5/g71;->e:Lz5/n50;

    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

    .line 39
    iget-object v0, v0, Lz5/rv0;->v:Ljava/lang/Object;

    move-object v11, v0

    check-cast v11, Ljava/util/HashSet;

    .line 40
    iget-object v0, v10, Lz5/n50;->t:Ljava/lang/Object;

    check-cast v0, Lcom/google/android/gms/internal/ads/v3;

    new-instance v3, Lz5/m71;

    move-object v9, v3

    move-wide v13, v6

    invoke-direct/range {v9 .. v14}, Lz5/m71;-><init>(Lz5/n50;Ljava/util/HashSet;Lorg/json/JSONObject;J)V

    invoke-virtual {v0, v3}, Lcom/google/android/gms/internal/ads/v3;->f(Lz5/i71;)V

    goto :goto_1a8

    .line 41
    :cond_1a3
    iget-object v0, v1, Lz5/g71;->e:Lz5/n50;

    invoke-virtual {v0}, Lz5/n50;->k()V

    :goto_1a8
    iget-object v0, v1, Lz5/g71;->d:Lz5/rv0;

    .line 42
    iget-object v3, v0, Lz5/rv0;->r:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashMap;

    invoke-virtual {v3}, Ljava/util/HashMap;->clear()V

    iget-object v3, v0, Lz5/rv0;->s:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashMap;

    invoke-virtual {v3}, Ljava/util/HashMap;->clear()V

    iget-object v3, v0, Lz5/rv0;->t:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashMap;

    invoke-virtual {v3}, Ljava/util/HashMap;->clear()V

    iget-object v3, v0, Lz5/rv0;->u:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashSet;

    invoke-virtual {v3}, Ljava/util/HashSet;->clear()V

    iget-object v3, v0, Lz5/rv0;->v:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashSet;

    invoke-virtual {v3}, Ljava/util/HashSet;->clear()V

    iget-object v3, v0, Lz5/rv0;->w:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashSet;

    invoke-virtual {v3}, Ljava/util/HashSet;->clear()V

    iget-object v3, v0, Lz5/rv0;->x:Ljava/lang/Object;

    check-cast v3, Ljava/util/HashMap;

    invoke-virtual {v3}, Ljava/util/HashMap;->clear()V

    iput-boolean v2, v0, Lz5/rv0;->y:Z

    .line 43
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v2

    iget-wide v4, v1, Lz5/g71;->f:J

    sub-long/2addr v2, v4

    iget-object v0, v1, Lz5/g71;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_210

    iget-object v0, v1, Lz5/g71;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_1f2
    :goto_1f2
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_210

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lz5/f71;

    sget-object v4, Ljava/util/concurrent/TimeUnit;->NANOSECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-virtual {v4, v2, v3}, Ljava/util/concurrent/TimeUnit;->toMillis(J)J

    invoke-interface {v1}, Lz5/f71;->zzb()V

    instance-of v4, v1, Lz5/e71;

    if-eqz v4, :cond_1f2

    check-cast v1, Lz5/e71;

    invoke-interface {v1}, Lz5/e71;->zza()V

    goto :goto_1f2

    :cond_210
    return-void
.end method
