//
// SecretLayer2::onBack from 0x61a40e to 0x61a458 (74 bytes)
//
// 1 xrefs:
// > SecretLayer2::keyBackClicked @ 0x61a45a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:58 +0000
//
int __fastcall SecretLayer2::onBack(SecretLayer2 *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
char **v8; // r0
CreatorLayer *v9; // r5
AppDelegate *v10; // r0
cocos2d::CCScene *v11; // r2
cocos2d::CCScene *v12; // r0
int result; // r0
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 88) + 580))(*((_DWORD *)this + 88), 0);
v3 = (GameManager *)(*(int (__fastcall **)(SecretLayer2 *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
v8 = GameManager::fadeInMenuMusic(v4, v5, v6, v7);
v9 = (CreatorLayer *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8);
v10 = CreatorLayer::scene(v9);
v12 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v10,
v11);
result = cocos2d::CCDirector::replaceScene(v9, v12);
*((_BYTE *)this + 368) = 1;
return result;
}