//
// AchievementsLayer::keyDown from 0x10035cb30 to 0x10035cbc6 (150 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b256d0
//
// This function is hookable on this platform (idp: pc, 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:28:54 +0000
//
__int64 __fastcall AchievementsLayer::keyDown(__int64 a1, int a2)
{
__int64 result; // rax
if ( a2 > 1024 )
{
if ( a2 == 1027 )
{
LABEL_9:
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 608) + 352LL))(*(_QWORD *)(a1 + 608));
if ( (_BYTE)result )
return AchievementsLayer::loadPage(a1, *(_DWORD *)(a1 + 604) + 1);
return result;
}
if ( a2 != 1025 )
return cocos2d::CCLayer::keyDown(a1);
}
else if ( a2 != 37 )
{
if ( a2 != 39 )
return cocos2d::CCLayer::keyDown(a1);
goto LABEL_9;
}
result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 616) + 352LL))(*(_QWORD *)(a1 + 616));
if ( (_BYTE)result )
return AchievementsLayer::loadPage(a1, *(_DWORD *)(a1 + 604) - 1);
return result;
}