.class final Lcom/a/a/c/c/q;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/a/a/z;


# instance fields
.field final synthetic a:Lcom/a/a/c/c/d;


# direct methods
.method constructor <init>(Lcom/a/a/c/c/d;)V
    .locals 0

    iput-object p1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

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

    return-void
.end method


# virtual methods
.method public final a(Ljava/lang/String;)V
    .locals 5

    :try_start_0
    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v0}, Lcom/a/a/c/c/d;->a(Lcom/a/a/c/c/d;)Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_1

    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v0, p1}, Lcom/a/a/c/c/d;->a(Lcom/a/a/c/c/d;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v0}, Lcom/a/a/c/c/d;->a(Lcom/a/a/c/c/d;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "HTTP/"

    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-static {}, Lcom/a/a/c/c/d;->e()V

    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v0, v0, Lcom/a/a/c/c/d;->d:Lcom/a/a/m;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Lcom/a/a/m;->a(Lcom/a/a/a/d;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    const-string v0, "\r"

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

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v0}, Lcom/a/a/c/c/d;->b(Lcom/a/a/c/c/d;)Lcom/a/a/c/c;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/a/a/c/c;->a(Ljava/lang/String;)Lcom/a/a/c/c;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-virtual {v1, v0}, Lcom/a/a/c/c/d;->a_(Ljava/lang/Exception;)V

    goto :goto_0

    :cond_2
    :try_start_1
    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v0, v0, Lcom/a/a/c/c/d;->d:Lcom/a/a/m;

    sget-object v1, Lcom/a/a/c/i;->b:Lcom/a/a/c/i;

    iget-object v2, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v2}, Lcom/a/a/c/c/d;->b(Lcom/a/a/c/c/d;)Lcom/a/a/c/c;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v0, v1, v2, v3}, Lcom/a/a/c/d;->a(Lcom/a/a/q;Lcom/a/a/c/i;Lcom/a/a/c/c;Z)Lcom/a/a/q;

    move-result-object v0

    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v2, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v2}, Lcom/a/a/c/c/d;->c(Lcom/a/a/c/c/d;)Lcom/a/a/a/a;

    move-result-object v2

    iget-object v3, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v3}, Lcom/a/a/c/c/d;->b(Lcom/a/a/c/c/d;)Lcom/a/a/c/c;

    move-result-object v3

    invoke-static {v0, v2, v3}, Lcom/a/a/c/d;->a(Lcom/a/a/q;Lcom/a/a/a/a;Lcom/a/a/c/c;)Lcom/a/a/c/a/a;

    move-result-object v2

    iput-object v2, v1, Lcom/a/a/c/c/d;->h:Lcom/a/a/c/a/a;

    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v1, v1, Lcom/a/a/c/c/d;->h:Lcom/a/a/c/a/a;

    if-nez v1, :cond_3

    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v2, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v3, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v3}, Lcom/a/a/c/c/d;->b(Lcom/a/a/c/c/d;)Lcom/a/a/c/c;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/a/a/c/c/d;->a(Lcom/a/a/c/c;)Lcom/a/a/c/a/a;

    move-result-object v2

    iput-object v2, v1, Lcom/a/a/c/c/d;->h:Lcom/a/a/c/a/a;

    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v1, v1, Lcom/a/a/c/c/d;->h:Lcom/a/a/c/a/a;

    if-nez v1, :cond_3

    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    new-instance v2, Lcom/a/a/c/c/j;

    iget-object v3, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v3}, Lcom/a/a/c/c/d;->b(Lcom/a/a/c/c/d;)Lcom/a/a/c/c;

    move-result-object v3

    const-string v4, "Content-Type"

    invoke-virtual {v3, v4}, Lcom/a/a/c/c;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/a/a/c/c/j;-><init>(Ljava/lang/String;)V

    iput-object v2, v1, Lcom/a/a/c/c/d;->h:Lcom/a/a/c/a/a;

    :cond_3
    iget-object v1, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    iget-object v1, v1, Lcom/a/a/c/c/d;->h:Lcom/a/a/c/a/a;

    iget-object v2, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-static {v2}, Lcom/a/a/c/c/d;->c(Lcom/a/a/c/c/d;)Lcom/a/a/a/a;

    move-result-object v2

    invoke-interface {v1, v0, v2}, Lcom/a/a/c/a/a;->a(Lcom/a/a/q;Lcom/a/a/a/a;)V

    iget-object v0, p0, Lcom/a/a/c/c/q;->a:Lcom/a/a/c/c/d;

    invoke-virtual {v0}, Lcom/a/a/c/c/d;->h()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method
