//
// SecretLayer4::onBack from 0x620c6c to 0x620cb8 (76 bytes)
//
// 1 xrefs:
// > SecretLayer4::keyBackClicked @ 0x620cba
//
// 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:55:05 +0000
//
int __fastcall SecretLayer4::onBack(SecretLayer4 *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
int v5; // r1
int v6; // r2
int v7; // r3
char **v8; // r0
cocos2d::CCDirector *v9; // r5
int v10; // r1
AppDelegate *v11; // r0
cocos2d::CCScene *v12; // r2
cocos2d::CCScene *v13; // r0
int result; // r0
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 88) + 580))(*((_DWORD *)this + 88), 0);
v3 = (GameManager *)(*(int (__fastcall **)(SecretLayer4 *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
v4 = (GameManager *)GameManager::sharedState(v3);
v8 = GameManager::fadeInMenuMusic(v4, v5, v6, v7);
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8);
v11 = LevelSelectLayer::scene((LevelSelectLayer *)((char *)&dword_14 + 3), v10);
v13 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v11,
v12);
result = cocos2d::CCDirector::replaceScene(v9, v13);
*((_BYTE *)this + 368) = 1;
return result;
}