#include "game_types.h"

/* Mem_FreeObject2_08016738 @ 0x08016738 (real 10B) -- atomic swap with EWRAM slot 0x02001478. Mirrors src/matched/Mem_FreeObject2_08016738.c. */
/* Atomically swaps the new head into EWRAM slot 0x02001478, returning the old one. */
int Mem_FreeObject2_08016738(int v)
{
    int *slot = (int *)0x02001478;
    int old = *slot;
    *slot = v;
    return old;
}
