//
// NewThreadPopup::onClose from 0xc61ac0 to 0xc61b64 (164 bytes)
//
// 6 xrefs:
// > NewThreadPopup::keyBackClicked @ 0xc61b68
// > NewThreadPopup::threadSendFinished @ 0xc880b4
// > NewThreadPopup::threadSendFinished @ 0xc883cc
// > ??> @ 0x83938
// > NewThreadPopup::init @ 0xc7da40
// > ??> @ 0x15436e8
//
// 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:22 +0000
//
__int64 __fastcall NewThreadPopup::onClose(NewThreadPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
v3 = *((_QWORD *)this + 94);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1368LL))(v3, 0);
v4 = *((_QWORD *)this + 110);
if ( v4 )
{
*(_QWORD *)(v4 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 110) + 1160LL))(*((_QWORD *)this + 110), 0);
}
v5 = *((_QWORD *)this + 111);
if ( v5 )
{
*(_QWORD *)(v5 + 584) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 111) + 1160LL))(*((_QWORD *)this + 111), 0);
}
(*(void (__fastcall **)(NewThreadPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(NewThreadPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}