//
// FriendsProfilePage::updateCountLabel from 0x100736060 to 0x1007361d8 (376 bytes)
//
// 10 xrefs:
// > FriendsProfilePage::onClearSearch @ 0x100735d00
// > FriendsProfilePage::onToggleSort @ 0x100735e39
// > FriendsProfilePage::onToggleSortDir @ 0x100735f95
// > FriendsProfilePage::rebuildList @ 0x100736039
// > FriendsProfilePage::getUserListFinished @ 0x10073738e
// > FriendsProfilePage::getUserListFinished @ 0x10073750a
// > FriendsProfilePage::getUserListFailed @ 0x1007376ee
// > FriendsProfilePage::forceReloadList @ 0x100737855
// > FriendsProfilePage::textChanged @ 0x100737d43
// > sub_100737D60 @ 0x100737dcf
//
// 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:36:24 +0000
//
__int64 __fastcall FriendsProfilePage::updateCountLabel(__int64 a1)
{
char v1; // al
char v3; // al
__int64 v4; // rcx
__int64 v5; // rdi
__int64 v6; // rbx
__int64 v7; // rax
__int64 CString; // rax
__int64 (__fastcall *v9)(__int64, __int64); // rcx
__int64 v10; // rdi
__int64 v11; // rdi
unsigned int v12; // r13d
__int64 v13; // r13
__int64 v15; // r15
__int64 v16; // rax
char v17; // [rsp-8h] [rbp-30h]
v17 = v1;
v3 = *(_BYTE *)(a1 + 920);
v4 = 872;
if ( !v3 )
{
v5 = *(_QWORD *)(a1 + 864);
if ( v5 )
goto LABEL_5;
v4 = 856;
}
v5 = *(_QWORD *)(a1 + v4);
if ( !v5 )
{
if ( (v3 & 1) != 0 )
goto LABEL_6;
LABEL_8:
v11 = *(_QWORD *)(a1 + 856);
if ( !v11 || !(unsigned int)sub_1007FEF90(v11) )
return (*(__int64 (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 824) + 928LL))(
*(_QWORD *)(a1 + 824),
" ");
if ( (unsigned int)(*(_DWORD *)(a1 + 816) - 1) > 3 )
{
v12 = *(unsigned __int8 *)(a1 + 880);
if ( (v12 & 1) != 0 )
goto LABEL_12;
}
else
{
v12 = *(unsigned __int8 *)(a1 + 880);
if ( (v12 & 1) != 0 )
{
LABEL_12:
v13 = *(_QWORD *)(a1 + 888);
LABEL_16:
v15 = *(_QWORD *)(a1 + 824);
sub_1007FEF90(*(_QWORD *)(a1 + 856));
if ( v13 )
v16 = sub_10088E820("Found: %i / %i", v17);
else
v16 = sub_10088E820("%s: %i", v17);
CString = cocos2d::CCString::getCString(v16);
v9 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 928LL);
v10 = v15;
return v9(v10, CString);
}
}
v13 = v12 >> 1;
goto LABEL_16;
}
LABEL_5:
sub_1007FEF90(v5);
if ( (*(_BYTE *)(a1 + 920) & 1) == 0 )
goto LABEL_8;
LABEL_6:
v6 = *(_QWORD *)(a1 + 824);
v7 = sub_10088E820("Found: %i users", v17);
CString = cocos2d::CCString::getCString(v7);
v9 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 928LL);
v10 = v6;
return v9(v10, CString);
}