granularity level: instruction
.class public final Lq/l;
.super Ljava/lang/Object;
.source "SourceFile"
.field public final a:Landroid/content/Context;
.field public final b:Lm/f;
.field public final c:Lr/d;
.field public final d:Lq/p;
.field public final e:Ljava/util/concurrent/Executor;
.field public final f:Ls/c;
.field public final g:Lt/a;
.field public final h:Lt/a;
.field public final i:Lr/c;
.method public constructor <init>(Landroid/content/Context;Lm/f;Lr/d;Lq/p;Ljava/util/concurrent/Executor;Ls/c;Lt/a;Lt/a;Lr/c;)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lq/l;->a:Landroid/content/Context;
iput-object p2, p0, Lq/l;->b:Lm/f;
iput-object p3, p0, Lq/l;->c:Lr/d;
iput-object p4, p0, Lq/l;->d:Lq/p;
iput-object p5, p0, Lq/l;->e:Ljava/util/concurrent/Executor;
iput-object p6, p0, Lq/l;->f:Ls/c;
iput-object p7, p0, Lq/l;->g:Lt/a;
iput-object p8, p0, Lq/l;->h:Lt/a;
iput-object p9, p0, Lq/l;->i:Lr/c;
return-void
.end method
.method public final a(Ll/l;I)V
.locals 40
move-object/from16 v7, p0
move-object/from16 v8, p1
iget-object v0, v7, Lq/l;->b:Lm/f;
iget-object v1, v8, Ll/l;->a:Ljava/lang/String;
invoke-virtual {v0, v1}, Lm/f;->a(Ljava/lang/String;)Lm/g;
move-result-object v1
const-wide/16 v2, 0x0
move-wide v5, v2
:goto_0
iget-object v0, v7, Lq/l;->f:Ls/c;
new-instance v2, Lq/h;
const/4 v3, 0x0
invoke-direct {v2, v7, v8, v3}, Lq/h;-><init>(Lq/l;Ll/l;I)V
check-cast v0, Lr/k;
invoke-virtual {v0, v2}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-eqz v0, :cond_26
iget-object v0, v7, Lq/l;->f:Ls/c;
new-instance v2, Lq/h;
const/4 v4, 0x1
invoke-direct {v2, v7, v8, v4}, Lq/h;-><init>(Lq/l;Ll/l;I)V
check-cast v0, Lr/k;
invoke-virtual {v0, v2}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
move-result-object v0
move-object v4, v0
check-cast v4, Ljava/lang/Iterable;
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-nez v0, :cond_0
return-void
:cond_0
const/4 v0, 0x3
const-wide/16 v9, -0x1
if-nez v1, :cond_1
const-string v2, "Uploader"
const-string v3, "Unknown backend for %s, deleting event batch for it..."
invoke-static {v2, v3, v8}, Lf0/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
new-instance v2, Lm/a;
invoke-direct {v2, v0, v9, v10}, Lm/a;-><init>(IJ)V
move-object/from16 v24, v1
move-wide/from16 v26, v5
move-object v6, v4
goto/16 :goto_e
:cond_1
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v9
:goto_1
invoke-interface {v9}, Ljava/util/Iterator;->hasNext()Z
move-result v10
if-eqz v10, :cond_2
invoke-interface {v9}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v10
check-cast v10, Lr/b;
iget-object v10, v10, Lr/b;->c:Ll/i;
invoke-virtual {v2, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_1
:cond_2
iget-object v9, v8, Ll/l;->b:[B
if-eqz v9, :cond_3
const/4 v9, 0x1
goto :goto_2
:cond_3
const/4 v9, 0x0
:goto_2
const-string v10, "proto"
if-eqz v9, :cond_4
iget-object v9, v7, Lq/l;->f:Ls/c;
iget-object v11, v7, Lq/l;->i:Lr/c;
invoke-static {v11}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
new-instance v12, Lj/b;
invoke-direct {v12, v0, v11}, Lj/b;-><init>(ILjava/lang/Object;)V
check-cast v9, Lr/k;
invoke-virtual {v9, v12}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lo/a;
new-instance v9, Ll/h;
invoke-direct {v9}, Ll/h;-><init>()V
new-instance v11, Ljava/util/HashMap;
invoke-direct {v11}, Ljava/util/HashMap;-><init>()V
iput-object v11, v9, Ll/h;->f:Ljava/lang/Object;
iget-object v11, v7, Lq/l;->g:Lt/a;
check-cast v11, Lt/b;
invoke-virtual {v11}, Lt/b;->a()J
move-result-wide v11
invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v11
iput-object v11, v9, Ll/h;->d:Ljava/lang/Object;
iget-object v11, v7, Lq/l;->h:Lt/a;
check-cast v11, Lt/b;
invoke-virtual {v11}, Lt/b;->a()J
move-result-wide v11
invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v11
iput-object v11, v9, Ll/h;->e:Ljava/lang/Object;
const-string v11, "GDT_CLIENT_METRICS"
invoke-virtual {v9, v11}, Ll/h;->g(Ljava/lang/String;)V
new-instance v11, Ll/o;
new-instance v12, Li/b;
invoke-direct {v12, v10}, Li/b;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
sget-object v13, Ll/p;->a:Ll/k;
invoke-virtual {v13}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
new-instance v14, Ljava/io/ByteArrayOutputStream;
invoke-direct {v14}, Ljava/io/ByteArrayOutputStream;-><init>()V
:try_start_0
invoke-virtual {v13, v0, v14}, Ll/k;->e(Ljava/lang/Object;Ljava/io/ByteArrayOutputStream;)V
:try_end_0
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
invoke-virtual {v14}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
move-result-object v0
invoke-direct {v11, v12, v0}, Ll/o;-><init>(Li/b;[B)V
invoke-virtual {v9, v11}, Ll/h;->f(Ll/o;)V
invoke-virtual {v9}, Ll/h;->b()Ll/i;
move-result-object v0
move-object v9, v1
check-cast v9, Lj/f;
invoke-virtual {v9, v0}, Lj/f;->a(Ll/i;)Ll/i;
move-result-object v0
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:cond_4
iget-object v0, v8, Ll/l;->b:[B
move-object v9, v1
check-cast v9, Lj/f;
new-instance v11, Ljava/util/HashMap;
invoke-direct {v11}, Ljava/util/HashMap;-><init>()V
invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v2
:goto_3
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v12
if-eqz v12, :cond_6
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v12
check-cast v12, Ll/i;
iget-object v13, v12, Ll/i;->a:Ljava/lang/String;
invoke-virtual {v11, v13}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v14
if-nez v14, :cond_5
new-instance v14, Ljava/util/ArrayList;
invoke-direct {v14}, Ljava/util/ArrayList;-><init>()V
invoke-virtual {v14, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
invoke-virtual {v11, v13, v14}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_3
:cond_5
invoke-virtual {v11, v13}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v13
check-cast v13, Ljava/util/List;
invoke-interface {v13, v12}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_3
:cond_6
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
invoke-virtual {v11}, Ljava/util/HashMap;->entrySet()Ljava/util/Set;
move-result-object v11
invoke-interface {v11}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v11
:goto_4
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
move-result v12
const-string v13, "CctTransportBackend"
if-eqz v12, :cond_14
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v12
check-cast v12, Ljava/util/Map$Entry;
invoke-interface {v12}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v14
check-cast v14, Ljava/util/List;
invoke-interface {v14, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ll/i;
sget-object v23, Lk/y;->a:Lk/y;
iget-object v14, v9, Lj/f;->f:Lt/a;
check-cast v14, Lt/b;
invoke-virtual {v14}, Lt/b;->a()J
move-result-wide v14
invoke-static {v14, v15}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v14
iget-object v15, v9, Lj/f;->e:Lt/a;
check-cast v15, Lt/b;
invoke-virtual {v15}, Lt/b;->a()J
move-result-wide v15
invoke-static/range {v15 .. v16}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v15
move-object/from16 v24, v1
sget-object v1, Lk/r;->a:Lk/r;
move-object/from16 v25, v11
const-string v11, "sdk-version"
invoke-virtual {v3, v11}, Ll/i;->b(Ljava/lang/String;)I
move-result v11
invoke-static {v11}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v27
const-string v11, "model"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v28
const-string v11, "hardware"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v29
const-string v11, "device"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v30
const-string v11, "product"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v31
const-string v11, "os-uild"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v32
const-string v11, "manufacturer"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v33
const-string v11, "fingerprint"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v34
const-string v11, "country"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v36
const-string v11, "locale"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v35
const-string v11, "mcc_mnc"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v37
const-string v11, "application_build"
invoke-virtual {v3, v11}, Ll/i;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object v38
new-instance v3, Lk/h;
move-object/from16 v26, v3
invoke-direct/range {v26 .. v38}, Lk/h;-><init>(Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
new-instance v11, Lk/k;
invoke-direct {v11, v1, v3}, Lk/k;-><init>(Lk/r;Lk/a;)V
:try_start_1
invoke-interface {v12}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-static {v1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v1
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
:try_end_1
.catch Ljava/lang/NumberFormatException; {:try_start_1 .. :try_end_1} :catch_1
const/4 v3, 0x0
move-object/from16 v20, v1
move-object/from16 v21, v3
goto :goto_5
:catch_1
invoke-interface {v12}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
const/4 v3, 0x0
move-object/from16 v21, v1
move-object/from16 v20, v3
:goto_5
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
invoke-interface {v12}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/List;
invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v3
:goto_6
invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z
move-result v12
const-string v8, "Missing required properties:"
const-string v16, ""
if-eqz v12, :cond_10
invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v12
check-cast v12, Ll/i;
move-object/from16 v17, v3
iget-object v3, v12, Ll/i;->c:Ll/o;
move-wide/from16 v26, v5
iget-object v5, v3, Ll/o;->a:Li/b;
new-instance v6, Li/b;
invoke-direct {v6, v10}, Li/b;-><init>(Ljava/lang/String;)V
invoke-virtual {v5, v6}, Li/b;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_7
iget-object v3, v3, Ll/o;->b:[B
new-instance v5, Lk/l;
invoke-direct {v5}, Lk/l;-><init>()V
iput-object v3, v5, Lk/l;->f:Ljava/lang/Object;
move-object v6, v4
move-object/from16 v28, v10
goto :goto_7
:cond_7
new-instance v6, Li/b;
move-object/from16 v28, v10
const-string v10, "json"
invoke-direct {v6, v10}, Li/b;-><init>(Ljava/lang/String;)V
invoke-virtual {v5, v6}, Li/b;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_e
new-instance v5, Ljava/lang/String;
iget-object v3, v3, Ll/o;->b:[B
const-string v6, "UTF-8"
invoke-static {v6}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
move-result-object v6
invoke-direct {v5, v3, v6}, Ljava/lang/String;-><init>([BLjava/nio/charset/Charset;)V
new-instance v3, Lk/l;
invoke-direct {v3}, Lk/l;-><init>()V
iput-object v5, v3, Lk/l;->d:Ljava/lang/String;
move-object v5, v3
move-object v6, v4
:goto_7
iget-wide v3, v12, Ll/i;->d:J
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
iput-object v3, v5, Lk/l;->a:Ljava/lang/Long;
iget-wide v3, v12, Ll/i;->e:J
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
iput-object v3, v5, Lk/l;->b:Ljava/lang/Long;
iget-object v3, v12, Ll/i;->f:Ljava/util/Map;
const-string v4, "tz-offset"
invoke-interface {v3, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
if-nez v3, :cond_8
const-wide/16 v3, 0x0
goto :goto_8
:cond_8
invoke-static {v3}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
move-result-wide v3
:goto_8
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
iput-object v3, v5, Lk/l;->e:Ljava/lang/Object;
const-string v3, "net-type"
invoke-virtual {v12, v3}, Ll/i;->b(Ljava/lang/String;)I
move-result v3
sget-object v4, Lk/w;->a:Landroid/util/SparseArray;
invoke-virtual {v4, v3}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lk/w;
const-string v4, "mobile-subtype"
invoke-virtual {v12, v4}, Ll/i;->b(Ljava/lang/String;)I
move-result v4
sget-object v10, Lk/v;->a:Landroid/util/SparseArray;
invoke-virtual {v10, v4}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Lk/v;
new-instance v10, Lk/p;
invoke-direct {v10, v3, v4}, Lk/p;-><init>(Lk/w;Lk/v;)V
iput-object v10, v5, Lk/l;->g:Ljava/lang/Object;
iget-object v3, v12, Ll/i;->b:Ljava/lang/Integer;
if-eqz v3, :cond_9
iput-object v3, v5, Lk/l;->c:Ljava/lang/Object;
:cond_9
iget-object v3, v5, Lk/l;->a:Ljava/lang/Long;
if-nez v3, :cond_a
const-string v16, " eventTimeMs"
:cond_a
move-object/from16 v3, v16
iget-object v4, v5, Lk/l;->b:Ljava/lang/Long;
if-nez v4, :cond_b
const-string v4, " eventUptimeMs"
invoke-static {v3, v4}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
:cond_b
iget-object v4, v5, Lk/l;->e:Ljava/lang/Object;
check-cast v4, Ljava/lang/Long;
if-nez v4, :cond_c
const-string v4, " timezoneOffsetSeconds"
invoke-static {v3, v4}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
:cond_c
invoke-virtual {v3}, Ljava/lang/String;->isEmpty()Z
move-result v4
if-eqz v4, :cond_d
new-instance v3, Lk/m;
iget-object v4, v5, Lk/l;->a:Ljava/lang/Long;
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
move-result-wide v30
iget-object v4, v5, Lk/l;->c:Ljava/lang/Object;
move-object/from16 v32, v4
check-cast v32, Ljava/lang/Integer;
iget-object v4, v5, Lk/l;->b:Ljava/lang/Long;
invoke-virtual {v4}, Ljava/lang/Long;->longValue()J
move-result-wide v33
iget-object v4, v5, Lk/l;->f:Ljava/lang/Object;
move-object/from16 v35, v4
check-cast v35, [B
iget-object v4, v5, Lk/l;->d:Ljava/lang/String;
iget-object v8, v5, Lk/l;->e:Ljava/lang/Object;
check-cast v8, Ljava/lang/Long;
invoke-virtual {v8}, Ljava/lang/Long;->longValue()J
move-result-wide v37
iget-object v5, v5, Lk/l;->g:Ljava/lang/Object;
move-object/from16 v39, v5
check-cast v39, Lk/x;
move-object/from16 v29, v3
move-object/from16 v36, v4
invoke-direct/range {v29 .. v39}, Lk/m;-><init>(JLjava/lang/Integer;J[BLjava/lang/String;JLk/x;)V
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_9
:cond_d
new-instance v0, Ljava/lang/IllegalStateException;
invoke-static {v8, v3}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_e
move-object v6, v4
invoke-static {v13}, Lf0/a;->k(Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
const/4 v4, 0x5
invoke-static {v3, v4}, Landroid/util/Log;->isLoggable(Ljava/lang/String;I)Z
move-result v4
if-eqz v4, :cond_f
const/4 v4, 0x1
new-array v4, v4, [Ljava/lang/Object;
const/4 v8, 0x0
aput-object v5, v4, v8
const-string v5, "Received event of unsupported encoding %s. Skipping..."
invoke-static {v5, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-static {v3, v4}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:goto_9
:cond_f
move-object/from16 v8, p1
move-object v4, v6
move-object/from16 v3, v17
move-wide/from16 v5, v26
move-object/from16 v10, v28
goto/16 :goto_6
:cond_10
move-wide/from16 v26, v5
move-object/from16 v28, v10
move-object v6, v4
if-nez v14, :cond_11
const-string v16, " requestTimeMs"
:cond_11
move-object/from16 v3, v16
if-nez v15, :cond_12
const-string v4, " requestUptimeMs"
invoke-static {v3, v4}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
:cond_12
invoke-virtual {v3}, Ljava/lang/String;->isEmpty()Z
move-result v4
if-eqz v4, :cond_13
new-instance v3, Lk/n;
invoke-virtual {v14}, Ljava/lang/Long;->longValue()J
move-result-wide v4
invoke-virtual {v15}, Ljava/lang/Long;->longValue()J
move-result-wide v17
move-object v14, v3
move-wide v15, v4
move-object/from16 v19, v11
move-object/from16 v22, v1
invoke-direct/range {v14 .. v23}, Lk/n;-><init>(JJLk/s;Ljava/lang/Integer;Ljava/lang/String;Ljava/util/List;Lk/y;)V
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
const/4 v3, 0x0
move-object/from16 v8, p1
move-object v4, v6
move-object/from16 v1, v24
move-object/from16 v11, v25
move-wide/from16 v5, v26
move-object/from16 v10, v28
goto/16 :goto_4
:cond_13
new-instance v0, Ljava/lang/IllegalStateException;
invoke-static {v8, v3}, Lc0/b;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_14
move-object/from16 v24, v1
move-wide/from16 v26, v5
move-object v6, v4
new-instance v1, Lk/i;
invoke-direct {v1, v2}, Lk/i;-><init>(Ljava/util/ArrayList;)V
iget-object v2, v9, Lj/f;->d:Ljava/net/URL;
if-eqz v0, :cond_16
:try_start_2
invoke-static {v0}, Lj/a;->a([B)Lj/a;
move-result-object v0
iget-object v3, v0, Lj/a;->b:Ljava/lang/String;
if-eqz v3, :cond_15
goto :goto_a
:cond_15
const/4 v3, 0x0
:goto_a
iget-object v0, v0, Lj/a;->a:Ljava/lang/String;
if-eqz v0, :cond_17
invoke-static {v0}, Lj/f;->b(Ljava/lang/String;)Ljava/net/URL;
move-result-object v2
:try_end_2
.catch Ljava/lang/IllegalArgumentException; {:try_start_2 .. :try_end_2} :catch_2
goto :goto_b
:catch_2
new-instance v2, Lm/a;
const/4 v0, 0x3
const-wide/16 v3, -0x1
invoke-direct {v2, v0, v3, v4}, Lm/a;-><init>(IJ)V
goto/16 :goto_e
:cond_16
const/4 v3, 0x0
:cond_17
:try_start_3
:goto_b
new-instance v0, Lj/d;
invoke-direct {v0, v2, v1, v3}, Lj/d;-><init>(Ljava/net/URL;Lk/q;Ljava/lang/String;)V
new-instance v1, Lj/b;
const/4 v2, 0x0
invoke-direct {v1, v2, v9}, Lj/b;-><init>(ILjava/lang/Object;)V
const/4 v2, 0x5
:cond_18
invoke-virtual {v1, v0}, Lj/b;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v3
move-object v4, v3
check-cast v4, Lj/e;
iget-object v5, v4, Lj/e;->b:Ljava/net/URL;
if-eqz v5, :cond_19
const-string v8, "Following redirect to: %s"
invoke-static {v13, v8, v5}, Lf0/a;->f(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V
iget-object v4, v4, Lj/e;->b:Ljava/net/URL;
new-instance v5, Lj/d;
iget-object v8, v0, Lj/d;->b:Lk/q;
iget-object v0, v0, Lj/d;->c:Ljava/lang/String;
invoke-direct {v5, v4, v8, v0}, Lj/d;-><init>(Ljava/net/URL;Lk/q;Ljava/lang/String;)V
move-object v0, v5
goto :goto_c
:cond_19
const/4 v0, 0x0
:goto_c
if-eqz v0, :cond_1a
add-int/lit8 v2, v2, -0x1
const/4 v4, 0x1
if-ge v2, v4, :cond_18
:cond_1a
check-cast v3, Lj/e;
iget v0, v3, Lj/e;->a:I
const/16 v1, 0xc8
if-ne v0, v1, :cond_1b
iget-wide v0, v3, Lj/e;->c:J
new-instance v2, Lm/a;
const/4 v3, 0x1
invoke-direct {v2, v3, v0, v1}, Lm/a;-><init>(IJ)V
goto :goto_e
:cond_1b
const/16 v1, 0x1f4
if-ge v0, v1, :cond_1e
const/16 v1, 0x194
if-ne v0, v1, :cond_1c
goto :goto_d
:cond_1c
const/16 v1, 0x190
if-ne v0, v1, :cond_1d
new-instance v2, Lm/a;
const/4 v0, 0x4
const-wide/16 v3, -0x1
invoke-direct {v2, v0, v3, v4}, Lm/a;-><init>(IJ)V
goto :goto_e
:cond_1d
const-wide/16 v0, -0x1
new-instance v2, Lm/a;
const/4 v3, 0x3
invoke-direct {v2, v3, v0, v1}, Lm/a;-><init>(IJ)V
goto :goto_e
:cond_1e
:goto_d
new-instance v2, Lm/a;
const/4 v0, 0x2
const-wide/16 v3, -0x1
invoke-direct {v2, v0, v3, v4}, Lm/a;-><init>(IJ)V
:try_end_3
.catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
:goto_e
const/4 v0, 0x2
goto :goto_f
:catch_3
move-exception v0
const-string v1, "Could not make request to the backend"
invoke-static {v13, v1, v0}, Lf0/a;->h(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)V
new-instance v2, Lm/a;
const/4 v0, 0x2
const-wide/16 v3, -0x1
invoke-direct {v2, v0, v3, v4}, Lm/a;-><init>(IJ)V
:goto_f
iget v1, v2, Lm/a;->a:I
if-ne v1, v0, :cond_1f
iget-object v0, v7, Lq/l;->f:Ls/c;
new-instance v8, Lq/i;
move-object v1, v8
move-object/from16 v2, p0
move-object v3, v6
move-object/from16 v4, p1
move-wide/from16 v5, v26
invoke-direct/range {v1 .. v6}, Lq/i;-><init>(Lq/l;Ljava/lang/Iterable;Ll/l;J)V
check-cast v0, Lr/k;
invoke-virtual {v0, v8}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
iget-object v0, v7, Lq/l;->d:Lq/p;
const/4 v1, 0x1
add-int/lit8 v2, p2, 0x1
check-cast v0, Lq/d;
move-object/from16 v3, p1
invoke-virtual {v0, v3, v2, v1}, Lq/d;->a(Ll/l;IZ)V
return-void
:cond_1f
move-object/from16 v3, p1
const/4 v0, 0x1
iget-object v1, v7, Lq/l;->f:Ls/c;
new-instance v4, Lq/j;
const/4 v5, 0x0
invoke-direct {v4, v7, v6, v5}, Lq/j;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
check-cast v1, Lr/k;
invoke-virtual {v1, v4}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
iget v1, v2, Lm/a;->a:I
if-ne v1, v0, :cond_21
iget-wide v0, v2, Lm/a;->b:J
move-wide/from16 v4, v26
invoke-static {v4, v5, v0, v1}, Ljava/lang/Math;->max(JJ)J
move-result-wide v5
iget-object v0, v3, Ll/l;->b:[B
if-eqz v0, :cond_20
const/4 v0, 0x1
goto :goto_10
:cond_20
const/4 v0, 0x0
:goto_10
if-eqz v0, :cond_25
iget-object v0, v7, Lq/l;->f:Ls/c;
new-instance v1, Lj/b;
const/4 v2, 0x2
invoke-direct {v1, v2, v7}, Lj/b;-><init>(ILjava/lang/Object;)V
check-cast v0, Lr/k;
invoke-virtual {v0, v1}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
goto :goto_13
:cond_21
move-wide/from16 v4, v26
const/4 v0, 0x4
if-ne v1, v0, :cond_24
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
invoke-interface {v6}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_11
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_23
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lr/b;
iget-object v2, v2, Lr/b;->c:Ll/i;
iget-object v2, v2, Ll/i;->a:Ljava/lang/String;
invoke-virtual {v0, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z
move-result v6
if-nez v6, :cond_22
const/4 v6, 0x1
goto :goto_12
:cond_22
invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v6
check-cast v6, Ljava/lang/Integer;
invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I
move-result v6
add-int/lit8 v6, v6, 0x1
:goto_12
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v6
invoke-virtual {v0, v2, v6}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
goto :goto_11
:cond_23
const/4 v1, 0x1
iget-object v2, v7, Lq/l;->f:Ls/c;
new-instance v6, Lq/j;
invoke-direct {v6, v7, v0, v1}, Lq/j;-><init>(Ljava/lang/Object;Ljava/lang/Object;I)V
check-cast v2, Lr/k;
invoke-virtual {v2, v6}, Lr/k;->e(Ls/b;)Ljava/lang/Object;
:cond_24
move-wide v5, v4
:goto_13
:cond_25
move-object v8, v3
move-object/from16 v1, v24
goto/16 :goto_0
:cond_26
move-wide v4, v5
move-object v3, v8
iget-object v0, v7, Lq/l;->f:Ls/c;
move-object v1, v0
check-cast v1, Lr/k;
invoke-virtual {v1}, Lr/k;->a()Landroid/database/sqlite/SQLiteDatabase;
move-result-object v2
new-instance v6, Lj/c;
const/4 v0, 0x5
invoke-direct {v6, v0}, Lj/c;-><init>(I)V
iget-object v0, v1, Lr/k;->c:Lt/a;
check-cast v0, Lt/b;
invoke-virtual {v0}, Lt/b;->a()J
move-result-wide v8
:goto_14
:try_start_4
invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
:try_end_4
.catch Landroid/database/sqlite/SQLiteDatabaseLockedException; {:try_start_4 .. :try_end_4} :catch_4
goto :goto_15
:catch_4
move-exception v0
move-object v10, v0
iget-object v0, v1, Lr/k;->c:Lt/a;
check-cast v0, Lt/b;
invoke-virtual {v0}, Lt/b;->a()J
move-result-wide v11
iget-object v0, v1, Lr/k;->d:Lr/a;
iget v0, v0, Lr/a;->c:I
int-to-long v13, v0
add-long/2addr v13, v8
cmp-long v0, v11, v13
if-ltz v0, :cond_27
invoke-virtual {v6, v10}, Lj/c;->apply(Ljava/lang/Object;)Ljava/lang/Object;
:goto_15
:try_start_5
iget-object v0, v7, Lq/l;->c:Lr/d;
iget-object v1, v7, Lq/l;->g:Lt/a;
check-cast v1, Lt/b;
invoke-virtual {v1}, Lt/b;->a()J
move-result-wide v8
add-long/2addr v8, v4
check-cast v0, Lr/k;
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
new-instance v1, Lr/e;
invoke-direct {v1, v8, v9, v3}, Lr/e;-><init>(JLl/l;)V
invoke-virtual {v0, v1}, Lr/k;->c(Lr/i;)Ljava/lang/Object;
invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
:try_end_5
.catchall {:try_start_5 .. :try_end_5} :catchall_0
invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
return-void
:catchall_0
move-exception v0
invoke-virtual {v2}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
throw v0
:cond_27
const-wide/16 v10, 0x32
invoke-static {v10, v11}, Landroid/os/SystemClock;->sleep(J)V
goto :goto_14
.end method