//
// FriendsProfilePage::getUserListFinished from 0x140140810 to 0x140140953 (323 bytes)
//
// 2 xrefs:
// > ??> @ 0x140558790
// > ??> @ 0x1406ca2b4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void FriendsProfilePage::getUserListFinished(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)
{
cocos2d::CCObject *v6; // rcx
__int64 v7; // rdx
__int64 v8; // rax
unsigned int *v9; // rax
__int64 v10; // rcx
unsigned __int64 v11; // rax
unsigned __int64 i; // rdx
GJAccountManager *v13; // rax
int v14; // ebx
__int64 v15; // rcx
struct cocos2d::CCObject *v16; // rax
void *v17; // [rsp+30h] [rbp+8h]
if ( a1->m_uID == a3 )
{
v6 = *(cocos2d::CCObject **)&a1->m_fRotationX;
if ( v6 )
cocos2d::CCObject::release(v6);
*(_QWORD *)&a1->m_fRotationX = a2;
cocos2d::CCObject::retain(a2);
FriendsProfilePage::setupUsersBrowser(
(FriendsProfilePage *)((char *)a1 - 656),
*(cocos2d::CCArray **)&a1->m_fRotationX,
a3);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_unknown2 + 320LL))(*(_QWORD *)&a1->m_unknown2, 0);
LOBYTE(v7) = 1;
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)&a1->m_fScaleX + 320LL))(*(_QWORD *)&a1->m_fScaleX, v7);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&a1->m_nTag + 320LL))(*(_QWORD *)&a1->m_nTag, 0);
if ( !a1->m_uID )
{
v8 = *(_QWORD *)&a1->m_fRotationX;
if ( v8 )
{
v9 = *(unsigned int **)(v8 + 56);
v10 = *v9;
if ( (_DWORD)v10 )
{
v11 = *((_QWORD *)v9 + 2);
for ( i = v11 + 8 * (v10 - 1); v11 <= i; v11 += 8LL )
{
if ( !*(_QWORD *)v11 )
break;
*(_BYTE *)(*(_QWORD *)v11 + 760LL) = 0;
}
}
}
v13 = GJAccountManager::sharedState();
v14 = v13->m_accountID - v13->m_unkInt1;
v15 = qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v17 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v17);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v15 = qword_1406C2EC0;
}
v16 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v15 + 600), v14);
if ( v16 )
v16[13].m_eObjType = 0;
}
}
}