//
// FriendPickerPopup::onPickFriend from 0xc776fc to 0xc77898 (412 bytes)
//
// 3 xrefs:
// > ??> @ 0xa96d8
// > FriendPickerPopup::mountVirtualRow @ 0xc63ccc
// > ??> @ 0x1544c58
//
// 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:34 +0000
//
__int64 __fastcall FriendPickerPopup::onPickFriend(FriendPickerPopup *this, cocos2d::CCObject *a2)
{
__int64 v4; // x1
void (__fastcall ***v5)(_QWORD, __int64); // x0
__int64 v6; // x1
__int64 v7; // x2
_QWORD *v8; // x24
__int64 v10[2]; // [xsp+40h] [xbp+40h] BYREF
void *v11; // [xsp+50h] [xbp+50h]
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 640LL))(a2);
if ( v4 )
{
v5 = *((void (__fastcall ****)(_QWORD, __int64))this + 99);
if ( v5 )
(**v5)(v5, v4);
}
if ( !*((_BYTE *)this + 825) )
{
if ( !*((_BYTE *)this + 826) )
{
(*(void (__fastcall **)(FriendPickerPopup *, _QWORD))(*(_QWORD *)this + 1360LL))(this, 0);
return _stack_chk_guard;
}
goto LABEL_6;
}
if ( *((_BYTE *)this + 826) )
{
LABEL_6:
cocos2d::CCNode::scheduleOnce(this, FriendPickerPopup::delayedRebuild, 0, 0.0);
return _stack_chk_guard;
}
v6 = *((_QWORD *)this + 108);
if ( v6 )
{
v7 = *((_BYTE *)this + 832) >> 1;
if ( (*((_BYTE *)this + 832) & 1) != 0 )
v7 = *((_QWORD *)this + 105);
if ( v7 )
{
*(_QWORD *)(v6 + 584) = 0;
v8 = *((_QWORD **)this + 108);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &byte_11B8890, 0);
CCTextInputNode::setString(v8, (char *)v10);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
*(_QWORD *)(*((_QWORD *)this + 108) + 584LL) = (char *)this + 544;
*((_BYTE *)this + 824) = 0;
std::string::assign((__int64 *)this + 104, &byte_11B8890);
cocos2d::CCNode::scheduleOnce(this, FriendPickerPopup::delayedRebuild, 0, 0.0);
}
}
return _stack_chk_guard;
}