.class public final Lz5/iz1;
.super Ljava/lang/Object;
.source ""


# static fields
.field public static final d:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator<",
            "[B>;"
        }
    .end annotation
.end field


# instance fields
.field public final a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "[B>;"
        }
    .end annotation
.end field

.field public final b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "[B>;"
        }
    .end annotation
.end field

.field public c:I


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

    new-instance v0, Lz5/hz1;

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

    sput-object v0, Lz5/iz1;->d:Ljava/util/Comparator;

    return-void
.end method

.method public constructor <init>(I)V
    .registers 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    iput-object p1, p0, Lz5/iz1;->a:Ljava/util/List;

    new-instance p1, Ljava/util/ArrayList;

    const/16 v0, 0x40

    invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(I)V

    iput-object p1, p0, Lz5/iz1;->b:Ljava/util/List;

    const/4 p1, 0x0

    iput p1, p0, Lz5/iz1;->c:I

    return-void
.end method


# virtual methods
.method public final declared-synchronized a(I)[B
    .registers 5

    monitor-enter p0

    const/4 v0, 0x0

    :goto_2
    :try_start_2
    iget-object v1, p0, Lz5/iz1;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_29

    iget-object v1, p0, Lz5/iz1;->b:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, [B

    array-length v2, v1

    if-lt v2, p1, :cond_26

    iget p1, p0, Lz5/iz1;->c:I

    sub-int/2addr p1, v2

    iput p1, p0, Lz5/iz1;->c:I

    iget-object p1, p0, Lz5/iz1;->b:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    iget-object p1, p0, Lz5/iz1;->a:Ljava/util/List;

    invoke-interface {p1, v1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
    :try_end_24
    .catchall {:try_start_2 .. :try_end_24} :catchall_2d

    monitor-exit p0

    return-object v1

    :cond_26
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    :cond_29
    :try_start_29
    new-array p1, p1, [B
    :try_end_2b
    .catchall {:try_start_29 .. :try_end_2b} :catchall_2d

    monitor-exit p0

    return-object p1

    :catchall_2d
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public final declared-synchronized b([B)V
    .registers 6

    monitor-enter p0

    if-eqz p1, :cond_48

    :try_start_3
    array-length v0, p1

    const/16 v1, 0x1000

    if-le v0, v1, :cond_9

    goto :goto_48

    :cond_9
    iget-object v2, p0, Lz5/iz1;->a:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v2, p0, Lz5/iz1;->b:Ljava/util/List;

    sget-object v3, Lz5/iz1;->d:Ljava/util/Comparator;

    invoke-static {v2, p1, v3}, Ljava/util/Collections;->binarySearch(Ljava/util/List;Ljava/lang/Object;Ljava/util/Comparator;)I

    move-result v2

    if-gez v2, :cond_1b

    neg-int v2, v2

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

    :cond_1b
    iget-object v3, p0, Lz5/iz1;->b:Ljava/util/List;

    invoke-interface {v3, v2, p1}, Ljava/util/List;->add(ILjava/lang/Object;)V

    iget p1, p0, Lz5/iz1;->c:I

    add-int/2addr p1, v0

    iput p1, p0, Lz5/iz1;->c:I

    .line 1
    monitor-enter p0
    :try_end_26
    .catchall {:try_start_3 .. :try_end_26} :catchall_45

    :goto_26
    :try_start_26
    iget p1, p0, Lz5/iz1;->c:I

    if-le p1, v1, :cond_3f

    iget-object p1, p0, Lz5/iz1;->a:Ljava/util/List;

    const/4 v0, 0x0

    invoke-interface {p1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [B

    iget-object v0, p0, Lz5/iz1;->b:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    iget v0, p0, Lz5/iz1;->c:I

    array-length p1, p1

    sub-int/2addr v0, p1

    iput v0, p0, Lz5/iz1;->c:I
    :try_end_3e
    .catchall {:try_start_26 .. :try_end_3e} :catchall_42

    goto :goto_26

    :cond_3f
    :try_start_3f
    monitor-exit p0
    :try_end_40
    .catchall {:try_start_3f .. :try_end_40} :catchall_45

    .line 2
    monitor-exit p0

    return-void

    :catchall_42
    move-exception p1

    .line 3
    :try_start_43
    monitor-exit p0

    throw p1
    :try_end_45
    .catchall {:try_start_43 .. :try_end_45} :catchall_45

    :catchall_45
    move-exception p1

    monitor-exit p0

    throw p1

    .line 4
    :cond_48
    :goto_48
    monitor-exit p0

    return-void
.end method
