//
// sub_C76DB4 from 0xc76db4 to 0xc76f24 (368 bytes)
//
// 3 xrefs:
// > MemberListPopup::applyAddOutcome @ 0xc7c610
// > MemberListPopup::applyAddOutcome @ 0xc7c6c8
// > MemberListPopup::applyAddOutcome @ 0xc7c77c
//
// 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 13:05:33 +0000
//
_QWORD *__usercall sub_C76DB4@(cocos2d::CCArray *this@, _QWORD *a2@)
{
signed int v4; // w20
__int64 v5; // x0
__int64 v6; // x2
char v7; // w0
__int64 v8; // x0
size_t v9; // x1
char *v10; // x1
size_t v11; // x2
__int64 v13; // [xsp+40h] [xbp+40h] BYREF
size_t v14; // [xsp+48h] [xbp+48h]
void *v15; // [xsp+50h] [xbp+50h]
__int64 v16; // [xsp+58h] [xbp+58h]
a2[1] = 0;
v4 = 0;
v5 = _stack_chk_guard;
a2[2] = 0;
v16 = v5;
*a2 = 0;
if ( this )
{
while ( v4 < (int)cocos2d::CCArray::count(this) )
{
if ( v4 > 0 )
std::string::append((__int64)a2, ", ", 2u);
v6 = cocos2d::CCArray::objectAtIndex(this, v4) + 320;
v7 = *(_BYTE *)v6;
v13 = 0;
v14 = 0;
v15 = nullptr;
if ( (v7 & 1) != 0 )
{
std::string::__init(&v13, *(void **)(v6 + 16), *(_QWORD *)(v6 + 8));
}
else
{
v8 = *(_QWORD *)v6;
v9 = *(_QWORD *)(v6 + 8);
v15 = *(void **)(v6 + 16);
v13 = v8;
v14 = v9;
}
if ( (v13 & 1) != 0 )
{
v10 = (char *)v15;
v11 = v14;
}
else
{
v11 = (unsigned __int8)v13 >> 1;
v10 = (char *)&v13 + 1;
}
std::string::append((__int64)a2, v10, v11);
++v4;
if ( (v13 & 1) != 0 )
operator delete(v15);
}
}
return a2;
}