#include "game_types.h"

/* TextQueue_InitEntry @ 0x0801153C (real 104B) -- packs the queue entry triple. Mirrors src/matched/TextQueue_InitEntry.c. */
/* Packs [d, table + c*32 + b*2, e*2] where table = [0x02000168 + a*4].
   d/e arrive on the caller stack; the r8/r9 shuffles are allocator noise. */
void TextQueue_InitEntry(int *p, int a, int b, int c, int d, int e)
{
    int base = *(int *)(0x02000168 + a * 4);
    p[0] = d;
    p[1] = base + c * 32 + b * 2;
    p[2] = e * 2;
}
