//
// AchievementsLayer::keyDown from 0x4226cc to 0x42272e (98 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x422732
//
// 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:48:02 +0000
//
int __fastcall AchievementsLayer::keyDown(AchievementsLayer *a1, int a2)
{
int result; // r0
if ( a2 != 39 )
{
if ( a2 <= 39 )
{
if ( a2 != 37 )
return cocos2d::CCLayer::keyDown(a1);
goto LABEL_8;
}
if ( a2 == 1025 )
{
LABEL_8:
result = (*(int (__fastcall **)(_DWORD *))(**((_DWORD **)a1 + 122) + 176))(*((_DWORD **)a1 + 122));
if ( result )
return AchievementsLayer::onPrevPage(a1, nullptr);
return result;
}
if ( a2 != 1027 )
return cocos2d::CCLayer::keyDown(a1);
}
result = (*(int (__fastcall **)(_DWORD *))(**((_DWORD **)a1 + 121) + 176))(*((_DWORD **)a1 + 121));
if ( result )
return AchievementsLayer::onNextPage(a1, nullptr);
return result;
}