granularity level: instruction
.class public final Lh1/d;
.super Ljava/io/FilterInputStream;
.source "SourceFile"
.field public a:J
.field public b:J
.method public constructor <init>(Ljava/io/InputStream;)V
.locals 2
invoke-direct {p0, p1}, Ljava/io/FilterInputStream;-><init>(Ljava/io/InputStream;)V
const-wide/16 v0, -0x1
iput-wide v0, p0, Lh1/d;->b:J
const-wide/32 v0, 0x100001
iput-wide v0, p0, Lh1/d;->a:J
return-void
.end method
.method public final available()I
.locals 4
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->available()I
move-result v0
int-to-long v0, v0
iget-wide v2, p0, Lh1/d;->a:J
invoke-static {v0, v1, v2, v3}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int v1, v0
return v1
.end method
.method public final declared-synchronized mark(I)V
.locals 2
monitor-enter p0
:try_start_0
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0, p1}, Ljava/io/InputStream;->mark(I)V
iget-wide v0, p0, Lh1/d;->a:J
iput-wide v0, p0, Lh1/d;->b:J
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:catchall_0
move-exception p1
monitor-exit p0
throw p1
.end method
.method public final read()I
.locals 6
iget-wide v0, p0, Lh1/d;->a:J
const/4 v2, -0x1
const-wide/16 v3, 0x0
cmp-long v5, v0, v3
if-nez v5, :cond_0
return v2
:cond_0
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->read()I
move-result v0
if-eq v0, v2, :cond_1
iget-wide v1, p0, Lh1/d;->a:J
const-wide/16 v3, 0x1
sub-long/2addr v1, v3
iput-wide v1, p0, Lh1/d;->a:J
:cond_1
return v0
.end method
.method public final read([BII)I
.locals 6
iget-wide v0, p0, Lh1/d;->a:J
const/4 v2, -0x1
const-wide/16 v3, 0x0
cmp-long v5, v0, v3
if-nez v5, :cond_0
return v2
:cond_0
int-to-long v3, p3
invoke-static {v3, v4, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide v0
long-to-int p3, v0
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0, p1, p2, p3}, Ljava/io/InputStream;->read([BII)I
move-result p1
if-eq p1, v2, :cond_1
iget-wide p2, p0, Lh1/d;->a:J
int-to-long v0, p1
sub-long/2addr p2, v0
iput-wide p2, p0, Lh1/d;->a:J
:cond_1
return p1
.end method
.method public final declared-synchronized reset()V
.locals 5
monitor-enter p0
:try_start_0
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->markSupported()Z
move-result v0
if-eqz v0, :cond_1
iget-wide v0, p0, Lh1/d;->b:J
const-wide/16 v2, -0x1
cmp-long v4, v0, v2
if-eqz v4, :cond_0
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->reset()V
iget-wide v0, p0, Lh1/d;->b:J
iput-wide v0, p0, Lh1/d;->a:J
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
monitor-exit p0
return-void
:try_start_1
:cond_0
new-instance v0, Ljava/io/IOException;
const-string v1, "Mark not set"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
new-instance v0, Ljava/io/IOException;
const-string v1, "Mark not supported"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method
.method public final skip(J)J
.locals 2
iget-wide v0, p0, Lh1/d;->a:J
invoke-static {p1, p2, v0, v1}, Ljava/lang/Math;->min(JJ)J
move-result-wide p1
iget-object v0, p0, Ljava/io/FilterInputStream;->in:Ljava/io/InputStream;
invoke-virtual {v0, p1, p2}, Ljava/io/InputStream;->skip(J)J
move-result-wide p1
iget-wide v0, p0, Lh1/d;->a:J
sub-long/2addr v0, p1
iput-wide v0, p0, Lh1/d;->a:J
return-wide p1
.end method