Rabbit-R1/android (non root)/smali/smali_classes2/androidx/emoji2/text/flatbuffer/Table.smali
2024-05-21 17:08:36 -04:00

658 lines
13 KiB
Smali

.class public Landroidx/emoji2/text/flatbuffer/Table;
.super Ljava/lang/Object;
.source "Table.java"
# instance fields
.field protected bb:Ljava/nio/ByteBuffer;
.field protected bb_pos:I
.field utf8:Landroidx/emoji2/text/flatbuffer/Utf8;
.field private vtable_size:I
.field private vtable_start:I
# direct methods
.method public constructor <init>()V
.locals 1
.line 28
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 37
invoke-static {}, Landroidx/emoji2/text/flatbuffer/Utf8;->getDefault()Landroidx/emoji2/text/flatbuffer/Utf8;
move-result-object v0
iput-object v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->utf8:Landroidx/emoji2/text/flatbuffer/Utf8;
return-void
.end method
.method protected static __has_identifier(Ljava/nio/ByteBuffer;Ljava/lang/String;)Z
.locals 5
.line 214
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
const/4 v1, 0x4
if-ne v0, v1, :cond_2
const/4 v0, 0x0
move v2, v0
:goto_0
if-ge v2, v1, :cond_1
.line 218
invoke-virtual {p1, v2}, Ljava/lang/String;->charAt(I)C
move-result v3
invoke-virtual {p0}, Ljava/nio/ByteBuffer;->position()I
move-result v4
add-int/2addr v4, v1
add-int/2addr v4, v2
invoke-virtual {p0, v4}, Ljava/nio/ByteBuffer;->get(I)B
move-result v4
int-to-char v4, v4
if-eq v3, v4, :cond_0
return v0
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
const/4 p0, 0x1
return p0
.line 215
:cond_2
new-instance p0, Ljava/lang/AssertionError;
const-string p1, "FlatBuffers: file identifier must be length 4"
invoke-direct {p0, p1}, Ljava/lang/AssertionError;-><init>(Ljava/lang/Object;)V
throw p0
.end method
.method protected static __indirect(ILjava/nio/ByteBuffer;)I
.locals 0
.line 79
invoke-virtual {p1, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result p1
add-int/2addr p0, p1
return p0
.end method
.method protected static __offset(IILjava/nio/ByteBuffer;)I
.locals 1
.line 57
invoke-virtual {p2}, Ljava/nio/ByteBuffer;->capacity()I
move-result v0
sub-int/2addr v0, p1
add-int/2addr p0, v0
.line 58
invoke-virtual {p2, v0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result p1
sub-int/2addr p0, p1
invoke-virtual {p2, p0}, Ljava/nio/ByteBuffer;->getShort(I)S
move-result p0
add-int/2addr p0, v0
return p0
.end method
.method protected static __string(ILjava/nio/ByteBuffer;Landroidx/emoji2/text/flatbuffer/Utf8;)Ljava/lang/String;
.locals 1
.line 111
invoke-virtual {p1, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
add-int/2addr p0, v0
.line 112
invoke-virtual {p1, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
add-int/lit8 p0, p0, 0x4
.line 113
invoke-virtual {p2, p1, p0, v0}, Landroidx/emoji2/text/flatbuffer/Utf8;->decodeUtf8(Ljava/nio/ByteBuffer;II)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method protected static __union(Landroidx/emoji2/text/flatbuffer/Table;ILjava/nio/ByteBuffer;)Landroidx/emoji2/text/flatbuffer/Table;
.locals 0
.line 201
invoke-static {p1, p2}, Landroidx/emoji2/text/flatbuffer/Table;->__indirect(ILjava/nio/ByteBuffer;)I
move-result p1
invoke-virtual {p0, p1, p2}, Landroidx/emoji2/text/flatbuffer/Table;->__reset(ILjava/nio/ByteBuffer;)V
return-object p0
.end method
.method protected static compareStrings(IILjava/nio/ByteBuffer;)I
.locals 8
.line 257
invoke-virtual {p2, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
add-int/2addr p0, v0
.line 258
invoke-virtual {p2, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
add-int/2addr p1, v0
.line 259
invoke-virtual {p2, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
.line 260
invoke-virtual {p2, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v1
add-int/lit8 p0, p0, 0x4
add-int/lit8 p1, p1, 0x4
.line 263
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v2
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
add-int v4, v3, p0
.line 265
invoke-virtual {p2, v4}, Ljava/nio/ByteBuffer;->get(I)B
move-result v5
add-int v6, v3, p1
invoke-virtual {p2, v6}, Ljava/nio/ByteBuffer;->get(I)B
move-result v7
if-eq v5, v7, :cond_0
.line 266
invoke-virtual {p2, v4}, Ljava/nio/ByteBuffer;->get(I)B
move-result p0
invoke-virtual {p2, v6}, Ljava/nio/ByteBuffer;->get(I)B
move-result p1
sub-int/2addr p0, p1
return p0
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
sub-int/2addr v0, v1
return v0
.end method
.method protected static compareStrings(I[BLjava/nio/ByteBuffer;)I
.locals 7
.line 279
invoke-virtual {p2, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
add-int/2addr p0, v0
.line 280
invoke-virtual {p2, p0}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
.line 281
array-length v1, p1
add-int/lit8 p0, p0, 0x4
.line 283
invoke-static {v0, v1}, Ljava/lang/Math;->min(II)I
move-result v2
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_1
add-int v4, v3, p0
.line 285
invoke-virtual {p2, v4}, Ljava/nio/ByteBuffer;->get(I)B
move-result v5
aget-byte v6, p1, v3
if-eq v5, v6, :cond_0
.line 286
invoke-virtual {p2, v4}, Ljava/nio/ByteBuffer;->get(I)B
move-result p0
aget-byte p1, p1, v3
sub-int/2addr p0, p1
return p0
:cond_0
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
sub-int/2addr v0, v1
return v0
.end method
# virtual methods
.method protected __indirect(I)I
.locals 0
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 68
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result p0
add-int/2addr p1, p0
return p1
.end method
.method protected __offset(I)I
.locals 1
iget v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->vtable_size:I
if-ge p1, v0, :cond_0
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
iget p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->vtable_start:I
add-int/2addr p0, p1
.line 53
invoke-virtual {v0, p0}, Ljava/nio/ByteBuffer;->getShort(I)S
move-result p0
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return p0
.end method
.method public __reset()V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x0
.line 318
invoke-virtual {p0, v0, v1}, Landroidx/emoji2/text/flatbuffer/Table;->__reset(ILjava/nio/ByteBuffer;)V
return-void
.end method
.method protected __reset(ILjava/nio/ByteBuffer;)V
.locals 0
iput-object p2, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
if-eqz p2, :cond_0
iput p1, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb_pos:I
.line 301
invoke-virtual {p2, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result p2
sub-int/2addr p1, p2
iput p1, p0, Landroidx/emoji2/text/flatbuffer/Table;->vtable_start:I
iget-object p2, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 302
invoke-virtual {p2, p1}, Ljava/nio/ByteBuffer;->getShort(I)S
move-result p1
iput p1, p0, Landroidx/emoji2/text/flatbuffer/Table;->vtable_size:I
goto :goto_0
:cond_0
const/4 p1, 0x0
iput p1, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb_pos:I
iput p1, p0, Landroidx/emoji2/text/flatbuffer/Table;->vtable_start:I
iput p1, p0, Landroidx/emoji2/text/flatbuffer/Table;->vtable_size:I
:goto_0
return-void
.end method
.method protected __string(I)Ljava/lang/String;
.locals 1
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->utf8:Landroidx/emoji2/text/flatbuffer/Utf8;
.line 94
invoke-static {p1, v0, p0}, Landroidx/emoji2/text/flatbuffer/Table;->__string(ILjava/nio/ByteBuffer;Landroidx/emoji2/text/flatbuffer/Utf8;)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method protected __union(Landroidx/emoji2/text/flatbuffer/Table;I)Landroidx/emoji2/text/flatbuffer/Table;
.locals 0
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 189
invoke-static {p1, p2, p0}, Landroidx/emoji2/text/flatbuffer/Table;->__union(Landroidx/emoji2/text/flatbuffer/Table;ILjava/nio/ByteBuffer;)Landroidx/emoji2/text/flatbuffer/Table;
move-result-object p0
return-object p0
.end method
.method protected __vector(I)I
.locals 1
iget v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb_pos:I
add-int/2addr p1, v0
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 136
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result p0
add-int/2addr p1, p0
add-int/lit8 p1, p1, 0x4
return p1
.end method
.method protected __vector_as_bytebuffer(II)Ljava/nio/ByteBuffer;
.locals 2
.line 151
invoke-virtual {p0, p1}, Landroidx/emoji2/text/flatbuffer/Table;->__offset(I)I
move-result p1
if-nez p1, :cond_0
const/4 p0, 0x0
return-object p0
:cond_0
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 153
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->duplicate()Ljava/nio/ByteBuffer;
move-result-object v0
sget-object v1, Ljava/nio/ByteOrder;->LITTLE_ENDIAN:Ljava/nio/ByteOrder;
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
move-result-object v0
.line 154
invoke-virtual {p0, p1}, Landroidx/emoji2/text/flatbuffer/Table;->__vector(I)I
move-result v1
.line 155
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
.line 156
invoke-virtual {p0, p1}, Landroidx/emoji2/text/flatbuffer/Table;->__vector_len(I)I
move-result p0
mul-int/2addr p0, p2
add-int/2addr v1, p0
invoke-virtual {v0, v1}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
return-object v0
.end method
.method protected __vector_in_bytebuffer(Ljava/nio/ByteBuffer;II)Ljava/nio/ByteBuffer;
.locals 1
.line 172
invoke-virtual {p0, p2}, Landroidx/emoji2/text/flatbuffer/Table;->__offset(I)I
move-result p2
if-nez p2, :cond_0
const/4 p0, 0x0
return-object p0
.line 174
:cond_0
invoke-virtual {p0, p2}, Landroidx/emoji2/text/flatbuffer/Table;->__vector(I)I
move-result v0
.line 175
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->rewind()Ljava/nio/Buffer;
.line 176
invoke-virtual {p0, p2}, Landroidx/emoji2/text/flatbuffer/Table;->__vector_len(I)I
move-result p0
mul-int/2addr p0, p3
add-int/2addr p0, v0
invoke-virtual {p1, p0}, Ljava/nio/ByteBuffer;->limit(I)Ljava/nio/Buffer;
.line 177
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;
return-object p1
.end method
.method protected __vector_len(I)I
.locals 1
iget v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb_pos:I
add-int/2addr p1, v0
iget-object v0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 124
invoke-virtual {v0, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result v0
add-int/2addr p1, v0
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
.line 125
invoke-virtual {p0, p1}, Ljava/nio/ByteBuffer;->getInt(I)I
move-result p0
return p0
.end method
.method public getByteBuffer()Ljava/nio/ByteBuffer;
.locals 0
iget-object p0, p0, Landroidx/emoji2/text/flatbuffer/Table;->bb:Ljava/nio/ByteBuffer;
return-object p0
.end method
.method protected keysCompare(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/nio/ByteBuffer;)I
.locals 0
const/4 p0, 0x0
return p0
.end method
.method protected sortTables([ILjava/nio/ByteBuffer;)V
.locals 4
.line 230
array-length v0, p1
new-array v0, v0, [Ljava/lang/Integer;
const/4 v1, 0x0
move v2, v1
.line 231
:goto_0
array-length v3, p1
if-ge v2, v3, :cond_0
aget v3, p1, v2
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v0, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 232
:cond_0
new-instance v2, Landroidx/emoji2/text/flatbuffer/Table$1;
invoke-direct {v2, p0, p2}, Landroidx/emoji2/text/flatbuffer/Table$1;-><init>(Landroidx/emoji2/text/flatbuffer/Table;Ljava/nio/ByteBuffer;)V
invoke-static {v0, v2}, Ljava/util/Arrays;->sort([Ljava/lang/Object;Ljava/util/Comparator;)V
.line 237
:goto_1
array-length p0, p1
if-ge v1, p0, :cond_1
aget-object p0, v0, v1
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
move-result p0
aput p0, p1, v1
add-int/lit8 v1, v1, 0x1
goto :goto_1
:cond_1
return-void
.end method