Assembler code
LOAD:08041080
LOAD:08041080 ; =============== S U B R O U T I N E =======================================
LOAD:08041080
LOAD:08041080
LOAD:08041080 sub_8041080: ; CODE XREF: LOAD:08040F1A↑p
LOAD:08041080 ; DATA XREF: LOAD:08040F18↑o ...
LOAD:08041080 mov.l r8, @-r15
LOAD:08041082 mov.l r9, @-r15
LOAD:08041084 mov.l r10, @-r15
LOAD:08041086 mov.l r14, @-r15
LOAD:08041088 sts.l pr, @-r15
LOAD:0804108A mov r15, r14
LOAD:0804108C mov r4, r8
LOAD:0804108E mov r5, r10
LOAD:08041090 mov r6, r9
LOAD:08041092 mov #h'C, r4
LOAD:08041094 mov.l #malloc, r1
LOAD:08041096 jsr @r1 ; malloc
LOAD:08041098 nop
LOAD:0804109A tst r0, r0
LOAD:0804109C bf loc_80410A4
LOAD:0804109E mov #h'FFFFFFFF, r0
LOAD:080410A0 bra loc_80410F6
LOAD:080410A2 nop
LOAD:080410A4 ; ---------------------------------------------------------------------------
LOAD:080410A4
LOAD:080410A4 loc_80410A4: ; CODE XREF: sub_8041080+1C↑j
LOAD:080410A4 mov.l r10, @(4,r0)
LOAD:080410A6 mov.l r9, @(8,r0)
LOAD:080410A8 mov r8, r1
LOAD:080410AA add #h'40, r1 ; '@'
LOAD:080410AC mov.l @(h'34,r1), r1
LOAD:080410AE tst r1, r1
LOAD:080410B0 bt loc_80410B8
LOAD:080410B2 mov.l @(8,r1), r1