//
// sub_1000C8B88 from 0x1000c8b88 to 0x1000c8ca0 (280 bytes)
//
// 1 xrefs:
// > MemberListPopup::friendPickerAdd @ 0x1005087bc
//
// 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 10:58:50 +0000
//
__int64 __fastcall sub_1000C8B88(__int64 a1, int a2, __int64 a3)
{
__int64 v6; // x22
__int64 v7; // x0
__int64 v8; // x0
const std::string::value_type *CString; // x0
__int64 v10; // x21
_DWORD *v11; // x0
__int64 v12; // x0
std::string v14; // [xsp+8h] [xbp-48h] BYREF
if ( !a3 || !(unsigned int)sub_1002E757C(a3) )
return 0;
v6 = 0;
memset(&v14, 0, sizeof(v14));
while ( (int)v6 < (int)sub_1002E757C(a3) )
{
if ( (_DWORD)v6 )
std::string::append(&v14, ",");
v7 = sub_1002E75A0(a3, v6);
v8 = sub_1003065B0("%i", *(_DWORD *)(v7 + 376));
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v8);
std::string::append(&v14, CString);
v6 = (unsigned int)(v6 + 1);
}
v10 = sub_1000C8838(a1, a2, 4, (__int64)&v14);
if ( (v10 & 1) != 0 )
{
v11 = *(_DWORD **)(a1 + 680);
if ( v11 )
v11 = cocos2d::CCObject::release(v11);
v12 = sub_1002E736C(v11);
*(_QWORD *)(a1 + 680) = v12;
cocos2d::CCObject::retain(v12);
sub_1002E7570(*(_QWORD *)(a1 + 680), a3);
}
if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v14.__r_.__value_.__l.__data_);
return v10;
}