//
// ThreadViewPopup::startSearch from 0x7534c8 to 0x753532 (106 bytes)
//
// 1 xrefs:
// > ThreadSearchPopup::onSearch @ 0x753758
//
// 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:53 +0000
//
int __fastcall ThreadViewPopup::startSearch(int result, unsigned __int8 *a2)
{
int v2; // r4
int v4; // r3
int v5; // r3
GameManager *v6; // r0
GameLevelManager *v7; // r0
GameLevelManager *v8; // r0
float v9; // r2
int v10; // r3
v2 = result;
if ( !*(_DWORD *)(result + 760) && !*(_BYTE *)(result + 598) )
{
v4 = *a2;
if ( (v4 & 1) != 0 )
v5 = *((_DWORD *)a2 + 1);
else
v5 = v4 >> 1;
if ( v5 )
{
v6 = (GameManager *)GameLevelManager::sharedState((GameLevelManager *)result);
result = GameLevelManager::searchThreadMessages(
v6,
*(const char **)(*(_DWORD *)(v2 + 564) + 52),
a2,
*(_DWORD *)(v2 + 564),
0,
0);
if ( result )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState((GameLevelManager *)result);
*((_DWORD *)v7 + 210) = v2 + 524;
v8 = (GameLevelManager *)GameLevelManager::sharedState(v7);
GameLevelManager::makeTimeStamp(v8, "threadSearch", v9, v10);
std::string::operator=((unsigned __int8 *)(v2 + 812), a2);
return ThreadViewPopup::showLoading((ThreadViewPopup *)v2);
}
}
}
return result;
}