az$c.smali
.class final Lcom/xiaomi/push/service/az$c;
.super Ljava/lang/Thread;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/xiaomi/push/service/az;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "c"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/xiaomi/push/service/az$c$a;
}
.end annotation
# instance fields
.field private volatile a:J
.field private volatile b:Z
.field private c:J
.field private d:Z
.field private e:Z
.field private f:Lcom/xiaomi/push/service/az$c$a;
# direct methods
.method constructor <init>(Ljava/lang/String;Z)V
.registers 5
invoke-direct {p0}, Ljava/lang/Thread;-><init>()V
const-wide/16 v0, 0x0
iput-wide v0, p0, Lcom/xiaomi/push/service/az$c;->a:J
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->b:Z
const-wide/16 v0, 0x32
iput-wide v0, p0, Lcom/xiaomi/push/service/az$c;->c:J
new-instance v0, Lcom/xiaomi/push/service/az$c$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/xiaomi/push/service/az$c$a;-><init>(Lcom/xiaomi/push/service/ba;)V
iput-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {p0, p1}, Lcom/xiaomi/push/service/az$c;->setName(Ljava/lang/String;)V
invoke-virtual {p0, p2}, Lcom/xiaomi/push/service/az$c;->setDaemon(Z)V
invoke-virtual {p0}, Lcom/xiaomi/push/service/az$c;->start()V
return-void
.end method
.method static synthetic a(Lcom/xiaomi/push/service/az$c;)Lcom/xiaomi/push/service/az$c$a;
.registers 2
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
return-object v0
.end method
.method static synthetic a(Lcom/xiaomi/push/service/az$c;Lcom/xiaomi/push/service/az$d;)V
.registers 2
invoke-direct {p0, p1}, Lcom/xiaomi/push/service/az$c;->a(Lcom/xiaomi/push/service/az$d;)V
return-void
.end method
.method private a(Lcom/xiaomi/push/service/az$d;)V
.registers 3
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {v0, p1}, Lcom/xiaomi/push/service/az$c$a;->a(Lcom/xiaomi/push/service/az$d;)V
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
return-void
.end method
.method static synthetic a(Lcom/xiaomi/push/service/az$c;Z)Z
.registers 2
iput-boolean p1, p0, Lcom/xiaomi/push/service/az$c;->e:Z
return p1
.end method
.method static synthetic b(Lcom/xiaomi/push/service/az$c;)Z
.registers 2
iget-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->d:Z
return v0
.end method
# virtual methods
.method public declared-synchronized a()V
.registers 2
monitor-enter p0
const/4 v0, 0x1
:try_start_2
iput-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->d:Z
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {v0}, Lcom/xiaomi/push/service/az$c$a;->c()V
invoke-virtual {p0}, Ljava/lang/Object;->notify()V
:try_end_c
.catchall {:try_start_2 .. :try_end_c} :catchall_e
monitor-exit p0
return-void
:catchall_e
move-exception v0
monitor-exit p0
throw v0
.end method
.method public b()Z
.registers 5
iget-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->b:Z
if-eqz v0, :cond_14
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iget-wide v2, p0, Lcom/xiaomi/push/service/az$c;->a:J
sub-long/2addr v0, v2
const-wide/32 v2, 0x927c0
cmp-long v0, v0, v2
if-lez v0, :cond_14
const/4 v0, 0x1
:goto_13
return v0
:cond_14
const/4 v0, 0x0
goto :goto_13
.end method
.method public run()V
.registers 9
:goto_0
monitor-enter p0
:try_start_1
iget-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->d:Z
if-eqz v0, :cond_7
monitor-exit p0
:goto_6
return-void
:cond_7
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {v0}, Lcom/xiaomi/push/service/az$c$a;->b()Z
move-result v0
if-eqz v0, :cond_1d
iget-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->e:Z
if-eqz v0, :cond_18
monitor-exit p0
goto :goto_6
:catchall_15
move-exception v0
monitor-exit p0
:try_end_17
.catchall {:try_start_1 .. :try_end_17} :catchall_15
throw v0
:cond_18
:try_start_18
invoke-virtual {p0}, Ljava/lang/Object;->wait()V
:try_end_1b
.catch Ljava/lang/InterruptedException; {:try_start_18 .. :try_end_1b} :catch_c4
.catchall {:try_start_18 .. :try_end_1b} :catchall_15
:goto_1b
:try_start_1b
monitor-exit p0
goto :goto_0
:cond_1d
invoke-static {}, Lcom/xiaomi/push/service/az;->a()J
move-result-wide v0
iget-object v2, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {v2}, Lcom/xiaomi/push/service/az$c$a;->a()Lcom/xiaomi/push/service/az$d;
move-result-object v2
iget-object v3, v2, Lcom/xiaomi/push/service/az$d;->a:Ljava/lang/Object;
monitor-enter v3
:try_end_2a
.catchall {:try_start_1b .. :try_end_2a} :catchall_15
:try_start_2a
iget-boolean v4, v2, Lcom/xiaomi/push/service/az$d;->b:Z
if-eqz v4, :cond_37
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Lcom/xiaomi/push/service/az$c$a;->c(I)V
monitor-exit v3
:try_end_35
.catchall {:try_start_2a .. :try_end_35} :catchall_62
:try_start_35
monitor-exit p0
:try_end_36
.catchall {:try_start_35 .. :try_end_36} :catchall_15
goto :goto_0
:cond_37
:try_start_37
iget-wide v4, v2, Lcom/xiaomi/push/service/az$d;->c:J
sub-long v0, v4, v0
monitor-exit v3
:try_end_3c
.catchall {:try_start_37 .. :try_end_3c} :catchall_62
const-wide/16 v4, 0x0
cmp-long v3, v0, v4
if-lez v3, :cond_65
:try_start_42
iget-wide v2, p0, Lcom/xiaomi/push/service/az$c;->c:J
cmp-long v2, v0, v2
if-lez v2, :cond_4a
iget-wide v0, p0, Lcom/xiaomi/push/service/az$c;->c:J
:cond_4a
iget-wide v2, p0, Lcom/xiaomi/push/service/az$c;->c:J
const-wide/16 v4, 0x32
add-long/2addr v2, v4
iput-wide v2, p0, Lcom/xiaomi/push/service/az$c;->c:J
iget-wide v2, p0, Lcom/xiaomi/push/service/az$c;->c:J
const-wide/16 v4, 0x1f4
cmp-long v2, v2, v4
if-lez v2, :cond_5d
const-wide/16 v2, 0x1f4
iput-wide v2, p0, Lcom/xiaomi/push/service/az$c;->c:J
:try_end_5d
.catchall {:try_start_42 .. :try_end_5d} :catchall_15
:cond_5d
:try_start_5d
invoke-virtual {p0, v0, v1}, Ljava/lang/Object;->wait(J)V
:try_end_60
.catch Ljava/lang/InterruptedException; {:try_start_5d .. :try_end_60} :catch_c7
.catchall {:try_start_5d .. :try_end_60} :catchall_15
:goto_60
:try_start_60
monitor-exit p0
:try_end_61
.catchall {:try_start_60 .. :try_end_61} :catchall_15
goto :goto_0
:catchall_62
move-exception v0
:try_start_63
monitor-exit v3
:try_end_64
.catchall {:try_start_63 .. :try_end_64} :catchall_62
:try_start_64
throw v0
:cond_65
const-wide/16 v0, 0x32
iput-wide v0, p0, Lcom/xiaomi/push/service/az$c;->c:J
iget-object v1, v2, Lcom/xiaomi/push/service/az$d;->a:Ljava/lang/Object;
monitor-enter v1
:try_end_6c
.catchall {:try_start_64 .. :try_end_6c} :catchall_15
const/4 v0, 0x0
:try_start_6d
iget-object v3, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {v3}, Lcom/xiaomi/push/service/az$c$a;->a()Lcom/xiaomi/push/service/az$d;
move-result-object v3
iget-wide v4, v3, Lcom/xiaomi/push/service/az$d;->c:J
iget-wide v6, v2, Lcom/xiaomi/push/service/az$d;->c:J
cmp-long v3, v4, v6
if-eqz v3, :cond_81
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-static {v0, v2}, Lcom/xiaomi/push/service/az$c$a;->a(Lcom/xiaomi/push/service/az$c$a;Lcom/xiaomi/push/service/az$d;)I
move-result v0
:cond_81
iget-boolean v3, v2, Lcom/xiaomi/push/service/az$d;->b:Z
if-eqz v3, :cond_94
iget-object v0, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
iget-object v3, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-static {v3, v2}, Lcom/xiaomi/push/service/az$c$a;->a(Lcom/xiaomi/push/service/az$c$a;Lcom/xiaomi/push/service/az$d;)I
move-result v2
invoke-virtual {v0, v2}, Lcom/xiaomi/push/service/az$c$a;->c(I)V
monitor-exit v1
:try_end_91
.catchall {:try_start_6d .. :try_end_91} :catchall_be
:try_start_91
monitor-exit p0
:try_end_92
.catchall {:try_start_91 .. :try_end_92} :catchall_15
goto/16 :goto_0
:cond_94
:try_start_94
iget-wide v4, v2, Lcom/xiaomi/push/service/az$d;->c:J
invoke-virtual {v2, v4, v5}, Lcom/xiaomi/push/service/az$d;->a(J)V
iget-object v3, p0, Lcom/xiaomi/push/service/az$c;->f:Lcom/xiaomi/push/service/az$c$a;
invoke-virtual {v3, v0}, Lcom/xiaomi/push/service/az$c$a;->c(I)V
const-wide/16 v4, 0x0
iput-wide v4, v2, Lcom/xiaomi/push/service/az$d;->c:J
monitor-exit v1
:try_end_a3
.catchall {:try_start_94 .. :try_end_a3} :catchall_be
:try_start_a3
monitor-exit p0
:try_end_a4
.catchall {:try_start_a3 .. :try_end_a4} :catchall_15
:try_start_a4
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
iput-wide v0, p0, Lcom/xiaomi/push/service/az$c;->a:J
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->b:Z
iget-object v0, v2, Lcom/xiaomi/push/service/az$d;->d:Lcom/xiaomi/push/service/az$b;
invoke-virtual {v0}, Lcom/xiaomi/push/service/az$b;->run()V
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/xiaomi/push/service/az$c;->b:Z
:try_end_b5
.catchall {:try_start_a4 .. :try_end_b5} :catchall_b7
goto/16 :goto_0
:catchall_b7
move-exception v0
monitor-enter p0
const/4 v1, 0x1
:try_start_ba
iput-boolean v1, p0, Lcom/xiaomi/push/service/az$c;->d:Z
monitor-exit p0
:try_end_bd
.catchall {:try_start_ba .. :try_end_bd} :catchall_c1
throw v0
:catchall_be
move-exception v0
:try_start_bf
monitor-exit v1
:try_end_c0
.catchall {:try_start_bf .. :try_end_c0} :catchall_be
:try_start_c0
throw v0
:try_end_c1
.catchall {:try_start_c0 .. :try_end_c1} :catchall_15
:catchall_c1
move-exception v0
:try_start_c2
monitor-exit p0
:try_end_c3
.catchall {:try_start_c2 .. :try_end_c3} :catchall_c1
throw v0
:catch_c4
move-exception v0
goto/16 :goto_1b
:catch_c7
move-exception v0
goto :goto_60
.end method