//
// FriendPickerPopup::onGlobalSearch from 0x74ea70 to 0x74eb28 (184 bytes)
//
// 0 xrefs:
//
// 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:49 +0000
//
int __fastcall FriendPickerPopup::onGlobalSearch(FriendPickerPopup *this, cocos2d::CCObject *a2)
{
int v3; // r2
unsigned __int8 *v4; // r2
int v5; // r3
unsigned __int8 *v6; // r3
unsigned __int8 *v7; // r1
unsigned __int8 *v8; // r0
int v9; // r7
GameLevelManager *v10; // r0
GameManager *v11; // r0
GameLevelManager *UserSearch; // r0
int v13; // r1
int v14; // r2
int v16; // [sp+0h] [bp-14h] BYREF
int v17; // [sp+4h] [bp-10h]
char *v18; // [sp+8h] [bp-Ch]
v3 = *((_DWORD *)this + 161);
if ( v3 )
{
CCTextInputNode::getString((CCTextInputNode *)&v16, v3);
}
else
{
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, &unk_B6B226, 0);
}
if ( (v16 & 1) != 0 )
{
v4 = (unsigned __int8 *)v18;
v5 = v17;
}
else
{
v5 = (int)(unsigned __int8)v16 >> 1;
v4 = (unsigned __int8 *)&v16 + 1;
}
if ( v5 )
{
v6 = &v4[v5];
v7 = v4;
while ( 1 )
{
v8 = v7;
if ( v7 == v6 )
break;
v9 = *v7++;
if ( v9 != 32 )
{
if ( v8 - v4 != -1 )
{
v10 = *((GameLevelManager **)this + 163);
*((_BYTE *)this + 640) = 0;
if ( v10 )
v10 = (GameLevelManager *)(*(int (__fastcall **)(GameLevelManager *, int))(*(_DWORD *)v10 + 456))(v10, 140);
v11 = (GameManager *)GameLevelManager::sharedState(v10);
UserSearch = (GameLevelManager *)GameLevelManager::getUserSearch(v11, (unsigned __int8 *)&v16);
if ( UserSearch )
{
*(_DWORD *)(GameLevelManager::sharedState(UserSearch) + 892) = (char *)this + 600;
PagedListPopup::showLoading(this, v13, v14);
}
}
return std::string::~string((int)&v16);
}
}
}
return std::string::~string((int)&v16);
}