Rabbit-R1/switch port/smali/smali_classes3/io/sentry/CircularFifoQueue$1.smali
2024-05-21 17:08:36 -04:00

372 lines
9.6 KiB
Smali

.class Lio/sentry/CircularFifoQueue$1;
.super Ljava/lang/Object;
.source "CircularFifoQueue.java"
# interfaces
.implements Ljava/util/Iterator;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lio/sentry/CircularFifoQueue;->iterator()Ljava/util/Iterator;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/util/Iterator<",
"TE;>;"
}
.end annotation
# instance fields
.field private index:I
.field private isFirst:Z
.field private lastReturnedIndex:I
.field final synthetic this$0:Lio/sentry/CircularFifoQueue;
# direct methods
.method constructor <init>(Lio/sentry/CircularFifoQueue;)V
.locals 1
iput-object p1, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 362
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 364
invoke-static {p1}, Lio/sentry/CircularFifoQueue;->access$000(Lio/sentry/CircularFifoQueue;)I
move-result v0
iput v0, p0, Lio/sentry/CircularFifoQueue$1;->index:I
const/4 v0, -0x1
iput v0, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
.line 366
invoke-static {p1}, Lio/sentry/CircularFifoQueue;->access$100(Lio/sentry/CircularFifoQueue;)Z
move-result p1
iput-boolean p1, p0, Lio/sentry/CircularFifoQueue$1;->isFirst:Z
return-void
.end method
# virtual methods
.method public hasNext()Z
.locals 1
iget-boolean v0, p0, Lio/sentry/CircularFifoQueue$1;->isFirst:Z
if-nez v0, :cond_1
iget v0, p0, Lio/sentry/CircularFifoQueue$1;->index:I
iget-object p0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 370
invoke-static {p0}, Lio/sentry/CircularFifoQueue;->access$200(Lio/sentry/CircularFifoQueue;)I
move-result p0
if-eq v0, p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method public next()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TE;"
}
.end annotation
.line 375
invoke-virtual {p0}, Lio/sentry/CircularFifoQueue$1;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
const/4 v0, 0x0
iput-boolean v0, p0, Lio/sentry/CircularFifoQueue$1;->isFirst:Z
iget v0, p0, Lio/sentry/CircularFifoQueue$1;->index:I
iput v0, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
iget-object v1, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 380
invoke-static {v1, v0}, Lio/sentry/CircularFifoQueue;->access$300(Lio/sentry/CircularFifoQueue;I)I
move-result v0
iput v0, p0, Lio/sentry/CircularFifoQueue$1;->index:I
iget-object v0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 381
invoke-static {v0}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v0
iget p0, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
aget-object p0, v0, p0
return-object p0
.line 376
:cond_0
new-instance p0, Ljava/util/NoSuchElementException;
invoke-direct {p0}, Ljava/util/NoSuchElementException;-><init>()V
throw p0
.end method
.method public remove()V
.locals 7
iget v0, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
const/4 v1, -0x1
if-eq v0, v1, :cond_4
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 391
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$000(Lio/sentry/CircularFifoQueue;)I
move-result v2
if-ne v0, v2, :cond_0
iget-object v0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 392
invoke-virtual {v0}, Lio/sentry/CircularFifoQueue;->remove()Ljava/lang/Object;
iput v1, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
return-void
:cond_0
iget v0, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
add-int/lit8 v0, v0, 0x1
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 398
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$000(Lio/sentry/CircularFifoQueue;)I
move-result v2
iget v3, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
const/4 v4, 0x0
if-ge v2, v3, :cond_1
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$200(Lio/sentry/CircularFifoQueue;)I
move-result v2
if-ge v0, v2, :cond_1
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 400
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v2
iget-object v3, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v3}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v3
iget v5, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
iget-object v6, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v6}, Lio/sentry/CircularFifoQueue;->access$200(Lio/sentry/CircularFifoQueue;)I
move-result v6
sub-int/2addr v6, v0
invoke-static {v2, v0, v3, v5, v6}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
goto :goto_1
:cond_1
:goto_0
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 403
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$200(Lio/sentry/CircularFifoQueue;)I
move-result v2
if-eq v0, v2, :cond_3
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 404
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$500(Lio/sentry/CircularFifoQueue;)I
move-result v2
if-lt v0, v2, :cond_2
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 405
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v2
add-int/lit8 v0, v0, -0x1
iget-object v3, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v3}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v3
aget-object v3, v3, v4
aput-object v3, v2, v0
move v0, v4
goto :goto_0
:cond_2
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 408
invoke-static {v2}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v2
iget-object v3, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v3, v0}, Lio/sentry/CircularFifoQueue;->access$600(Lio/sentry/CircularFifoQueue;I)I
move-result v3
iget-object v5, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v5}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v5
aget-object v5, v5, v0
aput-object v5, v2, v3
iget-object v2, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 409
invoke-static {v2, v0}, Lio/sentry/CircularFifoQueue;->access$300(Lio/sentry/CircularFifoQueue;I)I
move-result v0
goto :goto_0
:cond_3
:goto_1
iput v1, p0, Lio/sentry/CircularFifoQueue$1;->lastReturnedIndex:I
iget-object v0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 415
invoke-static {v0}, Lio/sentry/CircularFifoQueue;->access$200(Lio/sentry/CircularFifoQueue;)I
move-result v1
invoke-static {v0, v1}, Lio/sentry/CircularFifoQueue;->access$600(Lio/sentry/CircularFifoQueue;I)I
move-result v1
invoke-static {v0, v1}, Lio/sentry/CircularFifoQueue;->access$202(Lio/sentry/CircularFifoQueue;I)I
iget-object v0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 416
invoke-static {v0}, Lio/sentry/CircularFifoQueue;->access$400(Lio/sentry/CircularFifoQueue;)[Ljava/lang/Object;
move-result-object v0
iget-object v1, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
invoke-static {v1}, Lio/sentry/CircularFifoQueue;->access$200(Lio/sentry/CircularFifoQueue;)I
move-result v1
const/4 v2, 0x0
aput-object v2, v0, v1
iget-object v0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
.line 417
invoke-static {v0, v4}, Lio/sentry/CircularFifoQueue;->access$102(Lio/sentry/CircularFifoQueue;Z)Z
iget-object v0, p0, Lio/sentry/CircularFifoQueue$1;->this$0:Lio/sentry/CircularFifoQueue;
iget v1, p0, Lio/sentry/CircularFifoQueue$1;->index:I
.line 418
invoke-static {v0, v1}, Lio/sentry/CircularFifoQueue;->access$600(Lio/sentry/CircularFifoQueue;I)I
move-result v0
iput v0, p0, Lio/sentry/CircularFifoQueue$1;->index:I
return-void
.line 387
:cond_4
new-instance p0, Ljava/lang/IllegalStateException;
invoke-direct {p0}, Ljava/lang/IllegalStateException;-><init>()V
throw p0
.end method