//
// LevelBrowserLayer::keyDown from 0x7fcf58 to 0x7fd008 (176 bytes)
//
// 4 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::keyDown @ 0x7fd00c
// > ??> @ 0x92908
// > ??> @ 0x143e7f8
// > ??> @ 0x14dbde8
//
// 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:54:42 +0000
//
__int64 __fastcall LevelBrowserLayer::keyDown(__int64 a1, int a2)
{
__int64 result; // x0
if ( a2 == 39 )
{
LABEL_5:
result = *(_QWORD *)(a1 + 616);
if ( result )
{
result = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)result + 352LL))(result);
if ( (_BYTE)result )
return LevelBrowserLayer::onNextPage((GJSearchObject **)a1, nullptr);
}
return result;
}
if ( a2 <= 39 )
{
if ( a2 != 37 )
return cocos2d::CCLayer::keyDown(a1);
}
else if ( a2 != 1025 )
{
if ( a2 == 1027 )
goto LABEL_5;
return cocos2d::CCLayer::keyDown(a1);
}
result = *(_QWORD *)(a1 + 624);
if ( result )
{
result = (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)result + 352LL))(result);
if ( (_BYTE)result )
return LevelBrowserLayer::onPrevPage((GJSearchObject **)a1, nullptr);
}
return result;
}