g.smali
.class public final Lcom/google/protobuf/g;
.super Ljava/lang/Object;
.source "CodedInputStream.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/protobuf/g$a;
}
.end annotation
# instance fields
.field private final a:[B
.field private final b:Z
.field private c:I
.field private d:I
.field private e:I
.field private final f:Ljava/io/InputStream;
.field private g:I
.field private h:Z
.field private i:I
.field private j:I
.field private k:I
.field private l:I
.field private m:I
.field private n:Lcom/google/protobuf/g$a;
# direct methods
.method private constructor <init>(Ljava/io/InputStream;I)V
.registers 5
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 14
iput-boolean v0, p0, Lcom/google/protobuf/g;->h:Z
const v1, 0x7fffffff
.line 15
iput v1, p0, Lcom/google/protobuf/g;->j:I
const/16 v1, 0x64
.line 16
iput v1, p0, Lcom/google/protobuf/g;->l:I
const/high16 v1, 0x4000000
.line 17
iput v1, p0, Lcom/google/protobuf/g;->m:I
const/4 v1, 0x0
.line 18
iput-object v1, p0, Lcom/google/protobuf/g;->n:Lcom/google/protobuf/g$a;
.line 19
new-array p2, p2, [B
iput-object p2, p0, Lcom/google/protobuf/g;->a:[B
.line 20
iput v0, p0, Lcom/google/protobuf/g;->e:I
.line 21
iput v0, p0, Lcom/google/protobuf/g;->i:I
.line 22
iput-object p1, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
.line 23
iput-boolean v0, p0, Lcom/google/protobuf/g;->b:Z
return-void
.end method
.method private constructor <init>([BIIZ)V
.registers 6
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2
iput-boolean v0, p0, Lcom/google/protobuf/g;->h:Z
const v0, 0x7fffffff
.line 3
iput v0, p0, Lcom/google/protobuf/g;->j:I
const/16 v0, 0x64
.line 4
iput v0, p0, Lcom/google/protobuf/g;->l:I
const/high16 v0, 0x4000000
.line 5
iput v0, p0, Lcom/google/protobuf/g;->m:I
const/4 v0, 0x0
.line 6
iput-object v0, p0, Lcom/google/protobuf/g;->n:Lcom/google/protobuf/g$a;
.line 7
iput-object p1, p0, Lcom/google/protobuf/g;->a:[B
add-int/2addr p3, p2
.line 8
iput p3, p0, Lcom/google/protobuf/g;->c:I
.line 9
iput p2, p0, Lcom/google/protobuf/g;->e:I
neg-int p1, p2
.line 10
iput p1, p0, Lcom/google/protobuf/g;->i:I
.line 11
iput-object v0, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
.line 12
iput-boolean p4, p0, Lcom/google/protobuf/g;->b:Z
return-void
.end method
.method public static a(ILjava/io/InputStream;)I
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
and-int/lit16 v0, p0, 0x80
if-nez v0, :cond_5
return p0
:cond_5
and-int/lit8 p0, p0, 0x7f
const/4 v0, 0x7
:goto_8
const/16 v1, 0x20
const/4 v2, -0x1
if-ge v0, v1, :cond_24
.line 18
invoke-virtual {p1}, Ljava/io/InputStream;->read()I
move-result v1
if-eq v1, v2, :cond_1f
and-int/lit8 v2, v1, 0x7f
shl-int/2addr v2, v0
or-int/2addr p0, v2
and-int/lit16 v1, v1, 0x80
if-nez v1, :cond_1c
return p0
:cond_1c
add-int/lit8 v0, v0, 0x7
goto :goto_8
.line 19
:cond_1f
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p0
throw p0
:cond_24
:goto_24
const/16 v1, 0x40
if-ge v0, v1, :cond_3b
.line 20
invoke-virtual {p1}, Ljava/io/InputStream;->read()I
move-result v1
if-eq v1, v2, :cond_36
and-int/lit16 v1, v1, 0x80
if-nez v1, :cond_33
return p0
:cond_33
add-int/lit8 v0, v0, 0x7
goto :goto_24
.line 21
:cond_36
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p0
throw p0
.line 22
:cond_3b
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->malformedVarint()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p0
goto :goto_41
:goto_40
throw p0
:goto_41
goto :goto_40
.end method
.method public static a(Ljava/io/InputStream;)Lcom/google/protobuf/g;
.registers 3
.line 1
new-instance v0, Lcom/google/protobuf/g;
const/16 v1, 0x1000
invoke-direct {v0, p0, v1}, Lcom/google/protobuf/g;-><init>(Ljava/io/InputStream;I)V
return-object v0
.end method
.method public static a([B)Lcom/google/protobuf/g;
.registers 3
.line 2
array-length v0, p0
const/4 v1, 0x0
invoke-static {p0, v1, v0}, Lcom/google/protobuf/g;->a([BII)Lcom/google/protobuf/g;
move-result-object p0
return-object p0
.end method
.method public static a([BII)Lcom/google/protobuf/g;
.registers 4
const/4 v0, 0x0
.line 3
invoke-static {p0, p1, p2, v0}, Lcom/google/protobuf/g;->a([BIIZ)Lcom/google/protobuf/g;
move-result-object p0
return-object p0
.end method
.method static a([BIIZ)Lcom/google/protobuf/g;
.registers 5
.line 4
new-instance v0, Lcom/google/protobuf/g;
invoke-direct {v0, p0, p1, p2, p3}, Lcom/google/protobuf/g;-><init>([BIIZ)V
.line 5
:try_start_5
invoke-virtual {v0, p2}, Lcom/google/protobuf/g;->c(I)I
:try_end_8
.catch Lcom/google/protobuf/InvalidProtocolBufferException; {:try_start_5 .. :try_end_8} :catch_9
return-object v0
:catch_9
move-exception p0
.line 6
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/Throwable;)V
throw p1
.end method
.method private g(I)[B
.registers 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-gtz p1, :cond_c
if-nez p1, :cond_7
.line 2
sget-object p1, Lcom/google/protobuf/r;->c:[B
return-object p1
.line 3
:cond_7
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->negativeSize()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.line 4
:cond_c
iget v0, p0, Lcom/google/protobuf/g;->i:I
iget v1, p0, Lcom/google/protobuf/g;->e:I
add-int v2, v0, v1
add-int/2addr v2, p1
.line 5
iget v3, p0, Lcom/google/protobuf/g;->m:I
if-gt v2, v3, :cond_b5
.line 6
iget v3, p0, Lcom/google/protobuf/g;->j:I
if-gt v2, v3, :cond_ab
.line 7
iget-object v2, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
if-eqz v2, :cond_a6
.line 8
iget v3, p0, Lcom/google/protobuf/g;->c:I
sub-int v4, v3, v1
add-int/2addr v0, v3
.line 9
iput v0, p0, Lcom/google/protobuf/g;->i:I
const/4 v0, 0x0
.line 10
iput v0, p0, Lcom/google/protobuf/g;->e:I
.line 11
iput v0, p0, Lcom/google/protobuf/g;->c:I
sub-int v3, p1, v4
const/4 v5, -0x1
const/16 v6, 0x1000
if-lt v3, v6, :cond_85
.line 12
invoke-virtual {v2}, Ljava/io/InputStream;->available()I
move-result v2
if-gt v3, v2, :cond_39
goto :goto_85
.line 13
:cond_39
new-instance v2, Ljava/util/ArrayList;
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
:goto_3e
if-lez v3, :cond_66
.line 14
invoke-static {v3, v6}, Ljava/lang/Math;->min(II)I
move-result v7
new-array v7, v7, [B
const/4 v8, 0x0
.line 15
:goto_47
array-length v9, v7
if-ge v8, v9, :cond_60
.line 16
iget-object v9, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
array-length v10, v7
sub-int/2addr v10, v8
invoke-virtual {v9, v7, v8, v10}, Ljava/io/InputStream;->read([BII)I
move-result v9
if-eq v9, v5, :cond_5b
.line 17
iget v10, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v10, v9
iput v10, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v8, v9
goto :goto_47
.line 18
:cond_5b
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.line 19
:cond_60
array-length v8, v7
sub-int/2addr v3, v8
.line 20
invoke-interface {v2, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_3e
.line 21
:cond_66
new-array p1, p1, [B
.line 22
iget-object v3, p0, Lcom/google/protobuf/g;->a:[B
invoke-static {v3, v1, p1, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 23
invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_71
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_84
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
check-cast v2, [B
.line 24
array-length v3, v2
invoke-static {v2, v0, p1, v4, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 25
array-length v2, v2
add-int/2addr v4, v2
goto :goto_71
:cond_84
return-object p1
.line 26
:cond_85
:goto_85
new-array v2, p1, [B
.line 27
iget-object v3, p0, Lcom/google/protobuf/g;->a:[B
invoke-static {v3, v1, v2, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 28
:goto_8c
array-length v0, v2
if-ge v4, v0, :cond_a5
.line 29
iget-object v0, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
sub-int v1, p1, v4
invoke-virtual {v0, v2, v4, v1}, Ljava/io/InputStream;->read([BII)I
move-result v0
if-eq v0, v5, :cond_a0
.line 30
iget v1, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v1, v0
iput v1, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v4, v0
goto :goto_8c
.line 31
:cond_a0
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_a5
return-object v2
.line 32
:cond_a6
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_ab
sub-int/2addr v3, v0
sub-int/2addr v3, v1
.line 33
invoke-virtual {p0, v3}, Lcom/google/protobuf/g;->f(I)V
.line 34
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.line 35
:cond_b5
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->sizeLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
goto :goto_bb
:goto_ba
throw p1
:goto_bb
goto :goto_ba
.end method
.method private h(I)V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
invoke-direct {p0, p1}, Lcom/google/protobuf/g;->j(I)Z
move-result p1
if-eqz p1, :cond_7
return-void
.line 3
:cond_7
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method private i(I)V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
if-ltz p1, :cond_31
.line 2
iget v0, p0, Lcom/google/protobuf/g;->i:I
iget v1, p0, Lcom/google/protobuf/g;->e:I
add-int v2, v0, v1
add-int/2addr v2, p1
iget v3, p0, Lcom/google/protobuf/g;->j:I
if-gt v2, v3, :cond_27
.line 3
iget v0, p0, Lcom/google/protobuf/g;->c:I
sub-int v1, v0, v1
.line 4
iput v0, p0, Lcom/google/protobuf/g;->e:I
const/4 v0, 0x1
.line 5
invoke-direct {p0, v0}, Lcom/google/protobuf/g;->h(I)V
:goto_17
sub-int v2, p1, v1
.line 6
iget v3, p0, Lcom/google/protobuf/g;->c:I
if-le v2, v3, :cond_24
add-int/2addr v1, v3
.line 7
iput v3, p0, Lcom/google/protobuf/g;->e:I
.line 8
invoke-direct {p0, v0}, Lcom/google/protobuf/g;->h(I)V
goto :goto_17
.line 9
:cond_24
iput v2, p0, Lcom/google/protobuf/g;->e:I
return-void
:cond_27
sub-int/2addr v3, v0
sub-int/2addr v3, v1
.line 10
invoke-virtual {p0, v3}, Lcom/google/protobuf/g;->f(I)V
.line 11
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.line 12
:cond_31
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->negativeSize()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
goto :goto_37
:goto_36
throw p1
:goto_37
goto :goto_36
.end method
.method private j(I)Z
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/protobuf/g;->e:I
add-int v1, v0, p1
iget v2, p0, Lcom/google/protobuf/g;->c:I
if-le v1, v2, :cond_8c
.line 2
iget v1, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v1, v0
add-int/2addr v1, p1
iget v0, p0, Lcom/google/protobuf/g;->j:I
const/4 v2, 0x0
if-le v1, v0, :cond_12
return v2
.line 3
:cond_12
iget-object v0, p0, Lcom/google/protobuf/g;->n:Lcom/google/protobuf/g$a;
if-eqz v0, :cond_19
.line 4
invoke-interface {v0}, Lcom/google/protobuf/g$a;->a()V
.line 5
:cond_19
iget-object v0, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
if-eqz v0, :cond_8b
.line 6
iget v0, p0, Lcom/google/protobuf/g;->e:I
if-lez v0, :cond_37
.line 7
iget v1, p0, Lcom/google/protobuf/g;->c:I
if-le v1, v0, :cond_2b
.line 8
iget-object v3, p0, Lcom/google/protobuf/g;->a:[B
sub-int/2addr v1, v0
invoke-static {v3, v0, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
.line 9
:cond_2b
iget v1, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v1, v0
iput v1, p0, Lcom/google/protobuf/g;->i:I
.line 10
iget v1, p0, Lcom/google/protobuf/g;->c:I
sub-int/2addr v1, v0
iput v1, p0, Lcom/google/protobuf/g;->c:I
.line 11
iput v2, p0, Lcom/google/protobuf/g;->e:I
.line 12
:cond_37
iget-object v0, p0, Lcom/google/protobuf/g;->f:Ljava/io/InputStream;
iget-object v1, p0, Lcom/google/protobuf/g;->a:[B
iget v3, p0, Lcom/google/protobuf/g;->c:I
array-length v4, v1
sub-int/2addr v4, v3
invoke-virtual {v0, v1, v3, v4}, Ljava/io/InputStream;->read([BII)I
move-result v0
if-eqz v0, :cond_6f
const/4 v1, -0x1
if-lt v0, v1, :cond_6f
.line 13
iget-object v1, p0, Lcom/google/protobuf/g;->a:[B
array-length v1, v1
if-gt v0, v1, :cond_6f
if-lez v0, :cond_8b
.line 14
iget v1, p0, Lcom/google/protobuf/g;->c:I
add-int/2addr v1, v0
iput v1, p0, Lcom/google/protobuf/g;->c:I
.line 15
iget v0, p0, Lcom/google/protobuf/g;->i:I
add-int/2addr v0, p1
iget v1, p0, Lcom/google/protobuf/g;->m:I
sub-int/2addr v0, v1
if-gtz v0, :cond_6a
.line 16
invoke-direct {p0}, Lcom/google/protobuf/g;->t()V
.line 17
iget v0, p0, Lcom/google/protobuf/g;->c:I
if-lt v0, p1, :cond_65
const/4 p1, 0x1
goto :goto_69
:cond_65
invoke-direct {p0, p1}, Lcom/google/protobuf/g;->j(I)Z
move-result p1
:goto_69
return p1
.line 18
:cond_6a
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->sizeLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.line 19
:cond_6f
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "InputStream#read(byte[]) returned invalid result: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, "\nThe InputStream implementation is buggy."
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, 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_8b
return v2
.line 20
:cond_8c
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "refillBuffer() called when "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " bytes were already available in buffer"
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method private t()V
.registers 4
.line 1
iget v0, p0, Lcom/google/protobuf/g;->c:I
iget v1, p0, Lcom/google/protobuf/g;->d:I
add-int/2addr v0, v1
iput v0, p0, Lcom/google/protobuf/g;->c:I
.line 2
iget v0, p0, Lcom/google/protobuf/g;->i:I
iget v1, p0, Lcom/google/protobuf/g;->c:I
add-int/2addr v0, v1
.line 3
iget v2, p0, Lcom/google/protobuf/g;->j:I
if-le v0, v2, :cond_19
sub-int/2addr v0, v2
.line 4
iput v0, p0, Lcom/google/protobuf/g;->d:I
.line 5
iget v0, p0, Lcom/google/protobuf/g;->d:I
sub-int/2addr v1, v0
iput v1, p0, Lcom/google/protobuf/g;->c:I
goto :goto_1c
:cond_19
const/4 v0, 0x0
.line 6
iput v0, p0, Lcom/google/protobuf/g;->d:I
:goto_1c
return-void
.end method
.method private u()V
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/protobuf/g;->c:I
iget v1, p0, Lcom/google/protobuf/g;->e:I
sub-int/2addr v0, v1
const/16 v2, 0xa
if-lt v0, v2, :cond_1b
.line 2
iget-object v0, p0, Lcom/google/protobuf/g;->a:[B
const/4 v3, 0x0
:goto_c
if-ge v3, v2, :cond_1b
add-int/lit8 v4, v1, 0x1
.line 3
aget-byte v1, v0, v1
if-ltz v1, :cond_17
.line 4
iput v4, p0, Lcom/google/protobuf/g;->e:I
return-void
:cond_17
add-int/lit8 v3, v3, 0x1
move v1, v4
goto :goto_c
.line 5
:cond_1b
invoke-direct {p0}, Lcom/google/protobuf/g;->v()V
return-void
.end method
.method private v()V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const/4 v0, 0x0
:goto_1
const/16 v1, 0xa
if-ge v0, v1, :cond_f
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->j()B
move-result v1
if-ltz v1, :cond_c
return-void
:cond_c
add-int/lit8 v0, v0, 0x1
goto :goto_1
.line 2
:cond_f
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->malformedVarint()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
goto :goto_15
:goto_14
throw v0
:goto_15
goto :goto_14
.end method
# virtual methods
.method public a()I
.registers 4
.line 23
iget v0, p0, Lcom/google/protobuf/g;->j:I
const v1, 0x7fffffff
if-ne v0, v1, :cond_9
const/4 v0, -0x1
return v0
.line 24
:cond_9
iget v1, p0, Lcom/google/protobuf/g;->i:I
iget v2, p0, Lcom/google/protobuf/g;->e:I
add-int/2addr v1, v2
sub-int/2addr v0, v1
return v0
.end method
.method public a(Lcom/google/protobuf/A;Lcom/google/protobuf/l;)Lcom/google/protobuf/x;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lcom/google/protobuf/x;",
">(",
"Lcom/google/protobuf/A<",
"TT;>;",
"Lcom/google/protobuf/l;",
")TT;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 9
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result v0
.line 10
iget v1, p0, Lcom/google/protobuf/g;->k:I
iget v2, p0, Lcom/google/protobuf/g;->l:I
if-ge v1, v2, :cond_28
.line 11
invoke-virtual {p0, v0}, Lcom/google/protobuf/g;->c(I)I
move-result v0
.line 12
iget v1, p0, Lcom/google/protobuf/g;->k:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lcom/google/protobuf/g;->k:I
.line 13
invoke-interface {p1, p0, p2}, Lcom/google/protobuf/A;->b(Lcom/google/protobuf/g;Lcom/google/protobuf/l;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/google/protobuf/x;
const/4 p2, 0x0
.line 14
invoke-virtual {p0, p2}, Lcom/google/protobuf/g;->a(I)V
.line 15
iget p2, p0, Lcom/google/protobuf/g;->k:I
add-int/lit8 p2, p2, -0x1
iput p2, p0, Lcom/google/protobuf/g;->k:I
.line 16
invoke-virtual {p0, v0}, Lcom/google/protobuf/g;->b(I)V
return-object p1
.line 17
:cond_28
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->recursionLimitExceeded()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public a(I)V
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
.line 7
iget v0, p0, Lcom/google/protobuf/g;->g:I
if-ne v0, p1, :cond_5
return-void
.line 8
:cond_5
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidEndTag()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public b(I)V
.registers 2
.line 1
iput p1, p0, Lcom/google/protobuf/g;->j:I
.line 2
invoke-direct {p0}, Lcom/google/protobuf/g;->t()V
return-void
.end method
.method public b()Z
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 3
iget v0, p0, Lcom/google/protobuf/g;->e:I
iget v1, p0, Lcom/google/protobuf/g;->c:I
const/4 v2, 0x1
if-ne v0, v1, :cond_e
invoke-direct {p0, v2}, Lcom/google/protobuf/g;->j(I)Z
move-result v0
if-nez v0, :cond_e
goto :goto_f
:cond_e
const/4 v2, 0x0
:goto_f
return v2
.end method
.method public c(I)I
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
if-ltz p1, :cond_17
.line 2
iget v0, p0, Lcom/google/protobuf/g;->i:I
iget v1, p0, Lcom/google/protobuf/g;->e:I
add-int/2addr v0, v1
add-int/2addr p1, v0
.line 3
iget v0, p0, Lcom/google/protobuf/g;->j:I
if-gt p1, v0, :cond_12
.line 4
iput p1, p0, Lcom/google/protobuf/g;->j:I
.line 5
invoke-direct {p0}, Lcom/google/protobuf/g;->t()V
return v0
.line 6
:cond_12
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->truncatedMessage()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.line 7
:cond_17
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->negativeSize()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
.end method
.method public c()Z
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->n()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-eqz v4, :cond_c
const/4 v0, 0x1
goto :goto_d
:cond_c
const/4 v0, 0x0
:goto_d
return v0
.end method
.method public d(I)I
.registers 5
if-ltz p1, :cond_7
.line 9
iget v0, p0, Lcom/google/protobuf/g;->m:I
.line 10
iput p1, p0, Lcom/google/protobuf/g;->m:I
return v0
.line 11
:cond_7
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Size limit cannot be negative: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public d()Lcom/google/protobuf/ByteString;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result v0
.line 2
iget v1, p0, Lcom/google/protobuf/g;->c:I
iget v2, p0, Lcom/google/protobuf/g;->e:I
sub-int/2addr v1, v2
if-gt v0, v1, :cond_2a
if-lez v0, :cond_2a
.line 3
iget-boolean v1, p0, Lcom/google/protobuf/g;->b:Z
if-eqz v1, :cond_1c
iget-boolean v1, p0, Lcom/google/protobuf/g;->h:Z
if-eqz v1, :cond_1c
iget-object v1, p0, Lcom/google/protobuf/g;->a:[B
.line 4
invoke-static {v1, v2, v0}, Lcom/google/protobuf/ByteString;->wrap([BII)Lcom/google/protobuf/ByteString;
move-result-object v1
goto :goto_24
:cond_1c
iget-object v1, p0, Lcom/google/protobuf/g;->a:[B
iget v2, p0, Lcom/google/protobuf/g;->e:I
.line 5
invoke-static {v1, v2, v0}, Lcom/google/protobuf/ByteString;->copyFrom([BII)Lcom/google/protobuf/ByteString;
move-result-object v1
.line 6
:goto_24
iget v2, p0, Lcom/google/protobuf/g;->e:I
add-int/2addr v2, v0
iput v2, p0, Lcom/google/protobuf/g;->e:I
return-object v1
:cond_2a
if-nez v0, :cond_2f
.line 7
sget-object v0, Lcom/google/protobuf/ByteString;->EMPTY:Lcom/google/protobuf/ByteString;
return-object v0
.line 8
:cond_2f
invoke-direct {p0, v0}, Lcom/google/protobuf/g;->g(I)[B
move-result-object v0
invoke-static {v0}, Lcom/google/protobuf/ByteString;->wrap([B)Lcom/google/protobuf/ByteString;
move-result-object v0
return-object v0
.end method
.method public e()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 10
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result v0
return v0
.end method
.method public e(I)Z
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->b(I)I
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_3d
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
.line 2
invoke-virtual {p0, v3}, Lcom/google/protobuf/g;->f(I)V
return v1
.line 3
:cond_19
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidWireType()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object p1
throw p1
:cond_1e
const/4 p1, 0x0
return p1
.line 4
:cond_20
invoke-virtual {p0}, Lcom/google/protobuf/g;->s()V
.line 5
invoke-static {p1}, Lcom/google/protobuf/WireFormat;->a(I)I
move-result p1
invoke-static {p1, v3}, Lcom/google/protobuf/WireFormat;->a(II)I
move-result p1
.line 6
invoke-virtual {p0, p1}, Lcom/google/protobuf/g;->a(I)V
return v1
.line 7
:cond_2f
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result p1
invoke-virtual {p0, p1}, Lcom/google/protobuf/g;->f(I)V
return v1
:cond_37
const/16 p1, 0x8
.line 8
invoke-virtual {p0, p1}, Lcom/google/protobuf/g;->f(I)V
return v1
.line 9
:cond_3d
invoke-direct {p0}, Lcom/google/protobuf/g;->u()V
return v1
.end method
.method public f()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->k()I
move-result v0
return v0
.end method
.method public f(I)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 2
iget v0, p0, Lcom/google/protobuf/g;->c:I
iget v1, p0, Lcom/google/protobuf/g;->e:I
sub-int/2addr v0, v1
if-gt p1, v0, :cond_d
if-ltz p1, :cond_d
add-int/2addr v1, p1
.line 3
iput v1, p0, Lcom/google/protobuf/g;->e:I
goto :goto_10
.line 4
:cond_d
invoke-direct {p0, p1}, Lcom/google/protobuf/g;->i(I)V
:goto_10
return-void
.end method
.method public g()J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->l()J
move-result-wide v0
return-wide v0
.end method
.method public h()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result v0
return v0
.end method
.method public i()J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->n()J
move-result-wide v0
return-wide v0
.end method
.method public j()B
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 21
iget v0, p0, Lcom/google/protobuf/g;->e:I
iget v1, p0, Lcom/google/protobuf/g;->c:I
if-ne v0, v1, :cond_a
const/4 v0, 0x1
.line 22
invoke-direct {p0, v0}, Lcom/google/protobuf/g;->h(I)V
.line 23
:cond_a
iget-object v0, p0, Lcom/google/protobuf/g;->a:[B
iget v1, p0, Lcom/google/protobuf/g;->e:I
add-int/lit8 v2, v1, 0x1
iput v2, p0, Lcom/google/protobuf/g;->e:I
aget-byte v0, v0, v1
return v0
.end method
.method public k()I
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/protobuf/g;->e:I
.line 2
iget v1, p0, Lcom/google/protobuf/g;->c:I
sub-int/2addr v1, v0
const/4 v2, 0x4
if-ge v1, v2, :cond_d
.line 3
invoke-direct {p0, v2}, Lcom/google/protobuf/g;->h(I)V
.line 4
iget v0, p0, Lcom/google/protobuf/g;->e:I
.line 5
:cond_d
iget-object v1, p0, Lcom/google/protobuf/g;->a:[B
add-int/lit8 v2, v0, 0x4
.line 6
iput v2, p0, Lcom/google/protobuf/g;->e:I
.line 7
aget-byte v2, v1, v0
and-int/lit16 v2, v2, 0xff
add-int/lit8 v3, v0, 0x1
aget-byte v3, v1, v3
and-int/lit16 v3, v3, 0xff
shl-int/lit8 v3, v3, 0x8
or-int/2addr v2, v3
add-int/lit8 v3, v0, 0x2
aget-byte v3, v1, v3
and-int/lit16 v3, v3, 0xff
shl-int/lit8 v3, v3, 0x10
or-int/2addr v2, v3
add-int/lit8 v0, v0, 0x3
aget-byte v0, v1, v0
and-int/lit16 v0, v0, 0xff
shl-int/lit8 v0, v0, 0x18
or-int/2addr v0, v2
return v0
.end method
.method public l()J
.registers 10
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/protobuf/g;->e:I
.line 2
iget v1, p0, Lcom/google/protobuf/g;->c:I
sub-int/2addr v1, v0
const/16 v2, 0x8
if-ge v1, v2, :cond_e
.line 3
invoke-direct {p0, v2}, Lcom/google/protobuf/g;->h(I)V
.line 4
iget v0, p0, Lcom/google/protobuf/g;->e:I
.line 5
:cond_e
iget-object v1, p0, Lcom/google/protobuf/g;->a:[B
add-int/lit8 v3, v0, 0x8
.line 6
iput v3, p0, Lcom/google/protobuf/g;->e:I
.line 7
aget-byte v3, v1, v0
int-to-long v3, v3
const-wide/16 v5, 0xff
and-long/2addr v3, v5
add-int/lit8 v7, v0, 0x1
aget-byte v7, v1, v7
int-to-long v7, v7
and-long/2addr v7, v5
shl-long/2addr v7, v2
or-long/2addr v3, v7
add-int/lit8 v2, v0, 0x2
aget-byte v2, v1, v2
int-to-long v7, v2
and-long/2addr v7, v5
const/16 v2, 0x10
shl-long/2addr v7, v2
or-long/2addr v3, v7
add-int/lit8 v2, v0, 0x3
aget-byte v2, v1, v2
int-to-long v7, v2
and-long/2addr v7, v5
const/16 v2, 0x18
shl-long/2addr v7, v2
or-long/2addr v3, v7
add-int/lit8 v2, v0, 0x4
aget-byte v2, v1, v2
int-to-long v7, v2
and-long/2addr v7, v5
const/16 v2, 0x20
shl-long/2addr v7, v2
or-long/2addr v3, v7
add-int/lit8 v2, v0, 0x5
aget-byte v2, v1, v2
int-to-long v7, v2
and-long/2addr v7, v5
const/16 v2, 0x28
shl-long/2addr v7, v2
or-long/2addr v3, v7
add-int/lit8 v2, v0, 0x6
aget-byte v2, v1, v2
int-to-long v7, v2
and-long/2addr v7, v5
const/16 v2, 0x30
shl-long/2addr v7, v2
or-long/2addr v3, v7
add-int/lit8 v0, v0, 0x7
aget-byte v0, v1, v0
int-to-long v0, v0
and-long/2addr v0, v5
const/16 v2, 0x38
shl-long/2addr v0, v2
or-long/2addr v0, v3
return-wide v0
.end method
.method public m()I
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/protobuf/g;->e:I
.line 2
iget v1, p0, Lcom/google/protobuf/g;->c:I
if-ne v1, v0, :cond_7
goto :goto_6a
.line 3
:cond_7
iget-object v2, p0, Lcom/google/protobuf/g;->a:[B
add-int/lit8 v3, v0, 0x1
.line 4
aget-byte v0, v2, v0
if-ltz v0, :cond_12
.line 5
iput v3, p0, Lcom/google/protobuf/g;->e:I
return v0
:cond_12
sub-int/2addr v1, v3
const/16 v4, 0x9
if-ge v1, v4, :cond_18
goto :goto_6a
:cond_18
add-int/lit8 v1, v3, 0x1
.line 6
aget-byte v3, v2, v3
shl-int/lit8 v3, v3, 0x7
xor-int/2addr v0, v3
if-gez v0, :cond_24
xor-int/lit8 v0, v0, -0x80
goto :goto_70
:cond_24
add-int/lit8 v3, v1, 0x1
.line 7
aget-byte v1, v2, v1
shl-int/lit8 v1, v1, 0xe
xor-int/2addr v0, v1
if-ltz v0, :cond_31
xor-int/lit16 v0, v0, 0x3f80
:cond_2f
move v1, v3
goto :goto_70
:cond_31
add-int/lit8 v1, v3, 0x1
.line 8
aget-byte v3, v2, v3
shl-int/lit8 v3, v3, 0x15
xor-int/2addr v0, v3
if-gez v0, :cond_3f
const v2, -0x1fc080
xor-int/2addr v0, v2
goto :goto_70
:cond_3f
add-int/lit8 v3, v1, 0x1
.line 9
aget-byte v1, v2, v1
shl-int/lit8 v4, v1, 0x1c
xor-int/2addr v0, v4
const v4, 0xfe03f80
xor-int/2addr v0, v4
if-gez v1, :cond_2f
add-int/lit8 v1, v3, 0x1
.line 10
aget-byte v3, v2, v3
if-gez v3, :cond_70
add-int/lit8 v3, v1, 0x1
aget-byte v1, v2, v1
if-gez v1, :cond_2f
add-int/lit8 v1, v3, 0x1
aget-byte v3, v2, v3
if-gez v3, :cond_70
add-int/lit8 v3, v1, 0x1
aget-byte v1, v2, v1
if-gez v1, :cond_2f
add-int/lit8 v1, v3, 0x1
aget-byte v2, v2, v3
if-gez v2, :cond_70
.line 11
:goto_6a
invoke-virtual {p0}, Lcom/google/protobuf/g;->o()J
move-result-wide v0
long-to-int v1, v0
return v1
.line 12
:cond_70
:goto_70
iput v1, p0, Lcom/google/protobuf/g;->e:I
return v0
.end method
.method public n()J
.registers 12
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
iget v0, p0, Lcom/google/protobuf/g;->e:I
.line 2
iget v1, p0, Lcom/google/protobuf/g;->c:I
if-ne v1, v0, :cond_8
goto/16 :goto_b6
.line 3
:cond_8
iget-object v2, p0, Lcom/google/protobuf/g;->a:[B
add-int/lit8 v3, v0, 0x1
.line 4
aget-byte v0, v2, v0
if-ltz v0, :cond_14
.line 5
iput v3, p0, Lcom/google/protobuf/g;->e:I
int-to-long v0, v0
return-wide v0
:cond_14
sub-int/2addr v1, v3
const/16 v4, 0x9
if-ge v1, v4, :cond_1b
goto/16 :goto_b6
:cond_1b
add-int/lit8 v1, v3, 0x1
.line 6
aget-byte v3, v2, v3
shl-int/lit8 v3, v3, 0x7
xor-int/2addr v0, v3
if-gez v0, :cond_2a
xor-int/lit8 v0, v0, -0x80
:goto_26
int-to-long v2, v0
move-wide v3, v2
goto/16 :goto_bb
:cond_2a
add-int/lit8 v3, v1, 0x1
.line 7
aget-byte v1, v2, v1
shl-int/lit8 v1, v1, 0xe
xor-int/2addr v0, v1
if-ltz v0, :cond_3b
xor-int/lit16 v0, v0, 0x3f80
int-to-long v0, v0
move-wide v9, v0
move v1, v3
move-wide v3, v9
goto/16 :goto_bb
:cond_3b
add-int/lit8 v1, v3, 0x1
.line 8
aget-byte v3, v2, v3
shl-int/lit8 v3, v3, 0x15
xor-int/2addr v0, v3
if-gez v0, :cond_49
const v2, -0x1fc080
xor-int/2addr v0, v2
goto :goto_26
:cond_49
int-to-long v3, v0
add-int/lit8 v0, v1, 0x1
.line 9
aget-byte v1, v2, v1
int-to-long v5, v1
const/16 v1, 0x1c
shl-long/2addr v5, v1
xor-long/2addr v3, v5
const-wide/16 v5, 0x0
cmp-long v1, v3, v5
if-ltz v1, :cond_60
const-wide/32 v1, 0xfe03f80
:goto_5c
xor-long/2addr v1, v3
move-wide v3, v1
:cond_5e
move v1, v0
goto :goto_bb
:cond_60
add-int/lit8 v1, v0, 0x1
.line 10
aget-byte v0, v2, v0
int-to-long v7, v0
const/16 v0, 0x23
shl-long/2addr v7, v0
xor-long/2addr v3, v7
cmp-long v0, v3, v5
if-gez v0, :cond_74
const-wide v5, -0x7f01fc080L
:goto_72
xor-long/2addr v3, v5
goto :goto_bb
:cond_74
add-int/lit8 v0, v1, 0x1
.line 11
aget-byte v1, v2, v1
int-to-long v7, v1
const/16 v1, 0x2a
shl-long/2addr v7, v1
xor-long/2addr v3, v7
cmp-long v1, v3, v5
if-ltz v1, :cond_87
const-wide v1, 0x3f80fe03f80L
goto :goto_5c
:cond_87
add-int/lit8 v1, v0, 0x1
.line 12
aget-byte v0, v2, v0
int-to-long v7, v0
const/16 v0, 0x31
shl-long/2addr v7, v0
xor-long/2addr v3, v7
cmp-long v0, v3, v5
if-gez v0, :cond_9a
const-wide v5, -0x1fc07f01fc080L
goto :goto_72
:cond_9a
add-int/lit8 v0, v1, 0x1
.line 13
aget-byte v1, v2, v1
int-to-long v7, v1
const/16 v1, 0x38
shl-long/2addr v7, v1
xor-long/2addr v3, v7
const-wide v7, 0xfe03f80fe03f80L
xor-long/2addr v3, v7
cmp-long v1, v3, v5
if-gez v1, :cond_5e
add-int/lit8 v1, v0, 0x1
.line 14
aget-byte v0, v2, v0
int-to-long v7, v0
cmp-long v0, v7, v5
if-gez v0, :cond_bb
.line 15
:goto_b6
invoke-virtual {p0}, Lcom/google/protobuf/g;->o()J
move-result-wide v0
return-wide v0
.line 16
:cond_bb
:goto_bb
iput v1, p0, Lcom/google/protobuf/g;->e:I
return-wide v3
.end method
.method o()J
.registers 7
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
const-wide/16 v0, 0x0
const/4 v2, 0x0
:goto_3
const/16 v3, 0x40
if-ge v2, v3, :cond_18
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->j()B
move-result v3
and-int/lit8 v4, v3, 0x7f
int-to-long v4, v4
shl-long/2addr v4, v2
or-long/2addr v0, v4
and-int/lit16 v3, v3, 0x80
if-nez v3, :cond_15
return-wide v0
:cond_15
add-int/lit8 v2, v2, 0x7
goto :goto_3
.line 2
:cond_18
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->malformedVarint()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
goto :goto_1e
:goto_1d
throw v0
:goto_1e
goto :goto_1d
.end method
.method public p()Ljava/lang/String;
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result v0
.line 2
iget v1, p0, Lcom/google/protobuf/g;->e:I
.line 3
iget v2, p0, Lcom/google/protobuf/g;->c:I
sub-int/2addr v2, v1
const/4 v3, 0x0
if-gt v0, v2, :cond_16
if-lez v0, :cond_16
.line 4
iget-object v2, p0, Lcom/google/protobuf/g;->a:[B
add-int v3, v1, v0
.line 5
iput v3, p0, Lcom/google/protobuf/g;->e:I
move v3, v1
goto :goto_2d
:cond_16
if-nez v0, :cond_1b
const-string v0, ""
return-object v0
.line 6
:cond_1b
iget v1, p0, Lcom/google/protobuf/g;->c:I
if-gt v0, v1, :cond_29
.line 7
invoke-direct {p0, v0}, Lcom/google/protobuf/g;->h(I)V
.line 8
iget-object v2, p0, Lcom/google/protobuf/g;->a:[B
add-int/lit8 v1, v0, 0x0
.line 9
iput v1, p0, Lcom/google/protobuf/g;->e:I
goto :goto_2d
.line 10
:cond_29
invoke-direct {p0, v0}, Lcom/google/protobuf/g;->g(I)[B
move-result-object v2
:goto_2d
add-int v1, v3, v0
.line 11
invoke-static {v2, v3, v1}, Lcom/google/protobuf/Utf8;->b([BII)Z
move-result v1
if-eqz v1, :cond_3d
.line 12
new-instance v1, Ljava/lang/String;
sget-object v4, Lcom/google/protobuf/r;->a:Ljava/nio/charset/Charset;
invoke-direct {v1, v2, v3, v0, v4}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
return-object v1
.line 13
:cond_3d
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidUtf8()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
throw v0
.end method
.method public q()I
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->b()Z
move-result v0
if-eqz v0, :cond_a
const/4 v0, 0x0
.line 2
iput v0, p0, Lcom/google/protobuf/g;->g:I
return v0
.line 3
:cond_a
invoke-virtual {p0}, Lcom/google/protobuf/g;->m()I
move-result v0
iput v0, p0, Lcom/google/protobuf/g;->g:I
.line 4
iget v0, p0, Lcom/google/protobuf/g;->g:I
invoke-static {v0}, Lcom/google/protobuf/WireFormat;->a(I)I
move-result v0
if-eqz v0, :cond_1b
.line 5
iget v0, p0, Lcom/google/protobuf/g;->g:I
return v0
.line 6
:cond_1b
invoke-static {}, Lcom/google/protobuf/InvalidProtocolBufferException;->invalidTag()Lcom/google/protobuf/InvalidProtocolBufferException;
move-result-object v0
throw v0
.end method
.method public r()J
.registers 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
invoke-virtual {p0}, Lcom/google/protobuf/g;->n()J
move-result-wide v0
return-wide v0
.end method
.method public s()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
.line 1
:cond_0
invoke-virtual {p0}, Lcom/google/protobuf/g;->q()I
move-result v0
if-eqz v0, :cond_c
.line 2
invoke-virtual {p0, v0}, Lcom/google/protobuf/g;->e(I)Z
move-result v0
if-nez v0, :cond_0
:cond_c
return-void
.end method