//
// ParentalOptionsLayer::onClose from 0x8edcec to 0x8edd5c (112 bytes)
//
// 4 xrefs:
// > ParentalOptionsLayer::keyBackClicked @ 0x8edd60
// > ??> @ 0xa9ff0
// > ParentalOptionsLayer::init @ 0x8f6dc4
// > ??> @ 0x1544cc0
//
// 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 12:56:56 +0000
//
__int64 __fastcall ParentalOptionsLayer::onClose(ParentalOptionsLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x0
GameManager *v5; // x0
GameManager *v6; // x0
v3 = (cocos2d::CCDirector *)*((unsigned __int8 *)this + 672);
if ( (_DWORD)v3 )
{
v5 = (GameManager *)*(unsigned int *)(*(_QWORD *)(cocos2d::CCDirector::sharedDirector(v3) + 272) + 28LL);
if ( (_DWORD)v5 == 15 )
{
v6 = (GameManager *)GameManager::sharedState(v5);
GameManager::queueReloadMenu(v6, 0);
}
}
(*(void (__fastcall **)(ParentalOptionsLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(ParentalOptionsLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}