//
// GJBaseGameLayer::getPlayerButtonID from 0x1001568d0 to 0x100156903 (51 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GJBaseGameLayer::getPlayerButtonID(GJBaseGameLayer *a1, int a2, bool a3)
{
int result; // eax
unsigned int v4; // ecx
bool v5; // cf
int v6; // ecx
result = a2;
if ( (a2 & 0xFFFFFFFE) != 0x62 )
{
v4 = a2 - 2;
if ( a3 )
{
result = a2 + 5;
v5 = v4 < 4;
v6 = 6;
}
else
{
v5 = v4 < 4;
v6 = 1;
}
if ( v5 )
return result;
return v6;
}
return result;
}