//
// GJBaseGameLayer::recordAction from 0x9bef10 to 0x9befd8 (200 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::handleButton @ 0x9c26fc
// > GJBaseGameLayer::handleButton @ 0x9c28c4
// > ??> @ 0x69850
//
// 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:28 +0000
//
__int64 __fastcall GJBaseGameLayer::recordAction(GJBaseGameLayer *this, int a2, char a3, char a4)
{
__int16 **v4; // x4
_QWORD *v5; // x5
_QWORD *v7; // x0
__int64 v8; // x1
__int16 *v9; // x0
__int64 v10; // [xsp+28h] [xbp+28h] BYREF
__int64 v11; // [xsp+30h] [xbp+30h]
v4 = (__int16 **)((char *)this + 12288);
if ( *((_BYTE *)this + 12744) )
{
v5 = *((_QWORD **)this + 1607);
if ( (unsigned __int64)(((__int64)v5 - *((_QWORD *)this + 1606)) >> 4) <= 0xF423F )
{
v7 = *((_QWORD **)this + 1608);
v11 = 0;
LODWORD(v10) = a2;
BYTE4(v10) = a3;
BYTE5(v10) = a4;
if ( v5 == v7 )
{
std::vector::__push_back_slow_path(v4 + 70, &v10);
}
else
{
if ( v5 )
{
v8 = v11;
*v5 = v10;
v5[1] = v8;
v9 = v4[71];
}
else
{
v9 = nullptr;
}
v4[71] = v9 + 8;
}
}
}
return _stack_chk_guard;
}