.class public Ly3/b;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Ly3/c;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ly3/c<",
        "Lx3/c;",
        "[B>;"
    }
.end annotation


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

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

    return-void
.end method


# virtual methods
.method public d(Lm3/w;Lk3/e;)Lm3/w;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lm3/w<",
            "Lx3/c;",
            ">;",
            "Lk3/e;",
            ")",
            "Lm3/w<",
            "[B>;"
        }
    .end annotation

    invoke-interface {p1}, Lm3/w;->get()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lx3/c;

    .line 1
    iget-object p1, p1, Lx3/c;->r:Lx3/c$a;

    iget-object p1, p1, Lx3/c$a;->a:Lx3/f;

    .line 2
    iget-object p1, p1, Lx3/f;->a:Lj3/a;

    invoke-interface {p1}, Lj3/a;->g()Ljava/nio/ByteBuffer;

    move-result-object p1

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer;

    move-result-object p1

    .line 3
    new-instance p2, Lu3/b;

    sget-object v0, Lg4/a;->a:Ljava/util/concurrent/atomic/AtomicReference;

    .line 4
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->isReadOnly()Z

    move-result v0

    if-nez v0, :cond_36

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->hasArray()Z

    move-result v0

    if-eqz v0, :cond_36

    new-instance v0, Lg4/a$b;

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object v1

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->arrayOffset()I

    move-result v2

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I

    move-result v3

    invoke-direct {v0, v1, v2, v3}, Lg4/a$b;-><init>([BII)V

    goto :goto_37

    :cond_36
    const/4 v0, 0x0

    :goto_37
    if-eqz v0, :cond_49

    .line 5
    iget v1, v0, Lg4/a$b;->a:I

    if-nez v1, :cond_49

    iget v1, v0, Lg4/a$b;->b:I

    iget-object v0, v0, Lg4/a$b;->c:[B

    array-length v0, v0

    if-ne v1, v0, :cond_49

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p1

    goto :goto_5b

    :cond_49
    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->asReadOnlyBuffer()Ljava/nio/ByteBuffer;

    move-result-object p1

    invoke-virtual {p1}, Ljava/nio/ByteBuffer;->limit()I

    move-result v0

    new-array v0, v0, [B

    const/4 v1, 0x0

    invoke-virtual {p1, v1}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->get([B)Ljava/nio/ByteBuffer;

    move-object p1, v0

    .line 6
    :goto_5b
    invoke-direct {p2, p1}, Lu3/b;-><init>([B)V

    return-object p2
.end method
