//
// ThreadOptionsPopup::threadMessagesFinished from 0xc61d44 to 0xc61da8 (100 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadOptionsPopup::threadMessagesFinished @ 0xc61dac
// > ??> @ 0x84e98
// > ??> @ 0x14f0538
//
// 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 ThreadOptionsPopup::threadMessagesFinished(
ThreadOptionsPopup *this,
__int64 a2,
cocos2d::CCArray *a3,
unsigned __int8 a4)
{
__int64 v5; // x0
__int64 result; // x0
char *v7; // x19
v5 = *((_QWORD *)this + 130);
if ( v5 )
(*(void (__fastcall **)(__int64, __int64, cocos2d::CCArray *, _QWORD))(*(_QWORD *)v5 + 1408LL))(v5, a2, a3, a4);
result = *((unsigned int *)this + 262);
if ( (_DWORD)result )
{
result = *(_QWORD *)(GameLevelManager::sharedState((GameLevelManager *)result) + 1264);
v7 = (char *)this + 1016;
if ( (char *)result != v7 )
{
result = GameLevelManager::sharedState((GameLevelManager *)result);
*(_QWORD *)(result + 1264) = v7;
}
}
return result;
}