//
// CreatorLayer::onBack from 0x1000dc5c0 to 0x1000dc620 (96 bytes)
//
// 3 xrefs:
// > CreatorLayer::keyBackClicked @ 0x1000dc7c4
// > sub_1000DC7C8 @ 0x1000dc7cc
// > CreatorLayer::init @ 0x1000db58c
//
// 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 10:58:59 +0000
//
__int64 __fastcall CreatorLayer::onBack(__int64 a1)
{
int v2; // w20
__int64 v3; // x0
void *v4; // x0
__int64 result; // x0
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = MenuLayer::scene(0);
v4 = (void *)cocos2d::CCTransitionFade::create_1(v3, 0.5);
result = cocos2d::CCDirector::replaceScene(v2, v4);
if ( (_DWORD)result )
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return result;
}