//
// GJBaseGameLayer::queueButton from 0x59fdb0 to 0x59fe2e (126 bytes)
//
// 16 xrefs:
// > UILayer::processUINodeTouch @ 0x3fcf96
// > UILayer::processUINodeTouch @ 0x3fcfbc
// > UILayer::processUINodeTouch @ 0x3fcfd0
// > UILayer::processUINodeTouch @ 0x3fd042
// > UILayer::processUINodeTouch @ 0x3fd058
// > UILayer::processUINodeTouch @ 0x3fd07c
// > UILayer::processUINodeTouch @ 0x3fd0b6
// > UILayer::processUINodeTouch @ 0x3fd0ca
// > UILayer::ccTouchBegan @ 0x3fd2a8
// > UILayer::ccTouchEnded @ 0x3fd330
// > UILayer::handleAction @ 0x3fdfd4
// > UILayer::handleAction @ 0x3fdff8
// > PlayLayer::resetLevel @ 0x412a8a
// > PlayLayer::resetLevel @ 0x412ab6
// > EditorUI::playerTouchBegan @ 0x6f11a8
// > EditorUI::playerTouchEnded @ 0x6f1216
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:16 +0000
//
void __fastcall GJBaseGameLayer::queueButton(GJBaseGameLayer *this, int a2, bool a3, bool a4, double a5)
{
int v9; // r4
int v10; // r3
int v11; // r1
__int64 v12; // r2
_QWORD v13[3]; // [sp+0h] [bp-24h] BYREF
if ( a2 )
{
memset(v13, 0, sizeof(v13));
BYTE5(v13[0]) = a4;
LODWORD(v13[0]) = a2;
*(double *)&v13[2] = a5;
v9 = *((_DWORD *)this + 2751);
v10 = *((_DWORD *)this + 2752);
BYTE4(v13[0]) = a3;
if ( v9 == v10 )
{
std::vector
::__push_back_slow_path(
(void **)this + 2750,
(int *)v13);
}
else
{
if ( v9 )
{
v11 = HIDWORD(v13[0]);
v12 = v13[1];
*(_DWORD *)v9 = v13[0];
*(_DWORD *)(v9 + 4) = v11;
*(_QWORD *)(v9 + 8) = v12;
*(_QWORD *)(v9 + 16) = v13[2];
}
*((_DWORD *)this + 2751) += 24;
}
}
}