//
// GameLevelManager::removeUserFromList from 0x1000a9720 to 0x1000a97dc (188 bytes)
//
// 2 xrefs:
// > GameLevelManager::onBlockUserCompleted @ 0x10008d584
// > GameLevelManager::onUnblockUserCompleted @ 0x10008d6a4
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GameLevelManager::removeUserFromList(GameLevelManager *a1, int a2, UserListType a3)
{
__int64 v3; // x19
cocos2d::CCArray *StoredUserList; // x0
cocos2d::CCArray *v7; // x20
__int64 v8; // x23
UserListDelegate *m_userListDelegate; // x0
v3 = *(_QWORD *)&a3;
StoredUserList = GameLevelManager::getStoredUserList(a1, a3);
if ( StoredUserList )
{
v7 = StoredUserList;
if ( (unsigned int)sub_10024A36C(StoredUserList) )
{
v8 = 0;
while ( *(_DWORD *)(sub_10024A388(v7, v8) + 376) != a2 )
{
v8 = (unsigned int)(v8 + 1);
if ( (unsigned int)v8 >= (unsigned int)sub_10024A36C(v7) )
return;
}
sub_10024A44C(v7, v8, 1);
m_userListDelegate = a1->m_userListDelegate;
if ( m_userListDelegate )
((void (__fastcall *)(UserListDelegate *, cocos2d::CCArray *, __int64))m_userListDelegate->userListChanged)(
m_userListDelegate,
v7,
v3);
}
}
}