//
// SecretLayer3::onBack from 0x61ae44 to 0x61ae94 (80 bytes)
//
// 1 xrefs:
// > SecretLayer3::keyBackClicked @ 0x61ae9a
//
// 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:59 +0000
//
unsigned __int8 *__fastcall SecretLayer3::onBack(unsigned __int8 *this, cocos2d::CCObject *a2)
{
SecretLayer3 *v2; // r4
int v3; // r5
GameManager *v4; // r0
cocos2d::CCDirector *v5; // r0
SecretLayer2 *v6; // r4
AppDelegate *v7; // r0
cocos2d::CCScene *v8; // r2
cocos2d::CCScene *v9; // r1
v2 = (SecretLayer3 *)this;
v3 = *(this + 324);
if ( !*(this + 324) )
{
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
if ( GameManager::getUGV(v4, "12") )
{
v5 = (cocos2d::CCDirector *)(*(int (__fastcall **)(SecretLayer3 *, int))(*(_DWORD *)v2 + 536))(v2, v3);
v6 = (SecretLayer2 *)cocos2d::CCDirector::sharedDirector(v5);
v7 = SecretLayer2::scene(v6);
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v7,
v8);
return (unsigned __int8 *)cocos2d::CCDirector::replaceScene(v6, v9);
}
else
{
return (unsigned __int8 *)SecretLayer3::firstInteractionStep1(v2);
}
}
return this;
}