ik$b.smali

.class final Lcom/google/obf/ik$b;
.super Ljava/lang/Object;
.source "IMASDK"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/google/obf/ik;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "b"
.end annotation


# instance fields
.field private a:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3

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

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

    move-result-object v0

    iput-object v0, p0, Lcom/google/obf/ik$b;->a:Landroid/content/Context;

    if-nez v0, :cond_d

    .line 4
    iput-object p1, p0, Lcom/google/obf/ik$b;->a:Landroid/content/Context;

    :cond_d
    return-void
.end method


# virtual methods
.method public run()V
    .registers 4

    .line 6
    const-class v0, Lcom/google/obf/ik;

    monitor-enter v0

    .line 7
    :try_start_3
    invoke-static {}, Lcom/google/obf/ik;->f()Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;

    move-result-object v1

    if-nez v1, :cond_16

    .line 8
    new-instance v1, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;

    iget-object v2, p0, Lcom/google/obf/ik$b;->a:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;-><init>(Landroid/content/Context;)V

    .line 9
    invoke-virtual {v1}, Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;->start()V

    .line 10
    invoke-static {v1}, Lcom/google/obf/ik;->a(Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;)Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
    :try_end_16
    .catch Lcom/google/android/gms/common/GooglePlayServicesNotAvailableException; {:try_start_3 .. :try_end_16} :catch_32
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_16} :catch_28
    .catch Lcom/google/android/gms/common/GooglePlayServicesRepairableException; {:try_start_3 .. :try_end_16} :catch_20
    .catchall {:try_start_3 .. :try_end_16} :catchall_1e

    .line 11
    :cond_16
    :try_start_16
    invoke-static {}, Lcom/google/obf/ik;->g()Ljava/util/concurrent/CountDownLatch;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    goto :goto_3d

    :catchall_1e
    move-exception v1

    goto :goto_3f

    .line 21
    :catch_20
    invoke-static {}, Lcom/google/obf/ik;->g()Ljava/util/concurrent/CountDownLatch;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    goto :goto_3d

    .line 18
    :catch_28
    invoke-static {}, Lcom/google/obf/ik;->g()Ljava/util/concurrent/CountDownLatch;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->countDown()V
    :try_end_2f
    .catchall {:try_start_16 .. :try_end_2f} :catchall_30

    goto :goto_3d

    :catchall_30
    move-exception v1

    goto :goto_47

    :catch_32
    const/4 v1, 0x1

    .line 14
    :try_start_33
    invoke-static {v1}, Lcom/google/obf/ik;->a(Z)Z
    :try_end_36
    .catchall {:try_start_33 .. :try_end_36} :catchall_1e

    .line 15
    :try_start_36
    invoke-static {}, Lcom/google/obf/ik;->g()Ljava/util/concurrent/CountDownLatch;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    .line 24
    :goto_3d
    monitor-exit v0

    return-void

    .line 23
    :goto_3f
    invoke-static {}, Lcom/google/obf/ik;->g()Ljava/util/concurrent/CountDownLatch;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/concurrent/CountDownLatch;->countDown()V

    throw v1

    .line 24
    :goto_47
    monitor-exit v0
    :try_end_48
    .catchall {:try_start_36 .. :try_end_48} :catchall_30

    throw v1
.end method