//
// ThreadViewPopup::onClose from 0xc631f8 to 0xc6328c (148 bytes)
//
// 5 xrefs:
// > ThreadOptionsPopup::threadUpdateFinished @ 0xc7810c
// > ThreadViewPopup::keyBackClicked @ 0xc88db0
// > ??> @ 0xa4ff8
// > ThreadViewPopup::init @ 0xc86e30
// > ??> @ 0x15449d0
//
// 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 13:05:23 +0000
//
__int64 __fastcall ThreadViewPopup::onClose(ThreadViewPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
cocos2d::CCNotificationCenter *v4; // x0
cocos2d::CCNotificationCenter *v5; // x0
v3 = *((_QWORD *)this + 115);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1368LL))(v3, 0);
v4 = *((cocos2d::CCNotificationCenter **)this + 116);
if ( v4 )
{
*((_QWORD *)v4 + 73) = 0;
v4 = (cocos2d::CCNotificationCenter *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 116) + 1160LL))(
*((_QWORD *)this + 116),
0);
}
v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v4);
cocos2d::CCNotificationCenter::postNotification(v5, "ThreadsChangedNotification", nullptr);
(*(void (__fastcall **)(ThreadViewPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(ThreadViewPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}