sub_8111AD8

This commit is contained in:
PikalaxALT
2018-10-12 08:47:12 -04:00
parent 1125d6627e
commit 6b0f3451b8
2 changed files with 46 additions and 93 deletions
-83
View File
@@ -5,89 +5,6 @@
.text
thumb_func_start sub_8111AD8
sub_8111AD8: @ 8111AD8
push {r4,r5,lr}
ldr r4, _08111B58 @ =gUnknown_203AE94
ldrb r1, [r4]
movs r0, 0xF
ands r0, r1
cmp r0, 0x1
bne _08111B0A
ldrb r0, [r4, 0x2]
subs r0, 0x1
strb r0, [r4, 0x2]
lsls r0, 24
cmp r0, 0
bne _08111B78
movs r0, 0x10
negs r0, r0
ands r0, r1
movs r1, 0x31
negs r1, r1
ands r0, r1
movs r1, 0x10
orrs r0, r1
strb r0, [r4]
movs r0, 0x2
bl sub_8112888
_08111B0A:
ldrb r1, [r4]
movs r0, 0x30
ands r0, r1
cmp r0, 0x10
bne _08111B34
ldrb r0, [r4, 0x3]
adds r0, 0x1
strb r0, [r4, 0x3]
lsls r0, 24
lsrs r0, 24
cmp r0, 0xF
bls _08111B34
bl sub_8111E20
ldrb r0, [r4]
movs r1, 0x31
negs r1, r1
ands r1, r0
strb r1, [r4]
movs r0, 0
strb r0, [r4, 0x3]
_08111B34:
ldr r4, _08111B58 @ =gUnknown_203AE94
ldrb r0, [r4, 0x1]
cmp r0, 0x1F
bhi _08111B78
ldr r5, _08111B5C @ =gUnknown_203AE0C
lsls r0, 2
adds r0, r5
ldr r0, [r0]
bl sub_8113B44
lsls r0, 24
lsrs r0, 24
cmp r0, 0x1
bne _08111B60
bl sub_8111B80
b _08111B78
.align 2, 0
_08111B58: .4byte gUnknown_203AE94
_08111B5C: .4byte gUnknown_203AE0C
_08111B60:
ldrb r0, [r4, 0x1]
lsls r0, 2
adds r0, r5
ldr r0, [r0]
bl sub_8113AE8
lsls r0, 24
lsrs r0, 24
cmp r0, 0x1
bne _08111B78
bl sub_8111B80
_08111B78:
pop {r4,r5}
pop {r0}
bx r0
thumb_func_end sub_8111AD8
thumb_func_start sub_8111B80
sub_8111B80: @ 8111B80
push {r4,lr}