get_flagnr_blue_points

This commit is contained in:
PikalaxALT
2017-10-30 21:20:31 -04:00
parent cd9022f929
commit f0c71c7e3f
3 changed files with 53 additions and 173 deletions

View File

@@ -5,178 +5,6 @@
.text
thumb_func_start get_flagnr_blue_points
get_flagnr_blue_points: @ 8123D58
push {lr}
lsls r0, 16
lsrs r0, 16
adds r1, r0, 0
cmp r0, 0x9
beq _08123E18
cmp r0, 0x9
bgt _08123D9A
cmp r0, 0x4
beq _08123DF0
cmp r0, 0x4
bgt _08123D88
cmp r0, 0x1
beq _08123DD8
cmp r0, 0x1
bgt _08123D7E
cmp r0, 0
beq _08123DD0
b _08123E94
_08123D7E:
cmp r0, 0x2
beq _08123DDE
cmp r0, 0x3
beq _08123DE8
b _08123E94
_08123D88:
cmp r0, 0x6
beq _08123E00
cmp r0, 0x6
blt _08123DF8
cmp r0, 0x7
beq _08123E08
cmp r0, 0x8
beq _08123E10
b _08123E94
_08123D9A:
cmp r0, 0xE
beq _08123E40
cmp r0, 0xE
bgt _08123DB4
cmp r0, 0xB
beq _08123E28
cmp r0, 0xB
blt _08123E20
cmp r0, 0xC
beq _08123E30
cmp r0, 0xD
beq _08123E38
b _08123E94
_08123DB4:
cmp r0, 0x3A
beq _08123E60
cmp r0, 0x3A
bgt _08123DC2
cmp r0, 0xF
beq _08123E48
b _08123E94
_08123DC2:
cmp r1, 0x49
beq _08123E7C
cmp r1, 0xD5
beq _08123DCC
b _08123E94
_08123DCC:
movs r0, 0
b _08123E96
_08123DD0:
ldr r0, =0x0000086f
b _08123E4A
.pool
_08123DD8:
movs r0, 0x87
lsls r0, 4
b _08123E4A
_08123DDE:
ldr r0, =0x00000871
b _08123E4A
.pool
_08123DE8:
ldr r0, =0x00000872
b _08123E4A
.pool
_08123DF0:
ldr r0, =0x00000873
b _08123E4A
.pool
_08123DF8:
ldr r0, =0x00000874
b _08123E4A
.pool
_08123E00:
ldr r0, =0x00000875
b _08123E4A
.pool
_08123E08:
ldr r0, =0x00000876
b _08123E4A
.pool
_08123E10:
ldr r0, =0x00000877
b _08123E4A
.pool
_08123E18:
ldr r0, =0x00000878
b _08123E4A
.pool
_08123E20:
ldr r0, =0x00000879
b _08123E4A
.pool
_08123E28:
ldr r0, =0x0000087a
b _08123E4A
.pool
_08123E30:
ldr r0, =0x0000087b
b _08123E4A
.pool
_08123E38:
ldr r0, =0x0000087c
b _08123E4A
.pool
_08123E40:
ldr r0, =0x0000087d
b _08123E4A
.pool
_08123E48:
ldr r0, =0x0000087e
_08123E4A:
bl FlagGet
lsls r0, 24
movs r1, 0x3
cmp r0, 0
beq _08123E58
movs r1, 0x2
_08123E58:
adds r0, r1, 0
b _08123E96
.pool
_08123E60:
ldr r0, =0x000008a8
bl FlagGet
adds r1, r0, 0
lsls r1, 24
lsrs r1, 24
negs r0, r1
orrs r0, r1
asrs r0, 31
movs r1, 0x4
ands r0, r1
b _08123E96
.pool
_08123E7C:
ldr r0, =0x000008a9
bl FlagGet
adds r1, r0, 0
lsls r1, 24
lsrs r1, 24
negs r0, r1
orrs r0, r1
lsrs r0, 31
b _08123E96
.pool
_08123E94:
movs r0, 0x1
_08123E96:
pop {r1}
bx r1
thumb_func_end get_flagnr_blue_points
thumb_func_start sub_8123E9C
sub_8123E9C: @ 8123E9C
push {lr}