//
// SecretLayer3::onBack from 0xa8b120 to 0xa8b1a8 (136 bytes)
//
// 4 xrefs:
// > SecretLayer3::keyBackClicked @ 0xa8b1ac
// > ??> @ 0x91e88
// > SecretLayer3::init @ 0xa93428
// > ??> @ 0x1543e88
//
// 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 13:00:37 +0000
//
SecretLayer3 *__fastcall SecretLayer3::onBack(SecretLayer3 *this, cocos2d::CCObject *a2)
{
SecretLayer3 *v2; // x19
GameManager *v3; // x0
cocos2d::CCDirector *v4; // x0
SecretLayer2 *v5; // x19
AppDelegate *v6; // x0
cocos2d::CCScene *v7; // x1
cocos2d::CCScene *v8; // x0
if ( !*((_BYTE *)this + 424) )
{
v2 = this;
v3 = (GameManager *)GameManager::sharedState(this);
if ( (unsigned __int8)GameManager::getUGV(v3, (char *)&word_120A570) )
{
v4 = (cocos2d::CCDirector *)(*(__int64 (__fastcall **)(SecretLayer3 *, _QWORD))(*(_QWORD *)v2 + 1072LL))(v2, 0);
v5 = (SecretLayer2 *)cocos2d::CCDirector::sharedDirector(v4);
v6 = SecretLayer2::scene(v5);
v8 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(v6, 0.5, v7);
return (SecretLayer3 *)cocos2d::CCDirector::replaceScene(v5, v8);
}
else
{
return (SecretLayer3 *)SecretLayer3::firstInteractionStep1(v2);
}
}
return this;
}