//
// GameLevelManager::removeUserFromList from 0x6fa828 to 0x6fa8e0 (184 bytes)
//
// 3 xrefs:
// > GameLevelManager::onUnblockUserCompleted @ 0x6faa44
// > GameLevelManager::onBlockUserCompleted @ 0x6fb2a8
// > ??> @ 0xc88f8
//
// 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 GameLevelManager::removeUserFromList(GameLevelManager *a1, int a2, UserListType a3)
{
unsigned int v6; // w19
cocos2d::CCArray *StoredUserList; // x20
UserListDelegate *m_userListDelegate; // x0
v6 = 0;
StoredUserList = GameLevelManager::getStoredUserList(a1, a3);
if ( StoredUserList )
{
while ( v6 < (unsigned int)cocos2d::CCArray::count(StoredUserList) )
{
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(StoredUserList, v6) + 344) == a2 )
{
cocos2d::CCArray::removeObjectAtIndex(StoredUserList, v6, 1);
m_userListDelegate = a1->m_userListDelegate;
if ( m_userListDelegate )
m_userListDelegate->userListChanged(m_userListDelegate, StoredUserList, a3);
return;
}
++v6;
}
}
}