//
// ThreadOptionsPopup::threadSendFinished from 0xc61eec to 0xc61f4c (96 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadOptionsPopup::threadSendFinished @ 0xc61f50
// > ??> @ 0x84868
// > ??> @ 0x14f0558
//
// 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::threadSendFinished(ThreadOptionsPopup *this)
{
__int64 v2; // x0
__int64 result; // x0
char *v4; // x19
v2 = *((_QWORD *)this + 130);
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1440LL))(v2);
result = *((unsigned int *)this + 262);
if ( (_DWORD)result )
{
result = *(_QWORD *)(GameLevelManager::sharedState((GameLevelManager *)result) + 1264);
v4 = (char *)this + 1016;
if ( (char *)result != v4 )
{
result = GameLevelManager::sharedState((GameLevelManager *)result);
*(_QWORD *)(result + 1264) = v4;
}
}
return result;
}