benilla-re systems structs docs

GetFirstMoveEvent

function · collision · orchestration

Address
0x6158e0 · 14 bytes, up to 0x6158ed
Signature
void * __thiscall (void *this)
Meaning
Returns the first event of a queue, or null when the head link is null or odd
Confidence
verified, proof one
Finding
collision/replay#event-queue-and-free-list

Finding: Event queue and free list in collision: replay

Each mover keeps its pending events at +0x150: a list with link offset 0 and the terminator at +0x154, ordered by each event's time at +0x8. 0x615820 inserts an event before the first one whose time is later by signed difference, so equal times keep arrival order. 0x6158e0 returns the first event or null; 0x6158f0 returns whether there is one. Spent events go to the free list 0xc4db88: 0x615910 moves the first event there; 0x6159c0 splices a whole queue onto its end, with error 0x57 for a null queue, the free list or another link offset. 0x615a50 empties a queue, spliced when the manager exists, else freed node by node. 0x617060, the destructor, runs 0x7c5950 and then 0x615a50 on +0x150.

The derivation is in the doc.

Callers 7

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.