//
// GJBaseGameLayer::buttonIDToButton from 0x596260 to 0x5962ac (76 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::parseRecording @ 0x5b0a6a
//
// 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::buttonIDToButton(GJBaseGameLayer *this, int a2)
{
if ( a2 == 7 )
return 2;
if ( a2 > 7 )
{
if ( a2 == 10 )
return 5;
if ( a2 > 10 )
{
if ( (unsigned int)(a2 - 98) <= 1 )
return a2;
return 1;
}
if ( a2 != 8 )
return 4;
return 3;
}
if ( a2 == 3 )
return 3;
if ( a2 > 3 )
{
if ( a2 != 4 )
{
if ( a2 != 5 )
return 1;
return 5;
}
return 4;
}
if ( a2 != 2 )
return 1;
return 2;
}