Decompiled a weird function
This commit is contained in:
-105
@@ -5,111 +5,6 @@
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_81C83E0
|
||||
sub_81C83E0: @ 81C83E0
|
||||
push {lr}
|
||||
ldr r0, =sub_81C83F0
|
||||
bl sub_81C7124
|
||||
pop {r1}
|
||||
bx r1
|
||||
.pool
|
||||
thumb_func_end sub_81C83E0
|
||||
|
||||
thumb_func_start sub_81C83F0
|
||||
sub_81C83F0: @ 81C83F0
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0xC
|
||||
adds r6, r0, 0
|
||||
movs r0, 0x11
|
||||
bl GetSubstructPtr
|
||||
adds r4, r0, 0
|
||||
cmp r6, 0
|
||||
beq _081C8408
|
||||
cmp r6, 0x1
|
||||
beq _081C848C
|
||||
b _081C849A
|
||||
_081C8408:
|
||||
ldrh r0, [r4, 0xA]
|
||||
ldrh r1, [r4, 0xC]
|
||||
adds r0, r1
|
||||
ldr r1, [r4, 0x10]
|
||||
adds r5, r0, r1
|
||||
movs r0, 0xF
|
||||
ands r5, r0
|
||||
ldr r0, [r4, 0x1C]
|
||||
adds r7, r4, 0
|
||||
adds r7, 0x48
|
||||
ldr r2, [r4, 0x34]
|
||||
adds r1, r7, 0
|
||||
bl _call_via_r2
|
||||
ldr r3, [r4, 0x38]
|
||||
cmp r3, 0
|
||||
beq _081C8434
|
||||
ldrh r0, [r4, 0x8]
|
||||
ldr r1, [r4, 0x14]
|
||||
adds r2, r5, 0
|
||||
bl _call_via_r3
|
||||
_081C8434:
|
||||
ldrb r0, [r4, 0x8]
|
||||
ldrb r1, [r4, 0x5]
|
||||
lsls r2, r5, 4
|
||||
movs r3, 0x1
|
||||
orrs r2, r3
|
||||
str r2, [sp]
|
||||
movs r2, 0xFF
|
||||
str r2, [sp, 0x4]
|
||||
str r6, [sp, 0x8]
|
||||
adds r2, r7, 0
|
||||
movs r3, 0x8
|
||||
bl AddTextPrinterParameterized
|
||||
ldrh r0, [r4, 0xC]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0xC]
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
ldrh r1, [r4, 0xE]
|
||||
cmp r0, r1
|
||||
bcc _081C847A
|
||||
ldr r0, [r4, 0x38]
|
||||
cmp r0, 0
|
||||
beq _081C846E
|
||||
ldrb r0, [r4, 0x8]
|
||||
movs r1, 0x3
|
||||
bl CopyWindowToVram
|
||||
b _081C8476
|
||||
_081C846E:
|
||||
ldrb r0, [r4, 0x8]
|
||||
movs r1, 0x2
|
||||
bl CopyWindowToVram
|
||||
_081C8476:
|
||||
movs r0, 0
|
||||
b _081C849C
|
||||
_081C847A:
|
||||
ldr r0, [r4, 0x1C]
|
||||
ldr r1, [r4, 0x18]
|
||||
adds r0, r1
|
||||
str r0, [r4, 0x1C]
|
||||
ldr r0, [r4, 0x14]
|
||||
adds r0, 0x1
|
||||
str r0, [r4, 0x14]
|
||||
movs r0, 0x3
|
||||
b _081C849C
|
||||
_081C848C:
|
||||
bl IsDma3ManagerBusyWithBgCopy
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081C849A
|
||||
movs r0, 0x2
|
||||
b _081C849C
|
||||
_081C849A:
|
||||
movs r0, 0x4
|
||||
_081C849C:
|
||||
add sp, 0xC
|
||||
pop {r4-r7}
|
||||
pop {r1}
|
||||
bx r1
|
||||
thumb_func_end sub_81C83F0
|
||||
|
||||
thumb_func_start sub_81C84A4
|
||||
sub_81C84A4: @ 81C84A4
|
||||
push {lr}
|
||||
|
||||
Reference in New Issue
Block a user