//
// InfoLayer::onClose from 0x1402be190 to 0x1402be202 (114 bytes)
//
// 4 xrefs:
// > InfoLayer::keyBackClicked @ 0x1402be219
// > InfoLayer::reloadWindow @ 0x1402bf347
// > InfoLayer::init @ 0x1402bbd92
// > ??> @ 0x1406d2858
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void InfoLayer::onClose(InfoLayer *a1, cocos2d::CCObject *a2)
{
__int64 v3; // rax
cocos2d::CCTouchDispatcher *v4; // rax
_BOOL8 v5; // rdx
if ( a1->m_list )
{
v3 = cocos2d::CCDirector::sharedDirector(a1);
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 144LL))(v3);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1->m_list);
a1->m_list->removeMeAndCleanup(a1->m_list);
a1->m_list = nullptr;
}
a1->setKeypadEnabled(a1, 0);
LOBYTE(v5) = 1;
a1->removeFromParentAndCleanup(a1, v5);
}