//
// cocos2d::CCLayer::keyBackClicked from 0x1800504b0 to 0x1800504ed (61 bytes)
//
// 8 xrefs:
// > ??> @ 0x1800ed360
// > ??> @ 0x1800ed820
// > ??> @ 0x1800edd70
// > ??> @ 0x1800ee348
// > ??> @ 0x1800ee898
// > ??> @ 0x1800f7178
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1fb0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCLayer::keyBackClicked(cocos2d::CCLayer *this)
{
struct cocos2d::CCScriptEngineManager *v2; // rax
if ( *(_QWORD *)&this->m_unknown2 || *((_DWORD *)this - 9) == 2 )
{
v2 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, char *, __int64))(**(_QWORD **)v2 + 120LL))(*(_QWORD *)v2, (char *)this - 336, 1);
}
}