//
// GJBaseGameLayer::processQueuedButtons from 0x88c9bc to 0x88caa0 (228 bytes)
//
// 3 xrefs:
// > PlayLayer::pauseGame @ 0x5d26d8
// > GJBaseGameLayer::processCommands @ 0x88cb30
// > ??> @ 0x76140
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::processQueuedButtons(GJBaseGameLayer *a1, float a2, bool a3)
{
PlayerButtonCommand *m_start; // x4
_BOOL4 v5; // w21
PlayerButtonCommand *v7; // x0
float *v8; // x6
PlayerButtonCommand *m_finish; // x3
signed __int64 v10; // x2
PlayerButtonCommand *v11; // x3
m_start = a1->m_queuedButtons.m_start;
v5 = a3;
if ( 0xAAAAAAAAAAAAAAABLL * (((char *)a1->m_queuedButtons.m_finish - (char *)m_start) >> 3) )
{
do
{
if ( !v5 && m_start->m_timestamp >= a2 + a1->m_timestamp )
break;
GJBaseGameLayer::handleButton(a1, m_start->m_isPush, m_start->m_button, !m_start->m_isPlayer2);
v7 = a1->m_queuedButtons.m_start;
v8 = &a1->m_varianceValues.__elems_[1975];
m_finish = a1->m_queuedButtons.m_finish;
m_start = v7;
v10 = (char *)m_finish - (char *)&v7[1];
if ( &v7[1] != m_finish )
{
if ( 0xAAAAAAAAAAAAAAABLL * (v10 >> 3) )
{
memmove(v7, &v7[1], v10);
m_start = a1->m_queuedButtons.m_start;
v8 = &a1->m_varianceValues.__elems_[1975];
m_finish = a1->m_queuedButtons.m_finish;
}
}
v11 = m_finish - 1;
*((_QWORD *)v8 + 106) = v11;
}
while ( 0xAAAAAAAAAAAAAAABLL * (((char *)v11 - (char *)m_start) >> 3) );
}
}