.class public Lm6/a;
.super Ljava/lang/Object;
.source ""


# annotations
.annotation build Ljavax/annotation/concurrent/ThreadSafe;
.end annotation


# static fields
.field public static j:Ljava/util/concurrent/ScheduledExecutorService;


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

.field public final b:Landroid/os/PowerManager$WakeLock;

.field public c:Landroid/os/WorkSource;

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

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

.field public f:Z

.field public final g:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "[",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation
.end field

.field public h:I

.field public i:Ljava/util/concurrent/atomic/AtomicInteger;


# direct methods
.method public constructor <init>(Landroid/content/Context;ILjava/lang/String;)V
    .registers 10

    const/4 v0, 0x0

    if-nez p1, :cond_5

    move-object v1, v0

    goto :goto_9

    :cond_5
    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

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

    iput-object p0, p0, Lm6/a;->a:Ljava/lang/Object;

    const/4 v2, 0x1

    iput-boolean v2, p0, Lm6/a;->f:Z

    new-instance v3, Ljava/util/HashMap;

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

    iput-object v3, p0, Lm6/a;->g:Ljava/util/Map;

    new-instance v3, Ljava/util/HashSet;

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

    invoke-static {v3}, Ljava/util/Collections;->synchronizedSet(Ljava/util/Set;)Ljava/util/Set;

    new-instance v3, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v4, 0x0

    invoke-direct {v3, v4}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v3, p0, Lm6/a;->i:Ljava/util/concurrent/atomic/AtomicInteger;

    const-string v3, "WakeLock: context must not be null"

    invoke-static {p1, v3}, Lcom/google/android/gms/common/internal/d;->i(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string v3, "WakeLock: wakeLockName must not be empty"

    invoke-static {p3, v3}, Lcom/google/android/gms/common/internal/d;->f(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;

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

    move-result-object v3

    iput-object v3, p0, Lm6/a;->e:Landroid/content/Context;

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

    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v5

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

    move-result v3

    if-nez v3, :cond_5a

    const-string v3, "*gcore*:"

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

    move-result v5

    if-eqz v5, :cond_51

    invoke-virtual {v3, p3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    goto :goto_57

    :cond_51
    new-instance v5, Ljava/lang/String;

    invoke-direct {v5, v3}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    move-object v3, v5

    :goto_57
    iput-object v3, p0, Lm6/a;->d:Ljava/lang/String;

    goto :goto_5c

    :cond_5a
    iput-object p3, p0, Lm6/a;->d:Ljava/lang/String;

    :goto_5c
    const-string v3, "power"

    invoke-virtual {p1, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Landroid/os/PowerManager;

    invoke-virtual {v3, p2, p3}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;

    move-result-object p2

    iput-object p2, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-static {p1}, Lu5/m;->a(Landroid/content/Context;)Z

    move-result p2

    if-eqz p2, :cond_114

    invoke-static {v1}, Lu5/k;->a(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_7a

    invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    :cond_7a
    const-string p2, "WorkSourceUtil"

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

    move-result-object p3

    if-eqz p3, :cond_ea

    if-eqz v1, :cond_ea

    :try_start_84
    invoke-static {p1}, Lw5/c;->a(Landroid/content/Context;)Lw5/b;

    move-result-object p1

    .line 3
    iget-object p1, p1, Lw5/b;->a:Landroid/content/Context;

    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object p1

    invoke-virtual {p1, v1, v4}, Landroid/content/pm/PackageManager;->getApplicationInfo(Ljava/lang/String;I)Landroid/content/pm/ApplicationInfo;

    move-result-object p1
    :try_end_92
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_84 .. :try_end_92} :catch_d4

    if-nez p1, :cond_a3

    const-string p1, "Could not get applicationInfo from package: "

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

    move-result p3

    if-eqz p3, :cond_9d

    goto :goto_dc

    :cond_9d
    new-instance p3, Ljava/lang/String;

    invoke-direct {p3, p1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    goto :goto_e6

    :cond_a3
    iget p1, p1, Landroid/content/pm/ApplicationInfo;->uid:I

    new-instance v0, Landroid/os/WorkSource;

    invoke-direct {v0}, Landroid/os/WorkSource;-><init>()V

    .line 5
    sget-object p3, Lu5/m;->b:Ljava/lang/reflect/Method;

    const-string v3, "Unable to assign blame through WorkSource"

    if-eqz p3, :cond_bf

    const/4 v5, 0x2

    :try_start_b1
    new-array v5, v5, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v5, v4

    aput-object v1, v5, v2

    invoke-virtual {p3, v0, v5}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_be
    .catch Ljava/lang/Exception; {:try_start_b1 .. :try_end_be} :catch_cf

    goto :goto_ea

    :cond_bf
    sget-object p3, Lu5/m;->a:Ljava/lang/reflect/Method;

    if-eqz p3, :cond_ea

    :try_start_c3
    new-array v1, v2, [Ljava/lang/Object;

    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    aput-object p1, v1, v4

    invoke-virtual {p3, v0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_ce
    .catch Ljava/lang/Exception; {:try_start_c3 .. :try_end_ce} :catch_cf

    goto :goto_ea

    :catch_cf
    move-exception p1

    invoke-static {p2, v3, p1}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    goto :goto_ea

    :catch_d4
    const-string p1, "Could not find package: "

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

    move-result p3

    if-eqz p3, :cond_e1

    :goto_dc
    invoke-virtual {p1, v1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    goto :goto_e7

    :cond_e1
    new-instance p3, Ljava/lang/String;

    invoke-direct {p3, p1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    :goto_e6
    move-object p1, p3

    :goto_e7
    invoke-static {p2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 7
    :cond_ea
    :goto_ea
    iput-object v0, p0, Lm6/a;->c:Landroid/os/WorkSource;

    if-eqz v0, :cond_114

    iget-object p1, p0, Lm6/a;->e:Landroid/content/Context;

    invoke-static {p1}, Lu5/m;->a(Landroid/content/Context;)Z

    move-result p1

    if-eqz p1, :cond_114

    iget-object p1, p0, Lm6/a;->c:Landroid/os/WorkSource;

    if-eqz p1, :cond_fe

    invoke-virtual {p1, v0}, Landroid/os/WorkSource;->add(Landroid/os/WorkSource;)Z

    goto :goto_100

    :cond_fe
    iput-object v0, p0, Lm6/a;->c:Landroid/os/WorkSource;

    :goto_100
    iget-object p1, p0, Lm6/a;->c:Landroid/os/WorkSource;

    :try_start_102
    iget-object p2, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {p2, p1}, Landroid/os/PowerManager$WakeLock;->setWorkSource(Landroid/os/WorkSource;)V
    :try_end_107
    .catch Ljava/lang/IllegalArgumentException; {:try_start_102 .. :try_end_107} :catch_10a
    .catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_102 .. :try_end_107} :catch_108

    goto :goto_114

    :catch_108
    move-exception p1

    goto :goto_10b

    :catch_10a
    move-exception p1

    :goto_10b
    const-string p2, "WakeLock"

    invoke-virtual {p1}, Ljava/lang/RuntimeException;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p2, p1}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;)I

    :cond_114
    :goto_114
    sget-object p1, Lm6/a;->j:Ljava/util/concurrent/ScheduledExecutorService;

    if-nez p1, :cond_13c

    .line 8
    const-class p1, Ls5/a;

    monitor-enter p1

    :try_start_11b
    sget-object p2, Ls5/a;->a:Ls5/a$a;

    if-nez p2, :cond_126

    new-instance p2, Ls5/b;

    invoke-direct {p2}, Ls5/b;-><init>()V

    sput-object p2, Ls5/a;->a:Ls5/a$a;

    :cond_126
    sget-object p2, Ls5/a;->a:Ls5/a$a;
    :try_end_128
    .catchall {:try_start_11b .. :try_end_128} :catchall_139

    monitor-exit p1

    .line 9
    check-cast p2, Ls5/b;

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

    .line 10
    invoke-static {v2}, Ljava/util/concurrent/Executors;->newScheduledThreadPool(I)Ljava/util/concurrent/ScheduledExecutorService;

    move-result-object p1

    invoke-static {p1}, Ljava/util/concurrent/Executors;->unconfigurableScheduledExecutorService(Ljava/util/concurrent/ScheduledExecutorService;)Ljava/util/concurrent/ScheduledExecutorService;

    move-result-object p1

    .line 11
    sput-object p1, Lm6/a;->j:Ljava/util/concurrent/ScheduledExecutorService;

    goto :goto_13c

    :catchall_139
    move-exception p2

    .line 12
    monitor-exit p1

    throw p2

    :cond_13c
    :goto_13c
    return-void
.end method


# virtual methods
.method public a(J)V
    .registers 10

    iget-object v0, p0, Lm6/a;->i:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I

    .line 1
    iget-boolean v0, p0, Lm6/a;->f:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_d

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    .line 2
    :cond_d
    iget-object v0, p0, Lm6/a;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_10
    iget-object v2, p0, Lm6/a;->g:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->isEmpty()Z

    move-result v2

    const/4 v3, 0x0

    if-eqz v2, :cond_1d

    iget v2, p0, Lm6/a;->h:I

    if-lez v2, :cond_2c

    :cond_1d
    iget-object v2, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v2}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v2

    if-nez v2, :cond_2c

    iget-object v2, p0, Lm6/a;->g:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->clear()V

    iput v3, p0, Lm6/a;->h:I

    :cond_2c
    iget-boolean v2, p0, Lm6/a;->f:Z

    const/4 v4, 0x1

    if-eqz v2, :cond_59

    iget-object v2, p0, Lm6/a;->g:Ljava/util/Map;

    invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, [Ljava/lang/Integer;

    if-nez v2, :cond_4a

    iget-object v2, p0, Lm6/a;->g:Ljava/util/Map;

    new-array v5, v4, [Ljava/lang/Integer;

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v5, v3

    invoke-interface {v2, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    move v3, v4

    goto :goto_57

    :cond_4a
    aget-object v5, v2, v3

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    add-int/2addr v5, v4

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v2, v3

    :goto_57
    if-nez v3, :cond_61

    :cond_59
    iget-boolean v2, p0, Lm6/a;->f:Z

    if-nez v2, :cond_6e

    iget v2, p0, Lm6/a;->h:I

    if-nez v2, :cond_6e

    :cond_61
    iget-object v2, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-static {v2, v1}, Lt5/b;->a(Landroid/os/PowerManager$WakeLock;Ljava/lang/String;)Ljava/lang/String;

    invoke-virtual {p0}, Lm6/a;->c()Ljava/util/List;

    iget v1, p0, Lm6/a;->h:I

    add-int/2addr v1, v4

    iput v1, p0, Lm6/a;->h:I

    :cond_6e
    monitor-exit v0
    :try_end_6f
    .catchall {:try_start_10 .. :try_end_6f} :catchall_87

    iget-object v0, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->acquire()V

    const-wide/16 v0, 0x0

    cmp-long v0, p1, v0

    if-lez v0, :cond_86

    sget-object v0, Lm6/a;->j:Ljava/util/concurrent/ScheduledExecutorService;

    new-instance v1, Lz5/dc0;

    invoke-direct {v1, p0}, Lz5/dc0;-><init>(Lm6/a;)V

    sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;

    invoke-interface {v0, v1, p1, p2, v2}, Ljava/util/concurrent/ScheduledExecutorService;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;

    :cond_86
    return-void

    :catchall_87
    move-exception p1

    :try_start_88
    monitor-exit v0
    :try_end_89
    .catchall {:try_start_88 .. :try_end_89} :catchall_87

    throw p1
.end method

.method public b()V
    .registers 7

    iget-object v0, p0, Lm6/a;->i:Ljava/util/concurrent/atomic/AtomicInteger;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I

    move-result v0

    if-gez v0, :cond_19

    const-string v0, "WakeLock"

    iget-object v1, p0, Lm6/a;->d:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " release without a matched acquire!"

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

    move-result-object v1

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

    .line 1
    :cond_19
    iget-boolean v0, p0, Lm6/a;->f:Z

    const/4 v1, 0x0

    if-eqz v0, :cond_21

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    .line 2
    :cond_21
    iget-object v0, p0, Lm6/a;->a:Ljava/lang/Object;

    monitor-enter v0

    :try_start_24
    iget-boolean v2, p0, Lm6/a;->f:Z

    const/4 v3, 0x1

    if-eqz v2, :cond_53

    iget-object v2, p0, Lm6/a;->g:Ljava/util/Map;

    invoke-interface {v2, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, [Ljava/lang/Integer;

    const/4 v4, 0x0

    if-nez v2, :cond_35

    goto :goto_51

    :cond_35
    aget-object v5, v2, v4

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    if-ne v5, v3, :cond_44

    iget-object v2, p0, Lm6/a;->g:Ljava/util/Map;

    invoke-interface {v2, v1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move v4, v3

    goto :goto_51

    :cond_44
    aget-object v5, v2, v4

    invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

    move-result v5

    sub-int/2addr v5, v3

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v5

    aput-object v5, v2, v4

    :goto_51
    if-nez v4, :cond_5b

    :cond_53
    iget-boolean v2, p0, Lm6/a;->f:Z

    if-nez v2, :cond_68

    iget v2, p0, Lm6/a;->h:I

    if-ne v2, v3, :cond_68

    :cond_5b
    iget-object v2, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-static {v2, v1}, Lt5/b;->a(Landroid/os/PowerManager$WakeLock;Ljava/lang/String;)Ljava/lang/String;

    invoke-virtual {p0}, Lm6/a;->c()Ljava/util/List;

    iget v1, p0, Lm6/a;->h:I

    sub-int/2addr v1, v3

    iput v1, p0, Lm6/a;->h:I

    :cond_68
    monitor-exit v0
    :try_end_69
    .catchall {:try_start_24 .. :try_end_69} :catchall_6d

    invoke-virtual {p0}, Lm6/a;->d()V

    return-void

    :catchall_6d
    move-exception v1

    :try_start_6e
    monitor-exit v0
    :try_end_6f
    .catchall {:try_start_6e .. :try_end_6f} :catchall_6d

    throw v1
.end method

.method public final c()Ljava/util/List;
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lm6/a;->c:Landroid/os/WorkSource;

    sget-object v1, Lu5/m;->a:Ljava/lang/reflect/Method;

    .line 1
    new-instance v1, Ljava/util/ArrayList;

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

    const-string v2, "null reference"

    const-string v3, "Unable to assign blame through WorkSource"

    const-string v4, "WorkSourceUtil"

    const/4 v5, 0x0

    if-nez v0, :cond_13

    goto :goto_2b

    :cond_13
    sget-object v6, Lu5/m;->c:Ljava/lang/reflect/Method;

    if-eqz v6, :cond_2b

    :try_start_17
    new-array v7, v5, [Ljava/lang/Object;

    invoke-virtual {v6, v0, v7}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    .line 2
    invoke-static {v6, v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 3
    check-cast v6, Ljava/lang/Integer;

    invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I

    move-result v6
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_17 .. :try_end_26} :catch_27

    goto :goto_2c

    :catch_27
    move-exception v6

    invoke-static {v4, v3, v6}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_2b
    :goto_2b
    move v6, v5

    :goto_2c
    if-eqz v6, :cond_5a

    move v7, v5

    :goto_2f
    if-ge v7, v6, :cond_5a

    sget-object v8, Lu5/m;->d:Ljava/lang/reflect/Method;

    const/4 v9, 0x0

    if-eqz v8, :cond_4b

    const/4 v10, 0x1

    :try_start_37
    new-array v10, v10, [Ljava/lang/Object;

    invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v11

    aput-object v11, v10, v5

    invoke-virtual {v8, v0, v10}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Ljava/lang/String;
    :try_end_45
    .catch Ljava/lang/Exception; {:try_start_37 .. :try_end_45} :catch_47

    move-object v9, v8

    goto :goto_4b

    :catch_47
    move-exception v8

    invoke-static {v4, v3, v8}, Landroid/util/Log;->wtf(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I

    :cond_4b
    :goto_4b
    invoke-static {v9}, Lu5/k;->a(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_57

    .line 4
    invoke-static {v9, v2}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 5
    invoke-virtual {v1, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_57
    add-int/lit8 v7, v7, 0x1

    goto :goto_2f

    :cond_5a
    return-object v1
.end method

.method public final d()V
    .registers 4

    iget-object v0, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    move-result v0

    if-eqz v0, :cond_33

    :try_start_8
    iget-object v0, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->release()V
    :try_end_d
    .catch Ljava/lang/RuntimeException; {:try_start_8 .. :try_end_d} :catch_e

    goto :goto_2c

    :catch_e
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    const-class v2, Ljava/lang/RuntimeException;

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

    move-result v1

    if-eqz v1, :cond_32

    iget-object v1, p0, Lm6/a;->d:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const-string v2, " was already released!"

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

    move-result-object v1

    const-string v2, "WakeLock"

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

    :goto_2c
    iget-object v0, p0, Lm6/a;->b:Landroid/os/PowerManager$WakeLock;

    invoke-virtual {v0}, Landroid/os/PowerManager$WakeLock;->isHeld()Z

    goto :goto_33

    :cond_32
    throw v0

    :cond_33
    :goto_33
    return-void
.end method
