//
// ThreadDescPopup::threadSearchFinished from 0x100514070 to 0x1005140c8 (88 bytes)
//
// 2 xrefs:
// > sub_1005140C8 @ 0x1005140cc
// > ??> @ 0x10099b598
//
// 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:04 +0000
//
_QWORD *__fastcall ThreadDescPopup::threadSearchFinished(__int64 a1)
{
_QWORD *result; // x0
__int64 v3; // x19
result = *(_QWORD **)(a1 + 1040);
if ( result )
result = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *))(*result + 1424LL))(result);
if ( *(_BYTE *)(a1 + 1113) == 1 )
{
result = (_QWORD *)GameLevelManager::sharedState();
v3 = a1 + 1016;
if ( result[158] != v3 )
{
result = (_QWORD *)GameLevelManager::sharedState();
result[158] = v3;
}
}
return result;
}