//
// FriendsProfilePage::getUserListFinished from 0x8f7680 to 0x8f77ac (300 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FriendsProfilePage::getUserListFinished @ 0x8f77b0
// > ??> @ 0x3bb80
// > ??> @ 0x11a6140
//
// 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
//
void FriendsProfilePage::getUserListFinished(FriendsProfilePage *a1, cocos2d::CCArray *a2, UserListType a3)
{
UserListType m_type; // w20
cocos2d::CCArray *m_users; // x0
cocos2d::CCArray *v7; // x0
cocos2d::ccArray *data; // x0
unsigned int num; // w1
cocos2d::CCObject **arr; // x0
cocos2d::CCObject **i; // x2
cocos2d::CCObject *v12; // x1
GameLevelManager *v13; // x19
GJAccountManager *v14; // x0
GJUserScore *v15; // x0
m_type = a1->m_type;
if ( m_type == a3 )
{
m_users = a1->m_users;
if ( m_users )
cocos2d::CCObject::release(m_users);
a1->m_users = a2;
cocos2d::CCObject::retain(a2);
FriendsProfilePage::setupUsersBrowser(a1, a1->m_users, m_type);
a1->m_circle->setVisible(a1->m_circle, 0);
a1->m_refreshBtn->setVisible(a1->m_refreshBtn, 1);
a1->m_noInternet->setVisible(a1->m_noInternet, 0);
if ( !a1->m_type )
{
v7 = a1->m_users;
if ( v7 )
{
data = v7->data;
num = data->num;
if ( data->num )
{
arr = data->arr;
for ( i = &arr[num - 1]; i >= arr; LOBYTE(v12[9].m_unknown2) = 0 )
{
v12 = *arr;
if ( !*arr )
break;
++arr;
}
}
}
v13 = GameLevelManager::sharedState();
v14 = GJAccountManager::sharedState();
v15 = GameLevelManager::userInfoForAccountID(v13, v14->m_accountID - v14->m_unkInt1);
if ( v15 )
v15->m_newFriendCount = 0;
}
}
}