apkfuckery/com.discord/smali_classes2/com/google/protobuf/CodedOutputStream$b.smali

1334 lines
28 KiB
Smali

.class public Lcom/google/protobuf/CodedOutputStream$b;
.super Lcom/google/protobuf/CodedOutputStream;
.source "CodedOutputStream.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/protobuf/CodedOutputStream;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "b"
.end annotation
# instance fields
.field public final d:[B
.field public final e:I
.field public f:I
# direct methods
.method public constructor <init>([BII)V
.locals 3
const/4 v0, 0x0
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedOutputStream;-><init>(Lcom/google/protobuf/CodedOutputStream$a;)V
if-eqz p1, :cond_1
or-int v0, p2, p3
array-length v1, p1
add-int v2, p2, p3
sub-int/2addr v1, v2
or-int/2addr v0, v1
if-ltz v0, :cond_0
iput-object p1, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iput p2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
return-void
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
array-length p1, p1
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, v1, v2
const/4 p1, 0x1
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
aput-object p2, v1, p1
const/4 p1, 0x2
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p2
aput-object p2, v1, p1
const-string p1, "Array range is invalid. Buffer.length=%d, offset=%d, length=%d"
invoke-static {p1, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "buffer"
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public final O()I
.locals 2
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
sub-int/2addr v0, v1
return v0
.end method
.method public final P(B)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
aput-byte p1, v0, v1
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
iget v3, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
aput-object v2, v1, v3
const/4 v2, 0x2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final Q(Lf/h/e/h;)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p1}, Lf/h/e/h;->size()I
move-result v0
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
check-cast p1, Lf/h/e/h$g;
iget-object v0, p1, Lf/h/e/h$g;->bytes:[B
invoke-virtual {p1}, Lf/h/e/h$g;->r()I
move-result v1
invoke-virtual {p1}, Lf/h/e/h$g;->size()I
move-result p1
invoke-virtual {p0, v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$b;->Z([BII)V
return-void
.end method
.method public final S(I)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
and-int/lit16 v3, p1, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v1, v2, 0x1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
shr-int/lit8 v3, p1, 0x8
and-int/lit16 v3, v3, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
shr-int/lit8 v3, p1, 0x10
and-int/lit16 v3, v3, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v1, v2, 0x1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
shr-int/lit8 p1, p1, 0x18
and-int/lit16 p1, p1, 0xff
int-to-byte p1, p1
aput-byte p1, v0, v2
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
iget v3, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
aput-object v2, v1, v3
const/4 v2, 0x2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final T(J)V
.locals 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
long-to-int v3, p1
and-int/lit16 v3, v3, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v1, v2, 0x1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v3, 0x8
shr-long v3, p1, v3
long-to-int v4, v3
and-int/lit16 v3, v4, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v3, 0x10
shr-long v3, p1, v3
long-to-int v4, v3
and-int/lit16 v3, v4, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v1, v2, 0x1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v3, 0x18
shr-long v3, p1, v3
long-to-int v4, v3
and-int/lit16 v3, v4, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v3, 0x20
shr-long v3, p1, v3
long-to-int v4, v3
and-int/lit16 v3, v4, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v1, v2, 0x1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v3, 0x28
shr-long v3, p1, v3
long-to-int v4, v3
and-int/lit16 v3, v4, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v3, 0x30
shr-long v3, p1, v3
long-to-int v4, v3
and-int/lit16 v3, v4, 0xff
int-to-byte v3, v3
aput-byte v3, v0, v1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
add-int/lit8 v1, v2, 0x1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
const/16 v1, 0x38
shr-long/2addr p1, v1
long-to-int p2, p1
and-int/lit16 p1, p2, 0xff
int-to-byte p1, p1
aput-byte p1, v0, v2
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
const/4 v1, 0x2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
const-string v1, "Pos: %d, limit: %d, len: %d"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method
.method public final U(II)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
shl-int/lit8 p1, p1, 0x3
or-int/lit8 p1, p1, 0x0
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
if-ltz p2, :cond_0
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
goto :goto_0
:cond_0
int-to-long p1, p2
invoke-virtual {p0, p1, p2}, Lcom/google/protobuf/CodedOutputStream$b;->Y(J)V
:goto_0
return-void
.end method
.method public final V(I)V
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p1, :cond_0
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
goto :goto_0
:cond_0
int-to-long v0, p1
invoke-virtual {p0, v0, v1}, Lcom/google/protobuf/CodedOutputStream$b;->Y(J)V
:goto_0
return-void
.end method
.method public final W(Ljava/lang/String;)V
.locals 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
:try_start_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
mul-int/lit8 v1, v1, 0x3
invoke-static {v1}, Lcom/google/protobuf/CodedOutputStream;->I(I)I
move-result v1
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v2
invoke-static {v2}, Lcom/google/protobuf/CodedOutputStream;->I(I)I
move-result v2
if-ne v2, v1, :cond_0
add-int v1, v0, v2
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
iget-object v3, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$b;->O()I
move-result v4
sget-object v5, Lf/h/e/n1;->a:Lf/h/e/n1$a;
invoke-virtual {v5, p1, v3, v1, v4}, Lf/h/e/n1$a;->b(Ljava/lang/CharSequence;[BII)I
move-result v1
iput v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
sub-int v3, v1, v0
sub-int/2addr v3, v2
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
goto :goto_0
:cond_0
invoke-static {p1}, Lf/h/e/n1;->d(Ljava/lang/CharSequence;)I
move-result v1
invoke-virtual {p0, v1}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
iget-object v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$b;->O()I
move-result v3
sget-object v4, Lf/h/e/n1;->a:Lf/h/e/n1$a;
invoke-virtual {v4, p1, v1, v2, v3}, Lf/h/e/n1$a;->b(Ljava/lang/CharSequence;[BII)I
move-result v1
iput v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
:try_end_0
.catch Lf/h/e/n1$c; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p1
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
invoke-direct {v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/Throwable;)V
throw v0
:catch_1
move-exception v1
iput v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
sget-object v0, Lcom/google/protobuf/CodedOutputStream;->b:Ljava/util/logging/Logger;
sget-object v2, Ljava/util/logging/Level;->WARNING:Ljava/util/logging/Level;
const-string v3, "Converting ill-formed UTF-16. Your Protocol Buffer will not round trip correctly!"
invoke-virtual {v0, v2, v3, v1}, Ljava/util/logging/Logger;->log(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
sget-object v0, Lf/h/e/y;->a:Ljava/nio/charset/Charset;
invoke-virtual {p1, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
move-result-object p1
:try_start_1
array-length v0, p1
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedOutputStream;->X(I)V
const/4 v0, 0x0
array-length v1, p1
invoke-virtual {p0, p1, v0, v1}, Lcom/google/protobuf/CodedOutputStream$b;->Z([BII)V
:try_end_1
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_1 .. :try_end_1} :catch_3
.catch Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException; {:try_start_1 .. :try_end_1} :catch_2
:goto_0
return-void
:catch_2
move-exception p1
throw p1
:catch_3
move-exception p1
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
invoke-direct {v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method
.method public final X(I)V
.locals 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-boolean v0, Lcom/google/protobuf/CodedOutputStream;->c:Z
if-eqz v0, :cond_4
invoke-static {}, Lf/h/e/d;->a()Z
move-result v0
if-nez v0, :cond_4
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$b;->O()I
move-result v0
const/4 v1, 0x5
if-lt v0, v1, :cond_4
and-int/lit8 v0, p1, -0x80
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
int-to-byte p1, p1
invoke-static {v0, v1, v2, p1}, Lf/h/e/m1;->q([BJB)V
return-void
:cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
or-int/lit16 v3, p1, 0x80
int-to-byte v3, v3
invoke-static {v0, v1, v2, v3}, Lf/h/e/m1;->q([BJB)V
ushr-int/lit8 p1, p1, 0x7
and-int/lit8 v0, p1, -0x80
if-nez v0, :cond_1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
int-to-byte p1, p1
invoke-static {v0, v1, v2, p1}, Lf/h/e/m1;->q([BJB)V
return-void
:cond_1
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
or-int/lit16 v3, p1, 0x80
int-to-byte v3, v3
invoke-static {v0, v1, v2, v3}, Lf/h/e/m1;->q([BJB)V
ushr-int/lit8 p1, p1, 0x7
and-int/lit8 v0, p1, -0x80
if-nez v0, :cond_2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
int-to-byte p1, p1
invoke-static {v0, v1, v2, p1}, Lf/h/e/m1;->q([BJB)V
return-void
:cond_2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
or-int/lit16 v3, p1, 0x80
int-to-byte v3, v3
invoke-static {v0, v1, v2, v3}, Lf/h/e/m1;->q([BJB)V
ushr-int/lit8 p1, p1, 0x7
and-int/lit8 v0, p1, -0x80
if-nez v0, :cond_3
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
int-to-byte p1, p1
invoke-static {v0, v1, v2, p1}, Lf/h/e/m1;->q([BJB)V
return-void
:cond_3
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
or-int/lit16 v3, p1, 0x80
int-to-byte v3, v3
invoke-static {v0, v1, v2, v3}, Lf/h/e/m1;->q([BJB)V
ushr-int/lit8 p1, p1, 0x7
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
int-to-byte p1, p1
invoke-static {v0, v1, v2, p1}, Lf/h/e/m1;->q([BJB)V
return-void
:cond_4
:goto_0
and-int/lit8 v0, p1, -0x80
if-nez v0, :cond_5
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-byte p1, p1
aput-byte p1, v0, v1
return-void
:cond_5
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
and-int/lit8 v2, p1, 0x7f
or-int/lit16 v2, v2, 0x80
int-to-byte v2, v2
aput-byte v2, v0, v1
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
ushr-int/lit8 p1, p1, 0x7
goto :goto_0
:catch_0
move-exception p1
new-instance v0, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
const/4 v1, 0x3
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
iget v3, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x1
aput-object v2, v1, v3
const/4 v2, 0x2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const-string v2, "Pos: %d, limit: %d, len: %d"
invoke-static {v2, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw v0
.end method
.method public final Y(J)V
.locals 9
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-boolean v0, Lcom/google/protobuf/CodedOutputStream;->c:Z
const/4 v1, 0x7
const-wide/16 v2, 0x0
const-wide/16 v4, -0x80
if-eqz v0, :cond_1
invoke-virtual {p0}, Lcom/google/protobuf/CodedOutputStream$b;->O()I
move-result v0
const/16 v6, 0xa
if-lt v0, v6, :cond_1
:goto_0
and-long v6, p1, v4
cmp-long v0, v6, v2
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v1, v1
long-to-int p2, p1
int-to-byte p1, p2
invoke-static {v0, v1, v2, p1}, Lf/h/e/m1;->q([BJB)V
return-void
:cond_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v6, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v7, v6, 0x1
iput v7, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
int-to-long v6, v6
long-to-int v8, p1
and-int/lit8 v8, v8, 0x7f
or-int/lit16 v8, v8, 0x80
int-to-byte v8, v8
invoke-static {v0, v6, v7, v8}, Lf/h/e/m1;->q([BJB)V
ushr-long/2addr p1, v1
goto :goto_0
:cond_1
:goto_1
and-long v6, p1, v4
cmp-long v0, v6, v2
if-nez v0, :cond_2
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
long-to-int p2, p1
int-to-byte p1, p2
aput-byte p1, v0, v1
return-void
:cond_2
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v6, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/lit8 v7, v6, 0x1
iput v7, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
long-to-int v7, p1
and-int/lit8 v7, v7, 0x7f
or-int/lit16 v7, v7, 0x80
int-to-byte v7, v7
aput-byte v7, v0, v6
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
ushr-long/2addr p1, v1
goto :goto_1
:catch_0
move-exception p1
new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
const/4 v2, 0x1
aput-object v1, v0, v2
const/4 v1, 0x2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
const-string v1, "Pos: %d, limit: %d, len: %d"
invoke-static {v1, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v0
invoke-direct {p2, v0, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method
.method public final Z([BII)V
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:try_start_0
iget-object v0, p0, Lcom/google/protobuf/CodedOutputStream$b;->d:[B
iget v1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {p1, p2, v0, v1, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget p1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
add-int/2addr p1, p3
iput p1, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
:try_end_0
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_0
return-void
:catch_0
move-exception p1
new-instance p2, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;
const/4 v0, 0x3
new-array v0, v0, [Ljava/lang/Object;
const/4 v1, 0x0
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->f:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
const/4 v1, 0x1
iget v2, p0, Lcom/google/protobuf/CodedOutputStream$b;->e:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
aput-object v2, v0, v1
const/4 v1, 0x2
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
aput-object p3, v0, v1
const-string p3, "Pos: %d, limit: %d, len: %d"
invoke-static {p3, v0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p3
invoke-direct {p2, p3, p1}, Lcom/google/protobuf/CodedOutputStream$OutOfSpaceException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p2
.end method
.method public final a0(ILf/h/e/h;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
shl-int/lit8 p1, p1, 0x3
or-int/lit8 p1, p1, 0x2
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$b;->Q(Lf/h/e/h;)V
return-void
.end method
.method public final b0(II)V
.locals 0
.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/CodedOutputStream$b;->X(I)V
return-void
.end method
.method public final c0(II)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
shl-int/lit8 p1, p1, 0x3
or-int/lit8 p1, p1, 0x0
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedOutputStream$b;->X(I)V
return-void
.end method