#include "game_types.h"

/* Sub_08010D28 @ 0x08010D28 (real 50B) -- chained level-select update pair on non-null state. Mirrors src/matched/Sub_08010D28.c. */
/* When the state is non-NULL, chains Sub_08010D5C into Sub_08010D98 with the
   same (x, y) halfword pair (call result flows into the next call). */
extern int Sub_08010D5C(int *p, int x, int y);
extern int Sub_08010D98(int r, int x, int y);

void Sub_08010D28(int *p, int x, int y)
{
    if (p == 0)
        return;
    Sub_08010D98(Sub_08010D5C(p, x, y), x, y);
}
