//
// FriendPickerPopup::onDone from 0xc6419c to 0xc6422c (144 bytes)
//
// 3 xrefs:
// > ??> @ 0xcbea8
// > FriendPickerPopup::init @ 0xc697ec
// > ??> @ 0x1545fd0
//
// 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:24 +0000
//
__int64 __fastcall FriendPickerPopup::onDone(FriendPickerPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
__int64 v5; // x20
if ( !*((_BYTE *)this + 828) )
return (*(__int64 (__fastcall **)(FriendPickerPopup *, _QWORD))(*(_QWORD *)this + 1360LL))(this, 0);
v3 = *((_QWORD *)this + 99);
if ( !v3 || !(*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3) )
return (*(__int64 (__fastcall **)(FriendPickerPopup *, _QWORD))(*(_QWORD *)this + 1360LL))(this, 0);
cocos2d::CCObject::retain(this);
cocos2d::CCObject::autorelease(this);
v5 = *((_QWORD *)this + 99);
*((_QWORD *)this + 99) = 0;
PagedListPopup::onClose(this, nullptr);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5);
}