//
// ThreadDescPopup::threadSearchFailed from 0x1400fe710 to 0x1400fe7c0 (176 bytes)
//
// 3 xrefs:
// > ??> @ 0x14072aec0
// > ??> @ 0x1409155b4
// > ??> @ 0x1409155c0
//
// This function is hookable on this platform (idp: pc, 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:26:41 +0000
//
void __fastcall ThreadDescPopup::threadSearchFailed(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rcx
__int64 v3; // rdi
__int64 v4; // rax
void *v5; // [rsp+30h] [rbp+8h]
v1 = a1;
v2 = *(_QWORD *)(a1 + 24);
if ( v2 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)(v2 + 672) + 40LL))(v2 + 672);
if ( *(_BYTE *)(v1 + 113) )
{
v3 = v1;
if ( v1 == 1000 )
v3 = 0;
v4 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v5 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v5);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v4 = *(_QWORD *)&qword_14090BFB0;
}
if ( *(_QWORD *)(v4 + 1392) != v3 )
{
if ( v1 == 1000 )
v1 = 0;
*(_QWORD *)(v4 + 1392) = v1;
}
}
}