granularity level: instruction

		.class public final synthetic Lz0/c;
.super Ljava/lang/Object;
.source "SourceFile"
.implements Ljava/util/concurrent/Callable;


.field public final synthetic a:I
.field public final synthetic b:Lz0/d;


.method public synthetic constructor <init>(Lz0/d;I)V
	.locals 0

	iput p2, p0, Lz0/c;->a:I
	iput-object p1, p0, Lz0/c;->b:Lz0/d;
	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	return-void
.end method

.method public final call()Ljava/lang/Object;
	.locals 8

	iget v0, p0, Lz0/c;->a:I
	packed-switch v0, :pswitch_data_0
	goto/16 :goto_3
	:pswitch_0
	iget-object v0, p0, Lz0/c;->b:Lz0/d;
	monitor-enter v0
	:try_start_0
	iget-object v1, v0, Lz0/d;->a:Lb1/a;
	invoke-interface {v1}, Lb1/a;->get()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lz0/h;
	invoke-virtual {v1}, Lz0/h;->c()Ljava/util/ArrayList;
	move-result-object v2
	invoke-virtual {v1}, Lz0/h;->b()V
	new-instance v1, Lorg/json/JSONArray;
	invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V
	const/4 v3, 0x0
	:goto_0
	invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
	move-result v4
	if-ge v3, v4, :cond_0
	invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Lz0/a;
	new-instance v5, Lorg/json/JSONObject;
	invoke-direct {v5}, Lorg/json/JSONObject;-><init>()V
	const-string v6, "agent"
	iget-object v7, v4, Lz0/a;->a:Ljava/lang/String;
	invoke-virtual {v5, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
	const-string v6, "dates"
	new-instance v7, Lorg/json/JSONArray;
	iget-object v4, v4, Lz0/a;->b:Ljava/util/List;
	invoke-direct {v7, v4}, Lorg/json/JSONArray;-><init>(Ljava/util/Collection;)V
	invoke-virtual {v5, v6, v7}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
	invoke-virtual {v1, v5}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
	add-int/lit8 v3, v3, 0x1
	goto :goto_0
	:cond_0
	new-instance v2, Lorg/json/JSONObject;
	invoke-direct {v2}, Lorg/json/JSONObject;-><init>()V
	const-string v3, "heartbeats"
	invoke-virtual {v2, v3, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
	const-string v1, "version"
	const-string v3, "2"
	invoke-virtual {v2, v1, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
	new-instance v1, Ljava/io/ByteArrayOutputStream;
	invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
	new-instance v3, Landroid/util/Base64OutputStream;
	const/16 v4, 0xb
	invoke-direct {v3, v1, v4}, Landroid/util/Base64OutputStream;-><init>(Ljava/io/OutputStream;I)V
	:try_end_0
	.catchall {:try_start_0 .. :try_end_0} :catchall_4
	:try_start_1
	new-instance v4, Ljava/util/zip/GZIPOutputStream;
	invoke-direct {v4, v3}, Ljava/util/zip/GZIPOutputStream;-><init>(Ljava/io/OutputStream;)V
	:try_end_1
	.catchall {:try_start_1 .. :try_end_1} :catchall_2
	:try_start_2
	invoke-virtual {v2}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
	move-result-object v2
	const-string v5, "UTF-8"
	invoke-virtual {v2, v5}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
	move-result-object v2
	invoke-virtual {v4, v2}, Ljava/io/OutputStream;->write([B)V
	:try_end_2
	.catchall {:try_start_2 .. :try_end_2} :catchall_0
	:try_start_3
	invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
	:try_end_3
	.catchall {:try_start_3 .. :try_end_3} :catchall_2
	:try_start_4
	invoke-virtual {v3}, Landroid/util/Base64OutputStream;->close()V
	const-string v2, "UTF-8"
	invoke-virtual {v1, v2}, Ljava/io/ByteArrayOutputStream;->toString(Ljava/lang/String;)Ljava/lang/String;
	move-result-object v1
	monitor-exit v0
	:try_end_4
	.catchall {:try_start_4 .. :try_end_4} :catchall_4
	return-object v1
	:catchall_0
	move-exception v1
	:try_start_5
	invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
	:try_end_5
	.catchall {:try_start_5 .. :try_end_5} :catchall_1
	goto :goto_1
	:catchall_1
	move-exception v2
	:try_start_6
	invoke-virtual {v1, v2}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
	:goto_1
	throw v1
	:try_end_6
	.catchall {:try_start_6 .. :try_end_6} :catchall_2
	:catchall_2
	move-exception v1
	:try_start_7
	invoke-virtual {v3}, Landroid/util/Base64OutputStream;->close()V
	:try_end_7
	.catchall {:try_start_7 .. :try_end_7} :catchall_3
	goto :goto_2
	:catchall_3
	move-exception v2
	:try_start_8
	invoke-virtual {v1, v2}, Ljava/lang/Throwable;->addSuppressed(Ljava/lang/Throwable;)V
	:goto_2
	throw v1
	:catchall_4
	move-exception v1
	monitor-exit v0
	:try_end_8
	.catchall {:try_start_8 .. :try_end_8} :catchall_4
	throw v1
	:goto_3
	iget-object v0, p0, Lz0/c;->b:Lz0/d;
	monitor-enter v0
	:try_start_9
	iget-object v1, v0, Lz0/d;->a:Lb1/a;
	invoke-interface {v1}, Lb1/a;->get()Ljava/lang/Object;
	move-result-object v1
	check-cast v1, Lz0/h;
	invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
	move-result-wide v2
	iget-object v4, v0, Lz0/d;->c:Lb1/a;
	invoke-interface {v4}, Lb1/a;->get()Ljava/lang/Object;
	move-result-object v4
	check-cast v4, Lj1/b;
	invoke-virtual {v4}, Lj1/b;->a()Ljava/lang/String;
	move-result-object v4
	invoke-virtual {v1, v2, v3, v4}, Lz0/h;->h(JLjava/lang/String;)V
	monitor-exit v0
	const/4 v0, 0x0
	return-object v0
	:catchall_5
	move-exception v1
	monitor-exit v0
	:try_end_9
	.catchall {:try_start_9 .. :try_end_9} :catchall_5
	throw v1
	nop
	:pswitch_data_0
	.packed-switch 0x0
	:pswitch_0
	.end packed-switch
.end method