EXPORT hw_fullupdate hw_fullupdate CODE XREF FullUpdate Yp var_14 -0x1

 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
EXPORT hw_fullupdate
hw_fullupdate ; CODE XREF: FullUpdate+4^Yp
var_14 = -0x14
var_10 = -0x10
STMFD SP!, {R4,R5,LR}
LDR R4, =unk_32E80
SUB SP, SP, #8
LDR R3, [R4]
LDRB R5, [R3,#2]
CMP R5, #0
BEQ loc_160AC
loc_160A4 ; CODE XREF: hw_fullupdate+74^Yj
ADD SP, SP, #8
LDMFD SP!, {R4,R5,PC}
; ---------------------------------------------------------------------------
loc_160AC ; CODE XREF: hw_fullupdate+18^Xj
BL sub_15ED0
LDR R3, =unk_32E74
LDR R2, =unk_32E7C
LDR R1, [R3]
LDR R0, [R2]
LDMIA R1, {R3,R12}
MOV R2, R5
MOV R1, R5
ADD R0, R0, #0x10
STR R12, [SP,#0x14+var_14]
STR R5, [SP,#0x14+var_10]
BL sub_159D0
LDR R12, [R4]
LDR LR, =0x4250
LDR R4, [R12,#0x30]
MOV R1, R0
CMP R4, LR
MOV R0, #0xA0
MOV R2, R5
MOV R3, R5
BNE loc_160A4
BL sub_15934
MOV R1, R5
MOV R2, R5
MOV R3, R5
MOV R0, #0xA1
BL sub_15934
MOV R1, R5
MOV R2, R5
MOV R3, R5
MOV R0, #0xFC
BL sub_15934
MOV R1, R5
MOV R0, #0xA2
MOV R2, R5
MOV R3, R5
ADD SP, SP, #8
LDMFD SP!, {R4,R5,LR}
B sub_15934
; End of function hw_fullupdate