- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
204 lines
5.2 KiB
Smali
204 lines
5.2 KiB
Smali
.class final Lcom/mbridge/msdk/thrid/okio/Okio$1;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/mbridge/msdk/thrid/okio/Sink;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/mbridge/msdk/thrid/okio/Okio;->sink(Ljava/io/OutputStream;Lcom/mbridge/msdk/thrid/okio/Timeout;)Lcom/mbridge/msdk/thrid/okio/Sink;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic val$out:Ljava/io/OutputStream;
|
|
|
|
.field final synthetic val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/mbridge/msdk/thrid/okio/Timeout;Ljava/io/OutputStream;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
iput-object p2, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$out:Ljava/io/OutputStream;
|
|
|
|
.line 71
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public close()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$out:Ljava/io/OutputStream;
|
|
|
|
.line 96
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->close()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public flush()V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$out:Ljava/io/OutputStream;
|
|
|
|
.line 92
|
|
invoke-virtual {v0}, Ljava/io/OutputStream;->flush()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public timeout()Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 2
|
|
|
|
.line 104
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v1, "sink("
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$out:Ljava/io/OutputStream;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ")"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public write(Lcom/mbridge/msdk/thrid/okio/Buffer;J)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
.line 73
|
|
iget-wide v0, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
move-wide v4, p2
|
|
|
|
invoke-static/range {v0 .. v5}, Lcom/mbridge/msdk/thrid/okio/Util;->checkOffsetAndCount(JJJ)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, p2, v0
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$timeout:Lcom/mbridge/msdk/thrid/okio/Timeout;
|
|
|
|
.line 75
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Timeout;->throwIfReached()V
|
|
|
|
.line 76
|
|
iget-object v0, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->head:Lcom/mbridge/msdk/thrid/okio/Segment;
|
|
|
|
.line 77
|
|
iget v1, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->limit:I
|
|
|
|
iget v2, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->pos:I
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
int-to-long v1, v1
|
|
|
|
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
|
|
|
|
move-result-wide v1
|
|
|
|
long-to-int v1, v1
|
|
|
|
iget-object v2, p0, Lcom/mbridge/msdk/thrid/okio/Okio$1;->val$out:Ljava/io/OutputStream;
|
|
|
|
.line 78
|
|
iget-object v3, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->data:[B
|
|
|
|
iget v4, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->pos:I
|
|
|
|
invoke-virtual {v2, v3, v4, v1}, Ljava/io/OutputStream;->write([BII)V
|
|
|
|
.line 80
|
|
iget v2, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->pos:I
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
iput v2, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->pos:I
|
|
|
|
int-to-long v3, v1
|
|
|
|
sub-long/2addr p2, v3
|
|
|
|
.line 82
|
|
iget-wide v5, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
|
|
|
|
sub-long/2addr v5, v3
|
|
|
|
iput-wide v5, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->size:J
|
|
|
|
.line 84
|
|
iget v1, v0, Lcom/mbridge/msdk/thrid/okio/Segment;->limit:I
|
|
|
|
if-ne v2, v1, :cond_0
|
|
|
|
.line 85
|
|
invoke-virtual {v0}, Lcom/mbridge/msdk/thrid/okio/Segment;->pop()Lcom/mbridge/msdk/thrid/okio/Segment;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p1, Lcom/mbridge/msdk/thrid/okio/Buffer;->head:Lcom/mbridge/msdk/thrid/okio/Segment;
|
|
|
|
.line 86
|
|
invoke-static {v0}, Lcom/mbridge/msdk/thrid/okio/SegmentPool;->recycle(Lcom/mbridge/msdk/thrid/okio/Segment;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|