//
// GameLevelManager::addThreadMembers from 0x4bfefc to 0x4bffce (210 bytes)
//
// 1 xrefs:
// > MemberListPopup::friendPickerAdd @ 0x747b48
//
// 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:50:22 +0000
//
int __fastcall GameLevelManager::addThreadMembers(cocos2d::CCArray **this, const char *a2, cocos2d::CCArray *a3)
{
int updated; // r4
signed int v8; // r4
int v9; // r0
cocos2d::CCString *v10; // r0
char *CString; // r0
cocos2d::CCObject *v12; // r0
cocos2d::CCObject *v13; // r0
_DWORD v14[3]; // [sp+0h] [bp-14h] BYREF
if ( !a3 || !cocos2d::CCArray::count(a3) )
return 0;
v8 = 0;
memset(v14, 0, sizeof(v14));
while ( v8 < cocos2d::CCArray::count(a3) )
{
if ( v8 > 0 )
std::string::append(v14, ",");
v9 = cocos2d::CCArray::objectAtIndex(a3, v8);
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%i",
*(const char **)(v9 + 296));
CString = (char *)cocos2d::CCString::getCString(v10);
std::string::append(v14, CString);
++v8;
}
updated = GameLevelManager::updateThread((GameManager *)this, a2, 4, (unsigned __int8 *)v14);
if ( updated )
{
v12 = *(this + 126);
if ( v12 )
v12 = (cocos2d::CCObject *)cocos2d::CCObject::release(v12);
v13 = (cocos2d::CCObject *)cocos2d::CCArray::create(v12);
*(this + 126) = v13;
cocos2d::CCObject::retain(v13);
cocos2d::CCArray::addObjectsFromArray(*(this + 126), a3);
}
std::string::~string((int)v14);
return updated;
}