//
// GameLevelManager::removeUserFromList from 0x1402571a0 to 0x140257243 (163 bytes)
//
// 5 xrefs:
// > GameLevelManager::onBlockUserCompleted @ 0x140256b28
// > GameLevelManager::onUnblockUserCompleted @ 0x140257150
// > ??> @ 0x1408aab98
// > ??> @ 0x1408aaba8
// > ??> @ 0x14091c610
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:44 +0000
//
void __fastcall GameLevelManager::removeUserFromList(__int64 a1, int a2, unsigned int a3)
{
cocos2d::CCArray *StoredUserList; // rax
cocos2d::CCArray *v7; // rdi
unsigned int v8; // ebx
__int64 v9; // rcx
StoredUserList = (cocos2d::CCArray *)GameLevelManager::getStoredUserList(a1, a3);
v7 = StoredUserList;
if ( StoredUserList )
{
v8 = 0;
if ( cocos2d::CCArray::count(StoredUserList) )
{
while ( *((_DWORD *)cocos2d::CCArray::objectAtIndex(v7, v8) + 98) != a2 )
{
if ( ++v8 >= cocos2d::CCArray::count(v7) )
return;
}
cocos2d::CCArray::removeObjectAtIndex(v7, v8, 1);
v9 = *(_QWORD *)(a1 + 1496);
if ( v9 )
(*(void (__fastcall **)(__int64, cocos2d::CCArray *, _QWORD))(*(_QWORD *)v9 + 16LL))(v9, v7, a3);
}
}
}