//
// ThreadOptionsPopup::threadSearchFailed from 0x10050e3d8 to 0x10050e42c (84 bytes)
//
// 2 xrefs:
// > sub_10050E42C @ 0x10050e430
// > ??> @ 0x100999398
//
// 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 11:07:01 +0000
//
_QWORD *__fastcall ThreadOptionsPopup::threadSearchFailed(__int64 a1)
{
_QWORD *result; // x0
__int64 v3; // x19
result = *(_QWORD **)(a1 + 1040);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*result + 1432LL))(result);
if ( *(_DWORD *)(a1 + 1048) )
{
result = (_QWORD *)GameLevelManager::sharedState();
v3 = a1 + 1016;
if ( result[158] != v3 )
{
result = (_QWORD *)GameLevelManager::sharedState();
result[158] = v3;
}
}
return result;
}