CodedInputStream.smali
.class public final Lcom/google/protobuf/CodedInputStream;
.super Ljava/lang/Object;
# instance fields
.field private final a:[B
.field private b:I
.field private c:I
.field private d:I
.field private final e:Ljava/io/InputStream;
.field private f:I
.field private g:I
.field private h:I
.field private i:I
.field private j:I
.field private k:I
# direct methods
.method private constructor <init>(Ljava/io/InputStream;)V
.registers 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const v0, 0x7fffffff
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->h:I
const/16 v0, 0x40
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->j:I
const/high16 v0, 0x4000000
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->k:I
const/16 v0, 0x1000
new-array v0, v0, [B
iput-object v0, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
const/4 v0, 0x0
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->d:I
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iput-object p1, p0, Lcom/google/protobuf/CodedInputStream;->e:Ljava/io/InputStream;
return-void
.end method
.method public static d(Ljava/io/InputStream;)Lcom/google/protobuf/CodedInputStream;
.registers 2
new-instance v0, Lcom/google/protobuf/CodedInputStream;
invoke-direct {v0, p0}, Lcom/google/protobuf/CodedInputStream;-><init>(Ljava/io/InputStream;)V
return-object v0
.end method
.method private v()V
.registers 4
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->c:I
add-int/2addr v0, v1
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->g:I
add-int/2addr v1, v0
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->h:I
if-le v1, v2, :cond_15
sub-int/2addr v1, v2
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->c:I
sub-int/2addr v0, v1
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
goto :goto_18
:cond_15
const/4 v0, 0x0
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->c:I
:goto_18
return-void
.end method
.method private w(Z)Z
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->d:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->b:I
if-lt v0, v1, :cond_71
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
add-int v2, v0, v1
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->h:I
const/4 v4, 0x0
if-ne v2, v3, :cond_17
if-nez p1, :cond_12
return v4
:cond_12
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->i()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_17
add-int/2addr v0, v1
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iput v4, p0, Lcom/google/protobuf/CodedInputStream;->d:I
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->e:Ljava/io/InputStream;
const/4 v1, -0x1
if-nez v0, :cond_23
const/4 v0, -0x1
goto :goto_29
:cond_23
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-virtual {v0, v2}, Ljava/io/InputStream;->read([B)I
move-result v0
:goto_29
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
if-eqz v0, :cond_53
if-lt v0, v1, :cond_53
if-ne v0, v1, :cond_3b
iput v4, p0, Lcom/google/protobuf/CodedInputStream;->b:I
if-nez p1, :cond_36
return v4
:cond_36
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->i()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_3b
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->v()V
iget p1, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
add-int/2addr p1, v0
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->c:I
add-int/2addr p1, v0
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->k:I
if-gt p1, v0, :cond_4e
if-ltz p1, :cond_4e
const/4 p1, 0x1
return p1
:cond_4e
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->h()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_53
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "InputStream#read(byte[]) returned invalid result: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->b:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v1, "\nThe InputStream implementation is buggy."
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_71
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "refillBuffer() called when buffer wasn\'t empty."
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public a(I)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->f:I
if-ne v0, p1, :cond_5
return-void
:cond_5
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->a()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public b()I
.registers 4
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->h:I
const v1, 0x7fffffff
if-ne v0, v1, :cond_9
const/4 v0, -0x1
return v0
:cond_9
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int/2addr v1, v2
sub-int/2addr v0, v1
return v0
.end method
.method public c()Z
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->d:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->b:I
const/4 v2, 0x0
if-ne v0, v1, :cond_e
invoke-direct {p0, v2}, Lcom/google/protobuf/CodedInputStream;->w(Z)Z
move-result v0
if-nez v0, :cond_e
const/4 v2, 0x1
:cond_e
return v2
.end method
.method public e(I)V
.registers 2
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->h:I
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->v()V
return-void
.end method
.method public f(I)I
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
if-ltz p1, :cond_17
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int/2addr v0, v1
add-int/2addr p1, v0
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->h:I
if-gt p1, v0, :cond_12
iput p1, p0, Lcom/google/protobuf/CodedInputStream;->h:I
invoke-direct {p0}, Lcom/google/protobuf/CodedInputStream;->v()V
return v0
:cond_12
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->i()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_17
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->e()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public g()Z
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result v0
if-eqz v0, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public h()Lcom/google/protobuf/ByteString;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result v0
if-nez v0, :cond_9
sget-object v0, Lcom/google/protobuf/ByteString;->f:Lcom/google/protobuf/ByteString;
return-object v0
:cond_9
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->b:I
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->d:I
sub-int/2addr v1, v2
if-gt v0, v1, :cond_1e
if-lez v0, :cond_1e
iget-object v1, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-static {v1, v2, v0}, Lcom/google/protobuf/ByteString;->h([BII)Lcom/google/protobuf/ByteString;
move-result-object v1
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int/2addr v2, v0
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->d:I
return-object v1
:cond_1e
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->p(I)[B
move-result-object v0
invoke-static {v0}, Lcom/google/protobuf/ByteString;->c([B)Lcom/google/protobuf/ByteString;
move-result-object v0
return-object v0
.end method
.method public i()D
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->r()J
move-result-wide v0
invoke-static {v0, v1}, Ljava/lang/Double;->longBitsToDouble(J)D
move-result-wide v0
return-wide v0
.end method
.method public j()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result v0
return v0
.end method
.method public k()F
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->q()I
move-result v0
invoke-static {v0}, Ljava/lang/Float;->intBitsToFloat(I)F
move-result v0
return v0
.end method
.method public l()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result v0
return v0
.end method
.method public m()J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->t()J
move-result-wide v0
return-wide v0
.end method
.method public n(Lcom/google/protobuf/Parser;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lcom/google/protobuf/MessageLite;",
">(",
"Lcom/google/protobuf/Parser<",
"TT;>;",
"Lcom/google/protobuf/ExtensionRegistryLite;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result v0
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->i:I
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->j:I
if-ge v1, v2, :cond_28
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->f(I)I
move-result v0
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->i:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->i:I
invoke-interface {p1, p0, p2}, Lcom/google/protobuf/Parser;->b(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/protobuf/MessageLite;
const/4 p2, 0x0
invoke-virtual {p0, p2}, Lcom/google/protobuf/CodedInputStream;->a(I)V
iget p2, p0, Lcom/google/protobuf/CodedInputStream;->i:I
add-int/lit8 p2, p2, -0x1
iput p2, p0, Lcom/google/protobuf/CodedInputStream;->i:I
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->e(I)V
return-object p1
:cond_28
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->f()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public o()B
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->d:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->b:I
if-ne v0, v1, :cond_a
const/4 v0, 0x1
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->w(Z)Z
:cond_a
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->d:I
aget-byte v0, v0, v1
return v0
.end method
.method public p(I)[B
.registers 14
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p1, :cond_b4
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int v2, v0, v1
add-int/2addr v2, p1
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->h:I
if-gt v2, v3, :cond_aa
iget v2, p0, Lcom/google/protobuf/CodedInputStream;->b:I
sub-int v3, v2, v1
const/4 v4, 0x0
if-gt p1, v3, :cond_21
new-array v0, p1, [B
iget-object v2, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-static {v2, v1, v0, v4, p1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int/2addr v1, p1
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
return-object v0
:cond_21
const/16 v3, 0x1000
if-ge p1, v3, :cond_51
new-array v0, p1, [B
sub-int/2addr v2, v1
iget-object v3, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-static {v3, v1, v0, v4, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->b:I
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
const/4 v1, 0x1
invoke-direct {p0, v1}, Lcom/google/protobuf/CodedInputStream;->w(Z)Z
:goto_35
sub-int v3, p1, v2
iget v5, p0, Lcom/google/protobuf/CodedInputStream;->b:I
if-le v3, v5, :cond_49
iget-object v3, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-static {v3, v4, v0, v2, v5}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->b:I
add-int/2addr v2, v3
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->d:I
invoke-direct {p0, v1}, Lcom/google/protobuf/CodedInputStream;->w(Z)Z
goto :goto_35
:cond_49
iget-object p1, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-static {p1, v4, v0, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->d:I
return-object v0
:cond_51
add-int/2addr v0, v2
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iput v4, p0, Lcom/google/protobuf/CodedInputStream;->d:I
iput v4, p0, Lcom/google/protobuf/CodedInputStream;->b:I
sub-int/2addr v2, v1
sub-int v0, p1, v2
new-instance v5, Ljava/util/ArrayList;
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
:goto_60
if-lez v0, :cond_8b
invoke-static {v0, v3}, Ljava/lang/Math;->min(II)I
move-result v6
new-array v7, v6, [B
const/4 v8, 0x0
:goto_69
if-ge v8, v6, :cond_86
iget-object v9, p0, Lcom/google/protobuf/CodedInputStream;->e:Ljava/io/InputStream;
const/4 v10, -0x1
if-nez v9, :cond_72
const/4 v9, -0x1
goto :goto_78
:cond_72
sub-int v11, v6, v8
invoke-virtual {v9, v7, v8, v11}, Ljava/io/InputStream;->read([BII)I
move-result v9
:goto_78
if-eq v9, v10, :cond_81
iget v10, p0, Lcom/google/protobuf/CodedInputStream;->g:I
add-int/2addr v10, v9
iput v10, p0, Lcom/google/protobuf/CodedInputStream;->g:I
add-int/2addr v8, v9
goto :goto_69
:cond_81
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->i()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_86
sub-int/2addr v0, v6
invoke-interface {v5, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_60
:cond_8b
new-array p1, p1, [B
iget-object v0, p0, Lcom/google/protobuf/CodedInputStream;->a:[B
invoke-static {v0, v1, p1, v4, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_96
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_a9
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, [B
array-length v3, v1
invoke-static {v1, v4, p1, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
array-length v1, v1
add-int/2addr v2, v1
goto :goto_96
:cond_a9
return-object p1
:cond_aa
sub-int/2addr v3, v0
sub-int/2addr v3, v1
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedInputStream;->z(I)V
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->i()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_b4
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->e()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public q()I
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v0
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v1
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v2
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v3
and-int/lit16 v0, v0, 0xff
and-int/lit16 v1, v1, 0xff
shl-int/lit8 v1, v1, 0x8
or-int/2addr v0, v1
and-int/lit16 v1, v2, 0xff
shl-int/lit8 v1, v1, 0x10
or-int/2addr v0, v1
and-int/lit16 v1, v3, 0xff
shl-int/lit8 v1, v1, 0x18
or-int/2addr v0, v1
return v0
.end method
.method public r()J
.registers 14
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v0
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v1
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v2
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v3
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v4
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v5
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v6
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v7
int-to-long v8, v0
const-wide/16 v10, 0xff
and-long/2addr v8, v10
int-to-long v0, v1
and-long/2addr v0, v10
const/16 v12, 0x8
shl-long/2addr v0, v12
or-long/2addr v0, v8
int-to-long v8, v2
and-long/2addr v8, v10
const/16 v2, 0x10
shl-long/2addr v8, v2
or-long/2addr v0, v8
int-to-long v2, v3
and-long/2addr v2, v10
const/16 v8, 0x18
shl-long/2addr v2, v8
or-long/2addr v0, v2
int-to-long v2, v4
and-long/2addr v2, v10
const/16 v4, 0x20
shl-long/2addr v2, v4
or-long/2addr v0, v2
int-to-long v2, v5
and-long/2addr v2, v10
const/16 v4, 0x28
shl-long/2addr v2, v4
or-long/2addr v0, v2
int-to-long v2, v6
and-long/2addr v2, v10
const/16 v4, 0x30
shl-long/2addr v2, v4
or-long/2addr v0, v2
int-to-long v2, v7
and-long/2addr v2, v10
const/16 v4, 0x38
shl-long/2addr v2, v4
or-long/2addr v0, v2
return-wide v0
.end method
.method public s()I
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v0
if-ltz v0, :cond_7
return v0
:cond_7
and-int/lit8 v0, v0, 0x7f
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v1
if-ltz v1, :cond_13
shl-int/lit8 v1, v1, 0x7
:goto_11
or-int/2addr v0, v1
goto :goto_50
:cond_13
and-int/lit8 v1, v1, 0x7f
shl-int/lit8 v1, v1, 0x7
or-int/2addr v0, v1
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v1
if-ltz v1, :cond_21
shl-int/lit8 v1, v1, 0xe
goto :goto_11
:cond_21
and-int/lit8 v1, v1, 0x7f
shl-int/lit8 v1, v1, 0xe
or-int/2addr v0, v1
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v1
if-ltz v1, :cond_2f
shl-int/lit8 v1, v1, 0x15
goto :goto_11
:cond_2f
and-int/lit8 v1, v1, 0x7f
shl-int/lit8 v1, v1, 0x15
or-int/2addr v0, v1
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v1
shl-int/lit8 v2, v1, 0x1c
or-int/2addr v0, v2
if-gez v1, :cond_50
const/4 v1, 0x0
:goto_3e
const/4 v2, 0x5
if-ge v1, v2, :cond_4b
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v2
if-ltz v2, :cond_48
return v0
:cond_48
add-int/lit8 v1, v1, 0x1
goto :goto_3e
:cond_4b
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->d()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
throw v0
:cond_50
:goto_50
return v0
.end method
.method public t()J
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
const-wide/16 v1, 0x0
:goto_3
const/16 v3, 0x40
if-ge v0, v3, :cond_18
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->o()B
move-result v3
and-int/lit8 v4, v3, 0x7f
int-to-long v4, v4
shl-long/2addr v4, v0
or-long/2addr v1, v4
and-int/lit16 v3, v3, 0x80
if-nez v3, :cond_15
return-wide v1
:cond_15
add-int/lit8 v0, v0, 0x7
goto :goto_3
:cond_18
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->d()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
throw v0
.end method
.method public u()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->c()Z
move-result v0
if-eqz v0, :cond_a
const/4 v0, 0x0
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->f:I
return v0
:cond_a
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result v0
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->f:I
invoke-static {v0}, Lcom/google/protobuf/WireFormat;->a(I)I
move-result v0
if-eqz v0, :cond_19
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->f:I
return v0
:cond_19
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->b()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
throw v0
.end method
.method public x(I)Z
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->b(I)I
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_3b
if-eq v0, v1, :cond_37
const/4 v2, 0x2
if-eq v0, v2, :cond_2f
const/4 v2, 0x3
const/4 v3, 0x4
if-eq v0, v2, :cond_20
if-eq v0, v3, :cond_1e
const/4 p1, 0x5
if-ne v0, p1, :cond_19
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->q()I
return v1
:cond_19
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->c()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_1e
const/4 p1, 0x0
return p1
:cond_20
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->y()V
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->a(I)I
move-result p1
invoke-static {p1, v3}, Lcom/google/protobuf/WireFormat;->c(II)I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->a(I)V
return v1
:cond_2f
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->s()I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/protobuf/CodedInputStream;->z(I)V
return v1
:cond_37
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->r()J
return v1
:cond_3b
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->l()I
return v1
.end method
.method public y()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
:cond_0
invoke-virtual {p0}, Lcom/google/protobuf/CodedInputStream;->u()I
move-result v0
if-eqz v0, :cond_c
invoke-virtual {p0, v0}, Lcom/google/protobuf/CodedInputStream;->x(I)Z
move-result v0
if-nez v0, :cond_0
:cond_c
return-void
.end method
.method public z(I)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p1, :cond_39
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->g:I
iget v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
add-int v2, v0, v1
add-int/2addr v2, p1
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->h:I
if-gt v2, v3, :cond_2f
iget v0, p0, Lcom/google/protobuf/CodedInputStream;->b:I
sub-int v2, v0, v1
if-gt p1, v2, :cond_17
add-int/2addr v1, p1
iput v1, p0, Lcom/google/protobuf/CodedInputStream;->d:I
goto :goto_2e
:cond_17
sub-int v1, v0, v1
iput v0, p0, Lcom/google/protobuf/CodedInputStream;->d:I
const/4 v0, 0x1
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->w(Z)Z
:goto_1f
sub-int v2, p1, v1
iget v3, p0, Lcom/google/protobuf/CodedInputStream;->b:I
if-le v2, v3, :cond_2c
add-int/2addr v1, v3
iput v3, p0, Lcom/google/protobuf/CodedInputStream;->d:I
invoke-direct {p0, v0}, Lcom/google/protobuf/CodedInputStream;->w(Z)Z
goto :goto_1f
:cond_2c
iput v2, p0, Lcom/google/protobuf/CodedInputStream;->d:I
:goto_2e
return-void
:cond_2f
sub-int/2addr v3, v0
sub-int/2addr v3, v1
invoke-virtual {p0, v3}, Lcom/google/protobuf/CodedInputStream;->z(I)V
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->i()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_39
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->e()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method