Start decompiling pokenav_unk_4.c

This commit is contained in:
Marcus Huderle
2019-04-15 17:51:11 -05:00
committed by huderlem
parent f40f2c5e9c
commit 394c0f5546
5 changed files with 80 additions and 103 deletions
-93
View File
@@ -5,99 +5,6 @@
@ File centered around AllocSubstruct(6)
thumb_func_start sub_81CB260
sub_81CB260: @ 81CB260
push {r4,lr}
ldr r1, =0x00002048
movs r0, 0x6
bl AllocSubstruct
adds r4, r0, 0
cmp r4, 0
beq _081CB294
movs r0, 0
strb r0, [r4, 0x19]
ldr r0, =sub_81CB324
movs r1, 0x1
bl CreateLoopedTask
str r0, [r4, 0x4]
ldr r0, =sub_81CB310
str r0, [r4]
movs r0, 0x1
b _081CB296
.pool
_081CB294:
movs r0, 0
_081CB296:
pop {r4}
pop {r1}
bx r1
thumb_func_end sub_81CB260
thumb_func_start sub_81CB29C
sub_81CB29C: @ 81CB29C
push {r4,r5,lr}
adds r4, r0, 0
movs r0, 0x6
bl GetSubstructPtr
adds r5, r0, 0
ldr r0, =gUnknown_08622798
lsls r4, 2
adds r4, r0
ldr r0, [r4]
movs r1, 0x1
bl CreateLoopedTask
str r0, [r5, 0x4]
ldr r0, =sub_81CB310
str r0, [r5]
pop {r4,r5}
pop {r0}
bx r0
.pool
thumb_func_end sub_81CB29C
thumb_func_start sub_81CB2CC
sub_81CB2CC: @ 81CB2CC
push {lr}
movs r0, 0x6
bl GetSubstructPtr
ldr r0, [r0]
bl _call_via_r0
pop {r1}
bx r1
thumb_func_end sub_81CB2CC
thumb_func_start sub_81CB2E0
sub_81CB2E0: @ 81CB2E0
push {r4,lr}
movs r0, 0x6
bl GetSubstructPtr
adds r4, r0, 0
bl sub_81CC2B4
bl sub_81CBC1C
ldrb r0, [r4, 0x12]
bl RemoveWindow
ldrb r0, [r4, 0x10]
bl RemoveWindow
ldrb r0, [r4, 0x14]
bl RemoveWindow
movs r0, 0x6
bl FreePokenavSubstruct
pop {r4}
pop {r0}
bx r0
thumb_func_end sub_81CB2E0
thumb_func_start sub_81CB310
sub_81CB310: @ 81CB310
push {lr}
movs r0, 0x6
bl GetSubstructPtr
ldr r0, [r0, 0x4]
bl IsLoopedTaskActive
pop {r1}
bx r1
thumb_func_end sub_81CB310
thumb_func_start sub_81CB324
sub_81CB324: @ 81CB324
push {r4,r5,lr}