//
// LevelBrowserLayer::keyDown from 0x10049a454 to 0x10049a4fc (168 bytes)
//
// 3 xrefs:
// > sub_10049A4FC @ 0x10049a500
// > ??> @ 0x100923928
// > ??> @ 0x10097bb20
//
// 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:05:58 +0000
//
__int64 __fastcall LevelBrowserLayer::keyDown(__int64 a1, int a2)
{
__int64 result; // x0
if ( a2 > 1024 )
{
if ( a2 == 1027 )
{
LABEL_10:
result = *(_QWORD *)(a1 + 616);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 352LL))(result);
if ( (_DWORD)result )
return LevelBrowserLayer::onNextPage(a1);
}
return result;
}
if ( a2 != 1025 )
return cocos2d::CCLayer::keyDown(a1, a2);
}
else if ( a2 != 37 )
{
if ( a2 != 39 )
return cocos2d::CCLayer::keyDown(a1, a2);
goto LABEL_10;
}
result = *(_QWORD *)(a1 + 624);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 352LL))(result);
if ( (_DWORD)result )
return LevelBrowserLayer::onPrevPage(a1);
}
return result;
}