sub_15934 CODE XREF sub_15AF8 28 Yp sub_15B2C 34 Yp STMFD SP R4-R8 LR

 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
sub_15934 ; CODE XREF: sub_15AF8+28^Yp
; sub_15B2C+34^Yp ...
STMFD SP!, {R4-R8,LR}
LDR R8, =unk_32E70
LDR R7, =unk_32E7C
LDR R12, [R8]
MOV R4, R3
CMP R12, #0
MOV R5, R2
MOV R12, R1
MOV R6, R0
BLT locret_159A8
LDR LR, [R7]
CMP R3, #0
CMPNE R1, #0
MOV R2, R1
MOV R1, R3
MOV R3, #0
ADD R0, LR, #0x10
STMIA LR, {R3,R6,R12}
STR R5, [LR,#0xC]
BGT loc_159BC
loc_15984 ; CODE XREF: sub_15934+90^Yj
MOV R2, LR
LDR R0, [R8] ; fd
MOV R1, #1 ; request
BL ioctl
CMP R4, #0
CMPNE R5, #0
MOV R0, R4
MOV R2, R5
BGT loc_159AC
locret_159A8 ; CODE XREF: sub_15934+24^Xj
LDMFD SP!, {R4-R8,PC}
; ---------------------------------------------------------------------------
loc_159AC ; CODE XREF: sub_15934+70^Xj
LDR R1, [R7]
ADD R1, R1, #0x10
LDMFD SP!, {R4-R8,LR}
B memcpy
; ---------------------------------------------------------------------------
loc_159BC ; CODE XREF: sub_15934+4C^Xj
BL memcpy
LDR LR, [R7]
B loc_15984
; End of function sub_15934