//
// GameLevelManager::removeUserFromList from 0x3c297c to 0x3c29da (94 bytes)
//
// 2 xrefs:
// > GameLevelManager::onUnblockUserCompleted @ 0x3c2a6e
// > GameLevelManager::onBlockUserCompleted @ 0x3c2d92
//
// 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)
{
cocos2d::CCArray *StoredUserList; // r4
unsigned int i; // r5
UserListDelegate *m_userListDelegate; // r0
StoredUserList = GameLevelManager::getStoredUserList(a1, a3);
if ( StoredUserList )
{
for ( i = 0; i < cocos2d::CCArray::count(StoredUserList); ++i )
{
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(StoredUserList, i) + 280) == a2 )
{
cocos2d::CCArray::removeObjectAtIndex(StoredUserList, i, 1);
m_userListDelegate = a1->m_userListDelegate;
if ( m_userListDelegate )
m_userListDelegate->userListChanged(m_userListDelegate, StoredUserList, a3);
return;
}
}
}
}