- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
641 lines
13 KiB
Smali
641 lines
13 KiB
Smali
.class public abstract Lcom/google/common/collect/ImmutableSet;
|
|
.super Lcom/google/common/collect/ImmutableCollection;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/Set;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/common/collect/ImmutableSet$Builder;,
|
|
Lcom/google/common/collect/ImmutableSet$SerializedForm;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public transient asList:Lcom/google/common/collect/ImmutableList;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 318
|
|
invoke-direct {p0}, Lcom/google/common/collect/ImmutableCollection;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic access$000(II)Z
|
|
.locals 0
|
|
|
|
.line 51
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableSet;->shouldTrim(II)Z
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method public static synthetic access$100(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 0
|
|
|
|
.line 51
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static chooseTableSize(I)I
|
|
.locals 5
|
|
|
|
const/4 v0, 0x2
|
|
|
|
.line 218
|
|
invoke-static {p0, v0}, Ljava/lang/Math;->max(II)I
|
|
|
|
move-result p0
|
|
|
|
const v0, 0x2ccccccc
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ge p0, v0, :cond_1
|
|
|
|
add-int/lit8 v0, p0, -0x1
|
|
|
|
.line 222
|
|
invoke-static {v0}, Ljava/lang/Integer;->highestOneBit(I)I
|
|
|
|
move-result v0
|
|
|
|
shl-int/2addr v0, v1
|
|
|
|
:goto_0
|
|
int-to-double v1, v0
|
|
|
|
const-wide v3, 0x3fe6666666666666L # 0.7
|
|
|
|
mul-double/2addr v1, v3
|
|
|
|
int-to-double v3, p0
|
|
|
|
cmpg-double v1, v1, v3
|
|
|
|
if-gez v1, :cond_0
|
|
|
|
shl-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return v0
|
|
|
|
:cond_1
|
|
const/high16 v0, 0x40000000 # 2.0f
|
|
|
|
if-ge p0, v0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v1, 0x0
|
|
|
|
:goto_1
|
|
const-string p0, "collection too large"
|
|
|
|
.line 230
|
|
invoke-static {v1, p0}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public static varargs construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 13
|
|
|
|
if-eqz p0, :cond_7
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq p0, v1, :cond_6
|
|
|
|
.line 158
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableSet;->chooseTableSize(I)I
|
|
|
|
move-result v2
|
|
|
|
.line 159
|
|
new-array v6, v2, [Ljava/lang/Object;
|
|
|
|
add-int/lit8 v7, v2, -0x1
|
|
|
|
move v3, v0
|
|
|
|
move v5, v3
|
|
|
|
move v8, v5
|
|
|
|
:goto_0
|
|
if-ge v3, p0, :cond_2
|
|
|
|
.line 164
|
|
aget-object v4, p1, v3
|
|
|
|
invoke-static {v4, v3}, Lcom/google/common/collect/ObjectArrays;->checkElementNotNull(Ljava/lang/Object;I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
.line 165
|
|
invoke-virtual {v4}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v9
|
|
|
|
.line 166
|
|
invoke-static {v9}, Lcom/google/common/collect/Hashing;->smear(I)I
|
|
|
|
move-result v10
|
|
|
|
:goto_1
|
|
and-int v11, v10, v7
|
|
|
|
.line 168
|
|
aget-object v12, v6, v11
|
|
|
|
if-nez v12, :cond_0
|
|
|
|
add-int/lit8 v10, v8, 0x1
|
|
|
|
.line 171
|
|
aput-object v4, p1, v8
|
|
|
|
.line 172
|
|
aput-object v4, v6, v11
|
|
|
|
add-int/2addr v5, v9
|
|
|
|
move v8, v10
|
|
|
|
goto :goto_2
|
|
|
|
.line 175
|
|
:cond_0
|
|
invoke-virtual {v12, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v11
|
|
|
|
if-eqz v11, :cond_1
|
|
|
|
:goto_2
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
add-int/lit8 v10, v10, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
const/4 v3, 0x0
|
|
|
|
.line 180
|
|
invoke-static {p1, v8, p0, v3}, Ljava/util/Arrays;->fill([Ljava/lang/Object;IILjava/lang/Object;)V
|
|
|
|
if-ne v8, v1, :cond_3
|
|
|
|
.line 185
|
|
aget-object p0, p1, v0
|
|
|
|
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 186
|
|
new-instance p1, Lcom/google/common/collect/SingletonImmutableSet;
|
|
|
|
invoke-direct {p1, p0}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object p1
|
|
|
|
.line 187
|
|
:cond_3
|
|
invoke-static {v8}, Lcom/google/common/collect/ImmutableSet;->chooseTableSize(I)I
|
|
|
|
move-result p0
|
|
|
|
div-int/lit8 v2, v2, 0x2
|
|
|
|
if-ge p0, v2, :cond_4
|
|
|
|
.line 189
|
|
invoke-static {v8, p1}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 193
|
|
:cond_4
|
|
array-length p0, p1
|
|
|
|
invoke-static {v8, p0}, Lcom/google/common/collect/ImmutableSet;->shouldTrim(II)Z
|
|
|
|
move-result p0
|
|
|
|
if-eqz p0, :cond_5
|
|
|
|
invoke-static {p1, v8}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_5
|
|
move-object v4, p1
|
|
|
|
.line 194
|
|
new-instance p0, Lcom/google/common/collect/RegularImmutableSet;
|
|
|
|
move-object v3, p0
|
|
|
|
invoke-direct/range {v3 .. v8}, Lcom/google/common/collect/RegularImmutableSet;-><init>([Ljava/lang/Object;I[Ljava/lang/Object;II)V
|
|
|
|
return-object p0
|
|
|
|
.line 153
|
|
:cond_6
|
|
aget-object p0, p1, v0
|
|
|
|
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 154
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 149
|
|
:cond_7
|
|
invoke-static {}, Lcom/google/common/collect/ImmutableSet;->of()Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 2
|
|
|
|
.line 252
|
|
instance-of v0, p0, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
instance-of v0, p0, Ljava/util/SortedSet;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 254
|
|
move-object v0, p0
|
|
|
|
check-cast v0, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 255
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableCollection;->isPartialView()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
return-object v0
|
|
|
|
.line 259
|
|
:cond_0
|
|
invoke-interface {p0}, Ljava/util/Collection;->toArray()[Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 260
|
|
array-length v0, p0
|
|
|
|
invoke-static {v0, p0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static copyOf([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 2
|
|
|
|
.line 308
|
|
array-length v0, p0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 314
|
|
array-length v0, p0
|
|
|
|
invoke-virtual {p0}, [Ljava/lang/Object;->clone()Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
check-cast p0, [Ljava/lang/Object;
|
|
|
|
invoke-static {v0, p0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 312
|
|
aget-object p0, p0, v0
|
|
|
|
invoke-static {p0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 310
|
|
:cond_1
|
|
invoke-static {}, Lcom/google/common/collect/ImmutableSet;->of()Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static of()Lcom/google/common/collect/ImmutableSet;
|
|
.locals 1
|
|
|
|
.line 60
|
|
sget-object v0, Lcom/google/common/collect/RegularImmutableSet;->EMPTY:Lcom/google/common/collect/RegularImmutableSet;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 1
|
|
|
|
.line 69
|
|
new-instance v0, Lcom/google/common/collect/SingletonImmutableSet;
|
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/collect/SingletonImmutableSet;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x3
|
|
|
|
filled-new-array {p0, p1, p2}, [Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
.line 87
|
|
invoke-static {v0, p0}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static varargs of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
.locals 5
|
|
|
|
.line 119
|
|
array-length v0, p6
|
|
|
|
const v1, 0x7ffffff9
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-gt v0, v1, :cond_0
|
|
|
|
move v0, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v0, v3
|
|
|
|
:goto_0
|
|
const-string v1, "the total number of elements must fit in an int"
|
|
|
|
invoke-static {v0, v1}, Lcom/google/common/base/Preconditions;->checkArgument(ZLjava/lang/Object;)V
|
|
|
|
.line 122
|
|
array-length v0, p6
|
|
|
|
const/4 v1, 0x6
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
new-array v4, v0, [Ljava/lang/Object;
|
|
|
|
.line 123
|
|
aput-object p0, v4, v3
|
|
|
|
.line 124
|
|
aput-object p1, v4, v2
|
|
|
|
const/4 p0, 0x2
|
|
|
|
.line 125
|
|
aput-object p2, v4, p0
|
|
|
|
const/4 p0, 0x3
|
|
|
|
.line 126
|
|
aput-object p3, v4, p0
|
|
|
|
const/4 p0, 0x4
|
|
|
|
.line 127
|
|
aput-object p4, v4, p0
|
|
|
|
const/4 p0, 0x5
|
|
|
|
.line 128
|
|
aput-object p5, v4, p0
|
|
|
|
.line 129
|
|
array-length p0, p6
|
|
|
|
invoke-static {p6, v3, v4, v1, p0}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 130
|
|
invoke-static {v0, v4}, Lcom/google/common/collect/ImmutableSet;->construct(I[Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static shouldTrim(II)Z
|
|
.locals 1
|
|
|
|
shr-int/lit8 v0, p1, 0x1
|
|
|
|
shr-int/lit8 p1, p1, 0x2
|
|
|
|
add-int/2addr v0, p1
|
|
|
|
if-ge p0, v0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public asList()Lcom/google/common/collect/ImmutableList;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/google/common/collect/ImmutableSet;->asList:Lcom/google/common/collect/ImmutableList;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 354
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->createAsList()Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/google/common/collect/ImmutableSet;->asList:Lcom/google/common/collect/ImmutableList;
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public createAsList()Lcom/google/common/collect/ImmutableList;
|
|
.locals 1
|
|
|
|
.line 358
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->toArray()[Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lcom/google/common/collect/ImmutableList;->asImmutableList([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableList;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public equals(Ljava/lang/Object;)Z
|
|
.locals 2
|
|
|
|
if-ne p1, p0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 330
|
|
:cond_0
|
|
instance-of v0, p1, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 331
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->isHashCodeFast()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object v0, p1
|
|
|
|
check-cast v0, Lcom/google/common/collect/ImmutableSet;
|
|
|
|
.line 332
|
|
invoke-virtual {v0}, Lcom/google/common/collect/ImmutableSet;->isHashCodeFast()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 333
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableSet;->hashCode()I
|
|
|
|
move-result v0
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
if-eq v0, v1, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 336
|
|
:cond_1
|
|
invoke-static {p0, p1}, Lcom/google/common/collect/Sets;->equalsImpl(Ljava/util/Set;Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public hashCode()I
|
|
.locals 1
|
|
|
|
.line 341
|
|
invoke-static {p0}, Lcom/google/common/collect/Sets;->hashCodeImpl(Ljava/util/Set;)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public isHashCodeFast()Z
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public abstract iterator()Lcom/google/common/collect/UnmodifiableIterator;
|
|
.end method
|
|
|
|
.method public writeReplace()Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 384
|
|
new-instance v0, Lcom/google/common/collect/ImmutableSet$SerializedForm;
|
|
|
|
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableCollection;->toArray()[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableSet$SerializedForm;-><init>([Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|