//
// ThreadOptionsPopup::threadSendFailed from 0xc61f54 to 0xc61fb4 (96 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadOptionsPopup::threadSendFailed @ 0xc61fb8
// > ??> @ 0xae4f0
// > ??> @ 0x14f0560
//
// 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::threadSendFailed(ThreadOptionsPopup *this)
{
__int64 v2; // x0
__int64 result; // x0
char *v4; // x19
v2 = *((_QWORD *)this + 130);
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1448LL))(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;
}