//
// ParentalOptionsLayer::onClose from 0x1001176ec to 0x100117758 (108 bytes)
//
// 3 xrefs:
// > ParentalOptionsLayer::keyBackClicked @ 0x100118308
// > sub_10011830C @ 0x100118310
// > ParentalOptionsLayer::init @ 0x100116a8c
//
// 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:59:11 +0000
//
__int64 __fastcall ParentalOptionsLayer::onClose(_BYTE *a1)
{
__int64 v2; // x0
__int64 v3; // x0
if ( a1[672] == 1 )
{
v2 = cocos2d::CCDirector::sharedDirector(a1);
if ( *(_DWORD *)(*(_QWORD *)(v2 + 272) + 28LL) == 15 )
{
v3 = GameManager::sharedState(v2);
GameManager::queueReloadMenu(v3, 0);
}
}
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}