//
// GJBaseGameLayer::getPlayerButtonID from 0x10029d514 to 0x10029d544 (48 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::getRecordString @ 0x10029e6c4
//
// 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 11:02:11 +0000
//
__int64 __fastcall GJBaseGameLayer::getPlayerButtonID(__int64 a1, unsigned int a2, char a3)
{
unsigned int v3; // w9
int v4; // w10
if ( a2 - 2 >= 4 )
v3 = 6;
else
v3 = a2 + 5;
if ( a2 - 2 >= 4 )
v4 = 1;
else
v4 = a2;
if ( (a3 & 1) == 0 )
v3 = v4;
if ( (a2 & 0xFFFFFFFE) == 0x62 )
return a2;
else
return v3;
}