    .thumb
    .text
    .align 2
    .global BIOS_5040
    .thumb_func
BIOS_5040:
    ldr r2, [r5, #0x18]
    add r1, r0, r2
    ldrh r2, [r0, #0]
    movs r3, #0
