0803D510 (T) push r14 0803D512 (T) ldr r1,=EnemyOrientation ;\ 0803D514 (T) ldrb r0,[r1,1Eh] ;| 0803D516 (T) cmp r0,0h ;} If EnemySpritesetSlot == 0: 0803D518 (T) bne 803D52Ch ;/ 0803D51A (T) ldrh r0,[r1,2h] ;\ 0803D51C (T) sub r0,3h ;} EnemyYPosition -= 3 0803D51E (T) strh r0,[r1,2h] ;/ 0803D520 (T) ldrh r0,[r1,4h] ;\ 0803D522 (T) sub r0,3h ;} EnemyXPosition -= 3 and return 0803D524 (T) b 803D554h ;/ 0803D526 dw 00000h 0803D528 dd 0030006BCh 0803D52C (T) cmp r0,1h ;\ 0803D52E (T) bne 803D53Ch ;} If EnemySpritesetSlot == 1: 0803D530 (T) ldrh r0,[r1,2h] ;\ 0803D532 (T) add r0,3h ;} EnemyYPosition += 3 0803D534 (T) strh r0,[r1,2h] ;/ 0803D536 (T) ldrh r0,[r1,4h] ;\ 0803D538 (T) sub r0,3h ;} EnemyXPosition -= 3 and return 0803D53A (T) b 803D554h ;/ 0803D53C (T) cmp r0,2h ;\ 0803D53E (T) bne 803D546h ;} If EnemySpritesetSlot == 2: 0803D540 (T) ldrh r0,[r1,2h] ;\ 0803D542 (T) add r0,3h ;} EnemyYPosition += 3, EnemyXPosition += 3 and return 0803D544 (T) b 803D54Eh ;/ 0803D546 (T) cmp r0,3h ;\ 0803D548 (T) bne 803D556h ;} If EnemySpritesetSlot != 3: return 0803D54A (T) ldrh r0,[r1,2h] ;\ 0803D54C (T) sub r0,3h ;| ;} EnemyYPosition -= 3 0803D54E (T) strh r0,[r1,2h] ;/ 0803D550 (T) ldrh r0,[r1,4h] ;\ 0803D552 (T) add r0,3h ;| ;} EnemyXPosition += 3 0803D554 (T) strh r0,[r1,4h] ;/ 0803D556 (T) pop r0 0803D558 (T) bx r0