//
// MemberListPopup::onAddMember from 0x1400ed910 to 0x1400ed9ba (170 bytes)
//
// 2 xrefs:
// > MemberListPopup::init @ 0x1400ebdea
// > ??> @ 0x140914ff0
//
// This function is hookable on this platform (idp: pc, 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 11:26:35 +0000
//
void __fastcall MemberListPopup::onAddMember(__int64 a1)
{
cocos2d::CCObject *v2; // rax
int v3; // ecx
_QWORD *v4; // rax
if ( !*(_BYTE *)(a1 + 864)
&& *(int *)(a1 + 868) <= 0
&& *(int *)(a1 + 872) <= 0
&& *(int *)(a1 + 876) <= 0
&& !*(_BYTE *)(a1 + 848) )
{
if ( !*(_QWORD *)(a1 + 856) )
{
v2 = (cocos2d::CCObject *)cocos2d::CCArray::create(a1);
*(_QWORD *)(a1 + 856) = v2;
cocos2d::CCObject::retain(v2);
}
cocos2d::CCArray::removeAllObjects(*(cocos2d::CCArray **)(a1 + 856));
v3 = a1 + 784;
if ( !a1 )
v3 = 0;
v4 = FriendPickerPopup::create(v3, 1u, 1u, 0, 1);
(*(void (__fastcall **)(_QWORD *))(*v4 + 1064LL))(v4);
}
}