//
// CreatorLayer::onBack from 0x140139780 to 0x1401397d7 (87 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x140136860
// > ??> @ 0x14091721c
//
// 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::onBack(__int64 a1)
{
struct cocos2d::CCScene *v2; // rax
struct cocos2d::CCScene *v3; // rbx
__int64 v4; // rcx
cocos2d::CCDirector *v5; // rax
char result; // al
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 *)a1 + 992LL))(a1, 0);
return result;
}