//
// FriendPickerPopup::getUserListFinished from 0x1400e75e0 to 0x1400e76a6 (198 bytes)
//
// 2 xrefs:
// > ??> @ 0x14072b640
// > ??> @ 0x140914d14
//
// 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:33 +0000
//
void __fastcall FriendPickerPopup::getUserListFinished(__int64 a1, cocos2d::CCObject *a2, int a3)
{
__int64 v5; // rcx
cocos2d::CCObject *v6; // rcx
__int64 v7; // rcx
cocos2d::CCObject *v8; // rcx
if ( a3 == 2 )
{
v5 = *(_QWORD *)(a1 - 88);
if ( v5 )
LoadingCircle::fadeAndRemove(v5);
v6 = *(cocos2d::CCObject **)(a1 + 24);
if ( v6 )
cocos2d::CCObject::release(v6);
*(_QWORD *)(a1 + 24) = a2;
cocos2d::CCObject::retain(a2);
*(_BYTE *)(a1 + 40) = 1;
}
else
{
if ( a3 )
return;
v7 = *(_QWORD *)(a1 - 88);
if ( v7 )
LoadingCircle::fadeAndRemove(v7);
v8 = *(cocos2d::CCObject **)(a1 + 16);
if ( v8 )
cocos2d::CCObject::release(v8);
*(_QWORD *)(a1 + 16) = a2;
cocos2d::CCObject::retain(a2);
if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 16)) > 1 )
qsort(
*(void **)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 56LL) + 16LL),
**(unsigned int **)(*(_QWORD *)(a1 + 16) + 56LL),
8u,
(_CoreCrtNonSecureSearchSortCompareFunction)sub_1400E69C0);
}
FriendPickerPopup::buildRows(a1 - 784);
}