//
// MemberListPopup::friendPicked from 0x1009432f0 to 0x10094344d (349 bytes)
//
// 2 xrefs:
// > sub_100943470 @ 0x10094347c
// > ??> @ 0x100bc54c0
//
// 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 12:38:32 +0000
//
void __fastcall MemberListPopup::friendPicked(__int64 a1, __int64 a2)
{
__int64 v3; // rdi
unsigned int v4; // r15d
int v5; // r15d
__int64 v6; // rbx
char *v7; // rax
__int128 v8; // [rsp+8h] [rbp-48h] BYREF
void *__p; // [rsp+18h] [rbp-38h]
__int128 v10[3]; // [rsp+20h] [rbp-30h] BYREF
if ( a2 )
{
v3 = *(_QWORD *)(a1 + 856);
if ( v3 )
{
if ( (int)sub_1007FEF90(v3) <= 0 )
{
LABEL_7:
v5 = *(_DWORD *)(*(_QWORD *)(a1 + 800) + 168LL);
if ( (int)(v5 + sub_1007FEF90(*(_QWORD *)(a1 + 856))) < 10 )
{
sub_1007FEBF0(*(_QWORD *)(a1 + 856), a2);
}
else
{
v6 = *(_QWORD *)(cocos2d::CCDirector::sharedDirector() + 272);
strcpy((char *)v10, "(Member limit reached");
LOWORD(v8) = 0;
v7 = TextAlertPopup::create(v10, 0x96u, &v8, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v7, 1000);
if ( (v8 & 1) != 0 )
operator delete(__p);
if ( (v10[0] & 1) != 0 )
operator delete(*(void **)&v10[1]);
}
}
else
{
v4 = 0;
while ( *(_DWORD *)(sub_1007FEFE0(*(_QWORD *)(a1 + 856), v4) + 376) != *(_DWORD *)(a2 + 376) )
{
if ( (int)++v4 >= (int)sub_1007FEF90(*(_QWORD *)(a1 + 856)) )
goto LABEL_7;
}
sub_1007FF150(*(_QWORD *)(a1 + 856), v4, 1);
}
}
}
}