//
// GameLevelManager::addThreadMembers from 0x832d30 to 0x832ea0 (368 bytes)
//
// 2 xrefs:
// > MemberListPopup::friendPickerAdd @ 0xc67220
// > ??> @ 0xdd2a8
//
// 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 12:55:09 +0000
//
__int64 __fastcall GameLevelManager::addThreadMembers(cocos2d::CCArray **this, unsigned int a2, cocos2d::CCArray *a3)
{
signed int v6; // w19
__int64 v7; // x0
cocos2d::CCString *v8; // x0
size_t v9; // x0
unsigned __int8 updated; // w0
unsigned int v11; // w19
cocos2d::CCObject *v12; // x0
cocos2d::CCObject *v13; // x0
char *CString; // [xsp+58h] [xbp+58h]
_QWORD v16[2]; // [xsp+60h] [xbp+60h] BYREF
void *v17; // [xsp+70h] [xbp+70h]
if ( a3 && (unsigned int)cocos2d::CCArray::count(a3) )
{
v16[0] = 0;
v6 = 0;
v16[1] = 0;
v17 = nullptr;
while ( v6 < (int)cocos2d::CCArray::count(a3) )
{
if ( v6 > 0 )
std::string::append((__int64)v16, &byte_1169BE0);
v7 = cocos2d::CCArray::objectAtIndex(a3, v6);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
(const char *)*(unsigned int *)(v7 + 376));
CString = (char *)cocos2d::CCString::getCString(v8);
v9 = strlen(CString);
std::string::append((__int64)v16, CString, v9);
++v6;
}
updated = GameLevelManager::updateThread((cocos2d::CCObject *)this, (char *)a2, 4, (char *)v16);
v11 = updated;
if ( updated )
{
v12 = *(this + 85);
if ( v12 )
v12 = (cocos2d::CCObject *)cocos2d::CCObject::release(v12);
v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v12);
*(this + 85) = v13;
cocos2d::CCObject::retain(v13);
cocos2d::CCArray::addObjectsFromArray(*(this + 85), a3);
}
if ( (v16[0] & 1) != 0 )
operator delete(v17);
}
else
{
return 0;
}
return v11;
}