.class public final Lv9/z;
.super Lv9/f0;
.source ""


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lv9/z$b;,
        Lv9/z$a;
    }
.end annotation


# static fields
.field public static final e:Lv9/y;

.field public static final f:Lv9/y;

.field public static final g:[B

.field public static final h:[B

.field public static final i:[B


# instance fields
.field public final a:Lv9/y;

.field public b:J

.field public final c:Lha/i;

.field public final d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lv9/z$b;",
            ">;"
        }
    .end annotation
.end field


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

    sget-object v0, Lv9/y;->f:Lv9/y$a;

    const-string v0, "multipart/mixed"

    invoke-static {v0}, Lv9/y$a;->a(Ljava/lang/String;)Lv9/y;

    move-result-object v0

    sput-object v0, Lv9/z;->e:Lv9/y;

    const-string v0, "multipart/alternative"

    invoke-static {v0}, Lv9/y$a;->a(Ljava/lang/String;)Lv9/y;

    const-string v0, "multipart/digest"

    invoke-static {v0}, Lv9/y$a;->a(Ljava/lang/String;)Lv9/y;

    const-string v0, "multipart/parallel"

    invoke-static {v0}, Lv9/y$a;->a(Ljava/lang/String;)Lv9/y;

    const-string v0, "multipart/form-data"

    invoke-static {v0}, Lv9/y$a;->a(Ljava/lang/String;)Lv9/y;

    move-result-object v0

    sput-object v0, Lv9/z;->f:Lv9/y;

    const/4 v0, 0x2

    new-array v1, v0, [B

    const/16 v2, 0x3a

    int-to-byte v2, v2

    const/4 v3, 0x0

    aput-byte v2, v1, v3

    const/16 v2, 0x20

    int-to-byte v2, v2

    const/4 v4, 0x1

    aput-byte v2, v1, v4

    sput-object v1, Lv9/z;->g:[B

    new-array v1, v0, [B

    const/16 v2, 0xd

    int-to-byte v2, v2

    aput-byte v2, v1, v3

    const/16 v2, 0xa

    int-to-byte v2, v2

    aput-byte v2, v1, v4

    sput-object v1, Lv9/z;->h:[B

    new-array v0, v0, [B

    const/16 v1, 0x2d

    int-to-byte v1, v1

    aput-byte v1, v0, v3

    aput-byte v1, v0, v4

    sput-object v0, Lv9/z;->i:[B

    return-void
.end method

.method public constructor <init>(Lha/i;Lv9/y;Ljava/util/List;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lha/i;",
            "Lv9/y;",
            "Ljava/util/List<",
            "Lv9/z$b;",
            ">;)V"
        }
    .end annotation

    const-string v0, "boundaryByteString"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "type"

    invoke-static {p2, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-direct {p0}, Lv9/f0;-><init>()V

    iput-object p1, p0, Lv9/z;->c:Lha/i;

    iput-object p3, p0, Lv9/z;->d:Ljava/util/List;

    sget-object p3, Lv9/y;->f:Lv9/y$a;

    new-instance p3, Ljava/lang/StringBuilder;

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

    invoke-virtual {p3, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string p2, "; boundary="

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

    .line 1
    invoke-virtual {p1}, Lha/i;->q()Ljava/lang/String;

    move-result-object p1

    .line 2
    invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

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

    move-result-object p1

    invoke-static {p1}, Lv9/y$a;->a(Ljava/lang/String;)Lv9/y;

    move-result-object p1

    iput-object p1, p0, Lv9/z;->a:Lv9/y;

    const-wide/16 p1, -0x1

    iput-wide p1, p0, Lv9/z;->b:J

    return-void
.end method


# virtual methods
.method public a()J
    .registers 5

    iget-wide v0, p0, Lv9/z;->b:J

    const-wide/16 v2, -0x1

    cmp-long v2, v0, v2

    if-nez v2, :cond_10

    const/4 v0, 0x0

    const/4 v1, 0x1

    invoke-virtual {p0, v0, v1}, Lv9/z;->d(Lha/g;Z)J

    move-result-wide v0

    iput-wide v0, p0, Lv9/z;->b:J

    :cond_10
    return-wide v0
.end method

.method public b()Lv9/y;
    .registers 2

    iget-object v0, p0, Lv9/z;->a:Lv9/y;

    return-object v0
.end method

.method public c(Lha/g;)V
    .registers 3

    const-string v0, "sink"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lv9/z;->d(Lha/g;Z)J

    return-void
.end method

.method public final d(Lha/g;Z)J
    .registers 15

    if-eqz p2, :cond_9

    new-instance p1, Lha/e;

    invoke-direct {p1}, Lha/e;-><init>()V

    move-object v0, p1

    goto :goto_a

    :cond_9
    const/4 v0, 0x0

    :goto_a
    iget-object v1, p0, Lv9/z;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    const/4 v2, 0x0

    const-wide/16 v3, 0x0

    move v5, v2

    :goto_14
    if-ge v5, v1, :cond_aa

    iget-object v6, p0, Lv9/z;->d:Ljava/util/List;

    invoke-interface {v6, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lv9/z$b;

    .line 1
    iget-object v7, v6, Lv9/z$b;->a:Lv9/v;

    .line 2
    iget-object v6, v6, Lv9/z$b;->b:Lv9/f0;

    .line 3
    invoke-static {p1}, Lx/e;->d(Ljava/lang/Object;)V

    sget-object v8, Lv9/z;->i:[B

    invoke-interface {p1, v8}, Lha/g;->B([B)Lha/g;

    iget-object v8, p0, Lv9/z;->c:Lha/i;

    invoke-interface {p1, v8}, Lha/g;->D(Lha/i;)Lha/g;

    sget-object v8, Lv9/z;->h:[B

    invoke-interface {p1, v8}, Lha/g;->B([B)Lha/g;

    if-eqz v7, :cond_5b

    invoke-virtual {v7}, Lv9/v;->size()I

    move-result v8

    move v9, v2

    :goto_3b
    if-ge v9, v8, :cond_5b

    invoke-virtual {v7, v9}, Lv9/v;->c(I)Ljava/lang/String;

    move-result-object v10

    invoke-interface {p1, v10}, Lha/g;->O(Ljava/lang/String;)Lha/g;

    move-result-object v10

    sget-object v11, Lv9/z;->g:[B

    invoke-interface {v10, v11}, Lha/g;->B([B)Lha/g;

    move-result-object v10

    invoke-virtual {v7, v9}, Lv9/v;->g(I)Ljava/lang/String;

    move-result-object v11

    invoke-interface {v10, v11}, Lha/g;->O(Ljava/lang/String;)Lha/g;

    move-result-object v10

    sget-object v11, Lv9/z;->h:[B

    invoke-interface {v10, v11}, Lha/g;->B([B)Lha/g;

    add-int/lit8 v9, v9, 0x1

    goto :goto_3b

    :cond_5b
    invoke-virtual {v6}, Lv9/f0;->b()Lv9/y;

    move-result-object v7

    if-eqz v7, :cond_72

    const-string v8, "Content-Type: "

    invoke-interface {p1, v8}, Lha/g;->O(Ljava/lang/String;)Lha/g;

    move-result-object v8

    .line 4
    iget-object v7, v7, Lv9/y;->a:Ljava/lang/String;

    .line 5
    invoke-interface {v8, v7}, Lha/g;->O(Ljava/lang/String;)Lha/g;

    move-result-object v7

    sget-object v8, Lv9/z;->h:[B

    invoke-interface {v7, v8}, Lha/g;->B([B)Lha/g;

    :cond_72
    invoke-virtual {v6}, Lv9/f0;->a()J

    move-result-wide v7

    const-wide/16 v9, -0x1

    cmp-long v11, v7, v9

    if-eqz v11, :cond_8c

    const-string v9, "Content-Length: "

    invoke-interface {p1, v9}, Lha/g;->O(Ljava/lang/String;)Lha/g;

    move-result-object v9

    invoke-interface {v9, v7, v8}, Lha/g;->R(J)Lha/g;

    move-result-object v9

    sget-object v10, Lv9/z;->h:[B

    invoke-interface {v9, v10}, Lha/g;->B([B)Lha/g;

    goto :goto_97

    :cond_8c
    if-eqz p2, :cond_97

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

    .line 6
    iget-wide p1, v0, Lha/e;->s:J

    .line 7
    invoke-virtual {v0, p1, p2}, Lha/e;->a(J)V

    return-wide v9

    .line 8
    :cond_97
    :goto_97
    sget-object v9, Lv9/z;->h:[B

    invoke-interface {p1, v9}, Lha/g;->B([B)Lha/g;

    if-eqz p2, :cond_a0

    add-long/2addr v3, v7

    goto :goto_a3

    :cond_a0
    invoke-virtual {v6, p1}, Lv9/f0;->c(Lha/g;)V

    :goto_a3
    invoke-interface {p1, v9}, Lha/g;->B([B)Lha/g;

    add-int/lit8 v5, v5, 0x1

    goto/16 :goto_14

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

    sget-object v1, Lv9/z;->i:[B

    invoke-interface {p1, v1}, Lha/g;->B([B)Lha/g;

    iget-object v2, p0, Lv9/z;->c:Lha/i;

    invoke-interface {p1, v2}, Lha/g;->D(Lha/i;)Lha/g;

    invoke-interface {p1, v1}, Lha/g;->B([B)Lha/g;

    sget-object v1, Lv9/z;->h:[B

    invoke-interface {p1, v1}, Lha/g;->B([B)Lha/g;

    if-eqz p2, :cond_ca

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

    .line 9
    iget-wide p1, v0, Lha/e;->s:J

    add-long/2addr v3, p1

    .line 10
    invoke-virtual {v0, p1, p2}, Lha/e;->a(J)V

    :cond_ca
    return-wide v3
.end method
