//
// CreatorLayer::onBack from 0x1000b6ad8 to 0x1000b6b38 (96 bytes)
//
// 3 xrefs:
// > CreatorLayer::keyBackClicked @ 0x1000b6c08
// > sub_1000B6C0C @ 0x1000b6c10
// > CreatorLayer::init @ 0x1000b5b3c
//
// 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 CreatorLayer::onBack(CreatorLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x20
cocos2d::CCScene *v4; // x0
cocos2d::CCTransitionFade *v5; // x0
v3 = cocos2d::CCDirector::sharedDirector();
v4 = MenuLayer::scene(0);
v5 = cocos2d::CCTransitionFade::create_1(0.5, v4);
if ( cocos2d::CCDirector::replaceScene(v3, v5) )
((void (__fastcall *)(CreatorLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);
}