0807D3BC (T) push r4-r7,r14
0807D3BE (T) mov r7,r10
0807D3C0 (T) mov r6,r9
0807D3C2 (T) mov r5,r8
0807D3C4 (T) push r5-r7
0807D3C6 (T) add sp,-4h
0807D3C8 (T) ldr r1,=ClipdataHandlingCode
0807D3CA (T) mov r3,2Ch
0807D3CC (T) ldsh r2,[r1,r3]
0807D3CE (T) mov r12,r1
0807D3D0 (T) cmp r2,0h
0807D3D2 (T) bge 807D3D6h
0807D3D4 (T) add r2,7h
0807D3D6 (T) asr r5,r2,3h
0807D3D8 (T) mov r2,r12
0807D3DA (T) mov r3,2Eh
0807D3DC (T) ldsh r1,[r2,r3]
0807D3DE (T) cmp r1,0h
0807D3E0 (T) bge 807D3E4h
0807D3E2 (T) add r1,7h
0807D3E4 (T) asr r4,r1,3h
0807D3E6 (T) mov r7,0h
0807D3E8 (T) mov r1,0h
0807D3EA (T) mov r10,r1
0807D3EC (T) ldr r6,=858211Ch
0807D3EE (T) mov r3,r6
0807D3F0 (T) mov r2,0h
0807D3F2 (T) add r1,r6,1
0807D3F4 (T) mov r9,r1
0807D3F6 (T) add r1,r6,2
0807D3F8 (T) mov r8,r1
0807D3FA (T) ldrb r1,[r3]
0807D3FC (T) cmp r1,r5
0807D3FE (T) bgt 807D41Ah
0807D400 (T) mov r1,r9
0807D402 (T) add r1,r2,r1
0807D404 (T) ldrb r1,[r1]
0807D406 (T) cmp r1,r5
0807D408 (T) blt 807D41Ah
0807D40A (T) mov r1,r8
0807D40C (T) add r1,r2,r1
0807D40E (T) ldrb r1,[r1]
0807D410 (T) cmp r1,r4
0807D412 (T) bgt 807D41Ah
0807D414 (T) ldrb r1,[r3,3h]
0807D416 (T) cmp r1,r4
0807D418 (T) bge 807D480h
0807D41A (T) add r3,5h
0807D41C (T) add r2,5h
0807D41E (T) mov r1,1h
0807D420 (T) add r10,r1
0807D422 (T) mov r1,r10
0807D424 (T) cmp r1,12h
0807D426 (T) ble 807D3FAh
0807D428 (T) cmp r7,0h
0807D42A (T) bne 807D42Eh
0807D42C (T) b 807DB22h
0807D42E (T) mov r2,r10
0807D430 (T) lsl r1,r2,2h
0807D432 (T) add r2,r1,r2
0807D434 (T) add r3,r6,4
0807D436 (T) add r2,r2,r3
0807D438 (T) ldrb r2,[r2]
0807D43A (T) mov r8,r2
0807D43C (T) mov r9,r1
0807D43E (T) cmp r2,0Fh
0807D440 (T) beq 807D484h
0807D442 (T) ldr r1,=ChangedInput
0807D444 (T) ldrh r2,[r1]
0807D446 (T) mov r1,2h
0807D448 (T) and r1,r2
0807D44A (T) cmp r1,0h
0807D44C (T) beq 807D484h
0807D44E (T) mov r3,r12
0807D450 (T) ldrb r1,[r3,7h]
0807D452 (T) cmp r1,0h
0807D454 (T) beq 807D484h
0807D456 (T) mov r4,0h
0807D458 (T) strb r4,[r3,7h]
0807D45A (T) mov r0,0h
0807D45C (T) mov r1,1h
0807D45E (T) bl 807486Ch
0807D462 (T) mov r5,r8
0807D464 (T) cmp r5,11h
0807D466 (T) beq 807D46Ah
0807D468 (T) b 807DB22h
0807D46A (T) ldr r1,=InGameTimer_StopFlag
0807D46C (T) strb r4,[r1]
0807D46E (T) b 807DB22h
0807D470 dd 003001484h,00858211Ch,0030011ECh,00300013Ch
0807D480 (T) mov r7,1h
0807D482 (T) b 807D42Eh
0807D484 (T) mov r2,r9
0807D486 (T) add r2,r10
0807D488 (T) add r1,r2,r6
0807D48A (T) ldrb r1,[r1]
0807D48C (T) sub r5,r5,r1
0807D48E (T) add r1,r6,3
0807D490 (T) add r1,r2,r1
0807D492 (T) ldrb r1,[r1]
0807D494 (T) sub r4,r1,r4
0807D496 (T) add r1,r6,4
0807D498 (T) add r2,r2,r1
0807D49A (T) ldrb r1,[r2]
0807D49C (T) cmp r1,12h
0807D49E (T) bls 807D4A2h
0807D4A0 (T) b 807DAD8h
0807D4A2 (T) lsl r1,r1,2h
0807D4A4 (T) ldr r2,=807D4B0h
0807D4A6 (T) add r1,r1,r2
0807D4A8 (T) ldr r1,[r1]
0807D4AA (T) mov r15,r1
0807D4AC dd 00807D4B0h,00807D4FCh,00807D528h,00807D554h
0807D4BC dd 00807D580h,00807D5A0h,00807D5D4h,00807D5D4h
0807D4CC dd 00807DAD8h,00807D5D4h,00807D5D4h,00807D5D4h
0807D4DC dd 00807D5D4h,00807D61Ch,00807D65Ch,00807D6A0h
0807D4EC dd 00807D6DCh,00807D88Ch,00807D96Ch,00807DAA0h
; Branch 0
0807D4FC (T) ldr r1,=ChangedInput
0807D4FE (T) ldrh r2,[r1]
0807D500 (T) mov r1,1h
0807D502 (T) and r1,r2
0807D504 (T) cmp r1,0h
0807D506 (T) bne 807D50Ah
0807D508 (T) b 807DADAh
0807D50A (T) ldr r4,=HealthStatus
0807D50C (T) ldr r1,=8576168h
0807D50E (T) add r1,r5,r1
0807D510 (T) ldrb r2,[r4,0Ah]
0807D512 (T) ldrb r1,[r1]
0807D514 (T) eor r2,r1
0807D516 (T) mov r3,0h
0807D518 (T) strb r2,[r4,0Ah]
0807D51A (T) b 807D5BEh
0807D51C dd 0030011ECh,003001310h,008576168h
; Branch 1
0807D528 (T) ldr r1,=ChangedInput
0807D52A (T) ldrh r2,[r1]
0807D52C (T) mov r1,1h
0807D52E (T) and r1,r2
0807D530 (T) cmp r1,0h
0807D532 (T) bne 807D536h
0807D534 (T) b 807DADAh
0807D536 (T) ldr r4,=HealthStatus
0807D538 (T) ldr r1,=857616Dh
0807D53A (T) add r1,r5,r1
0807D53C (T) ldrb r2,[r4,0Bh]
0807D53E (T) ldrb r1,[r1]
0807D540 (T) eor r2,r1
0807D542 (T) mov r3,0h
0807D544 (T) strb r2,[r4,0Bh]
0807D546 (T) b 807D5BEh
0807D548 dd 0030011ECh,003001310h,00857616Dh
; Branch 2
0807D554 (T) ldr r1,=ChangedInput
0807D556 (T) ldrh r2,[r1]
0807D558 (T) mov r1,1h
0807D55A (T) and r1,r2
0807D55C (T) cmp r1,0h
0807D55E (T) bne 807D562h
0807D560 (T) b 807DADAh
0807D562 (T) ldr r4,=HealthStatus
0807D564 (T) ldr r1,=8576171h
0807D566 (T) add r1,r5,r1
0807D568 (T) ldrb r2,[r4,0Bh]
0807D56A (T) ldrb r1,[r1]
0807D56C (T) eor r2,r1
0807D56E (T) mov r3,0h
0807D570 (T) strb r2,[r4,0Bh]
0807D572 (T) b 807D5BEh
0807D574 dd 0030011ECh,003001310h,008576171h
; Branch 3
0807D580 (T) ldr r1,=ChangedInput
0807D582 (T) ldrh r2,[r1]
0807D584 (T) mov r1,1h
0807D586 (T) and r1,r2
0807D588 (T) cmp r1,0h
0807D58A (T) bne 807D58Eh
0807D58C (T) b 807DADAh
0807D58E (T) ldr r4,=HealthStatus
0807D590 (T) ldr r1,=8576173h
0807D592 (T) b 807D5B2h
0807D594 dd 0030011ECh,003001310h,008576173h
; Branch 4
0807D5A0 (T) ldr r1,=ChangedInput
0807D5A2 (T) ldrh r2,[r1]
0807D5A4 (T) mov r1,1h
0807D5A6 (T) and r1,r2
0807D5A8 (T) cmp r1,0h
0807D5AA (T) bne 807D5AEh
0807D5AC (T) b 807DADAh
0807D5AE (T) ldr r4,=HealthStatus
0807D5B0 (T) ldr r1,=8576175h
0807D5B2 (T) add r1,r5,r1
0807D5B4 (T) ldrb r2,[r4,0Ch]
0807D5B6 (T) ldrb r1,[r1]
0807D5B8 (T) eor r2,r1
0807D5BA (T) mov r3,0h
0807D5BC (T) strb r2,[r4,0Ch]
0807D5BE (T) ldr r1,=AbilitiesCounter
0807D5C0 (T) strb r3,[r1]
0807D5C2 (T) b 807DADAh
0807D5C4 dd 0030011ECh,003001310h,008576175h,00300001Bh
; Branch 5, 6, 8, 9, A, B
0807D5D4 (T) mov r7,0h
0807D5D6 (T) ldr r1,=ChangedInput
0807D5D8 (T) ldrh r2,[r1]
0807D5DA (T) mov r1,1h
0807D5DC (T) and r1,r2
0807D5DE (T) cmp r1,0h
0807D5E0 (T) beq 807D5F0h
0807D5E2 (T) mov r2,r12
0807D5E4 (T) add r2,36h
0807D5E6 (T) mov r1,9h
0807D5E8 (T) strb r1,[r2]
0807D5EA (T) mov r1,1h
0807D5EC (T) mov r2,r12
0807D5EE (T) strb r1,[r2,7h]
0807D5F0 (T) mov r3,r12
0807D5F2 (T) ldrb r1,[r3,7h]
0807D5F4 (T) cmp r1,0h
0807D5F6 (T) bne 807D5FAh
0807D5F8 (T) b 807DADAh
0807D5FA (T) lsl r0,r4,18h
0807D5FC (T) lsr r0,r0,18h
0807D5FE (T) mov r1,r9
0807D600 (T) add r1,r10
0807D602 (T) add r2,r6,4
0807D604 (T) add r1,r1,r2
0807D606 (T) ldrb r1,[r1]
0807D608 (T) bl 807E278h
0807D60C (T) mov r1,r0
0807D60E (T) cmp r1,0h
0807D610 (T) bne 807D614h
0807D612 (T) b 807DADAh
0807D614 (T) mov r7,2h
0807D616 (T) b 807DADAh
0807D618 dd 0030011ECh
; Branch C
0807D61C (T) mov r7,0h
0807D61E (T) ldr r1,=ChangedInput
0807D620 (T) ldrh r2,[r1]
0807D622 (T) mov r1,1h
0807D624 (T) and r1,r2
0807D626 (T) cmp r1,0h
0807D628 (T) beq 807D638h
0807D62A (T) mov r2,r12
0807D62C (T) add r2,36h
0807D62E (T) mov r1,9h
0807D630 (T) strb r1,[r2]
0807D632 (T) mov r1,1h
0807D634 (T) mov r5,r12
0807D636 (T) strb r1,[r5,7h]
0807D638 (T) mov r2,r12
0807D63A (T) ldrb r1,[r2,7h]
0807D63C (T) cmp r1,0h
0807D63E (T) bne 807D642h
0807D640 (T) b 807DADAh
0807D642 (T) lsl r0,r4,18h
0807D644 (T) lsr r0,r0,18h
0807D646 (T) bl 807DF64h
0807D64A (T) mov r1,r0
0807D64C (T) cmp r1,0h
0807D64E (T) bne 807D652h
0807D650 (T) b 807DADAh
0807D652 (T) mov r7,3h
0807D654 (T) b 807DADAh
0807D656 (T) dw 00000h
0807D658 dd 0030011ECh
; Branch D
0807D65C (T) ldr r1,=ChangedInput
0807D65E (T) ldrh r2,[r1]
0807D660 (T) mov r1,1h
0807D662 (T) and r1,r2
0807D664 (T) cmp r1,0h
0807D666 (T) bne 807D66Ah
0807D668 (T) b 807DADAh
0807D66A (T) ldr r1,=HealthStatus
0807D66C (T) ldrb r3,[r1,0Dh]
0807D66E (T) mov r2,4h
0807D670 (T) sub r2,r2,r4
0807D672 (T) mov r5,r1
0807D674 (T) cmp r3,r2
0807D676 (T) bne 807D684h
0807D678 (T) mov r1,3h
0807D67A (T) b 807D686h
0807D67C dd 0030011ECh,003001310h
0807D684 (T) mov r1,4h
0807D686 (T) sub r1,r1,r4
0807D688 (T) strb r1,[r5,0Dh]
0807D68A (T) ldr r1,=DoorFlashingLevel
0807D68C (T) ldrb r2,[r5,0Dh]
0807D68E (T) strb r2,[r1]
0807D690 (T) ldr r1,=3000BD0h
0807D692 (T) strb r2,[r1,9h]
0807D694 (T) b 807DADAh
0807D696 (T) dw 00000h
0807D698 dd 00300001Ch,003000BD0h
; Branch E
0807D6A0 (T) ldr r1,=ChangedInput
0807D6A2 (T) ldrh r2,[r1]
0807D6A4 (T) mov r3,1h
0807D6A6 (T) mov r1,r3
0807D6A8 (T) and r1,r2
0807D6AA (T) ldr r5,=HealthStatus
0807D6AC (T) cmp r1,0h
0807D6AE (T) beq 807D6C4h
0807D6B0 (T) mov r2,6h
0807D6B2 (T) sub r2,r2,r4
0807D6B4 (T) mov r1,r3
0807D6B6 (T) lsl r1,r2
0807D6B8 (T) ldrb r2,[r5,0Eh]
0807D6BA (T) eor r1,r2
0807D6BC (T) strb r1,[r5,0Eh]
0807D6BE (T) ldr r2,=3000B86h
0807D6C0 (T) mov r1,0FFh
0807D6C2 (T) strb r1,[r2]
0807D6C4 (T) ldr r2,=3000BD0h
0807D6C6 (T) ldrb r1,[r5,0Eh]
0807D6C8 (T) strb r1,[r2,8h]
0807D6CA (T) b 807DADAh
0807D6CC dd 0030011ECh,003001310h,003000B86h,003000BD0h
; Branch F
0807D6DC (T) mov r7,0h
0807D6DE (T) mov r6,0h
0807D6E0 (T) ldr r3,=ClipdataHandlingCode
0807D6E2 (T) ldrb r1,[r3,7h]
0807D6E4 (T) cmp r1,0h
0807D6E6 (T) bne 807D730h
0807D6E8 (T) ldr r1,=ChangedInput
0807D6EA (T) ldrh r2,[r1]
0807D6EC (T) mov r1,1h
0807D6EE (T) and r1,r2
0807D6F0 (T) cmp r1,0h
0807D6F2 (T) beq 807D754h
0807D6F4 (T) mov r1,1h
0807D6F6 (T) strb r1,[r3,7h]
0807D6F8 (T) mov r2,r3
0807D6FA (T) add r2,36h
0807D6FC (T) mov r1,9h
0807D6FE (T) strb r1,[r2]
0807D700 (T) mov r7,1h
0807D702 (T) ldr r2,=WIN0V__(Window_0_Vertical_Dimensions)
0807D704 (T) mov r1,88h
0807D706 (T) strh r1,[r2]
0807D708 (T) add r2,6h
0807D70A (T) mov r1,4h
0807D70C (T) strb r1,[r2]
0807D70E (T) mov r5,9Ah
0807D710 (T) lsl r5,r5,2h
0807D712 (T) add r3,r3,r5
0807D714 (T) ldrh r2,[r3]
0807D716 (T) mov r5,80h
0807D718 (T) lsl r5,r5,1h
0807D71A (T) mov r1,r5
0807D71C (T) orr r1,r2
0807D71E (T) strh r1,[r3]
0807D720 (T) mov r6,80h
0807D722 (T) b 807D754h
0807D724 dd 003001484h,0030011ECh,004000044h
0807D730 (T) ldr r1,=ChangedInput
0807D732 (T) ldrh r2,[r1]
0807D734 (T) mov r1,3h
0807D736 (T) and r1,r2
0807D738 (T) cmp r1,0h
0807D73A (T) beq 807D754h
0807D73C (T) strb r7,[r3,7h]
0807D73E (T) mov r0,0h
0807D740 (T) mov r1,1h
0807D742 (T) bl 807486Ch
0807D746 (T) mov r7,1h
0807D748 (T) ldr r2,=WIN0V__(Window_0_Vertical_Dimensions)
0807D74A (T) mov r1,0A0h
0807D74C (T) strh r1,[r2]
0807D74E (T) add r2,6h
0807D750 (T) mov r1,35h
0807D752 (T) strb r1,[r2]
0807D754 (T) ldr r3,=ClipdataHandlingCode
0807D756 (T) ldrb r1,[r3,7h]
0807D758 (T) cmp r1,0h
0807D75A (T) bne 807D75Eh
0807D75C (T) b 807DADAh
0807D75E (T) cmp r6,0h
0807D760 (T) bne 807D800h
0807D762 (T) ldr r1,=ChangedInput
0807D764 (T) ldrh r2,[r1]
0807D766 (T) mov r1,80h
0807D768 (T) and r1,r2
0807D76A (T) cmp r1,0h
0807D76C (T) beq 807D7A2h
0807D76E (T) ldr r3,=EventCounter
0807D770 (T) ldrb r2,[r3]
0807D772 (T) ldr r0,=8576180h
0807D774 (T) lsl r1,r4,1h
0807D776 (T) add r1,r1,r0
0807D778 (T) ldrh r1,[r1]
0807D77A (T) add r0,r2,r1
0807D77C (T) cmp r0,6Dh
0807D77E (T) ble 807D79Ch
0807D780 (T) mov r0,6Dh
0807D782 (T) strb r0,[r3]
0807D784 (T) b 807D800h
0807D786 (T) dw 00000h
0807D788 dd 0030011ECh,004000044h,003001484h,003000B87h
0807D798 dd 008576180h
0807D79C (T) add r0,r2,r1
0807D79E (T) strb r0,[r3]
0807D7A0 (T) b 807D800h
0807D7A2 (T) mov r1,40h
0807D7A4 (T) and r1,r2
0807D7A6 (T) cmp r1,0h
0807D7A8 (T) beq 807D7CEh
0807D7AA (T) ldr r2,=EventCounter
0807D7AC (T) ldrb r3,[r2]
0807D7AE (T) ldr r0,=8576180h
0807D7B0 (T) lsl r1,r4,1h
0807D7B2 (T) add r1,r1,r0
0807D7B4 (T) ldrh r1,[r1]
0807D7B6 (T) sub r0,r3,r1
0807D7B8 (T) cmp r0,0h
0807D7BA (T) bge 807D7C8h
0807D7BC (T) strb r6,[r2]
0807D7BE (T) b 807D800h
0807D7C0 dd 003000B87h,008576180h
0807D7C8 (T) sub r0,r3,r1
0807D7CA (T) strb r0,[r2]
0807D7CC (T) b 807D800h
0807D7CE (T) mov r1,10h
0807D7D0 (T) and r1,r2
0807D7D2 (T) cmp r1,0h
0807D7D4 (T) beq 807D7E2h
0807D7D6 (T) cmp r4,0h
0807D7D8 (T) beq 807D7FAh
0807D7DA (T) ldrh r1,[r3,2Eh]
0807D7DC (T) add r1,8h
0807D7DE (T) strh r1,[r3,2Eh]
0807D7E0 (T) b 807D7FAh
0807D7E2 (T) mov r1,20h
0807D7E4 (T) and r1,r2
0807D7E6 (T) cmp r1,0h
0807D7E8 (T) beq 807D7F6h
0807D7EA (T) cmp r4,1h
0807D7EC (T) bgt 807D7FAh
0807D7EE (T) ldrh r1,[r3,2Eh]
0807D7F0 (T) sub r1,8h
0807D7F2 (T) strh r1,[r3,2Eh]
0807D7F4 (T) b 807D7FAh
0807D7F6 (T) bl 807E590h
0807D7FA (T) cmp r6,0h
0807D7FC (T) bne 807D800h
0807D7FE (T) b 807DADAh
0807D800 (T) ldr r1,=HealthStatus
0807D802 (T) mov r0,0h
0807D804 (T) strb r0,[r1,0Ah]
0807D806 (T) strb r0,[r1,0Bh]
0807D808 (T) strb r0,[r1,0Ch]
0807D80A (T) ldr r0,=300004Ah
0807D80C (T) ldrb r4,[r0]
0807D80E (T) ldr r0,=300004Bh
0807D810 (T) ldrb r5,[r0]
0807D812 (T) ldr r0,=EventCounter
0807D814 (T) ldrb r6,[r0]
0807D816 (T) mov r7,0h
0807D818 (T) cmp r7,r6
0807D81A (T) bgt 807D82Ah
0807D81C (T) lsl r0,r7,18h
0807D81E (T) lsr r0,r0,18h
0807D820 (T) bl SetEvent
0807D824 (T) add r7,1h
0807D826 (T) cmp r7,r6
0807D828 (T) ble 807D81Ch
0807D82A (T) ldr r6,=300004Ah
0807D82C (T) strb r4,[r6]
0807D82E (T) ldr r0,=300004Bh
0807D830 (T) strb r5,[r0]
0807D832 (T) mov r0,0FFh
0807D834 (T) bl 807DB78h
0807D838 (T) mov r0,0FFh
0807D83A (T) bl 807E478h
0807D83E (T) bl 807E05Ch
0807D842 (T) ldr r2,=DoorFlashingLevel
0807D844 (T) ldr r0,=HealthStatus
0807D846 (T) ldrb r1,[r0,0Dh]
0807D848 (T) strb r1,[r2]
0807D84A (T) ldr r0,=3000BD0h
0807D84C (T) strb r1,[r0,9h]
0807D84E (T) ldr r4,=EventCounter
0807D850 (T) ldrb r0,[r4]
0807D852 (T) bl 807DB34h
0807D856 (T) mov r7,0h
0807D858 (T) ldrb r1,[r4]
0807D85A (T) cmp r1,20h
0807D85C (T) bhi 807D868h
0807D85E (T) cmp r1,20h
0807D860 (T) bne 807D86Ah
0807D862 (T) ldrb r1,[r6]
0807D864 (T) cmp r1,80h
0807D866 (T) bne 807D86Ah
0807D868 (T) mov r7,1h
0807D86A (T) ldr r1,=30006B9h
0807D86C (T) strb r7,[r1]
0807D86E (T) b 807DAD8h
0807D870 dd 003001310h,00300004Ah,00300004Bh,003000B87h
0807D880 dd 00300001Ch,003000BD0h,0030006B9h
; Branch 10
0807D88C (T) mov r7,0h
0807D88E (T) mov r6,0h
0807D890 (T) ldr r3,=ClipdataHandlingCode
0807D892 (T) ldrb r1,[r3,7h]
0807D894 (T) cmp r1,0h
0807D896 (T) bne 807D8BCh
0807D898 (T) ldr r1,=ChangedInput
0807D89A (T) ldrh r2,[r1]
0807D89C (T) mov r1,1h
0807D89E (T) and r1,r2
0807D8A0 (T) cmp r1,0h
0807D8A2 (T) beq 807D8D2h
0807D8A4 (T) mov r1,1h
0807D8A6 (T) strb r1,[r3,7h]
0807D8A8 (T) mov r2,r3
0807D8AA (T) add r2,36h
0807D8AC (T) mov r1,9h
0807D8AE (T) strb r1,[r2]
0807D8B0 (T) b 807D8D2h
0807D8B2 (T) dw 00000h
0807D8B4 dd 003001484h,0030011ECh
0807D8BC (T) ldr r1,=ChangedInput
0807D8BE (T) ldrh r2,[r1]
0807D8C0 (T) mov r1,3h
0807D8C2 (T) and r1,r2
0807D8C4 (T) cmp r1,0h
0807D8C6 (T) beq 807D8D2h
0807D8C8 (T) strb r7,[r3,7h]
0807D8CA (T) mov r0,0h
0807D8CC (T) mov r1,1h
0807D8CE (T) bl 807486Ch
0807D8D2 (T) ldr r3,=ClipdataHandlingCode
0807D8D4 (T) ldrb r1,[r3,7h]
0807D8D6 (T) cmp r1,0h
0807D8D8 (T) bne 807D8DCh
0807D8DA (T) b 807DADAh
0807D8DC (T) cmp r6,0h
0807D8DE (T) beq 807D8E2h
0807D8E0 (T) b 807D614h
0807D8E2 (T) ldr r1,=ChangedInput
0807D8E4 (T) ldrh r2,[r1]
0807D8E6 (T) mov r1,80h
0807D8E8 (T) and r1,r2
0807D8EA (T) cmp r1,0h
0807D8EC (T) beq 807D918h
0807D8EE (T) ldr r5,=SubEventCounter
0807D8F0 (T) ldrh r3,[r5]
0807D8F2 (T) ldr r2,=8576180h
0807D8F4 (T) lsl r1,r4,1h
0807D8F6 (T) add r1,r1,r2
0807D8F8 (T) ldrh r1,[r1]
0807D8FA (T) add r1,r3,r1
0807D8FC (T) cmp r1,9Bh
0807D8FE (T) ble 807D902h
0807D900 (T) mov r1,9Bh
0807D902 (T) strh r1,[r5]
0807D904 (T) b 807D614h
0807D906 (T) dw 00000h
0807D908 dd 0030011ECh,003001484h,003000060h,008576180h
0807D918 (T) mov r1,40h
0807D91A (T) and r1,r2
0807D91C (T) cmp r1,0h
0807D91E (T) beq 807D940h
0807D920 (T) ldr r5,=SubEventCounter
0807D922 (T) ldrh r3,[r5]
0807D924 (T) ldr r2,=8576180h
0807D926 (T) lsl r1,r4,1h
0807D928 (T) add r1,r1,r2
0807D92A (T) ldrh r1,[r1]
0807D92C (T) sub r1,r3,r1
0807D92E (T) cmp r1,0h
0807D930 (T) bge 807D902h
0807D932 (T) strh r6,[r5]
0807D934 (T) b 807D614h
0807D936 (T) dw 00000h
0807D938 dd 003000060h,008576180h
0807D940 (T) mov r1,10h
0807D942 (T) and r1,r2
0807D944 (T) cmp r1,0h
0807D946 (T) beq 807D952h
0807D948 (T) cmp r4,0h
0807D94A (T) beq 807D964h
0807D94C (T) ldrh r1,[r3,2Eh]
0807D94E (T) add r1,8h
0807D950 (T) b 807D962h
0807D952 (T) mov r1,20h
0807D954 (T) and r1,r2
0807D956 (T) cmp r1,0h
0807D958 (T) beq 807D964h
0807D95A (T) cmp r4,1h
0807D95C (T) bgt 807D964h
0807D95E (T) ldrh r1,[r3,2Eh]
0807D960 (T) sub r1,8h
0807D962 (T) strh r1,[r3,2Eh]
0807D964 (T) cmp r6,0h
0807D966 (T) bne 807D96Ah
0807D968 (T) b 807DADAh
0807D96A (T) b 807D614h
; Branch 11
0807D96C (T) mov r7,0h
0807D96E (T) mov r3,r12
0807D970 (T) ldrb r1,[r3,7h]
0807D972 (T) cmp r1,0h
0807D974 (T) bne 807D9A8h
0807D976 (T) ldr r1,=ChangedInput
0807D978 (T) ldrh r2,[r1]
0807D97A (T) mov r4,1h
0807D97C (T) mov r1,1h
0807D97E (T) and r1,r2
0807D980 (T) cmp r1,0h
0807D982 (T) bne 807D986h
0807D984 (T) b 807DADAh
0807D986 (T) mov r2,r3
0807D988 (T) add r2,36h
0807D98A (T) mov r1,9h
0807D98C (T) strb r1,[r2]
0807D98E (T) strb r4,[r3,7h]
0807D990 (T) ldr r1,=InGameTimer_StopFlag
0807D992 (T) strb r4,[r1]
0807D994 (T) ldr r1,=InGameTimer_Hours
0807D996 (T) strb r7,[r1,2h]
0807D998 (T) strb r7,[r1,3h]
0807D99A (T) b 807DADAh
0807D99C dd 0030011ECh,00300013Ch,003000138h
0807D9A8 (T) mov r6,0h
0807D9AA (T) ldr r1,=ChangedInput
0807D9AC (T) ldrh r2,[r1]
0807D9AE (T) mov r1,80h
0807D9B0 (T) and r1,r2
0807D9B2 (T) cmp r1,0h
0807D9B4 (T) beq 807DA12h
0807D9B6 (T) cmp r4,2h
0807D9B8 (T) ble 807D9E6h
0807D9BA (T) sub r4,3h
0807D9BC (T) ldr r3,=InGameTimer_Hours
0807D9BE (T) ldrb r2,[r3]
0807D9C0 (T) ldr r0,=8576180h
0807D9C2 (T) lsl r1,r4,1h
0807D9C4 (T) add r1,r1,r0
0807D9C6 (T) ldrh r1,[r1]
0807D9C8 (T) add r0,r2,r1
0807D9CA (T) cmp r0,0FFh
0807D9CC (T) ble 807D9E0h
0807D9CE (T) mov r0,0FFh
0807D9D0 (T) strb r0,[r3]
0807D9D2 (T) b 807DA9Ah
0807D9D4 dd 0030011ECh,003000138h,008576180h
0807D9E0 (T) add r0,r2,r1
0807D9E2 (T) strb r0,[r3]
0807D9E4 (T) b 807DA9Ah
0807D9E6 (T) cmp r4,1h
0807D9E8 (T) bgt 807DA96h
0807D9EA (T) ldr r3,=InGameTimer_Hours
0807D9EC (T) ldrb r2,[r3,1h]
0807D9EE (T) ldr r0,=8576180h
0807D9F0 (T) lsl r1,r4,1h
0807D9F2 (T) add r1,r1,r0
0807D9F4 (T) ldrh r1,[r1]
0807D9F6 (T) add r0,r2,r1
0807D9F8 (T) cmp r0,3Bh
0807D9FA (T) ble 807DA0Ch
0807D9FC (T) mov r0,3Bh
0807D9FE (T) strb r0,[r3,1h]
0807DA00 (T) b 807DA9Ah
0807DA02 (T) dw 00000h
0807DA04 dd 003000138h,008576180h
0807DA0C (T) add r0,r2,r1
0807DA0E (T) strb r0,[r3,1h]
0807DA10 (T) b 807DA9Ah
0807DA12 (T) mov r1,40h
0807DA14 (T) and r1,r2
0807DA16 (T) cmp r1,0h
0807DA18 (T) beq 807DA6Eh
0807DA1A (T) cmp r4,2h
0807DA1C (T) ble 807DA46h
0807DA1E (T) sub r4,3h
0807DA20 (T) ldr r2,=InGameTimer_Hours
0807DA22 (T) ldrb r3,[r2]
0807DA24 (T) ldr r0,=8576180h
0807DA26 (T) lsl r1,r4,1h
0807DA28 (T) add r1,r1,r0
0807DA2A (T) ldrh r1,[r1]
0807DA2C (T) sub r0,r3,r1
0807DA2E (T) cmp r0,0h
0807DA30 (T) bge 807DA40h
0807DA32 (T) strb r7,[r2]
0807DA34 (T) b 807DA9Ah
0807DA36 (T) dw 00000h
0807DA38 dd 003000138h,008576180h
0807DA40 (T) sub r0,r3,r1
0807DA42 (T) strb r0,[r2]
0807DA44 (T) b 807DA9Ah
0807DA46 (T) cmp r4,1h
0807DA48 (T) bgt 807DA96h
0807DA4A (T) ldr r2,=InGameTimer_Hours
0807DA4C (T) ldrb r3,[r2,1h]
0807DA4E (T) ldr r0,=8576180h
0807DA50 (T) lsl r1,r4,1h
0807DA52 (T) add r1,r1,r0
0807DA54 (T) ldrh r1,[r1]
0807DA56 (T) sub r0,r3,r1
0807DA58 (T) cmp r0,0h
0807DA5A (T) bge 807DA68h
0807DA5C (T) strb r7,[r2,1h]
0807DA5E (T) b 807DA9Ah
0807DA60 dd 003000138h,008576180h
0807DA68 (T) sub r0,r3,r1
0807DA6A (T) strb r0,[r2,1h]
0807DA6C (T) b 807DA9Ah
0807DA6E (T) mov r1,10h
0807DA70 (T) and r1,r2
0807DA72 (T) cmp r1,0h
0807DA74 (T) beq 807DA82h
0807DA76 (T) cmp r4,0h
0807DA78 (T) beq 807DA96h
0807DA7A (T) ldrh r1,[r3,2Eh]
0807DA7C (T) add r1,8h
0807DA7E (T) strh r1,[r3,2Eh]
0807DA80 (T) b 807DA96h
0807DA82 (T) mov r1,20h
0807DA84 (T) and r1,r2
0807DA86 (T) cmp r1,0h
0807DA88 (T) beq 807DA96h
0807DA8A (T) cmp r4,4h
0807DA8C (T) bgt 807DA96h
0807DA8E (T) mov r2,r12
0807DA90 (T) ldrh r1,[r2,2Eh]
0807DA92 (T) sub r1,8h
0807DA94 (T) strh r1,[r2,2Eh]
0807DA96 (T) cmp r6,0h
0807DA98 (T) beq 807DADAh
0807DA9A (T) bl 807E158h
0807DA9E (T) b 807DADAh
; Branch 12
0807DAA0 (T) ldr r1,=AreaID
0807DAA2 (T) ldrb r2,[r1]
0807DAA4 (T) ldr r1,=RoomID
0807DAA6 (T) ldrb r1,[r1]
0807DAA8 (T) cmn r2,r1
0807DAAA (T) beq 807DADAh
0807DAAC (T) ldr r1,=ChangedInput
0807DAAE (T) ldrh r2,[r1]
0807DAB0 (T) mov r1,1h
0807DAB2 (T) and r1,r2
0807DAB4 (T) cmp r1,0h
0807DAB6 (T) beq 807DADAh
0807DAB8 (T) mov r6,0h
0807DABA (T) lsl r0,r6,18h
0807DABC (T) lsr r0,r0,18h
0807DABE (T) bl 807F3ACh
0807DAC2 (T) add r6,1h
0807DAC4 (T) cmp r6,3h
0807DAC6 (T) ble 807DABAh
0807DAC8 (T) b 807DADAh
0807DACA (T) dw 00000h
0807DACC dd 00300002Ch,00300002Dh,0030011ECh
; Branch 7
0807DAD8 (T) mov r7,0h
0807DADA (T) cmp r7,1h
0807DADC (T) bne 807DAF4h
0807DADE (T) ldr r0,=858211Ch
0807DAE0 (T) mov r1,r9
0807DAE2 (T) add r1,r10
0807DAE4 (T) add r0,4h
0807DAE6 (T) add r1,r1,r0
0807DAE8 (T) ldrb r0,[r1]
0807DAEA (T) bl 807DB78h
0807DAEE (T) b 807DB1Ah
0807DAF0 dd 00858211Ch
0807DAF4 (T) cmp r7,2h
0807DAF6 (T) bne 807DB10h
0807DAF8 (T) ldr r0,=858211Ch
0807DAFA (T) mov r1,r9
0807DAFC (T) add r1,r10
0807DAFE (T) add r0,4h
0807DB00 (T) add r1,r1,r0
0807DB02 (T) ldrb r0,[r1]
0807DB04 (T) bl 807E478h
0807DB08 (T) b 807DB1Ah
0807DB0A (T) dw 00000h
0807DB0C dd 00858211Ch
0807DB10 (T) cmp r7,3h
0807DB12 (T) bne 807DB1Ah
0807DB14 (T) mov r0,0FFh
0807DB16 (T) bl 807DB78h
0807DB1A (T) cmp r7,0h
0807DB1C (T) beq 807DB22h
0807DB1E (T) bl 807E05Ch
0807DB22 (T) add sp,4h
0807DB24 (T) pop r3-r5
0807DB26 (T) mov r8,r3
0807DB28 (T) mov r9,r4
0807DB2A (T) mov r10,r5
0807DB2C (T) pop r4-r7
0807DB2E (T) pop r1
0807DB30 (T) bx r1
0807DB34 (T) push r4-r6,r14
0807DB36 (T) lsl r0,r0,18h
0807DB38 (T) lsr r0,r0,18h
0807DB3A (T) ldr r2,=8581510h
0807DB3C (T) lsl r1,r0,3h
0807DB3E (T) sub r1,r1,r0
0807DB40 (T) ldr r6,=6007800h
0807DB42 (T) lsl r1,r1,2h
0807DB44 (T) add r4,r1,r2
0807DB46 (T) mov r5,1Bh
0807DB48 (T) ldrb r2,[r4]
0807DB4A (T) mov r0,0E0h
0807DB4C (T) and r0,r2
0807DB4E (T) lsl r0,r0,1h
0807DB50 (T) mov r1,1Fh
0807DB52 (T) and r1,r2
0807DB54 (T) orr r0,r1
0807DB56 (T) mov r1,r6
0807DB58 (T) mov r2,0h
0807DB5A (T) bl 8079308h
0807DB5E (T) add r6,20h
0807DB60 (T) add r4,1h
0807DB62 (T) sub r5,1h
0807DB64 (T) cmp r5,0h
0807DB66 (T) bge 807DB48h
0807DB68 (T) pop r4-r6
0807DB6A (T) pop r0
0807DB6C (T) bx r0