.text
.align 2
.thumb
.thumb_func
main:
push {r0-r3, lr}
ldr r0, =(0x2024284 + 0x56)
mov r3, #0x0
loop:
cmp r3, #0x6
beq GetSlot
ldrh r1, [r0]
ldrh r2, [r0, #0x2]
cmp r2, r1
bne GetSlot
add r3, r1, #0x1
add r0, r0, #0x64
b loop
GetSlot:
ldr r0, =(0x20370D0)
strh r3, [r0]
end:
pop {r0-r3 pc}
.align 2
(hey, an asm routine! that's unexpected)