//
// GJBaseGameLayer::getPlayerButtonID from 0x596220 to 0x596258 (56 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::getRecordString @ 0x5be62a
//
// 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:09 +0000
//
int __fastcall GJBaseGameLayer::getPlayerButtonID(GJBaseGameLayer *this, int a2, int a3)
{
unsigned int v3; // r0
if ( (unsigned int)(a2 - 98) <= 1 )
return a2;
v3 = a2 - 2;
if ( a3 )
{
if ( v3 > 3 )
return 6;
else
return *((char *)&unk_BEE010 + v3 + 100);
}
else if ( v3 > 3 )
{
return 1;
}
else
{
return *((char *)&unk_BEE010 + v3 + 96);
}
}