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

# interfaces
.implements Lz5/ux1;


# instance fields
.field public final a:Lz5/bu1;

.field public final b:Lz5/ou1;

.field public final c:Lz5/d41;

.field public final d:Lz5/x2;

.field public final e:I

.field public f:J

.field public g:I

.field public h:J


# direct methods
.method public constructor <init>(Lz5/bu1;Lz5/ou1;Lz5/d41;Ljava/lang/String;I)V
    .registers 7

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

    iput-object p1, p0, Lz5/vx1;->a:Lz5/bu1;

    iput-object p2, p0, Lz5/vx1;->b:Lz5/ou1;

    iput-object p3, p0, Lz5/vx1;->c:Lz5/d41;

    iget p1, p3, Lz5/d41;->c:I

    iget p2, p3, Lz5/d41;->f:I

    mul-int/2addr p1, p2

    div-int/lit8 p1, p1, 0x8

    iget p2, p3, Lz5/d41;->e:I

    if-ne p2, p1, :cond_40

    iget p2, p3, Lz5/d41;->d:I

    mul-int/2addr p2, p1

    mul-int/lit8 v0, p2, 0x8

    div-int/lit8 p2, p2, 0xa

    invoke-static {p1, p2}, Ljava/lang/Math;->max(II)I

    move-result p1

    iput p1, p0, Lz5/vx1;->e:I

    new-instance p2, Lz5/w2;

    invoke-direct {p2}, Lz5/w2;-><init>()V

    .line 1
    iput-object p4, p2, Lz5/w2;->j:Ljava/lang/String;

    .line 2
    iput v0, p2, Lz5/w2;->e:I

    .line 3
    iput v0, p2, Lz5/w2;->f:I

    .line 4
    iput p1, p2, Lz5/w2;->k:I

    .line 5
    iget p1, p3, Lz5/d41;->c:I

    .line 6
    iput p1, p2, Lz5/w2;->w:I

    .line 7
    iget p1, p3, Lz5/d41;->d:I

    .line 8
    iput p1, p2, Lz5/w2;->x:I

    .line 9
    iput p5, p2, Lz5/w2;->y:I

    .line 10
    new-instance p1, Lz5/x2;

    .line 11
    invoke-direct {p1, p2}, Lz5/x2;-><init>(Lz5/w2;)V

    .line 12
    iput-object p1, p0, Lz5/vx1;->d:Lz5/x2;

    return-void

    :cond_40
    const/16 p3, 0x32

    const-string p4, "Expected block size: "

    const-string p5, "; got: "

    invoke-static {p3, p4, p1, p5, p2}, Li/a;->a(ILjava/lang/String;ILjava/lang/String;I)Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x0

    invoke-static {p1, p2}, Lz5/r3;->b(Ljava/lang/String;Ljava/lang/Throwable;)Lz5/r3;

    move-result-object p1

    throw p1
.end method


# virtual methods
.method public final a(J)V
    .registers 3

    iput-wide p1, p0, Lz5/vx1;->f:J

    const/4 p1, 0x0

    iput p1, p0, Lz5/vx1;->g:I

    const-wide/16 p1, 0x0

    iput-wide p1, p0, Lz5/vx1;->h:J

    return-void
.end method

.method public final b(IJ)V
    .registers 13

    iget-object v0, p0, Lz5/vx1;->a:Lz5/bu1;

    new-instance v8, Lz5/xx1;

    iget-object v2, p0, Lz5/vx1;->c:Lz5/d41;

    int-to-long v4, p1

    const/4 v3, 0x1

    move-object v1, v8

    move-wide v6, p2

    invoke-direct/range {v1 .. v7}, Lz5/xx1;-><init>(Lz5/d41;IJJ)V

    invoke-interface {v0, v8}, Lz5/bu1;->i(Lz5/lu1;)V

    iget-object p1, p0, Lz5/vx1;->b:Lz5/ou1;

    iget-object p2, p0, Lz5/vx1;->d:Lz5/x2;

    invoke-interface {p1, p2}, Lz5/ou1;->a(Lz5/x2;)V

    return-void
.end method

.method public final c(Lz5/au1;J)Z
    .registers 22

    move-object/from16 v0, p0

    move-wide/from16 v1, p2

    :goto_4
    const-wide/16 v3, 0x0

    cmp-long v5, v1, v3

    const/4 v6, 0x1

    if-lez v5, :cond_2d

    iget v7, v0, Lz5/vx1;->g:I

    iget v8, v0, Lz5/vx1;->e:I

    if-ge v7, v8, :cond_2d

    sub-int/2addr v8, v7

    int-to-long v7, v8

    invoke-static {v7, v8, v1, v2}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v7

    iget-object v5, v0, Lz5/vx1;->b:Lz5/ou1;

    long-to-int v7, v7

    move-object/from16 v8, p1

    invoke-static {v5, v8, v7, v6}, Lz5/vo;->a(Lz5/ou1;Lz5/q3;IZ)I

    move-result v5

    const/4 v6, -0x1

    if-ne v5, v6, :cond_25

    move-wide v1, v3

    goto :goto_4

    :cond_25
    iget v3, v0, Lz5/vx1;->g:I

    add-int/2addr v3, v5

    iput v3, v0, Lz5/vx1;->g:I

    int-to-long v3, v5

    sub-long/2addr v1, v3

    goto :goto_4

    :cond_2d
    iget-object v1, v0, Lz5/vx1;->c:Lz5/d41;

    iget v2, v1, Lz5/d41;->e:I

    iget v3, v0, Lz5/vx1;->g:I

    div-int/2addr v3, v2

    if-lez v3, :cond_5d

    iget-wide v7, v0, Lz5/vx1;->f:J

    iget-wide v9, v0, Lz5/vx1;->h:J

    iget v1, v1, Lz5/d41;->d:I

    const-wide/32 v11, 0xf4240

    int-to-long v13, v1

    invoke-static/range {v9 .. v14}, Lz5/r7;->d(JJJ)J

    move-result-wide v9

    mul-int v15, v3, v2

    iget v1, v0, Lz5/vx1;->g:I

    sub-int/2addr v1, v15

    iget-object v11, v0, Lz5/vx1;->b:Lz5/ou1;

    add-long v12, v7, v9

    const/4 v14, 0x1

    const/16 v17, 0x0

    move/from16 v16, v1

    invoke-interface/range {v11 .. v17}, Lz5/ou1;->d(JIIILz5/nu1;)V

    iget-wide v7, v0, Lz5/vx1;->h:J

    int-to-long v2, v3

    add-long/2addr v7, v2

    iput-wide v7, v0, Lz5/vx1;->h:J

    iput v1, v0, Lz5/vx1;->g:I

    :cond_5d
    if-gtz v5, :cond_60

    return v6

    :cond_60
    const/4 v1, 0x0

    return v1
.end method
