p$c.smali
.class final Lf/b/b/b/n1/p$c;
.super Landroid/os/Handler;
.source ""
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lf/b/b/b/n1/p;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1a
name = "c"
.end annotation
# instance fields
.field private final a:Landroid/os/HandlerThread;
.field private final b:Lf/b/b/b/n1/c0;
.field private final c:Lf/b/b/b/n1/w;
.field private final d:Landroid/os/Handler;
.field private final e:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Lf/b/b/b/n1/j;",
">;"
}
.end annotation
.end field
.field private final f:Ljava/util/HashMap;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/HashMap<",
"Ljava/lang/String;",
"Lf/b/b/b/n1/p$e;",
">;"
}
.end annotation
.end field
.field private g:I
.field private h:Z
.field private i:I
.field private j:I
.field private k:I
# direct methods
.method public constructor <init>(Landroid/os/HandlerThread;Lf/b/b/b/n1/c0;Lf/b/b/b/n1/w;Landroid/os/Handler;IIZ)V
.registers 9
invoke-virtual {p1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
move-result-object v0
invoke-direct {p0, v0}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
iput-object p1, p0, Lf/b/b/b/n1/p$c;->a:Landroid/os/HandlerThread;
iput-object p2, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
iput-object p3, p0, Lf/b/b/b/n1/p$c;->c:Lf/b/b/b/n1/w;
iput-object p4, p0, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
iput p5, p0, Lf/b/b/b/n1/p$c;->i:I
iput p6, p0, Lf/b/b/b/n1/p$c;->j:I
iput-boolean p7, p0, Lf/b/b/b/n1/p$c;->h:Z
new-instance p1, Ljava/util/ArrayList;
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
iput-object p1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
new-instance p1, Ljava/util/HashMap;
invoke-direct {p1}, Ljava/util/HashMap;-><init>()V
iput-object p1, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
return-void
.end method
.method private A(Lf/b/b/b/n1/p$e;)V
.registers 3
if-eqz p1, :cond_f
invoke-static {p1}, Lf/b/b/b/n1/p$e;->b(Lf/b/b/b/n1/p$e;)Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lf/b/b/b/n1/p$e;->g(Z)V
:cond_f
return-void
.end method
.method private B()V
.registers 7
const/4 v0, 0x0
const/4 v1, 0x0
:goto_2
iget-object v2, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result v2
if-ge v0, v2, :cond_55
iget-object v2, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lf/b/b/b/n1/j;
iget-object v3, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
iget-object v4, v2, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v4, v4, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-virtual {v3, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lf/b/b/b/n1/p$e;
iget v4, v2, Lf/b/b/b/n1/j;->b:I
if-eqz v4, :cond_44
const/4 v5, 0x1
if-eq v4, v5, :cond_40
const/4 v5, 0x2
if-eq v4, v5, :cond_39
const/4 v5, 0x5
if-eq v4, v5, :cond_35
const/4 v5, 0x7
if-ne v4, v5, :cond_2f
goto :goto_35
:cond_2f
new-instance v0, Ljava/lang/IllegalStateException;
invoke-direct {v0}, Ljava/lang/IllegalStateException;-><init>()V
throw v0
:cond_35
:goto_35
invoke-direct {p0, v3, v2}, Lf/b/b/b/n1/p$c;->z(Lf/b/b/b/n1/p$e;Lf/b/b/b/n1/j;)V
goto :goto_48
:cond_39
invoke-static {v3}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;
invoke-direct {p0, v3, v2, v1}, Lf/b/b/b/n1/p$c;->x(Lf/b/b/b/n1/p$e;Lf/b/b/b/n1/j;I)V
goto :goto_48
:cond_40
invoke-direct {p0, v3}, Lf/b/b/b/n1/p$c;->A(Lf/b/b/b/n1/p$e;)V
goto :goto_48
:cond_44
invoke-direct {p0, v3, v2}, Lf/b/b/b/n1/p$c;->y(Lf/b/b/b/n1/p$e;Lf/b/b/b/n1/j;)Lf/b/b/b/n1/p$e;
move-result-object v3
:goto_48
if-eqz v3, :cond_52
invoke-static {v3}, Lf/b/b/b/n1/p$e;->b(Lf/b/b/b/n1/p$e;)Z
move-result v2
if-nez v2, :cond_52
add-int/lit8 v1, v1, 0x1
:cond_52
add-int/lit8 v0, v0, 0x1
goto :goto_2
:cond_55
return-void
.end method
.method private C()V
.registers 5
const/4 v0, 0x0
:goto_1
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_27
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/b/b/b/n1/j;
iget v2, v1, Lf/b/b/b/n1/j;->b:I
const/4 v3, 0x2
if-ne v2, v3, :cond_24
:try_start_16
iget-object v2, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v2, v1}, Lf/b/b/b/n1/c0;->f(Lf/b/b/b/n1/j;)V
:try_end_1b
.catch Ljava/io/IOException; {:try_start_16 .. :try_end_1b} :catch_1c
goto :goto_24
:catch_1c
move-exception v1
const-string v2, "DownloadManager"
const-string v3, "Failed to update index."
invoke-static {v2, v3, v1}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_24
:goto_24
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_27
const/16 v0, 0xb
const-wide/16 v1, 0x1388
invoke-virtual {p0, v0, v1, v2}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
return-void
.end method
.method private a(Lf/b/b/b/n1/s;I)V
.registers 16
iget-object v0, p1, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
const/4 v1, 0x1
invoke-direct {p0, v0, v1}, Lf/b/b/b/n1/p$c;->e(Ljava/lang/String;Z)Lf/b/b/b/n1/j;
move-result-object v0
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v7
if-eqz v0, :cond_15
invoke-static {v0, p1, p2, v7, v8}, Lf/b/b/b/n1/p;->m(Lf/b/b/b/n1/j;Lf/b/b/b/n1/s;IJ)Lf/b/b/b/n1/j;
move-result-object p1
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->m(Lf/b/b/b/n1/j;)Lf/b/b/b/n1/j;
goto :goto_2a
:cond_15
new-instance v0, Lf/b/b/b/n1/j;
if-eqz p2, :cond_1b
const/4 v4, 0x1
goto :goto_1d
:cond_1b
const/4 v1, 0x0
const/4 v4, 0x0
:goto_1d
const-wide/16 v9, -0x1
const/4 v12, 0x0
move-object v2, v0
move-object v3, p1
move-wide v5, v7
move v11, p2
invoke-direct/range {v2 .. v12}, Lf/b/b/b/n1/j;-><init>(Lf/b/b/b/n1/s;IJJJII)V
invoke-direct {p0, v0}, Lf/b/b/b/n1/p$c;->m(Lf/b/b/b/n1/j;)Lf/b/b/b/n1/j;
:goto_2a
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private b()Z
.registers 2
iget-boolean v0, p0, Lf/b/b/b/n1/p$c;->h:Z
if-nez v0, :cond_a
iget v0, p0, Lf/b/b/b/n1/p$c;->g:I
if-nez v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method
.method private static c(Lf/b/b/b/n1/j;Lf/b/b/b/n1/j;)I
.registers 4
iget-wide v0, p0, Lf/b/b/b/n1/j;->c:J
iget-wide p0, p1, Lf/b/b/b/n1/j;->c:J
invoke-static {v0, v1, p0, p1}, Lf/b/b/b/s1/m0;->o(JJ)I
move-result p0
return p0
.end method
.method private static d(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
.registers 15
new-instance v12, Lf/b/b/b/n1/j;
iget-object v1, p0, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-wide v3, p0, Lf/b/b/b/n1/j;->c:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v5
iget-wide v7, p0, Lf/b/b/b/n1/j;->e:J
iget-object v11, p0, Lf/b/b/b/n1/j;->h:Lf/b/b/b/n1/r;
const/4 v9, 0x0
const/4 v10, 0x0
move-object v0, v12
move v2, p1
invoke-direct/range {v0 .. v11}, Lf/b/b/b/n1/j;-><init>(Lf/b/b/b/n1/s;IJJJIILf/b/b/b/n1/r;)V
return-object v12
.end method
.method private e(Ljava/lang/String;Z)Lf/b/b/b/n1/j;
.registers 5
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->f(Ljava/lang/String;)I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_10
iget-object p1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lf/b/b/b/n1/j;
return-object p1
:cond_10
if-eqz p2, :cond_35
:try_start_12
iget-object p2, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {p2, p1}, Lf/b/b/b/n1/o;->e(Ljava/lang/String;)Lf/b/b/b/n1/j;
move-result-object p1
:try_end_18
.catch Ljava/io/IOException; {:try_start_12 .. :try_end_18} :catch_19
return-object p1
:catch_19
move-exception p2
const-string v0, "Failed to load download: "
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
if-eqz v1, :cond_2b
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
goto :goto_30
:cond_2b
new-instance p1, Ljava/lang/String;
invoke-direct {p1, v0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
:goto_30
const-string v0, "DownloadManager"
invoke-static {v0, p1, p2}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_35
const/4 p1, 0x0
return-object p1
.end method
.method private f(Ljava/lang/String;)I
.registers 4
const/4 v0, 0x0
:goto_1
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
move-result v1
if-ge v0, v1, :cond_1f
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/b/b/b/n1/j;
iget-object v1, v1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v1, v1, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1c
return v0
:cond_1c
add-int/lit8 v0, v0, 0x1
goto :goto_1
:cond_1f
const/4 p1, -0x1
return p1
.end method
.method private g(I)V
.registers 7
iput p1, p0, Lf/b/b/b/n1/p$c;->g:I
const/4 p1, 0x0
const/4 v0, 0x0
:try_start_4
iget-object v1, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v1}, Lf/b/b/b/n1/c0;->d()V
iget-object v1, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
const/4 v2, 0x5
new-array v3, v2, [I
aput p1, v3, p1
const/4 v4, 0x1
aput v4, v3, v4
const/4 v4, 0x2
aput v4, v3, v4
const/4 v4, 0x3
aput v2, v3, v4
const/4 v2, 0x4
const/4 v4, 0x7
aput v4, v3, v2
invoke-interface {v1, v3}, Lf/b/b/b/n1/o;->a([I)Lf/b/b/b/n1/l;
move-result-object v0
:goto_21
invoke-interface {v0}, Lf/b/b/b/n1/l;->moveToNext()Z
move-result v1
if-eqz v1, :cond_40
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-interface {v0}, Lf/b/b/b/n1/l;->b0()Lf/b/b/b/n1/j;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_30
.catch Ljava/io/IOException; {:try_start_4 .. :try_end_30} :catch_33
.catchall {:try_start_4 .. :try_end_30} :catchall_31
goto :goto_21
:catchall_31
move-exception p1
goto :goto_57
:catch_33
move-exception v1
:try_start_34
const-string v2, "DownloadManager"
const-string v3, "Failed to load index."
invoke-static {v2, v3, v1}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V
:try_end_40
.catchall {:try_start_34 .. :try_end_40} :catchall_31
:cond_40
invoke-static {v0}, Lf/b/b/b/s1/m0;->n(Ljava/io/Closeable;)V
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
iget-object v1, p0, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
invoke-virtual {v1, p1, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object p1
invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
:goto_57
invoke-static {v0}, Lf/b/b/b/s1/m0;->n(Ljava/io/Closeable;)V
goto :goto_5c
:goto_5b
throw p1
:goto_5c
goto :goto_5b
.end method
.method public static synthetic h(Lf/b/b/b/n1/j;Lf/b/b/b/n1/j;)I
.registers 2
invoke-static {p0, p1}, Lf/b/b/b/n1/p$c;->c(Lf/b/b/b/n1/j;Lf/b/b/b/n1/j;)I
move-result p0
return p0
.end method
.method private i(Lf/b/b/b/n1/p$e;)V
.registers 15
invoke-static {p1}, Lf/b/b/b/n1/p$e;->c(Lf/b/b/b/n1/p$e;)Lf/b/b/b/n1/s;
move-result-object v0
iget-object v0, v0, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-static {p1}, Lf/b/b/b/n1/p$e;->d(Lf/b/b/b/n1/p$e;)J
move-result-wide v8
const/4 p1, 0x0
invoke-direct {p0, v0, p1}, Lf/b/b/b/n1/p$c;->e(Ljava/lang/String;Z)Lf/b/b/b/n1/j;
move-result-object p1
invoke-static {p1}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Lf/b/b/b/n1/j;
iget-wide v0, p1, Lf/b/b/b/n1/j;->e:J
cmp-long v2, v8, v0
if-eqz v2, :cond_3a
const-wide/16 v0, -0x1
cmp-long v2, v8, v0
if-nez v2, :cond_21
goto :goto_3a
:cond_21
new-instance v0, Lf/b/b/b/n1/j;
iget-object v2, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget v3, p1, Lf/b/b/b/n1/j;->b:I
iget-wide v4, p1, Lf/b/b/b/n1/j;->c:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget v10, p1, Lf/b/b/b/n1/j;->f:I
iget v11, p1, Lf/b/b/b/n1/j;->g:I
iget-object v12, p1, Lf/b/b/b/n1/j;->h:Lf/b/b/b/n1/r;
move-object v1, v0
invoke-direct/range {v1 .. v12}, Lf/b/b/b/n1/j;-><init>(Lf/b/b/b/n1/s;IJJJIILf/b/b/b/n1/r;)V
invoke-direct {p0, v0}, Lf/b/b/b/n1/p$c;->m(Lf/b/b/b/n1/j;)Lf/b/b/b/n1/j;
:cond_3a
:goto_3a
return-void
.end method
.method private j(Lf/b/b/b/n1/j;Ljava/lang/Throwable;)V
.registers 19
move-object/from16 v1, p0
move-object/from16 v0, p1
new-instance v14, Lf/b/b/b/n1/j;
iget-object v3, v0, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
if-nez p2, :cond_d
const/4 v2, 0x3
const/4 v4, 0x3
goto :goto_f
:cond_d
const/4 v2, 0x4
const/4 v4, 0x4
:goto_f
iget-wide v5, v0, Lf/b/b/b/n1/j;->c:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v7
iget-wide v9, v0, Lf/b/b/b/n1/j;->e:J
iget v11, v0, Lf/b/b/b/n1/j;->f:I
const/4 v15, 0x0
if-nez p2, :cond_1e
const/4 v12, 0x0
goto :goto_20
:cond_1e
const/4 v2, 0x1
const/4 v12, 0x1
:goto_20
iget-object v13, v0, Lf/b/b/b/n1/j;->h:Lf/b/b/b/n1/r;
move-object v2, v14
invoke-direct/range {v2 .. v13}, Lf/b/b/b/n1/j;-><init>(Lf/b/b/b/n1/s;IJJJIILf/b/b/b/n1/r;)V
iget-object v0, v1, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
iget-object v2, v14, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v2, v2, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-direct {v1, v2}, Lf/b/b/b/n1/p$c;->f(Ljava/lang/String;)I
move-result v2
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
:try_start_33
iget-object v0, v1, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v0, v14}, Lf/b/b/b/n1/c0;->f(Lf/b/b/b/n1/j;)V
:try_end_38
.catch Ljava/io/IOException; {:try_start_33 .. :try_end_38} :catch_39
goto :goto_41
:catch_39
move-exception v0
const-string v2, "DownloadManager"
const-string v3, "Failed to update index."
invoke-static {v2, v3, v0}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_41
new-instance v0, Lf/b/b/b/n1/p$b;
new-instance v2, Ljava/util/ArrayList;
iget-object v3, v1, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-direct {v0, v14, v15, v2}, Lf/b/b/b/n1/p$b;-><init>(Lf/b/b/b/n1/j;ZLjava/util/List;)V
iget-object v2, v1, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
const/4 v3, 0x2
invoke-virtual {v2, v3, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
return-void
.end method
.method private k(Lf/b/b/b/n1/j;)V
.registers 6
iget v0, p1, Lf/b/b/b/n1/j;->b:I
const/4 v1, 0x1
const/4 v2, 0x7
if-ne v0, v2, :cond_12
iget v0, p1, Lf/b/b/b/n1/j;->f:I
if-nez v0, :cond_b
const/4 v1, 0x0
:cond_b
invoke-direct {p0, p1, v1}, Lf/b/b/b/n1/p$c;->n(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
goto :goto_46
:cond_12
iget-object v0, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v0, v0, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-direct {p0, v0}, Lf/b/b/b/n1/p$c;->f(Ljava/lang/String;)I
move-result v0
iget-object v2, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
:try_start_1f
iget-object v0, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
iget-object v2, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v2, v2, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-interface {v0, v2}, Lf/b/b/b/n1/c0;->g(Ljava/lang/String;)V
:try_end_28
.catch Ljava/io/IOException; {:try_start_1f .. :try_end_28} :catch_29
goto :goto_30
:catch_29
const-string v0, "DownloadManager"
const-string v2, "Failed to remove from database"
invoke-static {v0, v2}, Lf/b/b/b/s1/r;->c(Ljava/lang/String;Ljava/lang/String;)V
:goto_30
new-instance v0, Lf/b/b/b/n1/p$b;
new-instance v2, Ljava/util/ArrayList;
iget-object v3, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-direct {v0, p1, v1, v2}, Lf/b/b/b/n1/p$b;-><init>(Lf/b/b/b/n1/j;ZLjava/util/List;)V
iget-object p1, p0, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
const/4 v1, 0x2
invoke-virtual {p1, v1, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object p1
invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V
:goto_46
return-void
.end method
.method private l(Lf/b/b/b/n1/p$e;)V
.registers 7
invoke-static {p1}, Lf/b/b/b/n1/p$e;->c(Lf/b/b/b/n1/p$e;)Lf/b/b/b/n1/s;
move-result-object v0
iget-object v0, v0, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
iget-object v1, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
invoke-virtual {v1, v0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
invoke-static {p1}, Lf/b/b/b/n1/p$e;->b(Lf/b/b/b/n1/p$e;)Z
move-result v1
if-nez v1, :cond_1e
iget v2, p0, Lf/b/b/b/n1/p$c;->k:I
add-int/lit8 v2, v2, -0x1
iput v2, p0, Lf/b/b/b/n1/p$c;->k:I
if-nez v2, :cond_1e
const/16 v2, 0xb
invoke-virtual {p0, v2}, Landroid/os/Handler;->removeMessages(I)V
:cond_1e
invoke-static {p1}, Lf/b/b/b/n1/p$e;->e(Lf/b/b/b/n1/p$e;)Z
move-result v2
if-eqz v2, :cond_28
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
:cond_28
invoke-static {p1}, Lf/b/b/b/n1/p$e;->f(Lf/b/b/b/n1/p$e;)Ljava/lang/Throwable;
move-result-object v2
if-eqz v2, :cond_5e
invoke-static {p1}, Lf/b/b/b/n1/p$e;->c(Lf/b/b/b/n1/p$e;)Lf/b/b/b/n1/s;
move-result-object p1
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v3
add-int/lit8 v3, v3, 0x14
new-instance v4, Ljava/lang/StringBuilder;
invoke-direct {v4, v3}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v3, "Task failed: "
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string p1, ", "
invoke-virtual {v4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v3, "DownloadManager"
invoke-static {v3, p1, v2}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:cond_5e
const/4 p1, 0x0
invoke-direct {p0, v0, p1}, Lf/b/b/b/n1/p$c;->e(Ljava/lang/String;Z)Lf/b/b/b/n1/j;
move-result-object p1
invoke-static {p1}, Lf/b/b/b/s1/e;->e(Ljava/lang/Object;)Ljava/lang/Object;
iget v0, p1, Lf/b/b/b/n1/j;->b:I
const/4 v3, 0x2
if-eq v0, v3, :cond_7f
const/4 v2, 0x5
if-eq v0, v2, :cond_78
const/4 v2, 0x7
if-ne v0, v2, :cond_72
goto :goto_78
:cond_72
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
:cond_78
:goto_78
invoke-static {v1}, Lf/b/b/b/s1/e;->f(Z)V
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->k(Lf/b/b/b/n1/j;)V
goto :goto_87
:cond_7f
xor-int/lit8 v0, v1, 0x1
invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V
invoke-direct {p0, p1, v2}, Lf/b/b/b/n1/p$c;->j(Lf/b/b/b/n1/j;Ljava/lang/Throwable;)V
:goto_87
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private m(Lf/b/b/b/n1/j;)Lf/b/b/b/n1/j;
.registers 10
iget v0, p1, Lf/b/b/b/n1/j;->b:I
const/4 v1, 0x1
const/4 v2, 0x0
const/4 v3, 0x3
if-eq v0, v3, :cond_c
const/4 v3, 0x4
if-eq v0, v3, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V
iget-object v0, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v0, v0, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-direct {p0, v0}, Lf/b/b/b/n1/p$c;->f(Ljava/lang/String;)I
move-result v0
const/4 v3, -0x1
if-ne v0, v3, :cond_28
iget-object v0, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:goto_20
iget-object v0, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
sget-object v1, Lf/b/b/b/n1/b;->e:Lf/b/b/b/n1/b;
invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
goto :goto_42
:cond_28
iget-wide v3, p1, Lf/b/b/b/n1/j;->c:J
iget-object v5, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v5, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lf/b/b/b/n1/j;
iget-wide v5, v5, Lf/b/b/b/n1/j;->c:J
cmp-long v7, v3, v5
if-eqz v7, :cond_39
goto :goto_3a
:cond_39
const/4 v1, 0x0
:goto_3a
iget-object v3, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v3, v0, p1}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
if-eqz v1, :cond_42
goto :goto_20
:cond_42
:goto_42
:try_start_42
iget-object v0, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v0, p1}, Lf/b/b/b/n1/c0;->f(Lf/b/b/b/n1/j;)V
:try_end_47
.catch Ljava/io/IOException; {:try_start_42 .. :try_end_47} :catch_48
goto :goto_50
:catch_48
move-exception v0
const-string v1, "DownloadManager"
const-string v3, "Failed to update index."
invoke-static {v1, v3, v0}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_50
new-instance v0, Lf/b/b/b/n1/p$b;
new-instance v1, Ljava/util/ArrayList;
iget-object v3, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-direct {v1, v3}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
invoke-direct {v0, p1, v2, v1}, Lf/b/b/b/n1/p$b;-><init>(Lf/b/b/b/n1/j;ZLjava/util/List;)V
iget-object v1, p0, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
const/4 v2, 0x2
invoke-virtual {v1, v2, v0}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object v0
invoke-virtual {v0}, Landroid/os/Message;->sendToTarget()V
return-object p1
.end method
.method private n(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
.registers 5
const/4 v0, 0x1
const/4 v1, 0x3
if-eq p2, v1, :cond_a
const/4 v1, 0x4
if-eq p2, v1, :cond_a
if-eq p2, v0, :cond_a
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V
invoke-static {p1, p2}, Lf/b/b/b/n1/p$c;->d(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
move-result-object p1
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->m(Lf/b/b/b/n1/j;)Lf/b/b/b/n1/j;
return-object p1
.end method
.method private o()V
.registers 4
iget-object v0, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_a
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1b
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/b/b/b/n1/p$e;
const/4 v2, 0x1
invoke-virtual {v1, v2}, Lf/b/b/b/n1/p$e;->g(Z)V
goto :goto_a
:cond_1b
:try_start_1b
iget-object v0, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v0}, Lf/b/b/b/n1/c0;->d()V
:try_end_20
.catch Ljava/io/IOException; {:try_start_1b .. :try_end_20} :catch_21
goto :goto_29
:catch_21
move-exception v0
const-string v1, "DownloadManager"
const-string v2, "Failed to update index."
invoke-static {v1, v2, v0}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_29
iget-object v0, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V
iget-object v0, p0, Lf/b/b/b/n1/p$c;->a:Landroid/os/HandlerThread;
invoke-virtual {v0}, Landroid/os/HandlerThread;->quit()Z
monitor-enter p0
:try_start_34
invoke-virtual {p0}, Ljava/lang/Object;->notifyAll()V
monitor-exit p0
return-void
:catchall_39
move-exception v0
monitor-exit p0
:try_end_3b
.catchall {:try_start_34 .. :try_end_3b} :catchall_39
goto :goto_3d
:goto_3c
throw v0
:goto_3d
goto :goto_3c
.end method
.method private p()V
.registers 9
const-string v0, "DownloadManager"
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
const/4 v2, 0x2
const/4 v3, 0x0
:try_start_9
iget-object v4, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
new-array v5, v2, [I
const/4 v6, 0x3
aput v6, v5, v3
const/4 v6, 0x4
const/4 v7, 0x1
aput v6, v5, v7
invoke-interface {v4, v5}, Lf/b/b/b/n1/o;->a([I)Lf/b/b/b/n1/l;
move-result-object v4
:try_end_18
.catch Ljava/io/IOException; {:try_start_9 .. :try_end_18} :catch_33
:goto_18
:try_start_18
invoke-interface {v4}, Lf/b/b/b/n1/l;->moveToNext()Z
move-result v5
if-eqz v5, :cond_26
invoke-interface {v4}, Lf/b/b/b/n1/l;->b0()Lf/b/b/b/n1/j;
move-result-object v5
invoke-interface {v1, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_25
.catchall {:try_start_18 .. :try_end_25} :catchall_2c
goto :goto_18
:cond_26
if-eqz v4, :cond_38
:try_start_28
invoke-interface {v4}, Lf/b/b/b/n1/l;->close()V
:try_end_2b
.catch Ljava/io/IOException; {:try_start_28 .. :try_end_2b} :catch_33
goto :goto_38
:catchall_2c
move-exception v5
if-eqz v4, :cond_32
:try_start_2f
invoke-interface {v4}, Lf/b/b/b/n1/l;->close()V
:try_end_32
.catchall {:try_start_2f .. :try_end_32} :catchall_32
:catchall_32
:cond_32
:try_start_32
throw v5
:try_end_33
.catch Ljava/io/IOException; {:try_start_32 .. :try_end_33} :catch_33
:catch_33
const-string v4, "Failed to load downloads."
invoke-static {v0, v4}, Lf/b/b/b/s1/r;->c(Ljava/lang/String;Ljava/lang/String;)V
:cond_38
:goto_38
const/4 v4, 0x0
:goto_39
iget-object v5, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v5}, Ljava/util/ArrayList;->size()I
move-result v5
const/4 v6, 0x5
if-ge v4, v5, :cond_54
iget-object v5, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v5, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lf/b/b/b/n1/j;
invoke-static {v7, v6}, Lf/b/b/b/n1/p$c;->d(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
move-result-object v6
invoke-virtual {v5, v4, v6}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;
add-int/lit8 v4, v4, 0x1
goto :goto_39
:cond_54
const/4 v4, 0x0
:goto_55
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v5
if-ge v4, v5, :cond_6d
iget-object v5, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v7
check-cast v7, Lf/b/b/b/n1/j;
invoke-static {v7, v6}, Lf/b/b/b/n1/p$c;->d(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
move-result-object v7
invoke-virtual {v5, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
add-int/lit8 v4, v4, 0x1
goto :goto_55
:cond_6d
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
sget-object v4, Lf/b/b/b/n1/b;->e:Lf/b/b/b/n1/b;
invoke-static {v1, v4}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V
:try_start_74
iget-object v1, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v1}, Lf/b/b/b/n1/c0;->b()V
:try_end_79
.catch Ljava/io/IOException; {:try_start_74 .. :try_end_79} :catch_7a
goto :goto_80
:catch_7a
move-exception v1
const-string v4, "Failed to update index."
invoke-static {v0, v4, v1}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_80
new-instance v0, Ljava/util/ArrayList;
iget-object v1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
const/4 v1, 0x0
:goto_88
iget-object v4, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v4}, Ljava/util/ArrayList;->size()I
move-result v4
if-ge v1, v4, :cond_a9
new-instance v4, Lf/b/b/b/n1/p$b;
iget-object v5, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {v5, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v5
check-cast v5, Lf/b/b/b/n1/j;
invoke-direct {v4, v5, v3, v0}, Lf/b/b/b/n1/p$b;-><init>(Lf/b/b/b/n1/j;ZLjava/util/List;)V
iget-object v5, p0, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
invoke-virtual {v5, v2, v4}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;
move-result-object v4
invoke-virtual {v4}, Landroid/os/Message;->sendToTarget()V
add-int/lit8 v1, v1, 0x1
goto :goto_88
:cond_a9
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private q(Ljava/lang/String;)V
.registers 4
const/4 v0, 0x1
invoke-direct {p0, p1, v0}, Lf/b/b/b/n1/p$c;->e(Ljava/lang/String;Z)Lf/b/b/b/n1/j;
move-result-object v0
if-nez v0, :cond_23
const-string v0, "Failed to remove nonexistent download: "
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
if-eqz v1, :cond_18
invoke-virtual {v0, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
goto :goto_1d
:cond_18
new-instance p1, Ljava/lang/String;
invoke-direct {p1, v0}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
:goto_1d
const-string v0, "DownloadManager"
invoke-static {v0, p1}, Lf/b/b/b/s1/r;->c(Ljava/lang/String;Ljava/lang/String;)V
return-void
:cond_23
const/4 p1, 0x5
invoke-direct {p0, v0, p1}, Lf/b/b/b/n1/p$c;->n(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private r(Z)V
.registers 2
iput-boolean p1, p0, Lf/b/b/b/n1/p$c;->h:Z
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private s(I)V
.registers 2
iput p1, p0, Lf/b/b/b/n1/p$c;->i:I
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private t(I)V
.registers 2
iput p1, p0, Lf/b/b/b/n1/p$c;->j:I
return-void
.end method
.method private u(I)V
.registers 2
iput p1, p0, Lf/b/b/b/n1/p$c;->g:I
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private v(Lf/b/b/b/n1/j;I)V
.registers 17
move-object v0, p0
move-object v1, p1
move/from16 v10, p2
const/4 v2, 0x1
if-nez v10, :cond_10
iget v3, v1, Lf/b/b/b/n1/j;->b:I
if-ne v3, v2, :cond_34
const/4 v2, 0x0
invoke-direct {p0, p1, v2}, Lf/b/b/b/n1/p$c;->n(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
goto :goto_34
:cond_10
iget v3, v1, Lf/b/b/b/n1/j;->f:I
if-eq v10, v3, :cond_34
iget v3, v1, Lf/b/b/b/n1/j;->b:I
if-eqz v3, :cond_1b
const/4 v4, 0x2
if-ne v3, v4, :cond_1c
:cond_1b
const/4 v3, 0x1
:cond_1c
new-instance v13, Lf/b/b/b/n1/j;
iget-object v2, v1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-wide v4, v1, Lf/b/b/b/n1/j;->c:J
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v6
iget-wide v8, v1, Lf/b/b/b/n1/j;->e:J
const/4 v11, 0x0
iget-object v12, v1, Lf/b/b/b/n1/j;->h:Lf/b/b/b/n1/r;
move-object v1, v13
move/from16 v10, p2
invoke-direct/range {v1 .. v12}, Lf/b/b/b/n1/j;-><init>(Lf/b/b/b/n1/s;IJJJIILf/b/b/b/n1/r;)V
invoke-direct {p0, v13}, Lf/b/b/b/n1/p$c;->m(Lf/b/b/b/n1/j;)Lf/b/b/b/n1/j;
:cond_34
:goto_34
return-void
.end method
.method private w(Ljava/lang/String;I)V
.registers 6
const-string v0, "DownloadManager"
const/4 v1, 0x0
if-nez p1, :cond_28
:goto_5
iget-object p1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {p1}, Ljava/util/ArrayList;->size()I
move-result p1
if-ge v1, p1, :cond_1b
iget-object p1, p0, Lf/b/b/b/n1/p$c;->e:Ljava/util/ArrayList;
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lf/b/b/b/n1/j;
invoke-direct {p0, p1, p2}, Lf/b/b/b/n1/p$c;->v(Lf/b/b/b/n1/j;I)V
add-int/lit8 v1, v1, 0x1
goto :goto_5
:cond_1b
:try_start_1b
iget-object p1, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {p1, p2}, Lf/b/b/b/n1/c0;->h(I)V
:try_end_20
.catch Ljava/io/IOException; {:try_start_1b .. :try_end_20} :catch_21
goto :goto_52
:catch_21
move-exception p1
const-string p2, "Failed to set manual stop reason"
invoke-static {v0, p2, p1}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
goto :goto_52
:cond_28
invoke-direct {p0, p1, v1}, Lf/b/b/b/n1/p$c;->e(Ljava/lang/String;Z)Lf/b/b/b/n1/j;
move-result-object v1
if-eqz v1, :cond_32
invoke-direct {p0, v1, p2}, Lf/b/b/b/n1/p$c;->v(Lf/b/b/b/n1/j;I)V
goto :goto_52
:cond_32
:try_start_32
iget-object v1, p0, Lf/b/b/b/n1/p$c;->b:Lf/b/b/b/n1/c0;
invoke-interface {v1, p1, p2}, Lf/b/b/b/n1/c0;->c(Ljava/lang/String;I)V
:try_end_37
.catch Ljava/io/IOException; {:try_start_32 .. :try_end_37} :catch_38
goto :goto_52
:catch_38
move-exception p2
const-string v1, "Failed to set manual stop reason: "
invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
if-eqz v2, :cond_4a
invoke-virtual {v1, p1}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
goto :goto_4f
:cond_4a
new-instance p1, Ljava/lang/String;
invoke-direct {p1, v1}, Ljava/lang/String;-><init>(Ljava/lang/String;)V
:goto_4f
invoke-static {v0, p1, p2}, Lf/b/b/b/s1/r;->d(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
:goto_52
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->B()V
return-void
.end method
.method private x(Lf/b/b/b/n1/p$e;Lf/b/b/b/n1/j;I)V
.registers 5
invoke-static {p1}, Lf/b/b/b/n1/p$e;->b(Lf/b/b/b/n1/p$e;)Z
move-result v0
xor-int/lit8 v0, v0, 0x1
invoke-static {v0}, Lf/b/b/b/s1/e;->f(Z)V
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->b()Z
move-result v0
if-eqz v0, :cond_13
iget v0, p0, Lf/b/b/b/n1/p$c;->i:I
if-lt p3, v0, :cond_1a
:cond_13
const/4 p3, 0x0
invoke-direct {p0, p2, p3}, Lf/b/b/b/n1/p$c;->n(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
invoke-virtual {p1, p3}, Lf/b/b/b/n1/p$e;->g(Z)V
:cond_1a
return-void
.end method
.method private y(Lf/b/b/b/n1/p$e;Lf/b/b/b/n1/j;)Lf/b/b/b/n1/p$e;
.registers 12
if-eqz p1, :cond_10
invoke-static {p1}, Lf/b/b/b/n1/p$e;->b(Lf/b/b/b/n1/p$e;)Z
move-result p2
xor-int/lit8 p2, p2, 0x1
invoke-static {p2}, Lf/b/b/b/s1/e;->f(Z)V
const/4 p2, 0x0
invoke-virtual {p1, p2}, Lf/b/b/b/n1/p$e;->g(Z)V
return-object p1
:cond_10
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->b()Z
move-result p1
if-eqz p1, :cond_55
iget p1, p0, Lf/b/b/b/n1/p$c;->k:I
iget v0, p0, Lf/b/b/b/n1/p$c;->i:I
if-lt p1, v0, :cond_1d
goto :goto_55
:cond_1d
const/4 p1, 0x2
invoke-direct {p0, p2, p1}, Lf/b/b/b/n1/p$c;->n(Lf/b/b/b/n1/j;I)Lf/b/b/b/n1/j;
move-result-object p1
iget-object p2, p0, Lf/b/b/b/n1/p$c;->c:Lf/b/b/b/n1/w;
iget-object v0, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
invoke-interface {p2, v0}, Lf/b/b/b/n1/w;->a(Lf/b/b/b/n1/s;)Lf/b/b/b/n1/u;
move-result-object v3
new-instance p2, Lf/b/b/b/n1/p$e;
iget-object v2, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v4, p1, Lf/b/b/b/n1/j;->h:Lf/b/b/b/n1/r;
const/4 v5, 0x0
iget v6, p0, Lf/b/b/b/n1/p$c;->j:I
const/4 v8, 0x0
move-object v1, p2
move-object v7, p0
invoke-direct/range {v1 .. v8}, Lf/b/b/b/n1/p$e;-><init>(Lf/b/b/b/n1/s;Lf/b/b/b/n1/u;Lf/b/b/b/n1/r;ZILf/b/b/b/n1/p$c;Lf/b/b/b/n1/p$a;)V
iget-object v0, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
iget-object p1, p1, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object p1, p1, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-virtual {v0, p1, p2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget p1, p0, Lf/b/b/b/n1/p$c;->k:I
add-int/lit8 v0, p1, 0x1
iput v0, p0, Lf/b/b/b/n1/p$c;->k:I
if-nez p1, :cond_51
const/16 p1, 0xb
const-wide/16 v0, 0x1388
invoke-virtual {p0, p1, v0, v1}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
:cond_51
invoke-virtual {p2}, Ljava/lang/Thread;->start()V
return-object p2
:cond_55
:goto_55
const/4 p1, 0x0
return-object p1
.end method
.method private z(Lf/b/b/b/n1/p$e;Lf/b/b/b/n1/j;)V
.registers 12
if-eqz p1, :cond_d
invoke-static {p1}, Lf/b/b/b/n1/p$e;->b(Lf/b/b/b/n1/p$e;)Z
move-result p2
if-nez p2, :cond_c
const/4 p2, 0x0
invoke-virtual {p1, p2}, Lf/b/b/b/n1/p$e;->g(Z)V
:cond_c
return-void
:cond_d
iget-object p1, p0, Lf/b/b/b/n1/p$c;->c:Lf/b/b/b/n1/w;
iget-object v0, p2, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
invoke-interface {p1, v0}, Lf/b/b/b/n1/w;->a(Lf/b/b/b/n1/s;)Lf/b/b/b/n1/u;
move-result-object v3
new-instance p1, Lf/b/b/b/n1/p$e;
iget-object v2, p2, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object v4, p2, Lf/b/b/b/n1/j;->h:Lf/b/b/b/n1/r;
const/4 v5, 0x1
iget v6, p0, Lf/b/b/b/n1/p$c;->j:I
const/4 v8, 0x0
move-object v1, p1
move-object v7, p0
invoke-direct/range {v1 .. v8}, Lf/b/b/b/n1/p$e;-><init>(Lf/b/b/b/n1/s;Lf/b/b/b/n1/u;Lf/b/b/b/n1/r;ZILf/b/b/b/n1/p$c;Lf/b/b/b/n1/p$a;)V
iget-object v0, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
iget-object p2, p2, Lf/b/b/b/n1/j;->a:Lf/b/b/b/n1/s;
iget-object p2, p2, Lf/b/b/b/n1/s;->e:Ljava/lang/String;
invoke-virtual {v0, p2, p1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {p1}, Ljava/lang/Thread;->start()V
return-void
.end method
# virtual methods
.method public handleMessage(Landroid/os/Message;)V
.registers 5
iget v0, p1, Landroid/os/Message;->what:I
const/4 v1, 0x0
const/4 v2, 0x1
packed-switch v0, :pswitch_data_76
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
:pswitch_d
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->o()V
return-void
:pswitch_11
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->C()V
return-void
:pswitch_15
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast p1, Lf/b/b/b/n1/p$e;
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->i(Lf/b/b/b/n1/p$e;)V
return-void
:pswitch_1d
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast p1, Lf/b/b/b/n1/p$e;
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->l(Lf/b/b/b/n1/p$e;)V
goto :goto_66
:pswitch_25
invoke-direct {p0}, Lf/b/b/b/n1/p$c;->p()V
goto :goto_65
:pswitch_29
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast p1, Ljava/lang/String;
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->q(Ljava/lang/String;)V
goto :goto_65
:pswitch_31
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast v0, Lf/b/b/b/n1/s;
iget p1, p1, Landroid/os/Message;->arg1:I
invoke-direct {p0, v0, p1}, Lf/b/b/b/n1/p$c;->a(Lf/b/b/b/n1/s;I)V
goto :goto_65
:pswitch_3b
iget p1, p1, Landroid/os/Message;->arg1:I
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->t(I)V
goto :goto_65
:pswitch_41
iget p1, p1, Landroid/os/Message;->arg1:I
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->s(I)V
goto :goto_65
:pswitch_47
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast v0, Ljava/lang/String;
iget p1, p1, Landroid/os/Message;->arg1:I
invoke-direct {p0, v0, p1}, Lf/b/b/b/n1/p$c;->w(Ljava/lang/String;I)V
goto :goto_65
:pswitch_51
iget p1, p1, Landroid/os/Message;->arg1:I
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->u(I)V
goto :goto_65
:pswitch_57
iget p1, p1, Landroid/os/Message;->arg1:I
if-eqz p1, :cond_5c
const/4 v1, 0x1
:cond_5c
invoke-direct {p0, v1}, Lf/b/b/b/n1/p$c;->r(Z)V
goto :goto_65
:pswitch_60
iget p1, p1, Landroid/os/Message;->arg1:I
invoke-direct {p0, p1}, Lf/b/b/b/n1/p$c;->g(I)V
:goto_65
const/4 v1, 0x1
:goto_66
iget-object p1, p0, Lf/b/b/b/n1/p$c;->d:Landroid/os/Handler;
iget-object v0, p0, Lf/b/b/b/n1/p$c;->f:Ljava/util/HashMap;
invoke-virtual {v0}, Ljava/util/HashMap;->size()I
move-result v0
invoke-virtual {p1, v2, v1, v0}, Landroid/os/Handler;->obtainMessage(III)Landroid/os/Message;
move-result-object p1
invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V
return-void
:pswitch_data_76
.packed-switch 0x0
:pswitch_60
:pswitch_57
:pswitch_51
:pswitch_47
:pswitch_41
:pswitch_3b
:pswitch_31
:pswitch_29
:pswitch_25
:pswitch_1d
:pswitch_15
:pswitch_11
:pswitch_d
.end packed-switch
.end method