//
// LevelInfoLayer::keyDown from 0x7ed048 to 0x7ed0bc (116 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::keyDown @ 0x7ed0c0
// > ??> @ 0xc1d80
// > ??> @ 0x143c0b8
//
// 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:33 +0000
//
__int64 __fastcall LevelInfoLayer::keyDown(__int64 result, int a2)
{
LevelInfoLayer *v2; // x19
if ( !*(_BYTE *)(result + 488) )
{
if ( a2 == 32 || a2 == 1009 )
{
v2 = (LevelInfoLayer *)result;
result = (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(result + 496) + 352LL))(*(_QWORD *)(result + 496));
if ( (_BYTE)result )
return LevelInfoLayer::onPlay(v2, nullptr);
}
else
{
return cocos2d::CCLayer::keyDown(result);
}
}
return result;
}