apkfuckery/com.discord/smali_classes2/kotlin/a/d$d.smali
2019-02-04 21:08:30 +01:00

211 lines
5 KiB
Smali

.class final Lkotlin/a/d$d;
.super Lkotlin/a/d;
# interfaces
.implements Ljava/util/RandomAccess;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lkotlin/a/d;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "d"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Object;",
">",
"Lkotlin/a/d<",
"TE;>;",
"Ljava/util/RandomAccess;"
}
.end annotation
# instance fields
.field private bPu:I
.field private final bPv:Lkotlin/a/d;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lkotlin/a/d<",
"TE;>;"
}
.end annotation
.end field
.field private final bPw:I
# direct methods
.method public constructor <init>(Lkotlin/a/d;II)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/a/d<",
"+TE;>;II)V"
}
.end annotation
const-string v0, "list"
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0}, Lkotlin/a/d;-><init>()V
iput-object p1, p0, Lkotlin/a/d$d;->bPv:Lkotlin/a/d;
iput p2, p0, Lkotlin/a/d$d;->bPw:I
iget p1, p0, Lkotlin/a/d$d;->bPw:I
iget-object p2, p0, Lkotlin/a/d$d;->bPv:Lkotlin/a/d;
invoke-virtual {p2}, Lkotlin/a/d;->size()I
move-result p2
if-ltz p1, :cond_1
if-gt p3, p2, :cond_1
if-gt p1, p3, :cond_0
iget p1, p0, Lkotlin/a/d$d;->bPw:I
sub-int/2addr p3, p1
iput p3, p0, Lkotlin/a/d$d;->bPu:I
return-void
:cond_0
new-instance p2, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
const-string v1, "fromIndex: "
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " > toIndex: "
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast p2, Ljava/lang/Throwable;
throw p2
:cond_1
new-instance v0, Ljava/lang/IndexOutOfBoundsException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "fromIndex: "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, ", toIndex: "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, ", size: "
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/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
check-cast v0, Ljava/lang/Throwable;
throw v0
.end method
# virtual methods
.method public final get(I)Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TE;"
}
.end annotation
iget v0, p0, Lkotlin/a/d$d;->bPu:I
if-ltz p1, :cond_0
if-ge p1, v0, :cond_0
iget-object v0, p0, Lkotlin/a/d$d;->bPv:Lkotlin/a/d;
iget v1, p0, Lkotlin/a/d$d;->bPw:I
add-int/2addr v1, p1
invoke-virtual {v0, v1}, Lkotlin/a/d;->get(I)Ljava/lang/Object;
move-result-object p1
return-object p1
:cond_0
new-instance v1, Ljava/lang/IndexOutOfBoundsException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "index: "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, ", size: "
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
check-cast v1, Ljava/lang/Throwable;
throw v1
.end method
.method public final getSize()I
.locals 1
iget v0, p0, Lkotlin/a/d$d;->bPu:I
return v0
.end method