granularity level: instruction
.class public final synthetic Lq/g;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ljava/lang/Runnable;
.field public final synthetic a:Lq/l;
.field public final synthetic b:Ll/l;
.field public final synthetic c:I
.field public final synthetic d:Ljava/lang/Runnable;
.method public synthetic constructor <init>(Lq/l;Ll/l;ILjava/lang/Runnable;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lq/g;->a:Lq/l;
iput-object p2, p0, Lq/g;->b:Ll/l;
iput p3, p0, Lq/g;->c:I
iput-object p4, p0, Lq/g;->d:Ljava/lang/Runnable;
return-void
.end method
.method public final run()V
.locals 17
move-object/from16 v1, p0
iget-object v2, v1, Lq/g;->a:Lq/l;
iget-object v3, v1, Lq/g;->b:Ll/l;
iget v4, v1, Lq/g;->c:I
iget-object v5, v1, Lq/g;->d:Ljava/lang/Runnable;
invoke-virtual {v2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
const/4 v6, 0x0
const/4 v7, 0x1
:try_start_0
iget-object v0, v2, Lq/l;->f:Ls/c;
iget-object v8, v2, Lq/l;->c:Lr/d;
invoke-static {v8}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
new-instance v9, Lj/b;
invoke-direct {v9, v7, v8}, Lj/b;-><init>(ILjava/lang/Object;)V
check-cast v0, Lr/k;
invoke-virtual {v0, v9}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
iget-object v0, v2, Lq/l;->a:Landroid/content/Context;
const-string v8, "connectivity"
invoke-virtual {v0, v8}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Landroid/net/NetworkInfo;->isConnected()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
if-nez v0, :cond_2
iget-object v0, v2, Lq/l;->f:Ls/c;
move-object v8, v0
check-cast v8, Lr/k;
invoke-virtual {v8}, Lr/k;->a()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v9
new-instance v10, Lj/c;
const/4 v0, 0x5
invoke-direct {v10, v0}, Lj/c;-><init>(I)V
iget-object v0, v8, Lr/k;->c:Lt/a;
check-cast v0, Lt/b;
invoke-virtual {v0}, Lt/b;->a()J
move-result-wide v11
:try_end_0
.catch Ls/a; {:try_start_0 .. :try_end_0} :catch_1
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:try_start_1
:goto_1
invoke-virtual {v9}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
:try_end_1
.catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_1 .. :try_end_1} :catch_0
.catch Ls/a; {:try_start_1 .. :try_end_1} :catch_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_2
:catchall_0
move-exception v0
goto :goto_4
:catch_0
move-exception v0
move-object v13, v0
:try_start_2
iget-object v0, v8, Lr/k;->c:Lt/a;
check-cast v0, Lt/b;
invoke-virtual {v0}, Lt/b;->a()J
move-result-wide v14
iget-object v0, v8, Lr/k;->d:Lr/a;
iget v0, v0, Lr/a;->c:I
move-object/from16 v16, v8
int-to-long v7, v0
add-long/2addr v7, v11
cmp-long v0, v14, v7
if-ltz v0, :cond_1
invoke-virtual {v10, v13}, Lj/c;->apply(Ljava/lang/Object;)Ljava/lang/Object;
:try_end_2
.catch Ls/a; {:try_start_2 .. :try_end_2} :catch_1
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:try_start_3
:goto_2
iget-object v0, v2, Lq/l;->d:Lq/p;
add-int/lit8 v7, v4, 0x1
check-cast v0, Lq/d;
invoke-virtual {v0, v3, v7, v6}, Lq/d;->a(Ll/l;IZ)V
invoke-virtual {v9}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_1
:try_start_4
invoke-virtual {v9}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
goto :goto_3
:catchall_1
move-exception v0
invoke-virtual {v9}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
throw v0
:cond_1
const-wide/16 v7, 0x32
invoke-static {v7, v8}, Landroid/os/SystemClock;->sleep(J)V
move-object/from16 v8, v16
const/4 v7, 0x1
goto :goto_1
:cond_2
invoke-virtual {v2, v3, v4}, Lq/l;->a(Ll/l;I)V
:try_end_4
.catch Ls/a; {:try_start_4 .. :try_end_4} :catch_1
.catchall {:try_start_4 .. :try_end_4} :catchall_0
goto :goto_3
:try_start_5
:catch_1
iget-object v0, v2, Lq/l;->d:Lq/p;
const/4 v2, 0x1
add-int/2addr v4, v2
check-cast v0, Lq/d;
invoke-virtual {v0, v3, v4, v6}, Lq/d;->a(Ll/l;IZ)V
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_0
:goto_3
invoke-interface {v5}, Ljava/lang/Runnable;->run()V
return-void
:goto_4
invoke-interface {v5}, Ljava/lang/Runnable;->run()V
throw v0
.end method