921 lines
		
	
	
		
			16 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			921 lines
		
	
	
		
			16 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class abstract Lcom/google/protobuf/Utf8$Processor;
 | |
| .super Ljava/lang/Object;
 | |
| .source "Utf8.java"
 | |
| 
 | |
| 
 | |
| # annotations
 | |
| .annotation system Ldalvik/annotation/EnclosingClass;
 | |
|     value = Lcom/google/protobuf/Utf8;
 | |
| .end annotation
 | |
| 
 | |
| .annotation system Ldalvik/annotation/InnerClass;
 | |
|     accessFlags = 0x409
 | |
|     name = "Processor"
 | |
| .end annotation
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>()V
 | |
|     .locals 0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private static partialIsValidUtf8(Ljava/nio/ByteBuffer;II)I
 | |
|     .locals 6
 | |
| 
 | |
|     .line 7
 | |
|     invoke-static {p0, p1, p2}, Lcom/google/protobuf/Utf8;->access$200(Ljava/nio/ByteBuffer;II)I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     add-int/2addr p1, v0
 | |
| 
 | |
|     :goto_0
 | |
|     if-lt p1, p2, :cond_0
 | |
| 
 | |
|     const/4 p0, 0x0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_0
 | |
|     add-int/lit8 v0, p1, 0x1
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-gez p1, :cond_d
 | |
| 
 | |
|     const/16 v1, -0x20
 | |
| 
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     const/16 v3, -0x41
 | |
| 
 | |
|     if-ge p1, v1, :cond_4
 | |
| 
 | |
|     if-lt v0, p2, :cond_1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_1
 | |
|     const/16 v1, -0x3e
 | |
| 
 | |
|     if-lt p1, v1, :cond_3
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-le p1, v3, :cond_2
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_2
 | |
|     add-int/lit8 v0, v0, 0x1
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :cond_3
 | |
|     :goto_1
 | |
|     return v2
 | |
| 
 | |
|     :cond_4
 | |
|     const/16 v4, -0x10
 | |
| 
 | |
|     if-ge p1, v4, :cond_a
 | |
| 
 | |
|     add-int/lit8 v4, p2, -0x1
 | |
| 
 | |
|     if-lt v0, v4, :cond_5
 | |
| 
 | |
|     sub-int/2addr p2, v0
 | |
| 
 | |
|     .line 10
 | |
|     invoke-static {p0, p1, v0, p2}, Lcom/google/protobuf/Utf8;->access$300(Ljava/nio/ByteBuffer;III)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_5
 | |
|     add-int/lit8 v4, v0, 0x1
 | |
| 
 | |
|     .line 11
 | |
|     invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-gt v0, v3, :cond_9
 | |
| 
 | |
|     const/16 v5, -0x60
 | |
| 
 | |
|     if-ne p1, v1, :cond_6
 | |
| 
 | |
|     if-lt v0, v5, :cond_9
 | |
| 
 | |
|     :cond_6
 | |
|     const/16 v1, -0x13
 | |
| 
 | |
|     if-ne p1, v1, :cond_7
 | |
| 
 | |
|     if-ge v0, v5, :cond_9
 | |
| 
 | |
|     .line 12
 | |
|     :cond_7
 | |
|     invoke-virtual {p0, v4}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-le p1, v3, :cond_8
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_8
 | |
|     add-int/lit8 v4, v4, 0x1
 | |
| 
 | |
|     move p1, v4
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_9
 | |
|     :goto_2
 | |
|     return v2
 | |
| 
 | |
|     :cond_a
 | |
|     add-int/lit8 v1, p2, -0x2
 | |
| 
 | |
|     if-lt v0, v1, :cond_b
 | |
| 
 | |
|     sub-int/2addr p2, v0
 | |
| 
 | |
|     .line 13
 | |
|     invoke-static {p0, p1, v0, p2}, Lcom/google/protobuf/Utf8;->access$300(Ljava/nio/ByteBuffer;III)I
 | |
| 
 | |
|     move-result p0
 | |
| 
 | |
|     return p0
 | |
| 
 | |
|     :cond_b
 | |
|     add-int/lit8 v1, v0, 0x1
 | |
| 
 | |
|     .line 14
 | |
|     invoke-virtual {p0, v0}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-gt v0, v3, :cond_c
 | |
| 
 | |
|     shl-int/lit8 p1, p1, 0x1c
 | |
| 
 | |
|     add-int/lit8 v0, v0, 0x70
 | |
| 
 | |
|     add-int/2addr v0, p1
 | |
| 
 | |
|     shr-int/lit8 p1, v0, 0x1e
 | |
| 
 | |
|     if-nez p1, :cond_c
 | |
| 
 | |
|     add-int/lit8 p1, v1, 0x1
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {p0, v1}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-gt v0, v3, :cond_c
 | |
| 
 | |
|     add-int/lit8 v0, p1, 0x1
 | |
| 
 | |
|     .line 16
 | |
|     invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-le p1, v3, :cond_d
 | |
| 
 | |
|     :cond_c
 | |
|     return v2
 | |
| 
 | |
|     :cond_d
 | |
|     :goto_3
 | |
|     move p1, v0
 | |
| 
 | |
|     goto/16 :goto_0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public abstract encodeUtf8(Ljava/lang/CharSequence;[BII)I
 | |
| .end method
 | |
| 
 | |
| .method public final encodeUtf8(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->hasArray()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->arrayOffset()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->position()I
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     add-int/2addr v2, v0
 | |
| 
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->remaining()I
 | |
| 
 | |
|     move-result v3
 | |
| 
 | |
|     invoke-static {p1, v1, v2, v3}, Lcom/google/protobuf/Utf8;->encode(Ljava/lang/CharSequence;[BII)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     sub-int/2addr p1, v0
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p2, p1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 5
 | |
|     :cond_0
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->isDirect()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {p0, p1, p2}, Lcom/google/protobuf/Utf8$Processor;->encodeUtf8Direct(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     .line 7
 | |
|     :cond_1
 | |
|     invoke-virtual {p0, p1, p2}, Lcom/google/protobuf/Utf8$Processor;->encodeUtf8Default(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public final encodeUtf8Default(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
 | |
|     .locals 7
 | |
| 
 | |
|     .line 1
 | |
|     invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->position()I
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     const/16 v3, 0x80
 | |
| 
 | |
|     if-ge v2, v0, :cond_0
 | |
| 
 | |
|     .line 3
 | |
|     :try_start_0
 | |
|     invoke-interface {p1, v2}, Ljava/lang/CharSequence;->charAt(I)C
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-ge v4, v3, :cond_0
 | |
| 
 | |
|     add-int v3, v1, v2
 | |
| 
 | |
|     int-to-byte v4, v4
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p2, v3, v4}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_0
 | |
|     if-ne v2, v0, :cond_1
 | |
| 
 | |
|     add-int v0, v1, v2
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p2, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     :cond_1
 | |
|     add-int/2addr v1, v2
 | |
| 
 | |
|     :goto_1
 | |
|     if-ge v2, v0, :cond_8
 | |
| 
 | |
|     .line 6
 | |
|     invoke-interface {p1, v2}, Ljava/lang/CharSequence;->charAt(I)C
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-ge v4, v3, :cond_2
 | |
| 
 | |
|     int-to-byte v4, v4
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p2, v1, v4}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_0 .. :try_end_0} :catch_3
 | |
| 
 | |
|     goto/16 :goto_5
 | |
| 
 | |
|     :cond_2
 | |
|     const/16 v5, 0x800
 | |
| 
 | |
|     if-ge v4, v5, :cond_3
 | |
| 
 | |
|     add-int/lit8 v5, v1, 0x1
 | |
| 
 | |
|     ushr-int/lit8 v6, v4, 0x6
 | |
| 
 | |
|     or-int/lit16 v6, v6, 0xc0
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     .line 8
 | |
|     :try_start_1
 | |
|     invoke-virtual {p2, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     and-int/lit8 v1, v4, 0x3f
 | |
| 
 | |
|     or-int/2addr v1, v3
 | |
| 
 | |
|     int-to-byte v1, v1
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p2, v5, v1}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
|     :try_end_1
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_1 .. :try_end_1} :catch_0
 | |
| 
 | |
|     move v1, v5
 | |
| 
 | |
|     goto/16 :goto_5
 | |
| 
 | |
|     :catch_0
 | |
|     move v1, v5
 | |
| 
 | |
|     goto/16 :goto_6
 | |
| 
 | |
|     :cond_3
 | |
|     const v5, 0xd800
 | |
| 
 | |
|     if-lt v4, v5, :cond_7
 | |
| 
 | |
|     const v5, 0xdfff
 | |
| 
 | |
|     if-ge v5, v4, :cond_4
 | |
| 
 | |
|     goto :goto_4
 | |
| 
 | |
|     :cond_4
 | |
|     add-int/lit8 v5, v2, 0x1
 | |
| 
 | |
|     if-eq v5, v0, :cond_6
 | |
| 
 | |
|     .line 10
 | |
|     :try_start_2
 | |
|     invoke-interface {p1, v5}, Ljava/lang/CharSequence;->charAt(I)C
 | |
| 
 | |
|     move-result v2
 | |
| 
 | |
|     invoke-static {v4, v2}, Ljava/lang/Character;->isSurrogatePair(CC)Z
 | |
| 
 | |
|     move-result v6
 | |
| 
 | |
|     if-eqz v6, :cond_5
 | |
| 
 | |
|     .line 11
 | |
|     invoke-static {v4, v2}, Ljava/lang/Character;->toCodePoint(CC)I
 | |
| 
 | |
|     move-result v2
 | |
|     :try_end_2
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_2 .. :try_end_2} :catch_2
 | |
| 
 | |
|     add-int/lit8 v4, v1, 0x1
 | |
| 
 | |
|     ushr-int/lit8 v6, v2, 0x12
 | |
| 
 | |
|     or-int/lit16 v6, v6, 0xf0
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     .line 12
 | |
|     :try_start_3
 | |
|     invoke-virtual {p2, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
|     :try_end_3
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_3 .. :try_end_3} :catch_1
 | |
| 
 | |
|     add-int/lit8 v1, v4, 0x1
 | |
| 
 | |
|     ushr-int/lit8 v6, v2, 0xc
 | |
| 
 | |
|     and-int/lit8 v6, v6, 0x3f
 | |
| 
 | |
|     or-int/2addr v6, v3
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     .line 13
 | |
|     :try_start_4
 | |
|     invoke-virtual {p2, v4, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
|     :try_end_4
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_4 .. :try_end_4} :catch_2
 | |
| 
 | |
|     add-int/lit8 v4, v1, 0x1
 | |
| 
 | |
|     ushr-int/lit8 v6, v2, 0x6
 | |
| 
 | |
|     and-int/lit8 v6, v6, 0x3f
 | |
| 
 | |
|     or-int/2addr v6, v3
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     .line 14
 | |
|     :try_start_5
 | |
|     invoke-virtual {p2, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     and-int/lit8 v1, v2, 0x3f
 | |
| 
 | |
|     or-int/2addr v1, v3
 | |
| 
 | |
|     int-to-byte v1, v1
 | |
| 
 | |
|     .line 15
 | |
|     invoke-virtual {p2, v4, v1}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
|     :try_end_5
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_5 .. :try_end_5} :catch_1
 | |
| 
 | |
|     move v1, v4
 | |
| 
 | |
|     move v2, v5
 | |
| 
 | |
|     goto :goto_5
 | |
| 
 | |
|     :catch_1
 | |
|     move v1, v4
 | |
| 
 | |
|     goto :goto_2
 | |
| 
 | |
|     :cond_5
 | |
|     move v2, v5
 | |
| 
 | |
|     goto :goto_3
 | |
| 
 | |
|     :catch_2
 | |
|     :goto_2
 | |
|     move v2, v5
 | |
| 
 | |
|     goto :goto_6
 | |
| 
 | |
|     .line 16
 | |
|     :cond_6
 | |
|     :goto_3
 | |
|     :try_start_6
 | |
|     new-instance v3, Lcom/google/protobuf/Utf8$UnpairedSurrogateException;
 | |
| 
 | |
|     invoke-direct {v3, v2, v0}, Lcom/google/protobuf/Utf8$UnpairedSurrogateException;-><init>(II)V
 | |
| 
 | |
|     throw v3
 | |
|     :try_end_6
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_6 .. :try_end_6} :catch_3
 | |
| 
 | |
|     :cond_7
 | |
|     :goto_4
 | |
|     add-int/lit8 v5, v1, 0x1
 | |
| 
 | |
|     ushr-int/lit8 v6, v4, 0xc
 | |
| 
 | |
|     or-int/lit16 v6, v6, 0xe0
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     .line 17
 | |
|     :try_start_7
 | |
|     invoke-virtual {p2, v1, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
|     :try_end_7
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_7 .. :try_end_7} :catch_0
 | |
| 
 | |
|     add-int/lit8 v1, v5, 0x1
 | |
| 
 | |
|     ushr-int/lit8 v6, v4, 0x6
 | |
| 
 | |
|     and-int/lit8 v6, v6, 0x3f
 | |
| 
 | |
|     or-int/2addr v6, v3
 | |
| 
 | |
|     int-to-byte v6, v6
 | |
| 
 | |
|     .line 18
 | |
|     :try_start_8
 | |
|     invoke-virtual {p2, v5, v6}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     and-int/lit8 v4, v4, 0x3f
 | |
| 
 | |
|     or-int/2addr v4, v3
 | |
| 
 | |
|     int-to-byte v4, v4
 | |
| 
 | |
|     .line 19
 | |
|     invoke-virtual {p2, v1, v4}, Ljava/nio/ByteBuffer;->put(IB)Ljava/nio/ByteBuffer;
 | |
| 
 | |
|     :goto_5
 | |
|     add-int/lit8 v2, v2, 0x1
 | |
| 
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     goto/16 :goto_1
 | |
| 
 | |
|     .line 20
 | |
|     :cond_8
 | |
|     invoke-virtual {p2, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
 | |
|     :try_end_8
 | |
|     .catch Ljava/lang/IndexOutOfBoundsException; {:try_start_8 .. :try_end_8} :catch_3
 | |
| 
 | |
|     return-void
 | |
| 
 | |
|     .line 21
 | |
|     :catch_3
 | |
|     :goto_6
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->position()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->position()I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     sub-int/2addr v1, p2
 | |
| 
 | |
|     add-int/lit8 v1, v1, 0x1
 | |
| 
 | |
|     invoke-static {v2, v1}, Ljava/lang/Math;->max(II)I
 | |
| 
 | |
|     move-result p2
 | |
| 
 | |
|     add-int/2addr p2, v0
 | |
| 
 | |
|     .line 22
 | |
|     new-instance v0, Ljava/lang/ArrayIndexOutOfBoundsException;
 | |
| 
 | |
|     const-string v1, "Failed writing "
 | |
| 
 | |
|     invoke-static {v1}, Landroid/support/v4/media/d;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 23
 | |
|     invoke-interface {p1, v2}, Ljava/lang/CharSequence;->charAt(I)C
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     const-string p1, " at index "
 | |
| 
 | |
|     invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
 | |
| 
 | |
|     invoke-virtual {v1, p2}, 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/ArrayIndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
 | |
| 
 | |
|     throw v0
 | |
| .end method
 | |
| 
 | |
| .method public abstract encodeUtf8Direct(Ljava/lang/CharSequence;Ljava/nio/ByteBuffer;)V
 | |
| .end method
 | |
| 
 | |
| .method public final isValidUtf8(Ljava/nio/ByteBuffer;II)Z
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p0, v0, p1, p2, p3}, Lcom/google/protobuf/Utf8$Processor;->partialIsValidUtf8(ILjava/nio/ByteBuffer;II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     :cond_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public final isValidUtf8([BII)Z
 | |
|     .locals 1
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p0, v0, p1, p2, p3}, Lcom/google/protobuf/Utf8$Processor;->partialIsValidUtf8(I[BII)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     if-nez p1, :cond_0
 | |
| 
 | |
|     const/4 v0, 0x1
 | |
| 
 | |
|     :cond_0
 | |
|     return v0
 | |
| .end method
 | |
| 
 | |
| .method public final partialIsValidUtf8(ILjava/nio/ByteBuffer;II)I
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->hasArray()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->arrayOffset()I
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->array()[B
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     add-int/2addr p3, v0
 | |
| 
 | |
|     add-int/2addr v0, p4
 | |
| 
 | |
|     invoke-virtual {p0, p1, p2, p3, v0}, Lcom/google/protobuf/Utf8$Processor;->partialIsValidUtf8(I[BII)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     .line 4
 | |
|     :cond_0
 | |
|     invoke-virtual {p2}, Ljava/nio/ByteBuffer;->isDirect()Z
 | |
| 
 | |
|     move-result v0
 | |
| 
 | |
|     if-eqz v0, :cond_1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/protobuf/Utf8$Processor;->partialIsValidUtf8Direct(ILjava/nio/ByteBuffer;II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     .line 6
 | |
|     :cond_1
 | |
|     invoke-virtual {p0, p1, p2, p3, p4}, Lcom/google/protobuf/Utf8$Processor;->partialIsValidUtf8Default(ILjava/nio/ByteBuffer;II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public abstract partialIsValidUtf8(I[BII)I
 | |
| .end method
 | |
| 
 | |
| .method public final partialIsValidUtf8Default(ILjava/nio/ByteBuffer;II)I
 | |
|     .locals 6
 | |
| 
 | |
|     if-eqz p1, :cond_f
 | |
| 
 | |
|     if-lt p3, p4, :cond_0
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_0
 | |
|     int-to-byte v0, p1
 | |
| 
 | |
|     const/16 v1, -0x20
 | |
| 
 | |
|     const/4 v2, -0x1
 | |
| 
 | |
|     const/16 v3, -0x41
 | |
| 
 | |
|     if-ge v0, v1, :cond_3
 | |
| 
 | |
|     const/16 p1, -0x3e
 | |
| 
 | |
|     if-lt v0, p1, :cond_2
 | |
| 
 | |
|     add-int/lit8 p1, p3, 0x1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-virtual {p2, p3}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-le p3, v3, :cond_1
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :cond_1
 | |
|     move p3, p1
 | |
| 
 | |
|     goto/16 :goto_2
 | |
| 
 | |
|     :cond_2
 | |
|     :goto_0
 | |
|     return v2
 | |
| 
 | |
|     :cond_3
 | |
|     const/16 v4, -0x10
 | |
| 
 | |
|     if-ge v0, v4, :cond_9
 | |
| 
 | |
|     shr-int/lit8 p1, p1, 0x8
 | |
| 
 | |
|     not-int p1, p1
 | |
| 
 | |
|     int-to-byte p1, p1
 | |
| 
 | |
|     if-nez p1, :cond_5
 | |
| 
 | |
|     add-int/lit8 p1, p3, 0x1
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {p2, p3}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-lt p1, p4, :cond_4
 | |
| 
 | |
|     .line 3
 | |
|     invoke-static {v0, p3}, Lcom/google/protobuf/Utf8;->access$000(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_4
 | |
|     move v5, p3
 | |
| 
 | |
|     move p3, p1
 | |
| 
 | |
|     move p1, v5
 | |
| 
 | |
|     :cond_5
 | |
|     if-gt p1, v3, :cond_8
 | |
| 
 | |
|     const/16 v4, -0x60
 | |
| 
 | |
|     if-ne v0, v1, :cond_6
 | |
| 
 | |
|     if-lt p1, v4, :cond_8
 | |
| 
 | |
|     :cond_6
 | |
|     const/16 v1, -0x13
 | |
| 
 | |
|     if-ne v0, v1, :cond_7
 | |
| 
 | |
|     if-ge p1, v4, :cond_8
 | |
| 
 | |
|     :cond_7
 | |
|     add-int/lit8 p1, p3, 0x1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p2, p3}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-le p3, v3, :cond_1
 | |
| 
 | |
|     :cond_8
 | |
|     return v2
 | |
| 
 | |
|     :cond_9
 | |
|     shr-int/lit8 v1, p1, 0x8
 | |
| 
 | |
|     not-int v1, v1
 | |
| 
 | |
|     int-to-byte v1, v1
 | |
| 
 | |
|     const/4 v4, 0x0
 | |
| 
 | |
|     if-nez v1, :cond_b
 | |
| 
 | |
|     add-int/lit8 p1, p3, 0x1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p2, p3}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result v1
 | |
| 
 | |
|     if-lt p1, p4, :cond_a
 | |
| 
 | |
|     .line 6
 | |
|     invoke-static {v0, v1}, Lcom/google/protobuf/Utf8;->access$000(II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_a
 | |
|     move p3, p1
 | |
| 
 | |
|     goto :goto_1
 | |
| 
 | |
|     :cond_b
 | |
|     shr-int/lit8 p1, p1, 0x10
 | |
| 
 | |
|     int-to-byte v4, p1
 | |
| 
 | |
|     :goto_1
 | |
|     if-nez v4, :cond_d
 | |
| 
 | |
|     add-int/lit8 p1, p3, 0x1
 | |
| 
 | |
|     .line 7
 | |
|     invoke-virtual {p2, p3}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result v4
 | |
| 
 | |
|     if-lt p1, p4, :cond_c
 | |
| 
 | |
|     .line 8
 | |
|     invoke-static {v0, v1, v4}, Lcom/google/protobuf/Utf8;->access$100(III)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| 
 | |
|     :cond_c
 | |
|     move p3, p1
 | |
| 
 | |
|     :cond_d
 | |
|     if-gt v1, v3, :cond_e
 | |
| 
 | |
|     shl-int/lit8 p1, v0, 0x1c
 | |
| 
 | |
|     add-int/lit8 v1, v1, 0x70
 | |
| 
 | |
|     add-int/2addr v1, p1
 | |
| 
 | |
|     shr-int/lit8 p1, v1, 0x1e
 | |
| 
 | |
|     if-nez p1, :cond_e
 | |
| 
 | |
|     if-gt v4, v3, :cond_e
 | |
| 
 | |
|     add-int/lit8 p1, p3, 0x1
 | |
| 
 | |
|     .line 9
 | |
|     invoke-virtual {p2, p3}, Ljava/nio/ByteBuffer;->get(I)B
 | |
| 
 | |
|     move-result p3
 | |
| 
 | |
|     if-le p3, v3, :cond_1
 | |
| 
 | |
|     :cond_e
 | |
|     return v2
 | |
| 
 | |
|     .line 10
 | |
|     :cond_f
 | |
|     :goto_2
 | |
|     invoke-static {p2, p3, p4}, Lcom/google/protobuf/Utf8$Processor;->partialIsValidUtf8(Ljava/nio/ByteBuffer;II)I
 | |
| 
 | |
|     move-result p1
 | |
| 
 | |
|     return p1
 | |
| .end method
 | |
| 
 | |
| .method public abstract partialIsValidUtf8Direct(ILjava/nio/ByteBuffer;II)I
 | |
| .end method
 |