//
// ParentalOptionsLayer::onClose from 0x52c6aa to 0x52c6ea (64 bytes)
//
// 1 xrefs:
// > ParentalOptionsLayer::keyBackClicked @ 0x52c6ec
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:01 +0000
//
int __fastcall ParentalOptionsLayer::onClose(ParentalOptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v5; // r0
int v6; // r2
if ( *((_BYTE *)this + 532) )
{
v3 = (GameManager *)cocos2d::CCDirector::sharedDirector(this);
if ( *(_DWORD *)(*((_DWORD *)v3 + 55) + 24) == 15 )
{
v5 = (GameManager *)GameManager::sharedState(v3);
GameManager::queueReloadMenu(v5, 0.0, v6);
}
}
(*(void (__fastcall **)(ParentalOptionsLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(ParentalOptionsLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}