//
// sub_1003ACA78 from 0x1003aca78 to 0x1003acafc (132 bytes)
//
// 3 xrefs:
// > SecretLayer3::keyBackClicked @ 0x1003ae58c
// > sub_1003AE590 @ 0x1003ae594
// > SecretLayer3::init @ 0x1003abb10
//
// 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 11:03:52 +0000
//
__int64 __fastcall sub_1003ACA78(__int64 result)
{
__int64 v1; // x19
__int64 v2; // x0
__int64 v3; // x19
_QWORD *v4; // x0
char *v5; // x1
if ( (*(_BYTE *)(result + 424) & 1) == 0 )
{
v1 = result;
v2 = GameManager::sharedState(result);
if ( (GameManager::getUGV(v2, "12") & 1) != 0 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v1 + 1072LL))(v1, 0);
v3 = cocos2d::CCDirector::sharedDirector();
v4 = sub_1003A63C4();
v5 = cocos2d::CCTransitionFade::create_1((__int64)v4, 0.5);
return cocos2d::CCDirector::replaceScene(v3, v5);
}
else
{
return sub_1003ACAFC(v1);
}
}
return result;
}