.class final Lcom/a/a/c/c/l;
.super Lcom/a/a/c/c/d;


# instance fields
.field i:Lcom/a/a/c/c/h;

.field j:Ljava/lang/String;

.field k:Ljava/lang/String;

.field l:Z

.field m:Z

.field n:Lcom/a/a/c/c/f;

.field o:Z

.field final synthetic p:Lcom/a/a/m;

.field final synthetic q:Lcom/a/a/c/c/k;


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

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

    iput-object p2, p0, Lcom/a/a/c/c/l;->p:Lcom/a/a/m;

    invoke-direct {p0}, Lcom/a/a/c/c/d;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/a/a/c/c/l;)V
    .locals 0

    invoke-direct {p0}, Lcom/a/a/c/c/l;->o()V

    return-void
.end method

.method static synthetic a(Lcom/a/a/c/c/l;Ljava/lang/Exception;)V
    .locals 0

    invoke-virtual {p0, p1}, Lcom/a/a/c/c/l;->a(Ljava/lang/Exception;)V

    return-void
.end method

.method private o()V
    .locals 2

    iget-boolean v0, p0, Lcom/a/a/c/c/l;->m:Z

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/a/a/c/c/l;->l:Z

    if-eqz v0, :cond_0

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

    invoke-virtual {p0}, Lcom/a/a/c/c/l;->i()Lcom/a/a/c/c;

    move-result-object v1

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

    move-result v0

    if-eqz v0, :cond_1

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

    iget-object v1, p0, Lcom/a/a/c/c/l;->p:Lcom/a/a/m;

    invoke-virtual {v0, v1}, Lcom/a/a/c/c/k;->a(Lcom/a/a/m;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/a/a/c/c/l;->p:Lcom/a/a/m;

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

    goto :goto_0
.end method


# virtual methods
.method protected final a(Lcom/a/a/c/c;)Lcom/a/a/c/a/a;
    .locals 1

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

    move-result-object v0

    return-object v0
.end method

.method public final a_(Ljava/lang/Exception;)V
    .locals 3

    iget-object v0, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

    invoke-virtual {v0}, Lcom/a/a/c/c/f;->b()I

    move-result v0

    const/16 v1, 0x65

    if-ne v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/a/a/c/c/l;->m:Z

    invoke-super {p0, p1}, Lcom/a/a/c/c/d;->a_(Ljava/lang/Exception;)V

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

    new-instance v1, Lcom/a/a/c/c/o;

    invoke-direct {v1, p0}, Lcom/a/a/c/c/o;-><init>(Lcom/a/a/c/c/l;)V

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

    invoke-direct {p0}, Lcom/a/a/c/c/l;->o()V

    invoke-virtual {p0}, Lcom/a/a/c/c/l;->a()Lcom/a/a/c/a/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/a/a/c/a/a;->a_()Z

    move-result v0

    if-eqz v0, :cond_0

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

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

    iget-object v1, p0, Lcom/a/a/c/c/l;->i:Lcom/a/a/c/c/h;

    iget-object v2, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

    invoke-virtual {v0, v1, p0, v2}, Lcom/a/a/c/c/a;->a(Lcom/a/a/c/c/h;Lcom/a/a/c/c/c;Lcom/a/a/c/c/e;)V

    goto :goto_0
.end method

.method public final d()Lcom/a/a/c/f;
    .locals 3

    const/4 v2, 0x2

    iget-object v0, p0, Lcom/a/a/c/c/l;->j:Ljava/lang/String;

    const-string v1, "\\?"

    invoke-virtual {v0, v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;I)[Ljava/lang/String;

    move-result-object v0

    array-length v1, v0

    if-ge v1, v2, :cond_0

    new-instance v0, Lcom/a/a/c/f;

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

    :goto_0
    return-object v0

    :cond_0
    const/4 v1, 0x1

    aget-object v0, v0, v1

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

    move-result-object v0

    goto :goto_0
.end method

.method protected final h()V
    .locals 5

    const/4 v3, 0x0

    invoke-virtual {p0}, Lcom/a/a/c/c/l;->i()Lcom/a/a/c/c;

    move-result-object v0

    iget-boolean v1, p0, Lcom/a/a/c/c/l;->o:Z

    if-nez v1, :cond_1

    const-string v1, "100-continue"

    const-string v2, "Expect"

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

    move-result-object v0

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

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lcom/a/a/c/c/l;->l()V

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

    const-string v1, "HTTP/1.1 100 Continue\r\n\r\n"

    invoke-virtual {v1}, Ljava/lang/String;->getBytes()[B

    move-result-object v1

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

    invoke-direct {v2, p0}, Lcom/a/a/c/c/m;-><init>(Lcom/a/a/c/c/l;)V

    invoke-static {v0, v1, v2}, Lcom/a/a/ah;->a(Lcom/a/a/s;[BLcom/a/a/a/a;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/a/a/c/c/l;->n()Ljava/lang/String;

    move-result-object v0

    const-string v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    aget-object v1, v0, v1

    iput-object v1, p0, Lcom/a/a/c/c/l;->j:Ljava/lang/String;

    iget-object v1, p0, Lcom/a/a/c/c/l;->j:Ljava/lang/String;

    const-string v2, "\\?"

    invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    aget-object v1, v1, v3

    iput-object v1, p0, Lcom/a/a/c/c/l;->k:Ljava/lang/String;

    aget-object v0, v0, v3

    iput-object v0, p0, Lcom/a/a/c/c/l;->g:Ljava/lang/String;

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

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

    iget-object v1, v0, Lcom/a/a/c/c/a;->f:Ljava/util/Hashtable;

    monitor-enter v1

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

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

    iget-object v0, v0, Lcom/a/a/c/c/a;->f:Ljava/util/Hashtable;

    iget-object v2, p0, Lcom/a/a/c/c/l;->g:Ljava/lang/String;

    invoke-virtual {v0, v2}, Ljava/util/Hashtable;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_2
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/a/a/c/c/b;

    iget-object v3, v0, Lcom/a/a/c/c/b;->a:Ljava/util/regex/Pattern;

    iget-object v4, p0, Lcom/a/a/c/c/l;->k:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/regex/Matcher;->matches()Z

    move-result v4

    if-eqz v4, :cond_2

    iput-object v3, p0, Lcom/a/a/c/c/l;->e:Ljava/util/regex/Matcher;

    iget-object v0, v0, Lcom/a/a/c/c/b;->b:Lcom/a/a/c/c/h;

    iput-object v0, p0, Lcom/a/a/c/c/l;->i:Lcom/a/a/c/c/h;

    :cond_3
    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    new-instance v0, Lcom/a/a/c/c/n;

    iget-object v1, p0, Lcom/a/a/c/c/l;->p:Lcom/a/a/m;

    invoke-direct {v0, p0, v1, p0}, Lcom/a/a/c/c/n;-><init>(Lcom/a/a/c/c/l;Lcom/a/a/m;Lcom/a/a/c/c/d;)V

    iput-object v0, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

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

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

    invoke-virtual {v0}, Lcom/a/a/c/c/a;->a()Z

    move-result v0

    iget-object v1, p0, Lcom/a/a/c/c/l;->i:Lcom/a/a/c/c/h;

    if-nez v1, :cond_4

    if-nez v0, :cond_4

    iget-object v0, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

    const/16 v1, 0x194

    invoke-virtual {v0, v1}, Lcom/a/a/c/c/f;->a(I)Lcom/a/a/c/c/e;

    iget-object v0, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

    invoke-virtual {v0}, Lcom/a/a/c/c/f;->e()V

    goto :goto_0

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0

    :cond_4
    invoke-virtual {p0}, Lcom/a/a/c/c/l;->a()Lcom/a/a/c/a/a;

    move-result-object v0

    invoke-interface {v0}, Lcom/a/a/c/a/a;->a_()Z

    move-result v0

    if-nez v0, :cond_5

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

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

    iget-object v1, p0, Lcom/a/a/c/c/l;->i:Lcom/a/a/c/c/h;

    iget-object v2, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

    invoke-virtual {v0, v1, p0, v2}, Lcom/a/a/c/c/a;->a(Lcom/a/a/c/c/h;Lcom/a/a/c/c/c;Lcom/a/a/c/c/e;)V

    goto/16 :goto_0

    :cond_5
    iget-boolean v0, p0, Lcom/a/a/c/c/l;->m:Z

    if-eqz v0, :cond_0

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

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

    iget-object v1, p0, Lcom/a/a/c/c/l;->i:Lcom/a/a/c/c/h;

    iget-object v2, p0, Lcom/a/a/c/c/l;->n:Lcom/a/a/c/c/f;

    invoke-virtual {v0, v1, p0, v2}, Lcom/a/a/c/c/a;->a(Lcom/a/a/c/c/h;Lcom/a/a/c/c/c;Lcom/a/a/c/c/e;)V

    goto/16 :goto_0
.end method
