x0.smali
.class public final Lm2/x0;
.super Ljava/io/FilterOutputStream;
.source "SourceFile"
# interfaces
.implements Lm2/y0;
# annotations
.annotation runtime Lkotlin/Metadata;
.end annotation
# instance fields
.field private final a:Lm2/n0;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final b:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Lm2/j0;",
"Lm2/a1;",
">;"
}
.end annotation
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end field
.field private final c:J
.field private final d:J
.field private e:J
.field private f:J
.field private g:Lm2/a1;
# direct methods
.method public constructor <init>(Ljava/io/OutputStream;Lm2/n0;Ljava/util/Map;J)V
.registers 7
.param p1 # Ljava/io/OutputStream;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p2 # Lm2/n0;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.param p3 # Ljava/util/Map;
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/io/OutputStream;",
"Lm2/n0;",
"Ljava/util/Map<",
"Lm2/j0;",
"Lm2/a1;",
">;J)V"
}
.end annotation
const-string v0, "out"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "requests"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "progressMap"
invoke-static {p3, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {p0, p1}, Ljava/io/FilterOutputStream;-><init>(Ljava/io/OutputStream;)V
iput-object p2, p0, Lm2/x0;->a:Lm2/n0;
iput-object p3, p0, Lm2/x0;->b:Ljava/util/Map;
iput-wide p4, p0, Lm2/x0;->c:J
invoke-static {}, Lm2/f0;->A()J
move-result-wide p1
iput-wide p1, p0, Lm2/x0;->d:J
return-void
.end method
.method public static synthetic b(Lm2/n0$a;Lm2/x0;)V
.registers 2
invoke-static {p0, p1}, Lm2/x0;->h(Lm2/n0$a;Lm2/x0;)V
return-void
.end method
.method private final c(J)V
.registers 7
iget-object v0, p0, Lm2/x0;->g:Lm2/a1;
if-nez v0, :cond_5
goto :goto_8
:cond_5
invoke-virtual {v0, p1, p2}, Lm2/a1;->b(J)V
:goto_8
iget-wide v0, p0, Lm2/x0;->e:J
add-long/2addr v0, p1
iput-wide v0, p0, Lm2/x0;->e:J
iget-wide p1, p0, Lm2/x0;->f:J
iget-wide v2, p0, Lm2/x0;->d:J
add-long/2addr p1, v2
cmp-long v2, v0, p1
if-gez v2, :cond_1c
iget-wide p1, p0, Lm2/x0;->c:J
cmp-long v2, v0, p1
if-ltz v2, :cond_1f
:cond_1c
invoke-direct {p0}, Lm2/x0;->g()V
:cond_1f
return-void
.end method
.method private final g()V
.registers 10
iget-wide v0, p0, Lm2/x0;->e:J
iget-wide v2, p0, Lm2/x0;->f:J
cmp-long v4, v0, v2
if-lez v4, :cond_4c
iget-object v0, p0, Lm2/x0;->a:Lm2/n0;
invoke-virtual {v0}, Lm2/n0;->q()Ljava/util/List;
move-result-object v0
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_12
:goto_12
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_48
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lm2/n0$a;
instance-of v2, v1, Lm2/n0$c;
if-eqz v2, :cond_12
iget-object v2, p0, Lm2/x0;->a:Lm2/n0;
invoke-virtual {v2}, Lm2/n0;->p()Landroid/os/Handler;
move-result-object v2
if-nez v2, :cond_2c
const/4 v2, 0x0
goto :goto_39
:cond_2c
new-instance v3, Lm2/w0;
invoke-direct {v3, v1, p0}, Lm2/w0;-><init>(Lm2/n0$a;Lm2/x0;)V
invoke-virtual {v2, v3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
move-result v2
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v2
:goto_39
if-nez v2, :cond_12
move-object v3, v1
check-cast v3, Lm2/n0$c;
iget-object v4, p0, Lm2/x0;->a:Lm2/n0;
iget-wide v5, p0, Lm2/x0;->e:J
iget-wide v7, p0, Lm2/x0;->c:J
invoke-interface/range {v3 .. v8}, Lm2/n0$c;->b(Lm2/n0;JJ)V
goto :goto_12
:cond_48
iget-wide v0, p0, Lm2/x0;->e:J
iput-wide v0, p0, Lm2/x0;->f:J
:cond_4c
return-void
.end method
.method private static final h(Lm2/n0$a;Lm2/x0;)V
.registers 9
const-string v0, "$callback"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "this$0"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
move-object v1, p0
check-cast v1, Lm2/n0$c;
iget-object v2, p1, Lm2/x0;->a:Lm2/n0;
invoke-virtual {p1}, Lm2/x0;->d()J
move-result-wide v3
invoke-virtual {p1}, Lm2/x0;->f()J
move-result-wide v5
invoke-interface/range {v1 .. v6}, Lm2/n0$c;->b(Lm2/n0;JJ)V
return-void
.end method
# virtual methods
.method public a(Lm2/j0;)V
.registers 3
if-eqz p1, :cond_b
iget-object v0, p0, Lm2/x0;->b:Ljava/util/Map;
invoke-interface {v0, p1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lm2/a1;
goto :goto_c
:cond_b
const/4 p1, 0x0
:goto_c
iput-object p1, p0, Lm2/x0;->g:Lm2/a1;
return-void
.end method
.method public close()V
.registers 3
invoke-super {p0}, Ljava/io/FilterOutputStream;->close()V
iget-object v0, p0, Lm2/x0;->b:Ljava/util/Map;
invoke-interface {v0}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object v0
invoke-interface {v0}, Ljava/util/Collection;->iterator()Ljava/util/Iterator;
move-result-object v0
:goto_d
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_1d
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lm2/a1;
invoke-virtual {v1}, Lm2/a1;->d()V
goto :goto_d
:cond_1d
invoke-direct {p0}, Lm2/x0;->g()V
return-void
.end method
.method public final d()J
.registers 3
iget-wide v0, p0, Lm2/x0;->e:J
return-wide v0
.end method
.method public final f()J
.registers 3
iget-wide v0, p0, Lm2/x0;->c:J
return-wide v0
.end method
.method public write(I)V
.registers 4
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write(I)V
const-wide/16 v0, 0x1
invoke-direct {p0, v0, v1}, Lm2/x0;->c(J)V
return-void
.end method
.method public write([B)V
.registers 4
.param p1 # [B
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
const-string v0, "buffer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0, p1}, Ljava/io/OutputStream;->write([B)V
array-length p1, p1
int-to-long v0, p1
invoke-direct {p0, v0, v1}, Lm2/x0;->c(J)V
return-void
.end method
.method public write([BII)V
.registers 5
.param p1 # [B
.annotation build Lorg/jetbrains/annotations/NotNull;
.end annotation
.end param
const-string v0, "buffer"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Ljava/io/FilterOutputStream;->out:Ljava/io/OutputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/OutputStream;->write([BII)V
int-to-long p1, p3
invoke-direct {p0, p1, p2}, Lm2/x0;->c(J)V
return-void
.end method