#include "game_types.h"

/* List_SwapNodes @ 0x0801EFB8 (real 36B) -- relinks two nodes via set-prev/set-next, returns b. Mirrors src/matched/List_SwapNodes.c. */
/* Relinks the pair (SetPrev(b, c) then SetNext(c, b)) and returns b. The
   first arg is only kept alive in a dead register. */
extern void List_SetPrev(int *a, int *b);
extern void List_SetNext(int *a, int *b);

int *List_SwapNodes(int *a, int *b, int *c)
{
    (void)a;
    List_SetPrev(b, c);
    List_SetNext(c, b);
    return b;
}
