.class public final Lz9/a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lv9/x;


# static fields
.field public static final a:Lz9/a;


# direct methods
.method public static constructor <clinit>()V
    .registers 1

    new-instance v0, Lz9/a;

    invoke-direct {v0}, Lz9/a;-><init>()V

    sput-object v0, Lz9/a;->a:Lz9/a;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Lv9/x$a;)Lv9/g0;
    .registers 13

    check-cast p1, Laa/g;

    .line 1
    iget-object v0, p1, Laa/g;->b:Lz9/d;

    .line 2
    invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;

    .line 3
    monitor-enter v0

    :try_start_8
    iget-boolean v1, v0, Lz9/d;->C:Z

    if-eqz v1, :cond_a3

    iget-boolean v1, v0, Lz9/d;->B:Z

    const/4 v2, 0x1

    xor-int/2addr v1, v2

    if-eqz v1, :cond_97

    iget-boolean v1, v0, Lz9/d;->A:Z
    :try_end_14
    .catchall {:try_start_8 .. :try_end_14} :catchall_af

    xor-int/2addr v1, v2

    if-eqz v1, :cond_8b

    monitor-exit v0

    iget-object v1, v0, Lz9/d;->w:Lz9/c;

    invoke-static {v1}, Lx/e;->d(Ljava/lang/Object;)V

    iget-object v10, v0, Lz9/d;->G:Lv9/a0;

    const-string v3, "client"

    .line 4
    invoke-static {v10, v3}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    .line 5
    :try_start_24
    iget v4, p1, Laa/g;->g:I

    .line 6
    iget v5, p1, Laa/g;->h:I

    .line 7
    iget v6, p1, Laa/g;->i:I

    const/4 v7, 0x0

    .line 8
    iget-boolean v8, v10, Lv9/a0;->w:Z

    .line 9
    iget-object v3, p1, Laa/g;->f:Lv9/c0;

    .line 10
    iget-object v3, v3, Lv9/c0;->c:Ljava/lang/String;

    const-string v9, "GET"

    .line 11
    invoke-static {v3, v9}, Lx/e;->a(Ljava/lang/Object;Ljava/lang/Object;)Z

    move-result v3

    xor-int/lit8 v9, v3, 0x1

    move-object v3, v1

    invoke-virtual/range {v3 .. v9}, Lz9/c;->a(IIIIZZ)Lz9/h;

    move-result-object v3

    invoke-virtual {v3, v10, p1}, Lz9/h;->k(Lv9/a0;Laa/g;)Laa/d;

    move-result-object v3
    :try_end_42
    .catch Lz9/j; {:try_start_24 .. :try_end_42} :catch_84
    .catch Ljava/io/IOException; {:try_start_24 .. :try_end_42} :catch_7a

    .line 12
    new-instance v4, Lz9/b;

    iget-object v5, v0, Lz9/d;->s:Lv9/r;

    invoke-direct {v4, v0, v5, v1, v3}, Lz9/b;-><init>(Lz9/d;Lv9/r;Lz9/c;Laa/d;)V

    iput-object v4, v0, Lz9/d;->z:Lz9/b;

    iput-object v4, v0, Lz9/d;->E:Lz9/b;

    monitor-enter v0

    :try_start_4e
    iput-boolean v2, v0, Lz9/d;->A:Z

    iput-boolean v2, v0, Lz9/d;->B:Z
    :try_end_52
    .catchall {:try_start_4e .. :try_end_52} :catchall_77

    monitor-exit v0

    iget-boolean v0, v0, Lz9/d;->D:Z

    if-nez v0, :cond_6f

    const/4 v1, 0x0

    const/4 v3, 0x0

    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    const/16 v8, 0x3d

    move-object v0, p1

    move-object v2, v4

    move v4, v5

    move v5, v6

    move v6, v7

    move v7, v8

    .line 13
    invoke-static/range {v0 .. v7}, Laa/g;->a(Laa/g;ILz9/b;Lv9/c0;IIII)Laa/g;

    move-result-object v0

    .line 14
    iget-object p1, p1, Laa/g;->f:Lv9/c0;

    .line 15
    invoke-virtual {v0, p1}, Laa/g;->b(Lv9/c0;)Lv9/g0;

    move-result-object p1

    return-object p1

    .line 16
    :cond_6f
    new-instance p1, Ljava/io/IOException;

    const-string v0, "Canceled"

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

    throw p1

    :catchall_77
    move-exception p1

    monitor-exit v0

    throw p1

    :catch_7a
    move-exception p1

    .line 17
    invoke-virtual {v1, p1}, Lz9/c;->c(Ljava/io/IOException;)V

    new-instance v0, Lz9/j;

    invoke-direct {v0, p1}, Lz9/j;-><init>(Ljava/io/IOException;)V

    throw v0

    :catch_84
    move-exception p1

    .line 18
    iget-object v0, p1, Lz9/j;->r:Ljava/io/IOException;

    .line 19
    invoke-virtual {v1, v0}, Lz9/c;->c(Ljava/io/IOException;)V

    throw p1

    :cond_8b
    :try_start_8b
    const-string p1, "Check failed."

    .line 20
    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_97
    const-string p1, "Check failed."

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1

    :cond_a3
    const-string p1, "released"

    new-instance v1, Ljava/lang/IllegalStateException;

    invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_af
    .catchall {:try_start_8b .. :try_end_af} :catchall_af

    :catchall_af
    move-exception p1

    monitor-exit v0

    throw p1
.end method
