//
// CreatorLayer::keyBackClicked from 0x140139960 to 0x1401399bb (91 bytes)
//
// 2 xrefs:
// > ??> @ 0x140737890
// > ??> @ 0x140917234
//
// This function is hookable on this platform (idp: pc, 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:27:06 +0000
//
char __fastcall CreatorLayer::keyBackClicked(__int64 a1)
{
__int64 v1; // rdi
struct cocos2d::CCScene *v2; // rax
struct cocos2d::CCScene *v3; // rbx
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
char result; // al
v1 = a1 - 336;
v2 = (struct cocos2d::CCScene *)MenuLayer::scene(0);
v3 = cocos2d::CCTransitionFade::create(0.5, v2);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
result = cocos2d::CCDirector::replaceScene(v5, v3);
if ( result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 992LL))(v1, 0);
return result;
}