//
// AchievementsLayer::keyDown from 0x733000 to 0x7330b0 (176 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AchievementsLayer::keyDown @ 0x7330b4
// > ??> @ 0xa5730
// > ??> @ 0x142a208
//
// 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:52:37 +0000
//
__int64 __fastcall AchievementsLayer::keyDown(AchievementsLayer *a1, int a2)
{
__int64 result; // x0
if ( a2 == 39 )
goto LABEL_5;
if ( a2 <= 39 )
{
if ( a2 != 37 )
return cocos2d::CCLayer::keyDown(a1);
}
else if ( a2 != 1025 )
{
if ( a2 == 1027 )
{
LABEL_5:
result = (*(unsigned __int8 (__fastcall **)(_QWORD *))(**((_QWORD **)a1 + 76) + 352LL))(*((_QWORD **)a1 + 76));
if ( (_BYTE)result )
return AchievementsLayer::onNextPage(a1, nullptr);
return result;
}
return cocos2d::CCLayer::keyDown(a1);
}
result = (*(unsigned __int8 (__fastcall **)(_QWORD *))(**((_QWORD **)a1 + 77) + 352LL))(*((_QWORD **)a1 + 77));
if ( (_BYTE)result )
return AchievementsLayer::onPrevPage(a1, nullptr);
return result;
}