//
// ThreadViewPopup::onClose from 0x745d54 to 0x745daa (86 bytes)
//
// 2 xrefs:
// > ThreadOptionsPopup::threadUpdateFinished @ 0x753028
// > ThreadViewPopup::keyBackClicked @ 0x75d476
//
// 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:58:42 +0000
//
int __fastcall ThreadViewPopup::onClose(ThreadViewPopup *this, cocos2d::CCObject *a2)
{
cocos2d::CCNotificationCenter *v3; // r0
int v4; // r3
cocos2d::CCNotificationCenter *v5; // r0
v3 = *((cocos2d::CCNotificationCenter **)this + 170);
if ( v3 )
v3 = (cocos2d::CCNotificationCenter *)(*(int (__fastcall **)(cocos2d::CCNotificationCenter *, _DWORD))(*(_DWORD *)v3 + 684))(
v3,
0);
v4 = *((_DWORD *)this + 171);
if ( v4 )
{
*(_DWORD *)(v4 + 420) = 0;
v3 = (cocos2d::CCNotificationCenter *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 171) + 580))(*((_DWORD *)this + 171));
}
v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v3);
cocos2d::CCNotificationCenter::postNotification(v5, "ThreadsChangedNotification", nullptr);
(*(void (__fastcall **)(ThreadViewPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(ThreadViewPopup *, int))(*(_DWORD *)this + 264))(this, 1);
}