386 lines
6 KiB
Smali
386 lines
6 KiB
Smali
.class public final Lx/r;
|
|
.super Ljava/lang/Object;
|
|
.source "Segment.kt"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:[B
|
|
|
|
.field public b:I
|
|
|
|
.field public c:I
|
|
|
|
.field public d:Z
|
|
|
|
.field public e:Z
|
|
|
|
.field public f:Lx/r;
|
|
|
|
.field public g:Lx/r;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/16 v0, 0x2000
|
|
|
|
new-array v0, v0, [B
|
|
|
|
iput-object v0, p0, Lx/r;->a:[B
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lx/r;->e:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-boolean v0, p0, Lx/r;->d:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>([BIIZZ)V
|
|
.locals 0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lx/r;->a:[B
|
|
|
|
iput p2, p0, Lx/r;->b:I
|
|
|
|
iput p3, p0, Lx/r;->c:I
|
|
|
|
iput-boolean p4, p0, Lx/r;->d:Z
|
|
|
|
iput-boolean p5, p0, Lx/r;->e:Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "data"
|
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Lx/r;
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lx/r;->f:Lx/r;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eq v0, p0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v0, v1
|
|
|
|
:goto_0
|
|
iget-object v2, p0, Lx/r;->g:Lx/r;
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
iget-object v3, p0, Lx/r;->f:Lx/r;
|
|
|
|
iput-object v3, v2, Lx/r;->f:Lx/r;
|
|
|
|
iget-object v3, p0, Lx/r;->f:Lx/r;
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
iput-object v2, v3, Lx/r;->g:Lx/r;
|
|
|
|
iput-object v1, p0, Lx/r;->f:Lx/r;
|
|
|
|
iput-object v1, p0, Lx/r;->g:Lx/r;
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
|
|
|
throw v1
|
|
|
|
:cond_2
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final a(I)Lx/r;
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-lez p1, :cond_0
|
|
|
|
iget v1, p0, Lx/r;->c:I
|
|
|
|
iget v2, p0, Lx/r;->b:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
if-gt p1, v1, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_3
|
|
|
|
const/16 v1, 0x400
|
|
|
|
if-lt p1, v1, :cond_1
|
|
|
|
invoke-virtual {p0}, Lx/r;->b()Lx/r;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-static {}, Lx/s;->a()Lx/r;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p0, Lx/r;->a:[B
|
|
|
|
iget v3, p0, Lx/r;->b:I
|
|
|
|
iget-object v4, v1, Lx/r;->a:[B
|
|
|
|
invoke-static {v2, v3, v4, v0, p1}, Le/k/a/b/e/p/g;->b([BI[BII)V
|
|
|
|
move-object v0, v1
|
|
|
|
:goto_1
|
|
iget v1, v0, Lx/r;->b:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iput v1, v0, Lx/r;->c:I
|
|
|
|
iget v1, p0, Lx/r;->b:I
|
|
|
|
add-int/2addr v1, p1
|
|
|
|
iput v1, p0, Lx/r;->b:I
|
|
|
|
iget-object p1, p0, Lx/r;->g:Lx/r;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p1, v0}, Lx/r;->a(Lx/r;)Lx/r;
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "byteCount out of range"
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final a(Lx/r;)Lx/r;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
iput-object p0, p1, Lx/r;->g:Lx/r;
|
|
|
|
iget-object v1, p0, Lx/r;->f:Lx/r;
|
|
|
|
iput-object v1, p1, Lx/r;->f:Lx/r;
|
|
|
|
iget-object v1, p0, Lx/r;->f:Lx/r;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
iput-object p1, v1, Lx/r;->g:Lx/r;
|
|
|
|
iput-object p1, p0, Lx/r;->f:Lx/r;
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
invoke-static {}, Ls/u/b/j;->throwNpe()V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "segment"
|
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final a(Lx/r;I)V
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-boolean v0, p1, Lx/r;->e:Z
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
iget v0, p1, Lx/r;->c:I
|
|
|
|
add-int v1, v0, p2
|
|
|
|
const/16 v2, 0x2000
|
|
|
|
if-le v1, v2, :cond_2
|
|
|
|
iget-boolean v1, p1, Lx/r;->d:Z
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
add-int v1, v0, p2
|
|
|
|
iget v3, p1, Lx/r;->b:I
|
|
|
|
sub-int/2addr v1, v3
|
|
|
|
if-gt v1, v2, :cond_0
|
|
|
|
iget-object v1, p1, Lx/r;->a:[B
|
|
|
|
sub-int/2addr v0, v3
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {v1, v3, v1, v2, v0}, Le/k/a/b/e/p/g;->b([BI[BII)V
|
|
|
|
iget v0, p1, Lx/r;->c:I
|
|
|
|
iget v1, p1, Lx/r;->b:I
|
|
|
|
sub-int/2addr v0, v1
|
|
|
|
iput v0, p1, Lx/r;->c:I
|
|
|
|
iput v2, p1, Lx/r;->b:I
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
:goto_0
|
|
iget-object v0, p0, Lx/r;->a:[B
|
|
|
|
iget v1, p0, Lx/r;->b:I
|
|
|
|
iget-object v2, p1, Lx/r;->a:[B
|
|
|
|
iget v3, p1, Lx/r;->c:I
|
|
|
|
invoke-static {v0, v1, v2, v3, p2}, Le/k/a/b/e/p/g;->b([BI[BII)V
|
|
|
|
iget v0, p1, Lx/r;->c:I
|
|
|
|
add-int/2addr v0, p2
|
|
|
|
iput v0, p1, Lx/r;->c:I
|
|
|
|
iget p1, p0, Lx/r;->b:I
|
|
|
|
add-int/2addr p1, p2
|
|
|
|
iput p1, p0, Lx/r;->b:I
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string p2, "only owner can write"
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
const-string p1, "sink"
|
|
|
|
invoke-static {p1}, Ls/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final b()Lx/r;
|
|
.locals 7
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lx/r;->d:Z
|
|
|
|
new-instance v0, Lx/r;
|
|
|
|
iget-object v2, p0, Lx/r;->a:[B
|
|
|
|
iget v3, p0, Lx/r;->b:I
|
|
|
|
iget v4, p0, Lx/r;->c:I
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, v0
|
|
|
|
invoke-direct/range {v1 .. v6}, Lx/r;-><init>([BIIZZ)V
|
|
|
|
return-object v0
|
|
.end method
|