//
// SecretLayer5::onBack from 0x10007d610 to 0x10007d690 (128 bytes)
//
// 3 xrefs:
// > SecretLayer5::keyBackClicked @ 0x10007f744
// > sub_10007F748 @ 0x10007f74c
// > SecretLayer5::init @ 0x10007cc44
//
// 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 10:58:16 +0000
//
__int64 __fastcall SecretLayer5::onBack(__int64 result)
{
_BYTE *v1; // x19
__int64 v2; // x0
int v3; // w20
__int64 v4; // x0
void *v5; // x0
if ( (*(_BYTE *)(result + 544) & 1) == 0 )
{
v1 = (_BYTE *)result;
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(result + 464) + 1160LL))(*(_QWORD *)(result + 464), 0);
v2 = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v1 + 1072LL))(v1, 0);
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = LevelAreaInnerLayer::scene(1);
v5 = (void *)cocos2d::CCTransitionFade::create_1(v4, 0.5);
result = cocos2d::CCDirector::replaceScene(v3, v5);
v1[488] = 1;
}
return result;
}