//
// LevelBrowserLayer::keyDown from 0x4a9394 to 0x4a93fe (106 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'LevelBrowserLayer::keyDown @ 0x4a9402
//
// 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:49:57 +0000
//
int __fastcall LevelBrowserLayer::keyDown(int 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 = *(_DWORD *)(a1 + 480);
if ( result )
{
result = (*(int (__fastcall **)(int))(*(_DWORD *)result + 176))(result);
if ( result )
return LevelBrowserLayer::onPrevPage((GJSearchObject **)a1, nullptr);
}
return result;
}
if ( a2 != 1027 )
return cocos2d::CCLayer::keyDown(a1);
}
result = *(_DWORD *)(a1 + 476);
if ( result )
{
result = (*(int (__fastcall **)(int))(*(_DWORD *)result + 176))(result);
if ( result )
return LevelBrowserLayer::onNextPage((GJSearchObject **)a1, nullptr);
}
return result;
}