.class public abstract Lq9/i0;
.super Lq9/u;
.source ""


# instance fields
.field public s:J

.field public t:Z

.field public u:Lz5/qa;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lz5/qa;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Lq9/u;-><init>()V

    return-void
.end method


# virtual methods
.method public final a0(Z)V
    .registers 6

    iget-wide v0, p0, Lq9/i0;->s:J

    invoke-virtual {p0, p1}, Lq9/i0;->b0(Z)J

    move-result-wide v2

    sub-long/2addr v0, v2

    iput-wide v0, p0, Lq9/i0;->s:J

    const-wide/16 v2, 0x0

    cmp-long p1, v0, v2

    if-lez p1, :cond_10

    return-void

    :cond_10
    iget-boolean p1, p0, Lq9/i0;->t:Z

    if-eqz p1, :cond_17

    invoke-virtual {p0}, Lq9/i0;->shutdown()V

    :cond_17
    return-void
.end method

.method public final b0(Z)J
    .registers 4

    if-eqz p1, :cond_8

    const-wide v0, 0x100000000L

    goto :goto_a

    :cond_8
    const-wide/16 v0, 0x1

    :goto_a
    return-wide v0
.end method

.method public final c0(Lq9/d0;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lq9/d0<",
            "*>;)V"
        }
    .end annotation

    iget-object v0, p0, Lq9/i0;->u:Lz5/qa;

    if-nez v0, :cond_b

    new-instance v0, Lz5/qa;

    invoke-direct {v0}, Lz5/qa;-><init>()V

    iput-object v0, p0, Lq9/i0;->u:Lz5/qa;

    .line 1
    :cond_b
    iget-object v1, v0, Lz5/qa;->d:Ljava/lang/Object;

    check-cast v1, [Ljava/lang/Object;

    iget v2, v0, Lz5/qa;->c:I

    aput-object p1, v1, v2

    add-int/lit8 v2, v2, 0x1

    array-length p1, v1

    add-int/lit8 p1, p1, -0x1

    and-int/2addr p1, v2

    iput p1, v0, Lz5/qa;->c:I

    iget v1, v0, Lz5/qa;->b:I

    if-ne p1, v1, :cond_22

    invoke-virtual {v0}, Lz5/qa;->a()V

    :cond_22
    return-void
.end method

.method public final d0(Z)V
    .registers 6

    iget-wide v0, p0, Lq9/i0;->s:J

    invoke-virtual {p0, p1}, Lq9/i0;->b0(Z)J

    move-result-wide v2

    add-long/2addr v2, v0

    iput-wide v2, p0, Lq9/i0;->s:J

    if-nez p1, :cond_e

    const/4 p1, 0x1

    iput-boolean p1, p0, Lq9/i0;->t:Z

    :cond_e
    return-void
.end method

.method public final e0()Z
    .registers 6

    iget-wide v0, p0, Lq9/i0;->s:J

    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lq9/i0;->b0(Z)J

    move-result-wide v3

    cmp-long v0, v0, v3

    if-ltz v0, :cond_c

    goto :goto_d

    :cond_c
    const/4 v2, 0x0

    :goto_d
    return v2
.end method

.method public final f0()Z
    .registers 8

    iget-object v0, p0, Lq9/i0;->u:Lz5/qa;

    const/4 v1, 0x0

    if-nez v0, :cond_6

    return v1

    .line 1
    :cond_6
    iget v2, v0, Lz5/qa;->b:I

    iget v3, v0, Lz5/qa;->c:I

    const/4 v4, 0x0

    const/4 v5, 0x1

    if-ne v2, v3, :cond_f

    goto :goto_24

    :cond_f
    iget-object v3, v0, Lz5/qa;->d:Ljava/lang/Object;

    check-cast v3, [Ljava/lang/Object;

    aget-object v6, v3, v2

    aput-object v4, v3, v2

    add-int/2addr v2, v5

    array-length v3, v3

    add-int/lit8 v3, v3, -0x1

    and-int/2addr v2, v3

    iput v2, v0, Lz5/qa;->b:I

    const-string v0, "null cannot be cast to non-null type T of kotlinx.coroutines.internal.ArrayQueue"

    invoke-static {v6, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    move-object v4, v6

    .line 2
    :goto_24
    check-cast v4, Lq9/d0;

    if-nez v4, :cond_29

    return v1

    :cond_29
    invoke-virtual {v4}, Lq9/d0;->run()V

    return v5
.end method

.method public shutdown()V
    .registers 1

    return-void
.end method
