//
// GJBaseGameLayer::getPlayerButtonID from 0x9a8b78 to 0x9a8bd8 (96 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::getRecordString @ 0x9ee9a4
// > ??> @ 0xbdb98
//
// 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:11 +0000
//
__int64 __fastcall GJBaseGameLayer::getPlayerButtonID(GJBaseGameLayer *this, unsigned int a2, char a3)
{
unsigned int v3; // w1
__int64 result; // x0
if ( a2 - 98 <= 1 )
return a2;
v3 = a2 - 2;
if ( a3 )
{
result = 6;
if ( v3 <= 3 )
return dword_116CEF0[v3 + 32];
}
else
{
result = 1;
if ( v3 <= 3 )
return dword_116CEF0[v3 + 28];
}
return result;
}