//
// ThreadViewPopup::threadSearchFailed from 0x74cb94 to 0x74cc6e (218 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'ThreadViewPopup::threadSearchFailed @ 0x74cc84
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:58:47 +0000
//
int __fastcall ThreadViewPopup::threadSearchFailed(int this, int a2)
{
int v2; // r4
cocos2d::CCNode **v3; // r0
int v4; // r2
int *v5; // r8
int v6; // r3
void (__fastcall *v7)(int *, cocos2d::CCNode *, int); // r9
cocos2d::CCNode *v8; // r0
int v9[3]; // [sp+Ch] [bp-20h] BYREF
int v10[3]; // [sp+18h] [bp-14h] BYREF
v2 = this;
if ( a2 == *(_DWORD *)(*(_DWORD *)(this + 564) + 52) )
{
v3 = *(cocos2d::CCNode ***)(this + 624);
if ( v3 )
v3 = (cocos2d::CCNode **)LoadingCircle::fadeAndRemove(v3, a2, (int)&_stack_chk_guard);
v4 = *(unsigned __int8 *)(v2 + 808);
if ( !*(_BYTE *)(v2 + 808) )
{
if ( (*(_BYTE *)(v2 + 812) & 1) != 0 )
{
**(_BYTE **)(v2 + 820) = v4;
*(_DWORD *)(v2 + 816) = v4;
}
else
{
*(_BYTE *)(v2 + 813) = 0;
*(_BYTE *)(v2 + 812) = 0;
}
}
this = GameToolbox::lastResponseHadServerPopup((GameToolbox *)v3);
if ( !this )
{
v5 = *(int **)(cocos2d::CCDirector::sharedDirector(nullptr) + 220);
v6 = *v5;
memset(v9, 0, sizeof(v9));
v7 = *(void (__fastcall **)(int *, cocos2d::CCNode *, int))(v6 + 232);
std::string::__init(v9, "Search failed", 0xDu);
memset(v10, 0, sizeof(v10));
std::string::__init(v10, &unk_B6B226, 0);
v8 = TextAlertPopup::create((int)v9, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)v10);
v7(v5, v8, 1000);
std::string::~string((int)v10);
return std::string::~string((int)v9);
}
}
return this;
}