//
// ThreadViewPopup::threadSearchFailed from 0xc6d558 to 0xc6d6d8 (384 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::threadSearchFailed @ 0xc6d6e0
// > ??> @ 0xca3c0
// > ??> @ 0x14ecaa8
//
// 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:28 +0000
//
__int64 __fastcall ThreadViewPopup::threadSearchFailed(ThreadViewPopup *this, int a2)
{
cocos2d::CCNode **v4; // x0
GameToolbox *v5; // x0
cocos2d::CCDirector *ResponseHadServerPopup; // x0
__int64 *v7; // x20
__int64 v8; // x3
void (__fastcall *v9)(__int64 *, __int64, __int64); // x23
__int64 v10; // x0
__int64 v11[2]; // [xsp+48h] [xbp+48h] BYREF
void *v12; // [xsp+58h] [xbp+58h]
__int64 v13[2]; // [xsp+60h] [xbp+60h] BYREF
void *v14; // [xsp+70h] [xbp+70h]
if ( *(_DWORD *)(*((_QWORD *)this + 94) + 56LL) == a2 )
{
v4 = *((cocos2d::CCNode ***)this + 104);
if ( v4 )
LoadingCircle::fadeAndRemove(v4);
v5 = (GameToolbox *)*((unsigned __int8 *)this + 1104);
if ( !*((_BYTE *)this + 1104) )
{
v5 = (GameToolbox *)*((unsigned __int8 *)this + 1112);
if ( ((unsigned __int8)v5 & 1) != 0 )
{
v5 = *((GameToolbox **)this + 141);
*(_BYTE *)v5 = 0;
*((_QWORD *)this + 140) = 0;
}
else
{
*((_BYTE *)this + 1113) = 0;
*((_BYTE *)this + 1112) = 0;
}
}
ResponseHadServerPopup = (cocos2d::CCDirector *)(unsigned __int8)GameToolbox::lastResponseHadServerPopup(v5);
if ( !(_BYTE)ResponseHadServerPopup )
{
v7 = *(__int64 **)(cocos2d::CCDirector::sharedDirector(ResponseHadServerPopup) + 272);
v8 = *v7;
v11[0] = 0;
v11[1] = 0;
v9 = *(void (__fastcall **)(__int64 *, __int64, __int64))(v8 + 464);
v12 = nullptr;
std::string::__init(v11, "Search failed", 0xDu);
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
std::string::__init(v13, &byte_11B8890, 0);
v10 = TextAlertPopup::create((char *)v11, 150, (char *)v13, 0.5, 0.6);
v9(v7, v10, 1000);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
}
}
return _stack_chk_guard;
}