//
// InfoLayer::onClose from 0x1403d1380 to 0x1403d1405 (133 bytes)
//
// 6 xrefs:
// > InfoLayer::keyBackClicked @ 0x1403d1419
// > InfoLayer::reloadWindow @ 0x1403d27e4
// > InfoLayer::init @ 0x1403cefd0
// > ??> @ 0x1408c32ec
// > ??> @ 0x1408c32fc
// > ??> @ 0x1409246ec
//
// This function is hookable on this platform (idp: pc, 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 11:31:35 +0000
//
__int64 __fastcall InfoLayer::onClose(_QWORD *a1)
{
__int64 v2; // rax
struct cocos2d::CCObject *v3; // rbx
cocos2d::CCTouchDispatcher *v4; // rax
__int64 v5; // rdx
if ( a1[98] )
{
v2 = cocos2d::CCDirector::sharedDirector(a1);
v3 = (struct cocos2d::CCObject *)a1[98];
v4 = (cocos2d::CCTouchDispatcher *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 144LL))(v2);
cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, v3);
(*(void (__fastcall **)(_QWORD))(*(_QWORD *)a1[98] + 528LL))(a1[98]);
a1[98] = 0;
a1[113] = 0;
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);
LOBYTE(v5) = 1;
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v5);
}