e.smali
.class public Lf/b/b/b/h1/e;
.super Lf/b/b/b/h1/a;
.source ""
# instance fields
.field public final e:Lf/b/b/b/h1/b;
.field public f:Ljava/nio/ByteBuffer;
.field public g:Z
.field public h:J
.field public i:Ljava/nio/ByteBuffer;
.field private final j:I
# direct methods
.method public constructor <init>(I)V
.registers 3
invoke-direct {p0}, Lf/b/b/b/h1/a;-><init>()V
new-instance v0, Lf/b/b/b/h1/b;
invoke-direct {v0}, Lf/b/b/b/h1/b;-><init>()V
iput-object v0, p0, Lf/b/b/b/h1/e;->e:Lf/b/b/b/h1/b;
iput p1, p0, Lf/b/b/b/h1/e;->j:I
return-void
.end method
.method private e(I)Ljava/nio/ByteBuffer;
.registers 6
iget v0, p0, Lf/b/b/b/h1/e;->j:I
const/4 v1, 0x1
if-ne v0, v1, :cond_a
invoke-static {p1}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object p1
return-object p1
:cond_a
const/4 v1, 0x2
if-ne v0, v1, :cond_12
invoke-static {p1}, Ljava/nio/ByteBuffer;->allocateDirect(I)Ljava/nio/ByteBuffer;
move-result-object p1
return-object p1
:cond_12
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
if-nez v0, :cond_18
const/4 v0, 0x0
goto :goto_1c
:cond_18
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->capacity()I
move-result v0
:goto_1c
new-instance v1, Ljava/lang/IllegalStateException;
const/16 v2, 0x2c
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3, v2}, Ljava/lang/StringBuilder;-><init>(I)V
const-string v2, "Buffer too small ("
invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string v0, " < "
invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, ")"
invoke-virtual {v3, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v1, p1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public static j()Lf/b/b/b/h1/e;
.registers 2
new-instance v0, Lf/b/b/b/h1/e;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lf/b/b/b/h1/e;-><init>(I)V
return-object v0
.end method
# virtual methods
.method public clear()V
.registers 2
invoke-super {p0}, Lf/b/b/b/h1/a;->clear()V
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
if-eqz v0, :cond_a
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
:cond_a
iget-object v0, p0, Lf/b/b/b/h1/e;->i:Ljava/nio/ByteBuffer;
if-eqz v0, :cond_11
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
:cond_11
const/4 v0, 0x0
iput-boolean v0, p0, Lf/b/b/b/h1/e;->g:Z
return-void
.end method
.method public f(I)V
.registers 4
.annotation runtime Lorg/checkerframework/checker/nullness/qual/EnsuresNonNull;
value = {
"data"
}
.end annotation
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
if-nez v0, :cond_b
invoke-direct {p0, p1}, Lf/b/b/b/h1/e;->e(I)Ljava/nio/ByteBuffer;
move-result-object p1
iput-object p1, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
return-void
:cond_b
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->capacity()I
move-result v0
iget-object v1, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
invoke-virtual {v1}, Ljava/nio/ByteBuffer;->position()I
move-result v1
add-int/2addr p1, v1
if-lt v0, p1, :cond_19
return-void
:cond_19
invoke-direct {p0, p1}, Lf/b/b/b/h1/e;->e(I)Ljava/nio/ByteBuffer;
move-result-object p1
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->order()Ljava/nio/ByteOrder;
move-result-object v0
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->order(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
if-lez v1, :cond_32
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
invoke-virtual {p1, v0}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
:cond_32
iput-object p1, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
return-void
.end method
.method public final g()V
.registers 2
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
iget-object v0, p0, Lf/b/b/b/h1/e;->i:Ljava/nio/ByteBuffer;
if-eqz v0, :cond_c
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->flip()Ljava/nio/Buffer;
:cond_c
return-void
.end method
.method public final h()Z
.registers 2
const/high16 v0, 0x40000000 # 2.0f
invoke-virtual {p0, v0}, Lf/b/b/b/h1/a;->getFlag(I)Z
move-result v0
return v0
.end method
.method public final i()Z
.registers 2
iget-object v0, p0, Lf/b/b/b/h1/e;->f:Ljava/nio/ByteBuffer;
if-nez v0, :cond_a
iget v0, p0, Lf/b/b/b/h1/e;->j:I
if-nez v0, :cond_a
const/4 v0, 0x1
goto :goto_b
:cond_a
const/4 v0, 0x0
:goto_b
return v0
.end method
.method public k(I)V
.registers 3
.annotation runtime Lorg/checkerframework/checker/nullness/qual/EnsuresNonNull;
value = {
"supplementalData"
}
.end annotation
iget-object v0, p0, Lf/b/b/b/h1/e;->i:Ljava/nio/ByteBuffer;
if-eqz v0, :cond_11
invoke-virtual {v0}, Ljava/nio/ByteBuffer;->capacity()I
move-result v0
if-ge v0, p1, :cond_b
goto :goto_11
:cond_b
iget-object p1, p0, Lf/b/b/b/h1/e;->i:Ljava/nio/ByteBuffer;
invoke-virtual {p1}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;
goto :goto_17
:cond_11
:goto_11
invoke-static {p1}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;
move-result-object p1
iput-object p1, p0, Lf/b/b/b/h1/e;->i:Ljava/nio/ByteBuffer;
:goto_17
return-void
.end method