b.smali
.class final Lf/b/b/b/k1/e0/b;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lf/b/b/b/k1/e0/g;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/b/b/b/k1/e0/b$b;
}
.end annotation
# instance fields
.field private final a:Lf/b/b/b/k1/e0/f;
.field private final b:J
.field private final c:J
.field private final d:Lf/b/b/b/k1/e0/i;
.field private e:I
.field private f:J
.field private g:J
.field private h:J
.field private i:J
.field private j:J
.field private k:J
.field private l:J
# direct methods
.method public constructor <init>(Lf/b/b/b/k1/e0/i;JJJJZ)V
.registers 15
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lf/b/b/b/k1/e0/f;
invoke-direct {v0}, Lf/b/b/b/k1/e0/f;-><init>()V
iput-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
const/4 v0, 0x0
const-wide/16 v1, 0x0
cmp-long v3, p2, v1
if-ltz v3, :cond_17
cmp-long v1, p4, p2
if-lez v1, :cond_17
const/4 v1, 0x1
goto :goto_18
:cond_17
const/4 v1, 0x0
:goto_18
invoke-static {v1}, Lf/b/b/b/s1/e;->a(Z)V
iput-object p1, p0, Lf/b/b/b/k1/e0/b;->d:Lf/b/b/b/k1/e0/i;
iput-wide p2, p0, Lf/b/b/b/k1/e0/b;->b:J
iput-wide p4, p0, Lf/b/b/b/k1/e0/b;->c:J
sub-long/2addr p4, p2
cmp-long p1, p6, p4
if-eqz p1, :cond_2c
if-eqz p10, :cond_29
goto :goto_2c
:cond_29
iput v0, p0, Lf/b/b/b/k1/e0/b;->e:I
goto :goto_31
:cond_2c
:goto_2c
iput-wide p8, p0, Lf/b/b/b/k1/e0/b;->f:J
const/4 p1, 0x4
iput p1, p0, Lf/b/b/b/k1/e0/b;->e:I
:goto_31
return-void
.end method
.method static synthetic d(Lf/b/b/b/k1/e0/b;)Lf/b/b/b/k1/e0/i;
.registers 1
iget-object p0, p0, Lf/b/b/b/k1/e0/b;->d:Lf/b/b/b/k1/e0/i;
return-object p0
.end method
.method static synthetic e(Lf/b/b/b/k1/e0/b;)J
.registers 3
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->b:J
return-wide v0
.end method
.method static synthetic f(Lf/b/b/b/k1/e0/b;)J
.registers 3
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->c:J
return-wide v0
.end method
.method static synthetic g(Lf/b/b/b/k1/e0/b;)J
.registers 3
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->f:J
return-wide v0
.end method
.method private i(Lf/b/b/b/k1/i;)J
.registers 16
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->i:J
iget-wide v2, p0, Lf/b/b/b/k1/e0/b;->j:J
const-wide/16 v4, -0x1
cmp-long v6, v0, v2
if-nez v6, :cond_b
return-wide v4
:cond_b
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v0
iget-wide v2, p0, Lf/b/b/b/k1/e0/b;->j:J
invoke-direct {p0, p1, v2, v3}, Lf/b/b/b/k1/e0/b;->l(Lf/b/b/b/k1/i;J)Z
move-result v2
if-nez v2, :cond_26
iget-wide v2, p0, Lf/b/b/b/k1/e0/b;->i:J
cmp-long p1, v2, v0
if-eqz p1, :cond_1e
return-wide v2
:cond_1e
new-instance p1, Ljava/io/IOException;
const-string v0, "No ogg page can be found."
invoke-direct {p1, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p1
:cond_26
iget-object v2, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
const/4 v3, 0x0
invoke-virtual {v2, p1, v3}, Lf/b/b/b/k1/e0/f;->a(Lf/b/b/b/k1/i;Z)Z
invoke-interface {p1}, Lf/b/b/b/k1/i;->g()V
iget-wide v2, p0, Lf/b/b/b/k1/e0/b;->h:J
iget-object v6, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget-wide v7, v6, Lf/b/b/b/k1/e0/f;->c:J
sub-long/2addr v2, v7
iget v9, v6, Lf/b/b/b/k1/e0/f;->e:I
iget v6, v6, Lf/b/b/b/k1/e0/f;->f:I
add-int/2addr v9, v6
const-wide/16 v10, 0x0
cmp-long v6, v10, v2
if-gtz v6, :cond_49
const-wide/32 v12, 0x11940
cmp-long v6, v2, v12
if-gez v6, :cond_49
return-wide v4
:cond_49
cmp-long v4, v2, v10
if-gez v4, :cond_52
iput-wide v0, p0, Lf/b/b/b/k1/e0/b;->j:J
iput-wide v7, p0, Lf/b/b/b/k1/e0/b;->l:J
goto :goto_60
:cond_52
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v0
int-to-long v4, v9
add-long/2addr v0, v4
iput-wide v0, p0, Lf/b/b/b/k1/e0/b;->i:J
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget-wide v0, v0, Lf/b/b/b/k1/e0/f;->c:J
iput-wide v0, p0, Lf/b/b/b/k1/e0/b;->k:J
:goto_60
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->j:J
iget-wide v4, p0, Lf/b/b/b/k1/e0/b;->i:J
sub-long/2addr v0, v4
const-wide/32 v6, 0x186a0
cmp-long v8, v0, v6
if-gez v8, :cond_6f
iput-wide v4, p0, Lf/b/b/b/k1/e0/b;->j:J
return-wide v4
:cond_6f
int-to-long v0, v9
const-wide/16 v4, 0x1
cmp-long v6, v2, v10
if-gtz v6, :cond_79
const-wide/16 v6, 0x2
goto :goto_7a
:cond_79
move-wide v6, v4
:goto_7a
mul-long v0, v0, v6
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v6
sub-long/2addr v6, v0
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->j:J
iget-wide v10, p0, Lf/b/b/b/k1/e0/b;->i:J
sub-long v8, v0, v10
mul-long v2, v2, v8
iget-wide v8, p0, Lf/b/b/b/k1/e0/b;->l:J
iget-wide v12, p0, Lf/b/b/b/k1/e0/b;->k:J
sub-long/2addr v8, v12
div-long/2addr v2, v8
add-long v8, v6, v2
sub-long v12, v0, v4
invoke-static/range {v8 .. v13}, Lf/b/b/b/s1/m0;->r(JJJ)J
move-result-wide v0
return-wide v0
.end method
.method private l(Lf/b/b/b/k1/i;J)Z
.registers 10
const-wide/16 v0, 0x3
add-long/2addr p2, v0
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->c:J
invoke-static {p2, p3, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
const/16 v0, 0x800
new-array v1, v0, [B
:goto_d
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v2
int-to-long v4, v0
add-long/2addr v2, v4
const/4 v4, 0x0
cmp-long v5, v2, p2
if-lez v5, :cond_23
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v2
sub-long v2, p2, v2
long-to-int v0, v2
const/4 v2, 0x4
if-ge v0, v2, :cond_23
return v4
:cond_23
invoke-interface {p1, v1, v4, v0, v4}, Lf/b/b/b/k1/i;->b([BIIZ)Z
:goto_26
add-int/lit8 v2, v0, -0x3
if-ge v4, v2, :cond_4e
aget-byte v2, v1, v4
const/16 v3, 0x4f
if-ne v2, v3, :cond_4b
add-int/lit8 v2, v4, 0x1
aget-byte v2, v1, v2
const/16 v3, 0x67
if-ne v2, v3, :cond_4b
add-int/lit8 v2, v4, 0x2
aget-byte v2, v1, v2
if-ne v2, v3, :cond_4b
add-int/lit8 v2, v4, 0x3
aget-byte v2, v1, v2
const/16 v3, 0x53
if-ne v2, v3, :cond_4b
invoke-interface {p1, v4}, Lf/b/b/b/k1/i;->h(I)V
const/4 p1, 0x1
return p1
:cond_4b
add-int/lit8 v4, v4, 0x1
goto :goto_26
:cond_4e
invoke-interface {p1, v2}, Lf/b/b/b/k1/i;->h(I)V
goto :goto_d
.end method
.method private m(Lf/b/b/b/k1/i;)V
.registers 9
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
const/4 v1, 0x0
:goto_3
invoke-virtual {v0, p1, v1}, Lf/b/b/b/k1/e0/f;->a(Lf/b/b/b/k1/i;Z)Z
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget-wide v2, v0, Lf/b/b/b/k1/e0/f;->c:J
iget-wide v4, p0, Lf/b/b/b/k1/e0/b;->h:J
cmp-long v6, v2, v4
if-gtz v6, :cond_25
iget v2, v0, Lf/b/b/b/k1/e0/f;->e:I
iget v0, v0, Lf/b/b/b/k1/e0/f;->f:I
add-int/2addr v2, v0
invoke-interface {p1, v2}, Lf/b/b/b/k1/i;->h(I)V
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v2
iput-wide v2, p0, Lf/b/b/b/k1/e0/b;->i:J
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget-wide v2, v0, Lf/b/b/b/k1/e0/f;->c:J
iput-wide v2, p0, Lf/b/b/b/k1/e0/b;->k:J
goto :goto_3
:cond_25
invoke-interface {p1}, Lf/b/b/b/k1/i;->g()V
return-void
.end method
# virtual methods
.method public a(Lf/b/b/b/k1/i;)J
.registers 9
iget v0, p0, Lf/b/b/b/k1/e0/b;->e:I
const/4 v1, 0x1
const/4 v2, 0x4
if-eqz v0, :cond_30
if-eq v0, v1, :cond_43
const/4 v1, 0x2
const-wide/16 v3, -0x1
const/4 v5, 0x3
if-eq v0, v1, :cond_19
if-eq v0, v5, :cond_24
if-ne v0, v2, :cond_13
return-wide v3
:cond_13
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
:cond_19
invoke-direct {p0, p1}, Lf/b/b/b/k1/e0/b;->i(Lf/b/b/b/k1/i;)J
move-result-wide v0
cmp-long v6, v0, v3
if-eqz v6, :cond_22
return-wide v0
:cond_22
iput v5, p0, Lf/b/b/b/k1/e0/b;->e:I
:cond_24
invoke-direct {p0, p1}, Lf/b/b/b/k1/e0/b;->m(Lf/b/b/b/k1/i;)V
iput v2, p0, Lf/b/b/b/k1/e0/b;->e:I
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->k:J
const-wide/16 v2, 0x2
add-long/2addr v0, v2
neg-long v0, v0
return-wide v0
:cond_30
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v3
iput-wide v3, p0, Lf/b/b/b/k1/e0/b;->g:J
iput v1, p0, Lf/b/b/b/k1/e0/b;->e:I
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->c:J
const-wide/32 v5, 0xff1b
sub-long/2addr v0, v5
cmp-long v5, v0, v3
if-lez v5, :cond_43
return-wide v0
:cond_43
invoke-virtual {p0, p1}, Lf/b/b/b/k1/e0/b;->j(Lf/b/b/b/k1/i;)J
move-result-wide v0
iput-wide v0, p0, Lf/b/b/b/k1/e0/b;->f:J
iput v2, p0, Lf/b/b/b/k1/e0/b;->e:I
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->g:J
return-wide v0
.end method
.method public bridge synthetic b()Lf/b/b/b/k1/t;
.registers 2
invoke-virtual {p0}, Lf/b/b/b/k1/e0/b;->h()Lf/b/b/b/k1/e0/b$b;
move-result-object v0
return-object v0
.end method
.method public c(J)V
.registers 13
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->f:J
const-wide/16 v2, 0x1
sub-long v8, v0, v2
const-wide/16 v6, 0x0
move-wide v4, p1
invoke-static/range {v4 .. v9}, Lf/b/b/b/s1/m0;->r(JJJ)J
move-result-wide p1
iput-wide p1, p0, Lf/b/b/b/k1/e0/b;->h:J
const/4 p1, 0x2
iput p1, p0, Lf/b/b/b/k1/e0/b;->e:I
iget-wide p1, p0, Lf/b/b/b/k1/e0/b;->b:J
iput-wide p1, p0, Lf/b/b/b/k1/e0/b;->i:J
iget-wide p1, p0, Lf/b/b/b/k1/e0/b;->c:J
iput-wide p1, p0, Lf/b/b/b/k1/e0/b;->j:J
const-wide/16 p1, 0x0
iput-wide p1, p0, Lf/b/b/b/k1/e0/b;->k:J
iget-wide p1, p0, Lf/b/b/b/k1/e0/b;->f:J
iput-wide p1, p0, Lf/b/b/b/k1/e0/b;->l:J
return-void
.end method
.method public h()Lf/b/b/b/k1/e0/b$b;
.registers 7
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->f:J
const/4 v2, 0x0
const-wide/16 v3, 0x0
cmp-long v5, v0, v3
if-eqz v5, :cond_f
new-instance v0, Lf/b/b/b/k1/e0/b$b;
invoke-direct {v0, p0, v2}, Lf/b/b/b/k1/e0/b$b;-><init>(Lf/b/b/b/k1/e0/b;Lf/b/b/b/k1/e0/b$a;)V
move-object v2, v0
:cond_f
return-object v2
.end method
.method j(Lf/b/b/b/k1/i;)J
.registers 7
invoke-virtual {p0, p1}, Lf/b/b/b/k1/e0/b;->k(Lf/b/b/b/k1/i;)V
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
invoke-virtual {v0}, Lf/b/b/b/k1/e0/f;->b()V
:goto_8
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget v0, v0, Lf/b/b/b/k1/e0/f;->b:I
const/4 v1, 0x4
and-int/2addr v0, v1
if-eq v0, v1, :cond_2b
invoke-interface {p1}, Lf/b/b/b/k1/i;->getPosition()J
move-result-wide v0
iget-wide v2, p0, Lf/b/b/b/k1/e0/b;->c:J
cmp-long v4, v0, v2
if-gez v4, :cond_2b
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
const/4 v1, 0x0
invoke-virtual {v0, p1, v1}, Lf/b/b/b/k1/e0/f;->a(Lf/b/b/b/k1/i;Z)Z
iget-object v0, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget v1, v0, Lf/b/b/b/k1/e0/f;->e:I
iget v0, v0, Lf/b/b/b/k1/e0/f;->f:I
add-int/2addr v1, v0
invoke-interface {p1, v1}, Lf/b/b/b/k1/i;->h(I)V
goto :goto_8
:cond_2b
iget-object p1, p0, Lf/b/b/b/k1/e0/b;->a:Lf/b/b/b/k1/e0/f;
iget-wide v0, p1, Lf/b/b/b/k1/e0/f;->c:J
return-wide v0
.end method
.method k(Lf/b/b/b/k1/i;)V
.registers 4
iget-wide v0, p0, Lf/b/b/b/k1/e0/b;->c:J
invoke-direct {p0, p1, v0, v1}, Lf/b/b/b/k1/e0/b;->l(Lf/b/b/b/k1/i;J)Z
move-result p1
if-eqz p1, :cond_9
return-void
:cond_9
new-instance p1, Ljava/io/EOFException;
invoke-direct {p1}, Ljava/io/EOFException;-><init>()V
throw p1
.end method