//
// GJBaseGameLayer::recordAction from 0x5a29dc to 0x5a2a66 (138 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::handleButton @ 0x5a4d48
//
// 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:18 +0000
//
void __fastcall GJBaseGameLayer::recordAction(GJBaseGameLayer *this, int a2, bool a3, bool a4)
{
int *v8; // r5
_DWORD *v9; // r4
_DWORD *v10; // r3
int v11; // r1
int v12; // r2
int v13; // r3
_DWORD v14[4]; // [sp+4h] [bp-18h] BYREF
if ( *((_BYTE *)this + 10936) )
{
v8 = (int *)((char *)this + 11012);
v9 = *((_DWORD **)this + 2754);
if ( (unsigned int)(((int)v9 - *((_DWORD *)this + 2753)) >> 4) <= 0xF423F )
{
memset(v14, 0, sizeof(v14));
v10 = *((_DWORD **)this + 2755);
v14[0] = a2;
LOBYTE(v14[1]) = a3;
BYTE1(v14[1]) = a4;
if ( v9 == v10 )
{
std::vector::__push_back_slow_path(v8, v14);
}
else
{
if ( v9 )
{
v11 = v14[1];
v12 = v14[2];
v13 = v14[3];
*v9 = v14[0];
v9[1] = v11;
v9[2] = v12;
v9[3] = v13;
}
v8[1] += 16;
}
}
}
}