//
// MemberListPopup::onAddMember from 0xc69e94 to 0xc69f00 (108 bytes)
//
// 3 xrefs:
// > ??> @ 0x54898
// > MemberListPopup::init @ 0xc6ae9c
// > ??> @ 0x1541da8
//
// 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:26 +0000
//
__int64 __fastcall MemberListPopup::onAddMember(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
__int64 result; // x0
cocos2d::CCArray *v4; // x0
__int64 v5; // x0
cocos2d::CCObject *v6; // x0
result = (unsigned __int8)MemberListPopup::opPending((MemberListPopup *)this);
if ( !(_BYTE)result )
{
v4 = *(this + 107);
if ( !v4 )
{
v6 = (cocos2d::CCObject *)cocos2d::CCArray::create(nullptr);
*(this + 107) = v6;
cocos2d::CCObject::retain(v6);
v4 = *(this + 107);
}
cocos2d::CCArray::removeAllObjects(v4);
v5 = FriendPickerPopup::create(
(FriendPickerPopup *)(this + 98),
(FriendPickerDelegate *)((char *)&dword_0 + 1),
(unsigned __int8)&dword_0 + 1,
0,
(char)&dword_0 + 1);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
return result;
}