#include "game_types.h"

/* Mem_CopyWords @ 0x08015DA0 (real 28B) -- coroutine entry + resume tail (pool-as-code span). Mirrors src/matched/Mem_CopyWords.c. */
/* Head tail-calls the function at 0x02000204. The resume tail (reached via
   pool-as-code fall-through) runs Math_InitSystem and returns base+8, where
   the base arrives in r3 by coroutine convention. */
extern void Math_InitSystem(void);

void Mem_CopyWords(void)
{
    ((void (*)(void))*(void **)0x02000204)();
}

int *Mem_CopyWords_Resume(int *base)
{
    Math_InitSystem();
    return (int *)((char *)base + 8);
}
