g.smali
.class public final Lb1/g;
.super Ljava/io/FilterInputStream;
.source "ExifOrientationStream.java"
# static fields
.field public static final c:[B
.field public static final d:I
.field public static final e:I
# instance fields
.field public final a:B
.field public b:I
# direct methods
.method public static constructor <clinit>()V
.registers 1
const/16 v0, 0x1d
new-array v0, v0, [B
fill-array-data v0, :array_12
sput-object v0, Lb1/g;->c:[B
array-length v0, v0
sput v0, Lb1/g;->d:I
add-int/lit8 v0, v0, 0x2
sput v0, Lb1/g;->e:I
return-void
nop
:array_12
.array-data 1
-0x1t
-0x1ft
0x0t
0x1ct
0x45t
0x78t
0x69t
0x66t
0x0t
0x0t
0x4dt
0x4dt
0x0t
0x0t
0x0t
0x0t
0x0t
0x8t
0x0t
0x1t
0x1t
0x12t
0x0t
0x2t
0x0t
0x0t
0x0t
0x1t
0x0t
.end array-data
.end method
.method public constructor <init>(Ljava/io/InputStream;I)V
.registers 5
invoke-direct {p0, p1}, Ljava/io/FilterInputStream;-><init>(Ljava/io/InputStream;)V
const/4 p1, -0x1
if-lt p2, p1, :cond_e
const/16 p1, 0x8
if-gt p2, p1, :cond_e
int-to-byte p1, p2
iput-byte p1, p0, Lb1/g;->a:B
return-void
:cond_e
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Cannot add invalid orientation: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
# virtual methods
.method public mark(I)V
.registers 2
new-instance p1, Ljava/lang/UnsupportedOperationException;
invoke-direct {p1}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw p1
.end method
.method public markSupported()Z
.registers 2
const/4 v0, 0x0
return v0
.end method
.method public read()I
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lb1/g;->b:I
const/4 v1, 0x2
if-lt v0, v1, :cond_17
sget v2, Lb1/g;->e:I
if-le v0, v2, :cond_a
goto :goto_17
:cond_a
if-ne v0, v2, :cond_f
iget-byte v0, p0, Lb1/g;->a:B
goto :goto_1b
:cond_f
sget-object v2, Lb1/g;->c:[B
sub-int/2addr v0, v1
aget-byte v0, v2, v0
and-int/lit16 v0, v0, 0xff
goto :goto_1b
:cond_17
:goto_17
invoke-super {p0}, Ljava/io/FilterInputStream;->read()I
move-result v0
:goto_1b
const/4 v1, -0x1
if-eq v0, v1, :cond_24
iget v1, p0, Lb1/g;->b:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lb1/g;->b:I
:cond_24
return v0
.end method
.method public read([BII)I
.registers 7
.param p1 # [B
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
iget v0, p0, Lb1/g;->b:I
sget v1, Lb1/g;->e:I
if-le v0, v1, :cond_b
invoke-super {p0, p1, p2, p3}, Ljava/io/FilterInputStream;->read([BII)I
move-result p1
goto :goto_2a
:cond_b
if-ne v0, v1, :cond_13
iget-byte p3, p0, Lb1/g;->a:B
aput-byte p3, p1, p2
const/4 p1, 0x1
goto :goto_2a
:cond_13
const/4 v2, 0x2
if-ge v0, v2, :cond_1c
sub-int/2addr v2, v0
invoke-super {p0, p1, p2, v2}, Ljava/io/FilterInputStream;->read([BII)I
move-result p1
goto :goto_2a
:cond_1c
sub-int/2addr v1, v0
invoke-static {v1, p3}, Ljava/lang/Math;->min(II)I
move-result p3
sget-object v0, Lb1/g;->c:[B
iget v1, p0, Lb1/g;->b:I
sub-int/2addr v1, v2
invoke-static {v0, v1, p1, p2, p3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move p1, p3
:goto_2a
if-lez p1, :cond_31
iget p2, p0, Lb1/g;->b:I
add-int/2addr p2, p1
iput p2, p0, Lb1/g;->b:I
:cond_31
return p1
.end method
.method public reset()V
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Ljava/lang/UnsupportedOperationException;
invoke-direct {v0}, Ljava/lang/UnsupportedOperationException;-><init>()V
throw v0
.end method
.method public skip(J)J
.registers 6
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-super {p0, p1, p2}, Ljava/io/FilterInputStream;->skip(J)J
move-result-wide p1
const-wide/16 v0, 0x0
cmp-long v2, p1, v0
if-lez v2, :cond_11
iget v0, p0, Lb1/g;->b:I
int-to-long v0, v0
add-long/2addr v0, p1
long-to-int v1, v0
iput v1, p0, Lb1/g;->b:I
:cond_11
return-wide p1
.end method