//
// GJBaseGameLayer::queueButton from 0x9b8194 to 0x9b8240 (172 bytes)
//
// 29 xrefs:
// > UILayer::processUINodeTouch @ 0x6ef778
// > UILayer::processUINodeTouch @ 0x6ef7b0
// > UILayer::processUINodeTouch @ 0x6ef7c8
// > UILayer::processUINodeTouch @ 0x6ef7ec
// > UILayer::processUINodeTouch @ 0x6ef818
// > UILayer::processUINodeTouch @ 0x6ef848
// > UILayer::processUINodeTouch @ 0x6ef860
// > UILayer::processUINodeTouch @ 0x6ef8a0
// > UILayer::processUINodeTouch @ 0x6ef8b8
// > UILayer::ccTouchBegan @ 0x6efa98
// > UILayer::ccTouchBegan @ 0x6efb14
// > UILayer::ccTouchEnded @ 0x6efbe8
// > UILayer::ccTouchEnded @ 0x6efc08
// > UILayer::handleAction @ 0x6f1484
// > UILayer::handleAction @ 0x6f14b0
// > UILayer::handleAction @ 0x6f14dc
// > UILayer::handleAction @ 0x6f1578
// > UILayer::handleAction @ 0x6f1594
// > UILayer::handleAction @ 0x6f15b0
// > UILayer::handleAction @ 0x6f19b8
// > UILayer::handleAction @ 0x6f19d8
// > PlayLayer::resetLevel @ 0x71179c
// > PlayLayer::resetLevel @ 0x7117c0
// > PlayLayer::resetLevel @ 0x711a60
// > EditorUI::playerTouchBegan @ 0xbd6b0c
// > EditorUI::playerTouchBegan @ 0xbd6b30
// > EditorUI::playerTouchEnded @ 0xbd6b7c
// > EditorUI::playerTouchEnded @ 0xbd6b9c
// > ??> @ 0xbc668
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:24 +0000
//
__int64 __fastcall GJBaseGameLayer::queueButton(GJBaseGameLayer *this, int a2, char a3, char a4, double a5)
{
char *v5; // x5
double *v6; // x7
_QWORD *v7; // x0
double *v8; // x4
__int64 v9; // x3
__int64 v11; // [xsp+20h] [xbp+20h] BYREF
__int64 v12; // [xsp+28h] [xbp+28h]
double v13; // [xsp+30h] [xbp+30h]
if ( a2 )
{
v5 = (char *)this + 12288;
v6 = *((double **)this + 1605);
v7 = (_QWORD *)((char *)this + 12824);
v12 = 0;
v8 = (double *)v7[1];
LODWORD(v11) = a2;
BYTE4(v11) = a3;
BYTE5(v11) = a4;
v13 = a5;
if ( v8 == v6 )
{
std::vector
::__push_back_slow_path(v7, &v11);
}
else
{
if ( v8 )
{
v9 = v12;
*(_QWORD *)v8 = v11;
*((_QWORD *)v8 + 1) = v9;
v8[2] = v13;
v8 = (double *)v7[1];
}
*((_QWORD *)v5 + 68) = v8 + 3;
}
}
return _stack_chk_guard;
}