o$e.smali

.class public final Lcom/google/protobuf/o$e;
.super Lcom/google/protobuf/o$b;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/google/protobuf/o;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x19
    name = "e"
.end annotation


# instance fields
.field public final g:Ljava/io/OutputStream;


# direct methods
.method public constructor <init>(Ljava/io/OutputStream;I)V
    .registers 3

    .line 1
    invoke-direct {p0, p2}, Lcom/google/protobuf/o$b;-><init>(I)V

    const-string p2, "out"

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

    .line 3
    iput-object p1, p0, Lcom/google/protobuf/o$e;->g:Ljava/io/OutputStream;

    return-void
.end method


# virtual methods
.method public final G(B)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget v0, p0, Lcom/google/protobuf/o$b;->f:I

    iget v1, p0, Lcom/google/protobuf/o$b;->e:I

    if-ne v0, v1, :cond_9

    .line 2
    invoke-virtual {p0}, Lcom/google/protobuf/o$e;->l0()V

    .line 3
    :cond_9
    iget-object v0, p0, Lcom/google/protobuf/o$b;->d:[B

    iget v1, p0, Lcom/google/protobuf/o$b;->f:I

    add-int/lit8 v2, v1, 0x1

    iput v2, p0, Lcom/google/protobuf/o$b;->f:I

    aput-byte p1, v0, v1

    return-void
.end method

.method public final H(IZ)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0xb

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$b;->i0(II)V

    int-to-byte p1, p2

    .line 3
    iget-object p2, p0, Lcom/google/protobuf/o$b;->d:[B

    iget v0, p0, Lcom/google/protobuf/o$b;->f:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/google/protobuf/o$b;->f:I

    aput-byte p1, p2, v0

    return-void
.end method

.method public final I([BI)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0, p2}, Lcom/google/protobuf/o$e;->d0(I)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, p1, v0, p2}, Lcom/google/protobuf/o$e;->n0([BII)V

    return-void
.end method

.method public final J(ILcom/google/protobuf/l;)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x2

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$e;->b0(II)V

    .line 2
    invoke-virtual {p0, p2}, Lcom/google/protobuf/o$e;->K(Lcom/google/protobuf/l;)V

    return-void
.end method

.method public final K(Lcom/google/protobuf/l;)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Lcom/google/protobuf/l;->size()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->d0(I)V

    .line 2
    invoke-virtual {p1, p0}, Lcom/google/protobuf/l;->r(Lcom/google/protobuf/k;)V

    return-void
.end method

.method public final M(II)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0xe

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    const/4 v0, 0x5

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$b;->i0(II)V

    .line 3
    invoke-virtual {p0, p2}, Lcom/google/protobuf/o$b;->g0(I)V

    return-void
.end method

.method public final N(I)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x4

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    .line 2
    invoke-virtual {p0, p1}, Lcom/google/protobuf/o$b;->g0(I)V

    return-void
.end method

.method public final O(IJ)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x12

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$b;->i0(II)V

    .line 3
    invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/o$b;->h0(J)V

    return-void
.end method

.method public final P(J)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x8

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    .line 2
    invoke-virtual {p0, p1, p2}, Lcom/google/protobuf/o$b;->h0(J)V

    return-void
.end method

.method public final S(II)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x14

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$b;->i0(II)V

    if-ltz p2, :cond_f

    .line 3
    invoke-virtual {p0, p2}, Lcom/google/protobuf/o$b;->j0(I)V

    goto :goto_13

    :cond_f
    int-to-long p1, p2

    .line 4
    invoke-virtual {p0, p1, p2}, Lcom/google/protobuf/o$b;->k0(J)V

    :goto_13
    return-void
.end method

.method public final T(I)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    if-ltz p1, :cond_6

    .line 1
    invoke-virtual {p0, p1}, Lcom/google/protobuf/o$e;->d0(I)V

    goto :goto_a

    :cond_6
    int-to-long v0, p1

    .line 2
    invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/o$e;->f0(J)V

    :goto_a
    return-void
.end method

.method public final U(ILcom/google/protobuf/o1;)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x2

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$e;->b0(II)V

    .line 2
    invoke-interface {p2}, Lcom/google/protobuf/o1;->getSerializedSize()I

    move-result p1

    invoke-virtual {p0, p1}, Lcom/google/protobuf/o$e;->d0(I)V

    .line 3
    invoke-interface {p2, p0}, Lcom/google/protobuf/o1;->writeTo(Lcom/google/protobuf/o;)V

    return-void
.end method

.method public final V(ILcom/google/protobuf/o1;Lcom/google/protobuf/o2;)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x2

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$e;->b0(II)V

    .line 2
    move-object p1, p2

    check-cast p1, Lcom/google/protobuf/b;

    invoke-virtual {p1, p3}, Lcom/google/protobuf/b;->getSerializedSize(Lcom/google/protobuf/o2;)I

    move-result p1

    invoke-virtual {p0, p1}, Lcom/google/protobuf/o$e;->d0(I)V

    .line 3
    iget-object p1, p0, Lcom/google/protobuf/o;->a:Lcom/google/protobuf/p;

    invoke-interface {p3, p2, p1}, Lcom/google/protobuf/o2;->b(Ljava/lang/Object;Lcom/google/protobuf/s3;)V

    return-void
.end method

.method public final W(Lcom/google/protobuf/o1;)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p1}, Lcom/google/protobuf/o1;->getSerializedSize()I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->d0(I)V

    .line 2
    invoke-interface {p1, p0}, Lcom/google/protobuf/o1;->writeTo(Lcom/google/protobuf/o;)V

    return-void
.end method

.method public final X(ILcom/google/protobuf/o1;)V
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x1

    const/4 v1, 0x3

    .line 1
    invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/o$e;->b0(II)V

    const/4 v2, 0x2

    .line 2
    invoke-virtual {p0, v2, p1}, Lcom/google/protobuf/o$e;->c0(II)V

    .line 3
    invoke-virtual {p0, v1, p2}, Lcom/google/protobuf/o$e;->U(ILcom/google/protobuf/o1;)V

    const/4 p1, 0x4

    .line 4
    invoke-virtual {p0, v0, p1}, Lcom/google/protobuf/o$e;->b0(II)V

    return-void
.end method

.method public final Y(ILcom/google/protobuf/l;)V
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x1

    const/4 v1, 0x3

    .line 1
    invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/o$e;->b0(II)V

    const/4 v2, 0x2

    .line 2
    invoke-virtual {p0, v2, p1}, Lcom/google/protobuf/o$e;->c0(II)V

    .line 3
    invoke-virtual {p0, v1, p2}, Lcom/google/protobuf/o$e;->J(ILcom/google/protobuf/l;)V

    const/4 p1, 0x4

    .line 4
    invoke-virtual {p0, v0, p1}, Lcom/google/protobuf/o$e;->b0(II)V

    return-void
.end method

.method public final Z(ILjava/lang/String;)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x2

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$e;->b0(II)V

    .line 2
    invoke-virtual {p0, p2}, Lcom/google/protobuf/o$e;->a0(Ljava/lang/String;)V

    return-void
.end method

.method public final a([BII)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0, p1, p2, p3}, Lcom/google/protobuf/o$e;->n0([BII)V

    return-void
.end method

.method public final a0(Ljava/lang/String;)V
    .registers 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    mul-int/lit8 v0, v0, 0x3

    .line 2
    invoke-static {v0}, Lcom/google/protobuf/o;->A(I)I

    move-result v1

    add-int v2, v1, v0

    .line 3
    iget v3, p0, Lcom/google/protobuf/o$b;->e:I

    if-le v2, v3, :cond_1e

    .line 4
    new-array v1, v0, [B

    const/4 v2, 0x0

    .line 5
    invoke-static {p1, v1, v2, v0}, Lcom/google/protobuf/o3;->d(Ljava/lang/CharSequence;[BII)I

    move-result v0

    .line 6
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->d0(I)V

    .line 7
    invoke-virtual {p0, v1, v2, v0}, Lcom/google/protobuf/o$e;->n0([BII)V

    return-void

    .line 8
    :cond_1e
    iget v0, p0, Lcom/google/protobuf/o$b;->f:I

    sub-int/2addr v3, v0

    if-le v2, v3, :cond_26

    .line 9
    invoke-virtual {p0}, Lcom/google/protobuf/o$e;->l0()V

    .line 10
    :cond_26
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    invoke-static {v0}, Lcom/google/protobuf/o;->A(I)I

    move-result v0

    .line 11
    iget v2, p0, Lcom/google/protobuf/o$b;->f:I
    :try_end_30
    .catch Lcom/google/protobuf/o3$d; {:try_start_0 .. :try_end_30} :catch_67

    if-ne v0, v1, :cond_4a

    add-int v1, v2, v0

    .line 12
    :try_start_34
    iput v1, p0, Lcom/google/protobuf/o$b;->f:I

    .line 13
    iget-object v3, p0, Lcom/google/protobuf/o$b;->d:[B

    iget v4, p0, Lcom/google/protobuf/o$b;->e:I

    sub-int/2addr v4, v1

    invoke-static {p1, v3, v1, v4}, Lcom/google/protobuf/o3;->d(Ljava/lang/CharSequence;[BII)I

    move-result v1

    .line 14
    iput v2, p0, Lcom/google/protobuf/o$b;->f:I

    sub-int v3, v1, v2

    sub-int/2addr v3, v0

    .line 15
    invoke-virtual {p0, v3}, Lcom/google/protobuf/o$b;->j0(I)V

    .line 16
    iput v1, p0, Lcom/google/protobuf/o$b;->f:I

    goto :goto_6b

    .line 17
    :cond_4a
    invoke-static {p1}, Lcom/google/protobuf/o3;->e(Ljava/lang/CharSequence;)I

    move-result v0

    .line 18
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$b;->j0(I)V

    .line 19
    iget-object v1, p0, Lcom/google/protobuf/o$b;->d:[B

    iget v3, p0, Lcom/google/protobuf/o$b;->f:I

    invoke-static {p1, v1, v3, v0}, Lcom/google/protobuf/o3;->d(Ljava/lang/CharSequence;[BII)I

    move-result v0

    iput v0, p0, Lcom/google/protobuf/o$b;->f:I
    :try_end_5b
    .catch Lcom/google/protobuf/o3$d; {:try_start_34 .. :try_end_5b} :catch_63
    .catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_34 .. :try_end_5b} :catch_5c

    goto :goto_6b

    :catch_5c
    move-exception v0

    .line 20
    :try_start_5d
    new-instance v1, Lcom/google/protobuf/o$d;

    invoke-direct {v1, v0}, Lcom/google/protobuf/o$d;-><init>(Ljava/lang/Throwable;)V

    throw v1

    :catch_63
    move-exception v0

    .line 21
    iput v2, p0, Lcom/google/protobuf/o$b;->f:I

    .line 22
    throw v0
    :try_end_67
    .catch Lcom/google/protobuf/o3$d; {:try_start_5d .. :try_end_67} :catch_67

    :catch_67
    move-exception v0

    .line 23
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o;->E(Ljava/lang/String;Lcom/google/protobuf/o3$d;)V

    :goto_6b
    return-void
.end method

.method public final b0(II)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    shl-int/lit8 p1, p1, 0x3

    or-int/2addr p1, p2

    invoke-virtual {p0, p1}, Lcom/google/protobuf/o$e;->d0(I)V

    return-void
.end method

.method public final c0(II)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x14

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$b;->i0(II)V

    .line 3
    invoke-virtual {p0, p2}, Lcom/google/protobuf/o$b;->j0(I)V

    return-void
.end method

.method public final d0(I)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x5

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    .line 2
    invoke-virtual {p0, p1}, Lcom/google/protobuf/o$b;->j0(I)V

    return-void
.end method

.method public final e0(IJ)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x14

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, p1, v0}, Lcom/google/protobuf/o$b;->i0(II)V

    .line 3
    invoke-virtual {p0, p2, p3}, Lcom/google/protobuf/o$b;->k0(J)V

    return-void
.end method

.method public final f0(J)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0xa

    .line 1
    invoke-virtual {p0, v0}, Lcom/google/protobuf/o$e;->m0(I)V

    .line 2
    invoke-virtual {p0, p1, p2}, Lcom/google/protobuf/o$b;->k0(J)V

    return-void
.end method

.method public final l0()V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/google/protobuf/o$e;->g:Ljava/io/OutputStream;

    iget-object v1, p0, Lcom/google/protobuf/o$b;->d:[B

    iget v2, p0, Lcom/google/protobuf/o$b;->f:I

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v3, v2}, Ljava/io/OutputStream;->write([BII)V

    .line 2
    iput v3, p0, Lcom/google/protobuf/o$b;->f:I

    return-void
.end method

.method public final m0(I)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget v0, p0, Lcom/google/protobuf/o$b;->e:I

    iget v1, p0, Lcom/google/protobuf/o$b;->f:I

    sub-int/2addr v0, v1

    if-ge v0, p1, :cond_a

    .line 2
    invoke-virtual {p0}, Lcom/google/protobuf/o$e;->l0()V

    :cond_a
    return-void
.end method

.method public final n0([BII)V
    .registers 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget v0, p0, Lcom/google/protobuf/o$b;->e:I

    iget v1, p0, Lcom/google/protobuf/o$b;->f:I

    sub-int/2addr v0, v1

    if-lt v0, p3, :cond_12

    .line 2
    iget-object v0, p0, Lcom/google/protobuf/o$b;->d:[B

    invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 3
    iget p1, p0, Lcom/google/protobuf/o$b;->f:I

    add-int/2addr p1, p3

    iput p1, p0, Lcom/google/protobuf/o$b;->f:I

    goto :goto_32

    .line 4
    :cond_12
    iget-object v2, p0, Lcom/google/protobuf/o$b;->d:[B

    invoke-static {p1, p2, v2, v1, v0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    add-int/2addr p2, v0

    sub-int/2addr p3, v0

    .line 5
    iget v0, p0, Lcom/google/protobuf/o$b;->e:I

    iput v0, p0, Lcom/google/protobuf/o$b;->f:I

    .line 6
    invoke-virtual {p0}, Lcom/google/protobuf/o$e;->l0()V

    .line 7
    iget v0, p0, Lcom/google/protobuf/o$b;->e:I

    if-gt p3, v0, :cond_2d

    .line 8
    iget-object v0, p0, Lcom/google/protobuf/o$b;->d:[B

    const/4 v1, 0x0

    invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 9
    iput p3, p0, Lcom/google/protobuf/o$b;->f:I

    goto :goto_32

    .line 10
    :cond_2d
    iget-object v0, p0, Lcom/google/protobuf/o$e;->g:Ljava/io/OutputStream;

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V

    :goto_32
    return-void
.end method