p$a.smali
3.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
.class public final Lc/p$a;
.super Ljava/lang/Object;
# interfaces
.implements Lc/x;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lc/p;->a(Ljava/io/InputStream;Lc/y;)Lc/x;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic a:Lc/y;
.field public final synthetic b:Ljava/io/InputStream;
# direct methods
.method public constructor <init>(Lc/y;Ljava/io/InputStream;)V
.locals 0
iput-object p1, p0, Lc/p$a;->a:Lc/y;
iput-object p2, p0, Lc/p$a;->b:Ljava/io/InputStream;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public b(Lc/f;J)J
.locals 3
const-wide/16 v0, 0x0
cmp-long v2, p2, v0
if-ltz v2, :cond_3
if-nez v2, :cond_0
return-wide v0
:cond_0
:try_start_0
iget-object v0, p0, Lc/p$a;->a:Lc/y;
invoke-virtual {v0}, Lc/y;->e()V
const/4 v0, 0x1
invoke-virtual {p1, v0}, Lc/f;->d(I)Lc/t;
move-result-object v0
iget v1, v0, Lc/t;->c:I
rsub-int v1, v1, 0x2000
int-to-long v1, v1
invoke-static {p2, p3, v1, v2}, Ljava/lang/Math;->min(JJ)J
move-result-wide p2
long-to-int p2, p2
iget-object p3, p0, Lc/p$a;->b:Ljava/io/InputStream;
iget-object v1, v0, Lc/t;->a:[B
iget v2, v0, Lc/t;->c:I
invoke-virtual {p3, v1, v2, p2}, Ljava/io/InputStream;->read([BII)I
move-result p2
const/4 p3, -0x1
if-ne p2, p3, :cond_1
const-wide/16 p1, -0x1
return-wide p1
:cond_1
iget p3, v0, Lc/t;->c:I
add-int/2addr p3, p2
iput p3, v0, Lc/t;->c:I
iget-wide v0, p1, Lc/f;->c:J
int-to-long p2, p2
add-long/2addr v0, p2
iput-wide v0, p1, Lc/f;->c:J
:try_end_0
.catch Ljava/lang/AssertionError; {:try_start_0 .. :try_end_0} :catch_0
return-wide p2
:catch_0
move-exception p1
invoke-static {p1}, Lc/p;->a(Ljava/lang/AssertionError;)Z
move-result p2
if-eqz p2, :cond_2
new-instance p2, Ljava/io/IOException;
invoke-direct {p2, p1}, Ljava/io/IOException;-><init>(Ljava/lang/Throwable;)V
throw p2
:cond_2
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount < 0: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)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
.method public close()V
.locals 1
iget-object v0, p0, Lc/p$a;->b:Ljava/io/InputStream;
invoke-virtual {v0}, Ljava/io/InputStream;->close()V
return-void
.end method
.method public d()Lc/y;
.locals 1
iget-object v0, p0, Lc/p$a;->a:Lc/y;
return-object v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "source("
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Lc/p$a;->b:Ljava/io/InputStream;
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