//
// LevelInfoLayer::onBack from 0x10002c2fc to 0x10002c380 (132 bytes)
//
// 4 xrefs:
// > LevelInfoLayer::onDelete @ 0x10002e2c8
// > LevelInfoLayer::keyBackClicked @ 0x10002e720
// > sub_10002E724 @ 0x10002e728
// > LevelInfoLayer::init @ 0x100028f00
//
// 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:57:28 +0000
//
_BYTE *__fastcall LevelInfoLayer::onBack(_BYTE *result)
{
_BYTE *v1; // x19
__int64 v2; // x0
__int64 v3; // x0
int v4; // w19
__int64 v5; // x0
__int64 v6; // x0
void *v7; // x1
__int64 v8; // x0
if ( (result[488] & 1) == 0 )
{
v1 = result;
v2 = (*(__int64 (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);
if ( *(_BYTE *)(*((_QWORD *)v1 + 63) + 649LL) == 1 )
{
v3 = cocos2d::CCDirector::sharedDirector(v2);
v4 = v3;
v5 = GameManager::sharedState(v3);
v6 = GauntletLayer::scene(*(unsigned int *)(v5 + 1084));
v7 = (void *)cocos2d::CCTransitionFade::create_1(v6, 0.5);
return (_BYTE *)cocos2d::CCDirector::replaceScene(v4, v7);
}
else
{
v8 = GameManager::sharedState(v2);
return (_BYTE *)GameManager::safePopScene(v8);
}
}
return result;
}