//
// ThreadViewPopup::threadSearchFailed from 0x1009321d0 to 0x1009322e9 (281 bytes)
//
// 2 xrefs:
// > sub_100932310 @ 0x10093231c
// > ??> @ 0x100bc2c18
//
// 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 12:38:24 +0000
//
void __fastcall ThreadViewPopup::threadSearchFailed(__int64 a1, int a2)
{
__int64 v2; // rbx
char *v3; // rax
__int128 v4; // [rsp+8h] [rbp-38h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
__int128 v6; // [rsp+20h] [rbp-20h] BYREF
void *v7; // [rsp+30h] [rbp-10h]
if ( *(_DWORD *)(*(_QWORD *)(a1 + 752) + 56LL) != a2 )
return;
if ( *(_QWORD *)(a1 + 832) )
LoadingCircle::fadeAndRemove(*(_QWORD *)(a1 + 832));
if ( !*(_BYTE *)(a1 + 1104) )
{
if ( (*(_BYTE *)(a1 + 1112) & 1) != 0 )
{
**(_BYTE **)(a1 + 1128) = 0;
*(_QWORD *)(a1 + 1120) = 0;
if ( (unsigned __int8)sub_1004E9BA0() )
return;
goto LABEL_8;
}
*(_WORD *)(a1 + 1112) = 0;
}
if ( (unsigned __int8)sub_1004E9BA0() )
return;
LABEL_8:
v2 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
LOBYTE(v6) = 26;
strcpy((char *)&v6 + 1, "Search failed");
LOWORD(v4) = 0;
v3 = TextAlertPopup::create(&v6, 0x96u, &v4, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v2 + 464LL))(v2, v3, 1000);
if ( (v4 & 1) != 0 )
operator delete(__p);
if ( (v6 & 1) != 0 )
operator delete(v7);
}