f.smali

.class final Lf/b/b/b/k1/e0/f;
.super Ljava/lang/Object;
.source ""


# instance fields
.field public a:I

.field public b:I

.field public c:J

.field public d:I

.field public e:I

.field public f:I

.field public final g:[I

.field private final h:Lf/b/b/b/s1/y;


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

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

    const/16 v0, 0xff

    new-array v1, v0, [I

    iput-object v1, p0, Lf/b/b/b/k1/e0/f;->g:[I

    new-instance v1, Lf/b/b/b/s1/y;

    invoke-direct {v1, v0}, Lf/b/b/b/s1/y;-><init>(I)V

    iput-object v1, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    return-void
.end method


# virtual methods
.method public a(Lf/b/b/b/k1/i;Z)Z
    .registers 11

    iget-object v0, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {v0}, Lf/b/b/b/s1/y;->I()V

    invoke-virtual {p0}, Lf/b/b/b/k1/e0/f;->b()V

    invoke-interface {p1}, Lf/b/b/b/k1/i;->getLength()J

    move-result-wide v0

    const/4 v2, 0x1

    const/4 v3, 0x0

    const-wide/16 v4, -0x1

    cmp-long v6, v0, v4

    if-eqz v6, :cond_26

    invoke-interface {p1}, Lf/b/b/b/k1/i;->getLength()J

    move-result-wide v0

    invoke-interface {p1}, Lf/b/b/b/k1/i;->c()J

    move-result-wide v4

    sub-long/2addr v0, v4

    const-wide/16 v4, 0x1b

    cmp-long v6, v0, v4

    if-ltz v6, :cond_24

    goto :goto_26

    :cond_24
    const/4 v0, 0x0

    goto :goto_27

    :cond_26
    :goto_26
    const/4 v0, 0x1

    :goto_27
    if-eqz v0, :cond_b7

    iget-object v0, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    iget-object v0, v0, Lf/b/b/b/s1/y;->a:[B

    const/16 v1, 0x1b

    invoke-interface {p1, v0, v3, v1, v2}, Lf/b/b/b/k1/i;->b([BIIZ)Z

    move-result v0

    if-nez v0, :cond_37

    goto/16 :goto_b7

    :cond_37
    iget-object v0, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {v0}, Lf/b/b/b/s1/y;->C()J

    move-result-wide v4

    const-wide/32 v6, 0x4f676753

    cmp-long v0, v4, v6

    if-eqz v0, :cond_4f

    if-eqz p2, :cond_47

    return v3

    :cond_47
    new-instance p1, Lf/b/b/b/m0;

    const-string p2, "expected OggS capture pattern at begin of page"

    invoke-direct {p1, p2}, Lf/b/b/b/m0;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_4f
    iget-object v0, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {v0}, Lf/b/b/b/s1/y;->A()I

    move-result v0

    iput v0, p0, Lf/b/b/b/k1/e0/f;->a:I

    if-eqz v0, :cond_64

    if-eqz p2, :cond_5c

    return v3

    :cond_5c
    new-instance p1, Lf/b/b/b/m0;

    const-string p2, "unsupported bit stream revision"

    invoke-direct {p1, p2}, Lf/b/b/b/m0;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_64
    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->A()I

    move-result p2

    iput p2, p0, Lf/b/b/b/k1/e0/f;->b:I

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->o()J

    move-result-wide v4

    iput-wide v4, p0, Lf/b/b/b/k1/e0/f;->c:J

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->q()J

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->q()J

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->q()J

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->A()I

    move-result p2

    iput p2, p0, Lf/b/b/b/k1/e0/f;->d:I

    add-int/2addr p2, v1

    iput p2, p0, Lf/b/b/b/k1/e0/f;->e:I

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->I()V

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    iget-object p2, p2, Lf/b/b/b/s1/y;->a:[B

    iget v0, p0, Lf/b/b/b/k1/e0/f;->d:I

    invoke-interface {p1, p2, v3, v0}, Lf/b/b/b/k1/i;->j([BII)V

    :goto_9c
    iget p1, p0, Lf/b/b/b/k1/e0/f;->d:I

    if-ge v3, p1, :cond_b6

    iget-object p1, p0, Lf/b/b/b/k1/e0/f;->g:[I

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->h:Lf/b/b/b/s1/y;

    invoke-virtual {p2}, Lf/b/b/b/s1/y;->A()I

    move-result p2

    aput p2, p1, v3

    iget p1, p0, Lf/b/b/b/k1/e0/f;->f:I

    iget-object p2, p0, Lf/b/b/b/k1/e0/f;->g:[I

    aget p2, p2, v3

    add-int/2addr p1, p2

    iput p1, p0, Lf/b/b/b/k1/e0/f;->f:I

    add-int/lit8 v3, v3, 0x1

    goto :goto_9c

    :cond_b6
    return v2

    :cond_b7
    :goto_b7
    if-eqz p2, :cond_ba

    return v3

    :cond_ba
    new-instance p1, Ljava/io/EOFException;

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

    goto :goto_c1

    :goto_c0
    throw p1

    :goto_c1
    goto :goto_c0
.end method

.method public b()V
    .registers 4

    const/4 v0, 0x0

    iput v0, p0, Lf/b/b/b/k1/e0/f;->a:I

    iput v0, p0, Lf/b/b/b/k1/e0/f;->b:I

    const-wide/16 v1, 0x0

    iput-wide v1, p0, Lf/b/b/b/k1/e0/f;->c:J

    iput v0, p0, Lf/b/b/b/k1/e0/f;->d:I

    iput v0, p0, Lf/b/b/b/k1/e0/f;->e:I

    iput v0, p0, Lf/b/b/b/k1/e0/f;->f:I

    return-void
.end method