//
// CreatorLayer::onBack from 0x7db808 to 0x7db864 (92 bytes)
//
// 4 xrefs:
// > CreatorLayer::keyBackClicked @ 0x7db868
// > ??> @ 0x5f758
// > CreatorLayer::init @ 0x7dd26c
// > ??> @ 0x15423d0
//
// 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:23 +0000
//
__int64 __fastcall CreatorLayer::onBack(CreatorLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x19
cocos2d::CCTransitionFade *v4; // x0
cocos2d::CCScene *v5; // x1
cocos2d::CCScene *v6; // x0
__int64 result; // x0
v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(this);
v4 = (cocos2d::CCTransitionFade *)MenuLayer::scene(nullptr);
v6 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v4, 0.5, v5);
result = (unsigned __int8)cocos2d::CCDirector::replaceScene(v3, v6);
if ( (_BYTE)result )
return (*(__int64 (__fastcall **)(CreatorLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return result;
}