q0.smali
.class public Lfb/q0;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T::",
"Lfb/r0;",
":",
"Ljava/lang/Comparable<",
"-TT;>;>",
"Ljava/lang/Object;"
}
.end annotation
.annotation runtime Lkotlin/Metadata;
.end annotation
# static fields
.field private static final b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
# instance fields
.field private volatile _size:I
.field private a:[Lfb/r0;
.annotation system Ldalvik/annotation/Signature;
value = {
"[TT;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 2
const-class v0, Lfb/q0;
const-string v1, "_size"
invoke-static {v0, v1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->newUpdater(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
move-result-object v0
sput-object v0, Lfb/q0;->b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method private final f()[Lfb/r0;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()[TT;"
}
.end annotation
iget-object v0, p0, Lfb/q0;->a:[Lfb/r0;
if-nez v0, :cond_a
const/4 v0, 0x4
new-array v0, v0, [Lfb/r0;
iput-object v0, p0, Lfb/q0;->a:[Lfb/r0;
goto :goto_24
:cond_a
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v1
array-length v2, v0
if-lt v1, v2, :cond_24
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v1
mul-int/lit8 v1, v1, 0x2
invoke-static {v0, v1}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object;
move-result-object v0
const-string v1, "copyOf(this, newSize)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
check-cast v0, [Lfb/r0;
iput-object v0, p0, Lfb/q0;->a:[Lfb/r0;
:cond_24
:goto_24
return-object v0
.end method
.method private final j(I)V
.registers 3
sget-object v0, Lfb/q0;->b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
invoke-virtual {v0, p0, p1}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->set(Ljava/lang/Object;I)V
return-void
.end method
.method private final k(I)V
.registers 7
:goto_0
mul-int/lit8 v0, p1, 0x2
add-int/lit8 v0, v0, 0x1
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v1
if-lt v0, v1, :cond_b
return-void
:cond_b
iget-object v1, p0, Lfb/q0;->a:[Lfb/r0;
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
add-int/lit8 v2, v0, 0x1
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v3
if-ge v2, v3, :cond_2b
aget-object v3, v1, v2
invoke-static {v3}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
check-cast v3, Ljava/lang/Comparable;
aget-object v4, v1, v0
invoke-static {v4}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
invoke-interface {v3, v4}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v3
if-gez v3, :cond_2b
move v0, v2
:cond_2b
aget-object v2, v1, p1
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
check-cast v2, Ljava/lang/Comparable;
aget-object v1, v1, v0
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
invoke-interface {v2, v1}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v1
if-gtz v1, :cond_3e
return-void
:cond_3e
invoke-direct {p0, p1, v0}, Lfb/q0;->m(II)V
move p1, v0
goto :goto_0
.end method
.method private final l(I)V
.registers 5
:goto_0
if-gtz p1, :cond_3
return-void
:cond_3
iget-object v0, p0, Lfb/q0;->a:[Lfb/r0;
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
add-int/lit8 v1, p1, -0x1
div-int/lit8 v1, v1, 0x2
aget-object v2, v0, v1
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
check-cast v2, Ljava/lang/Comparable;
aget-object v0, v0, p1
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
invoke-interface {v2, v0}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v0
if-gtz v0, :cond_1f
return-void
:cond_1f
invoke-direct {p0, p1, v1}, Lfb/q0;->m(II)V
move p1, v1
goto :goto_0
.end method
.method private final m(II)V
.registers 6
iget-object v0, p0, Lfb/q0;->a:[Lfb/r0;
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
aget-object v1, v0, p2
invoke-static {v1}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
aget-object v2, v0, p1
invoke-static {v2}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
aput-object v1, v0, p1
aput-object v2, v0, p2
invoke-interface {v1, p1}, Lfb/r0;->setIndex(I)V
invoke-interface {v2, p2}, Lfb/r0;->setIndex(I)V
return-void
.end method
# virtual methods
.method public final a(Lfb/r0;)V
.registers 5
.param p1 # Lfb/r0;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
invoke-static {}, Lbb/q0;->a()Z
move-result v0
if-eqz v0, :cond_18
invoke-interface {p1}, Lfb/r0;->d()Lfb/q0;
move-result-object v0
if-nez v0, :cond_e
const/4 v0, 0x1
goto :goto_f
:cond_e
const/4 v0, 0x0
:goto_f
if-eqz v0, :cond_12
goto :goto_18
:cond_12
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_18
:goto_18
invoke-interface {p1, p0}, Lfb/r0;->j(Lfb/q0;)V
invoke-direct {p0}, Lfb/q0;->f()[Lfb/r0;
move-result-object v0
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v1
add-int/lit8 v2, v1, 0x1
invoke-direct {p0, v2}, Lfb/q0;->j(I)V
aput-object p1, v0, v1
invoke-interface {p1, v1}, Lfb/r0;->setIndex(I)V
invoke-direct {p0, v1}, Lfb/q0;->l(I)V
return-void
.end method
.method public final b()Lfb/r0;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Lfb/q0;->a:[Lfb/r0;
if-eqz v0, :cond_8
const/4 v1, 0x0
aget-object v0, v0, v1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return-object v0
.end method
.method public final c()I
.registers 2
sget-object v0, Lfb/q0;->b:Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;
invoke-virtual {v0, p0}, Ljava/util/concurrent/atomic/AtomicIntegerFieldUpdater;->get(Ljava/lang/Object;)I
move-result v0
return v0
.end method
.method public final d()Z
.registers 2
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v0
if-nez v0, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public final e()Lfb/r0;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
monitor-enter p0
:try_start_1
invoke-virtual {p0}, Lfb/q0;->b()Lfb/r0;
move-result-object v0
:try_end_5
.catchall {:try_start_1 .. :try_end_5} :catchall_7
monitor-exit p0
return-object v0
:catchall_7
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final g(Lfb/r0;)Z
.registers 5
.param p1 # Lfb/r0;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
monitor-enter p0
:try_start_1
invoke-interface {p1}, Lfb/r0;->d()Lfb/q0;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_9
goto :goto_24
:cond_9
invoke-interface {p1}, Lfb/r0;->getIndex()I
move-result p1
invoke-static {}, Lbb/q0;->a()Z
move-result v0
const/4 v2, 0x1
if-eqz v0, :cond_20
if-ltz p1, :cond_17
const/4 v1, 0x1
:cond_17
if-eqz v1, :cond_1a
goto :goto_20
:cond_1a
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_20
:goto_20
invoke-virtual {p0, p1}, Lfb/q0;->h(I)Lfb/r0;
:try_end_23
.catchall {:try_start_1 .. :try_end_23} :catchall_26
const/4 v1, 0x1
:goto_24
monitor-exit p0
return v1
:catchall_26
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final h(I)Lfb/r0;
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)TT;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
invoke-static {}, Lbb/q0;->a()Z
move-result v0
const/4 v1, 0x0
const/4 v2, 0x1
if-eqz v0, :cond_1a
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v0
if-lez v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
if-eqz v0, :cond_14
goto :goto_1a
:cond_14
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_1a
:goto_1a
iget-object v0, p0, Lfb/q0;->a:[Lfb/r0;
invoke-static {v0}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v3
const/4 v4, -0x1
add-int/2addr v3, v4
invoke-direct {p0, v3}, Lfb/q0;->j(I)V
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v3
if-ge p1, v3, :cond_57
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v3
invoke-direct {p0, p1, v3}, Lfb/q0;->m(II)V
add-int/lit8 v3, p1, -0x1
div-int/lit8 v3, v3, 0x2
if-lez p1, :cond_54
aget-object v5, v0, p1
invoke-static {v5}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
check-cast v5, Ljava/lang/Comparable;
aget-object v6, v0, v3
invoke-static {v6}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
invoke-interface {v5, v6}, Ljava/lang/Comparable;->compareTo(Ljava/lang/Object;)I
move-result v5
if-gez v5, :cond_54
invoke-direct {p0, p1, v3}, Lfb/q0;->m(II)V
invoke-direct {p0, v3}, Lfb/q0;->l(I)V
goto :goto_57
:cond_54
invoke-direct {p0, p1}, Lfb/q0;->k(I)V
:cond_57
:goto_57
invoke-virtual {p0}, Lfb/q0;->c()I
move-result p1
aget-object p1, v0, p1
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->c(Ljava/lang/Object;)V
invoke-static {}, Lbb/q0;->a()Z
move-result v3
if-eqz v3, :cond_76
invoke-interface {p1}, Lfb/r0;->d()Lfb/q0;
move-result-object v3
if-ne v3, p0, :cond_6d
const/4 v1, 0x1
:cond_6d
if-eqz v1, :cond_70
goto :goto_76
:cond_70
new-instance p1, Ljava/lang/AssertionError;
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
throw p1
:cond_76
:goto_76
const/4 v1, 0x0
invoke-interface {p1, v1}, Lfb/r0;->j(Lfb/q0;)V
invoke-interface {p1, v4}, Lfb/r0;->setIndex(I)V
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v2
aput-object v1, v0, v2
return-object p1
.end method
.method public final i()Lfb/r0;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
monitor-enter p0
:try_start_1
invoke-virtual {p0}, Lfb/q0;->c()I
move-result v0
if-lez v0, :cond_d
const/4 v0, 0x0
invoke-virtual {p0, v0}, Lfb/q0;->h(I)Lfb/r0;
move-result-object v0
:try_end_c
.catchall {:try_start_1 .. :try_end_c} :catchall_10
goto :goto_e
:cond_d
const/4 v0, 0x0
:goto_e
monitor-exit p0
return-object v0
:catchall_10
move-exception v0
monitor-exit p0
throw v0
.end method