.class public final Lca/o$a;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Lha/x;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lca/o;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x11
    name = "a"
.end annotation


# instance fields
.field public final r:Lha/e;

.field public s:Z

.field public t:Z

.field public final synthetic u:Lca/o;


# direct methods
.method public constructor <init>(Lca/o;Z)V
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(Z)V"
        }
    .end annotation

    iput-object p1, p0, Lca/o$a;->u:Lca/o;

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

    iput-boolean p2, p0, Lca/o$a;->t:Z

    new-instance p1, Lha/e;

    invoke-direct {p1}, Lha/e;-><init>()V

    iput-object p1, p0, Lca/o$a;->r:Lha/e;

    return-void
.end method


# virtual methods
.method public E(Lha/e;J)V
    .registers 6

    const-string v0, "source"

    invoke-static {p1, v0}, Lx/e;->f(Ljava/lang/Object;Ljava/lang/String;)V

    sget-object v0, Lw9/c;->a:[B

    iget-object v0, p0, Lca/o$a;->r:Lha/e;

    invoke-virtual {v0, p1, p2, p3}, Lha/e;->E(Lha/e;J)V

    :goto_c
    iget-object p1, p0, Lca/o$a;->r:Lha/e;

    .line 1
    iget-wide p1, p1, Lha/e;->s:J

    const-wide/16 v0, 0x4000

    cmp-long p1, p1, v0

    if-ltz p1, :cond_1b

    const/4 p1, 0x0

    .line 2
    invoke-virtual {p0, p1}, Lca/o$a;->b(Z)V

    goto :goto_c

    :cond_1b
    return-void
.end method

.method public final b(Z)V
    .registers 14

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    monitor-enter v0

    :try_start_3
    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    .line 1
    iget-object v1, v1, Lca/o;->j:Lca/o$c;

    .line 2
    invoke-virtual {v1}, Lha/b;->h()V
    :try_end_a
    .catchall {:try_start_3 .. :try_end_a} :catchall_8b

    :goto_a
    :try_start_a
    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    .line 3
    iget-wide v2, v1, Lca/o;->c:J

    .line 4
    iget-wide v4, v1, Lca/o;->d:J

    cmp-long v2, v2, v4

    if-ltz v2, :cond_28

    .line 5
    iget-boolean v2, p0, Lca/o$a;->t:Z

    if-nez v2, :cond_28

    iget-boolean v2, p0, Lca/o$a;->s:Z

    if-nez v2, :cond_28

    invoke-virtual {v1}, Lca/o;->f()Lca/b;

    move-result-object v1

    if-nez v1, :cond_28

    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    invoke-virtual {v1}, Lca/o;->l()V
    :try_end_27
    .catchall {:try_start_a .. :try_end_27} :catchall_82

    goto :goto_a

    :cond_28
    :try_start_28
    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    .line 6
    iget-object v1, v1, Lca/o;->j:Lca/o$c;

    .line 7
    invoke-virtual {v1}, Lca/o$c;->l()V

    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    invoke-virtual {v1}, Lca/o;->b()V

    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    .line 8
    iget-wide v2, v1, Lca/o;->d:J

    .line 9
    iget-wide v4, v1, Lca/o;->c:J

    sub-long/2addr v2, v4

    .line 10
    iget-object v1, p0, Lca/o$a;->r:Lha/e;

    .line 11
    iget-wide v4, v1, Lha/e;->s:J

    .line 12
    invoke-static {v2, v3, v4, v5}, Ljava/lang/Math;->min(JJ)J

    move-result-wide v10

    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    .line 13
    iget-wide v2, v1, Lca/o;->c:J

    add-long/2addr v2, v10

    .line 14
    iput-wide v2, v1, Lca/o;->c:J

    if-eqz p1, :cond_5c

    .line 15
    iget-object p1, p0, Lca/o$a;->r:Lha/e;

    .line 16
    iget-wide v2, p1, Lha/e;->s:J

    cmp-long p1, v10, v2

    if-nez p1, :cond_5c

    .line 17
    invoke-virtual {v1}, Lca/o;->f()Lca/b;

    move-result-object p1
    :try_end_58
    .catchall {:try_start_28 .. :try_end_58} :catchall_8b

    if-nez p1, :cond_5c

    const/4 p1, 0x1

    goto :goto_5d

    :cond_5c
    const/4 p1, 0x0

    :goto_5d
    move v8, p1

    monitor-exit v0

    iget-object p1, p0, Lca/o$a;->u:Lca/o;

    .line 18
    iget-object p1, p1, Lca/o;->j:Lca/o$c;

    .line 19
    invoke-virtual {p1}, Lha/b;->h()V

    :try_start_66
    iget-object p1, p0, Lca/o$a;->u:Lca/o;

    .line 20
    iget-object v6, p1, Lca/o;->n:Lca/f;

    .line 21
    iget v7, p1, Lca/o;->m:I

    .line 22
    iget-object v9, p0, Lca/o$a;->r:Lha/e;

    invoke-virtual/range {v6 .. v11}, Lca/f;->q(IZLha/e;J)V
    :try_end_71
    .catchall {:try_start_66 .. :try_end_71} :catchall_79

    iget-object p1, p0, Lca/o$a;->u:Lca/o;

    .line 23
    iget-object p1, p1, Lca/o;->j:Lca/o$c;

    .line 24
    invoke-virtual {p1}, Lca/o$c;->l()V

    return-void

    :catchall_79
    move-exception p1

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    .line 25
    iget-object v0, v0, Lca/o;->j:Lca/o$c;

    .line 26
    invoke-virtual {v0}, Lca/o$c;->l()V

    throw p1

    :catchall_82
    move-exception p1

    :try_start_83
    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    .line 27
    iget-object v1, v1, Lca/o;->j:Lca/o$c;

    .line 28
    invoke-virtual {v1}, Lca/o$c;->l()V

    throw p1
    :try_end_8b
    .catchall {:try_start_83 .. :try_end_8b} :catchall_8b

    :catchall_8b
    move-exception p1

    monitor-exit v0

    throw p1
.end method

.method public close()V
    .registers 15

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    sget-object v1, Lw9/c;->a:[B

    monitor-enter v0

    :try_start_5
    iget-boolean v1, p0, Lca/o$a;->s:Z
    :try_end_7
    .catchall {:try_start_5 .. :try_end_7} :catchall_5f

    if-eqz v1, :cond_b

    monitor-exit v0

    return-void

    :cond_b
    :try_start_b
    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    invoke-virtual {v1}, Lca/o;->f()Lca/b;

    move-result-object v1
    :try_end_11
    .catchall {:try_start_b .. :try_end_11} :catchall_5f

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-nez v1, :cond_17

    move v1, v3

    goto :goto_18

    :cond_17
    move v1, v2

    :goto_18
    monitor-exit v0

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    .line 1
    iget-object v4, v0, Lca/o;->h:Lca/o$a;

    .line 2
    iget-boolean v4, v4, Lca/o$a;->t:Z

    if-nez v4, :cond_47

    iget-object v4, p0, Lca/o$a;->r:Lha/e;

    .line 3
    iget-wide v4, v4, Lha/e;->s:J

    const-wide/16 v6, 0x0

    cmp-long v4, v4, v6

    if-lez v4, :cond_2c

    move v2, v3

    :cond_2c
    if-eqz v2, :cond_3a

    .line 4
    :goto_2e
    iget-object v0, p0, Lca/o$a;->r:Lha/e;

    .line 5
    iget-wide v0, v0, Lha/e;->s:J

    cmp-long v0, v0, v6

    if-lez v0, :cond_47

    .line 6
    invoke-virtual {p0, v3}, Lca/o$a;->b(Z)V

    goto :goto_2e

    :cond_3a
    if-eqz v1, :cond_47

    .line 7
    iget-object v8, v0, Lca/o;->n:Lca/f;

    .line 8
    iget v9, v0, Lca/o;->m:I

    const/4 v10, 0x1

    const/4 v11, 0x0

    const-wide/16 v12, 0x0

    .line 9
    invoke-virtual/range {v8 .. v13}, Lca/f;->q(IZLha/e;J)V

    :cond_47
    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    monitor-enter v0

    :try_start_4a
    iput-boolean v3, p0, Lca/o$a;->s:Z
    :try_end_4c
    .catchall {:try_start_4a .. :try_end_4c} :catchall_5c

    monitor-exit v0

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    .line 10
    iget-object v0, v0, Lca/o;->n:Lca/f;

    .line 11
    iget-object v0, v0, Lca/f;->Q:Lca/p;

    invoke-virtual {v0}, Lca/p;->flush()V

    .line 12
    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    invoke-virtual {v0}, Lca/o;->a()V

    return-void

    :catchall_5c
    move-exception v1

    monitor-exit v0

    throw v1

    :catchall_5f
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public d()Lha/a0;
    .registers 2

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    .line 1
    iget-object v0, v0, Lca/o;->j:Lca/o$c;

    return-object v0
.end method

.method public flush()V
    .registers 5

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    sget-object v1, Lw9/c;->a:[B

    monitor-enter v0

    :try_start_5
    iget-object v1, p0, Lca/o$a;->u:Lca/o;

    invoke-virtual {v1}, Lca/o;->b()V
    :try_end_a
    .catchall {:try_start_5 .. :try_end_a} :catchall_24

    monitor-exit v0

    :goto_b
    iget-object v0, p0, Lca/o$a;->r:Lha/e;

    .line 1
    iget-wide v0, v0, Lha/e;->s:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-lez v0, :cond_23

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Lca/o$a;->b(Z)V

    iget-object v0, p0, Lca/o$a;->u:Lca/o;

    .line 3
    iget-object v0, v0, Lca/o;->n:Lca/f;

    .line 4
    iget-object v0, v0, Lca/f;->Q:Lca/p;

    invoke-virtual {v0}, Lca/p;->flush()V

    goto :goto_b

    :cond_23
    return-void

    :catchall_24
    move-exception v1

    .line 5
    monitor-exit v0

    throw v1
.end method
