.class final Lb/at;
.super Lb/a/b;


# instance fields
.field final synthetic b:Lb/as;

.field private final c:Lb/g;


# virtual methods
.method protected final a()V
    .locals 5

    const/4 v1, 0x1

    :try_start_0
    iget-object v0, p0, Lb/at;->b:Lb/as;

    invoke-static {v0}, Lb/as;->a(Lb/as;)Lb/ai;

    move-result-object v0

    iget-object v2, p0, Lb/at;->b:Lb/as;

    invoke-static {v2}, Lb/as;->b(Lb/as;)Lb/a/d/s;

    move-result-object v2

    invoke-virtual {v2}, Lb/a/d/s;->a()Z
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    move-result v2

    if-eqz v2, :cond_0

    :try_start_1
    iget-object v0, p0, Lb/at;->c:Lb/g;

    iget-object v2, p0, Lb/at;->b:Lb/as;

    new-instance v3, Ljava/io/IOException;

    const-string v4, "Canceled"

    invoke-direct {v3, v4}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    invoke-interface {v0, v2, v3}, Lb/g;->a(Lb/f;Ljava/io/IOException;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :goto_0
    iget-object v0, p0, Lb/at;->b:Lb/as;

    invoke-static {v0}, Lb/as;->d(Lb/as;)Lb/ac;

    move-result-object v0

    invoke-virtual {v0}, Lb/ac;->i()Lb/r;

    move-result-object v0

    invoke-virtual {v0, p0}, Lb/r;->a(Lb/at;)V

    :goto_1
    return-void

    :cond_0
    :try_start_2
    iget-object v2, p0, Lb/at;->c:Lb/g;

    iget-object v3, p0, Lb/at;->b:Lb/as;

    invoke-interface {v2, v3, v0}, Lb/g;->a(Lb/f;Lb/ai;)V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catch_0
    move-exception v0

    :goto_2
    if-eqz v1, :cond_1

    :try_start_3
    invoke-static {}, Lb/a/f/a;->a()Lb/a/f/a;

    move-result-object v1

    const/4 v2, 0x4

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Callback failure for "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, p0, Lb/at;->b:Lb/as;

    invoke-static {v4}, Lb/as;->c(Lb/as;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3, v0}, Lb/a/f/a;->a(ILjava/lang/String;Ljava/lang/Throwable;)V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :goto_3
    iget-object v0, p0, Lb/at;->b:Lb/as;

    invoke-static {v0}, Lb/as;->d(Lb/as;)Lb/ac;

    move-result-object v0

    invoke-virtual {v0}, Lb/ac;->i()Lb/r;

    move-result-object v0

    invoke-virtual {v0, p0}, Lb/r;->a(Lb/at;)V

    goto :goto_1

    :cond_1
    :try_start_4
    iget-object v1, p0, Lb/at;->c:Lb/g;

    iget-object v2, p0, Lb/at;->b:Lb/as;

    invoke-interface {v1, v2, v0}, Lb/g;->a(Lb/f;Ljava/io/IOException;)V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_3

    :catchall_0
    move-exception v0

    iget-object v1, p0, Lb/at;->b:Lb/as;

    invoke-static {v1}, Lb/as;->d(Lb/as;)Lb/ac;

    move-result-object v1

    invoke-virtual {v1}, Lb/ac;->i()Lb/r;

    move-result-object v1

    invoke-virtual {v1, p0}, Lb/r;->a(Lb/at;)V

    throw v0

    :catch_1
    move-exception v0

    const/4 v1, 0x0

    goto :goto_2
.end method

.method final b()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lb/at;->b:Lb/as;

    iget-object v0, v0, Lb/as;->a:Lb/af;

    invoke-virtual {v0}, Lb/af;->g()Lb/w;

    move-result-object v0

    invoke-virtual {v0}, Lb/w;->g()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
