sub_8009900
This commit is contained in:
-86
@@ -5,92 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8009900
|
||||
sub_8009900: @ 8009900
|
||||
push {r4,r5,lr}
|
||||
sub sp, 0x4
|
||||
ldr r4, =gMain
|
||||
ldrh r1, [r4, 0x2E]
|
||||
movs r0, 0x1
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08009916
|
||||
ldr r1, =gUnknown_03003144
|
||||
movs r0, 0x1
|
||||
strb r0, [r1]
|
||||
_08009916:
|
||||
ldrh r1, [r4, 0x2C]
|
||||
movs r5, 0x2
|
||||
adds r0, r5, 0
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _0800992A
|
||||
ldr r0, =0x02004000
|
||||
ldr r1, =0x00002004
|
||||
bl sub_800A2F4
|
||||
_0800992A:
|
||||
ldrh r1, [r4, 0x2E]
|
||||
movs r0, 0x80
|
||||
lsls r0, 2
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08009946
|
||||
movs r0, 0x1
|
||||
negs r0, r0
|
||||
str r5, [sp]
|
||||
movs r1, 0
|
||||
movs r2, 0x10
|
||||
movs r3, 0
|
||||
bl BeginNormalPaletteFade
|
||||
_08009946:
|
||||
ldrh r1, [r4, 0x2E]
|
||||
movs r0, 0x8
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08009956
|
||||
movs r0, 0x1
|
||||
bl sub_800B330
|
||||
_08009956:
|
||||
ldrh r1, [r4, 0x2E]
|
||||
movs r0, 0x80
|
||||
lsls r0, 1
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08009968
|
||||
movs r0, 0x1
|
||||
bl TrySavingData
|
||||
_08009968:
|
||||
ldrh r1, [r4, 0x2E]
|
||||
movs r0, 0x4
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _08009976
|
||||
bl sub_800AC34
|
||||
_08009976:
|
||||
ldr r0, =gUnknown_020223BC
|
||||
ldrb r0, [r0]
|
||||
cmp r0, 0
|
||||
beq _08009996
|
||||
ldr r2, [r4, 0x24]
|
||||
ldr r0, =gUnknown_03002748
|
||||
ldrb r1, [r0]
|
||||
ldr r0, =gUnknown_03003140
|
||||
ldr r0, [r0]
|
||||
cmp r0, 0
|
||||
bne _08009990
|
||||
movs r0, 0x10
|
||||
orrs r1, r0
|
||||
_08009990:
|
||||
adds r0, r2, 0
|
||||
bl sub_800A994
|
||||
_08009996:
|
||||
add sp, 0x4
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8009900
|
||||
|
||||
thumb_func_start c2_08009A8C
|
||||
c2_08009A8C: @ 80099BC
|
||||
push {lr}
|
||||
|
||||
Reference in New Issue
Block a user