apkfuckery/com.discord/smali_classes2/f/k/e/r.smali
2020-04-11 17:34:05 +02:00

945 lines
18 KiB
Smali

.class public Lf/k/e/r;
.super Ljava/util/AbstractMap;
.source "SmallSortedMap.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/k/e/r$b;,
Lf/k/e/r$d;,
Lf/k/e/r$e;,
Lf/k/e/r$c;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<K::",
"Ljava/lang/Comparable<",
"TK;>;V:",
"Ljava/lang/Object;",
">",
"Ljava/util/AbstractMap<",
"TK;TV;>;"
}
.end annotation
# instance fields
.field public final d:I
.field public e:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lf/k/e/r<",
"TK;TV;>.c;>;"
}
.end annotation
.end field
.field public f:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"TK;TV;>;"
}
.end annotation
.end field
.field public g:Z
.field public volatile h:Lf/k/e/r$e;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lf/k/e/r<",
"TK;TV;>.e;"
}
.end annotation
.end field
# direct methods
.method public synthetic constructor <init>(ILf/k/e/r$a;)V
.locals 0
invoke-direct {p0}, Ljava/util/AbstractMap;-><init>()V
iput p1, p0, Lf/k/e/r;->d:I
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
move-result-object p1
iput-object p1, p0, Lf/k/e/r;->f:Ljava/util/Map;
return-void
.end method
.method public static synthetic a(Lf/k/e/r;)V
.locals 0
invoke-virtual {p0}, Lf/k/e/r;->a()V
return-void
.end method
.method public static c(I)Lf/k/e/r;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<FieldDescriptorType::",
"Lf/k/e/h$a<",
"TFieldDescriptorType;>;>(I)",
"Lf/k/e/r<",
"TFieldDescriptorType;",
"Ljava/lang/Object;",
">;"
}
.end annotation
new-instance v0, Lf/k/e/r$a;
invoke-direct {v0, p0}, Lf/k/e/r$a;-><init>(I)V
return-object v0
.end method
# virtual methods
.method public final a(Ljava/lang/Comparable;)I
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;)I"
}
.end annotation
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
add-int/lit8 v0, v0, -0x1
if-ltz v0, :cond_1
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/k/e/r$c;
iget-object v1, v1, Lf/k/e/r$c;->d:Ljava/lang/Comparable;
invoke-interface {p1, v1}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v1
if-lez v1, :cond_0
add-int/lit8 v0, v0, 0x2
neg-int p1, v0
return p1
:cond_0
if-nez v1, :cond_1
return v0
:cond_1
const/4 v1, 0x0
:goto_0
if-gt v1, v0, :cond_4
add-int v2, v1, v0
div-int/lit8 v2, v2, 0x2
iget-object v3, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lf/k/e/r$c;
iget-object v3, v3, Lf/k/e/r$c;->d:Ljava/lang/Comparable;
invoke-interface {p1, v3}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v3
if-gez v3, :cond_2
add-int/lit8 v2, v2, -0x1
move v0, v2
goto :goto_0
:cond_2
if-lez v3, :cond_3
add-int/lit8 v2, v2, 0x1
move v1, v2
goto :goto_0
:cond_3
return v2
:cond_4
add-int/lit8 v1, v1, 0x1
neg-int p1, v1
return p1
.end method
.method public a(Ljava/lang/Comparable;Ljava/lang/Object;)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TK;TV;)TV;"
}
.end annotation
invoke-virtual {p0}, Lf/k/e/r;->a()V
invoke-virtual {p0, p1}, Lf/k/e/r;->a(Ljava/lang/Comparable;)I
move-result v0
if-ltz v0, :cond_0
iget-object p1, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lf/k/e/r$c;
iget-object v0, p1, Lf/k/e/r$c;->f:Lf/k/e/r;
invoke-virtual {v0}, Lf/k/e/r;->a()V
iget-object v0, p1, Lf/k/e/r$c;->e:Ljava/lang/Object;
iput-object p2, p1, Lf/k/e/r$c;->e:Ljava/lang/Object;
return-object v0
:cond_0
invoke-virtual {p0}, Lf/k/e/r;->a()V
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
move-result v1
if-eqz v1, :cond_1
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
instance-of v1, v1, Ljava/util/ArrayList;
if-nez v1, :cond_1
new-instance v1, Ljava/util/ArrayList;
iget v2, p0, Lf/k/e/r;->d:I
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
iput-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
:cond_1
add-int/lit8 v0, v0, 0x1
neg-int v0, v0
iget v1, p0, Lf/k/e/r;->d:I
if-lt v0, v1, :cond_2
invoke-virtual {p0}, Lf/k/e/r;->d()Ljava/util/SortedMap;
move-result-object v0
invoke-interface {v0, p1, p2}, Ljava/util/SortedMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_2
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
iget v2, p0, Lf/k/e/r;->d:I
if-ne v1, v2, :cond_3
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
add-int/lit8 v2, v2, -0x1
invoke-interface {v1, v2}, Ljava/util/List;->remove(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lf/k/e/r$c;
invoke-virtual {p0}, Lf/k/e/r;->d()Ljava/util/SortedMap;
move-result-object v2
iget-object v3, v1, Lf/k/e/r$c;->d:Ljava/lang/Comparable;
iget-object v1, v1, Lf/k/e/r$c;->e:Ljava/lang/Object;
invoke-interface {v2, v3, v1}, Ljava/util/SortedMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_3
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
new-instance v2, Lf/k/e/r$c;
invoke-direct {v2, p0, p1, p2}, Lf/k/e/r$c;-><init>(Lf/k/e/r;Ljava/lang/Comparable;Ljava/lang/Object;)V
invoke-interface {v1, v0, v2}, Ljava/util/List;->add(ILjava/lang/Object;)V
const/4 p1, 0x0
return-object p1
.end method
.method public a(I)Ljava/util/Map$Entry;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)",
"Ljava/util/Map$Entry<",
"TK;TV;>;"
}
.end annotation
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Ljava/util/Map$Entry;
return-object p1
.end method
.method public final a()V
.locals 1
iget-boolean v0, p0, Lf/k/e/r;->g:Z
if-nez v0, :cond_0
return-void
:cond_0
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public b()I
.locals 1
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
return v0
.end method
.method public final b(I)Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TV;"
}
.end annotation
invoke-virtual {p0}, Lf/k/e/r;->a()V
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->remove(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lf/k/e/r$c;
iget-object p1, p1, Lf/k/e/r$c;->e:Ljava/lang/Object;
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
invoke-virtual {p0}, Lf/k/e/r;->d()Ljava/util/SortedMap;
move-result-object v0
invoke-interface {v0}, Ljava/util/SortedMap;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
iget-object v1, p0, Lf/k/e/r;->e:Ljava/util/List;
new-instance v2, Lf/k/e/r$c;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/Map$Entry;
invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Comparable;
invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;
move-result-object v3
invoke-direct {v2, p0, v4, v3}, Lf/k/e/r$c;-><init>(Lf/k/e/r;Ljava/lang/Comparable;Ljava/lang/Object;)V
invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
invoke-interface {v0}, Ljava/util/Iterator;->remove()V
:cond_0
return-object p1
.end method
.method public c()Ljava/lang/Iterable;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/lang/Iterable<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
sget-object v0, Lf/k/e/r$b;->b:Ljava/lang/Iterable;
goto :goto_0
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;
move-result-object v0
:goto_0
return-object v0
.end method
.method public clear()V
.locals 1
invoke-virtual {p0}, Lf/k/e/r;->a()V
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->isEmpty()Z
move-result v0
if-nez v0, :cond_0
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->clear()V
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-nez v0, :cond_1
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->clear()V
:cond_1
return-void
.end method
.method public containsKey(Ljava/lang/Object;)Z
.locals 1
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lf/k/e/r;->a(Ljava/lang/Comparable;)I
move-result v0
if-gez v0, :cond_1
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
return p1
.end method
.method public final d()Ljava/util/SortedMap;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/SortedMap<",
"TK;TV;>;"
}
.end annotation
invoke-virtual {p0}, Lf/k/e/r;->a()V
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
instance-of v0, v0, Ljava/util/TreeMap;
if-nez v0, :cond_0
new-instance v0, Ljava/util/TreeMap;
invoke-direct {v0}, Ljava/util/TreeMap;-><init>()V
iput-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
check-cast v0, Ljava/util/SortedMap;
return-object v0
.end method
.method public e()V
.locals 1
iget-boolean v0, p0, Lf/k/e/r;->g:Z
if-nez v0, :cond_1
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_0
invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map;
move-result-object v0
goto :goto_0
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-static {v0}, Ljava/util/Collections;->unmodifiableMap(Ljava/util/Map;)Ljava/util/Map;
move-result-object v0
:goto_0
iput-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
const/4 v0, 0x1
iput-boolean v0, p0, Lf/k/e/r;->g:Z
:cond_1
return-void
.end method
.method public entrySet()Ljava/util/Set;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Set<",
"Ljava/util/Map$Entry<",
"TK;TV;>;>;"
}
.end annotation
iget-object v0, p0, Lf/k/e/r;->h:Lf/k/e/r$e;
if-nez v0, :cond_0
new-instance v0, Lf/k/e/r$e;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lf/k/e/r$e;-><init>(Lf/k/e/r;Lf/k/e/r$a;)V
iput-object v0, p0, Lf/k/e/r;->h:Lf/k/e/r$e;
:cond_0
iget-object v0, p0, Lf/k/e/r;->h:Lf/k/e/r$e;
return-object v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 7
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
instance-of v1, p1, Lf/k/e/r;
if-nez v1, :cond_1
invoke-super {p0, p1}, Ljava/util/AbstractMap;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_1
check-cast p1, Lf/k/e/r;
invoke-virtual {p0}, Lf/k/e/r;->size()I
move-result v1
invoke-virtual {p1}, Lf/k/e/r;->size()I
move-result v2
const/4 v3, 0x0
if-eq v1, v2, :cond_2
return v3
:cond_2
invoke-virtual {p0}, Lf/k/e/r;->b()I
move-result v2
invoke-virtual {p1}, Lf/k/e/r;->b()I
move-result v4
if-eq v2, v4, :cond_3
invoke-virtual {p0}, Lf/k/e/r;->entrySet()Ljava/util/Set;
move-result-object v0
invoke-virtual {p1}, Lf/k/e/r;->entrySet()Ljava/util/Set;
move-result-object p1
invoke-interface {v0, p1}, Ljava/util/Set;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_3
const/4 v4, 0x0
:goto_0
if-ge v4, v2, :cond_5
invoke-virtual {p0, v4}, Lf/k/e/r;->a(I)Ljava/util/Map$Entry;
move-result-object v5
invoke-virtual {p1, v4}, Lf/k/e/r;->a(I)Ljava/util/Map$Entry;
move-result-object v6
invoke-interface {v5, v6}, Ljava/util/Map$Entry;->equals(Ljava/lang/Object;)Z
move-result v5
if-nez v5, :cond_4
return v3
:cond_4
add-int/lit8 v4, v4, 0x1
goto :goto_0
:cond_5
if-eq v2, v1, :cond_6
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
iget-object p1, p1, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->equals(Ljava/lang/Object;)Z
move-result p1
return p1
:cond_6
return v0
.end method
.method public get(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")TV;"
}
.end annotation
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lf/k/e/r;->a(Ljava/lang/Comparable;)I
move-result v0
if-ltz v0, :cond_0
iget-object p1, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lf/k/e/r$c;
iget-object p1, p1, Lf/k/e/r$c;->e:Ljava/lang/Object;
return-object p1
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public hashCode()I
.locals 4
invoke-virtual {p0}, Lf/k/e/r;->b()I
move-result v0
const/4 v1, 0x0
const/4 v2, 0x0
:goto_0
if-ge v1, v0, :cond_0
iget-object v3, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Lf/k/e/r$c;
invoke-virtual {v3}, Lf/k/e/r$c;->hashCode()I
move-result v3
add-int/2addr v2, v3
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->size()I
move-result v0
if-lez v0, :cond_1
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->hashCode()I
move-result v0
add-int/2addr v2, v0
:cond_1
return v2
.end method
.method public bridge synthetic put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1, p2}, Lf/k/e/r;->a(Ljava/lang/Comparable;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public remove(Ljava/lang/Object;)Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")TV;"
}
.end annotation
invoke-virtual {p0}, Lf/k/e/r;->a()V
check-cast p1, Ljava/lang/Comparable;
invoke-virtual {p0, p1}, Lf/k/e/r;->a(Ljava/lang/Comparable;)I
move-result v0
if-ltz v0, :cond_0
invoke-virtual {p0, v0}, Lf/k/e/r;->b(I)Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_0
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->isEmpty()Z
move-result v0
if-eqz v0, :cond_1
const/4 p1, 0x0
return-object p1
:cond_1
iget-object v0, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
return-object p1
.end method
.method public size()I
.locals 2
iget-object v0, p0, Lf/k/e/r;->e:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
iget-object v1, p0, Lf/k/e/r;->f:Ljava/util/Map;
invoke-interface {v1}, Ljava/util/Map;->size()I
move-result v1
add-int/2addr v1, v0
return v1
.end method