//
// GameLevelManager::removeUserFromList from 0x4af174 to 0x4af1d2 (94 bytes)
//
// 2 xrefs:
// > GameLevelManager::onBlockUserCompleted @ 0x4c29ac
// > GameLevelManager::onUnblockUserCompleted @ 0x4c2aa2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:01 +0000
//
unsigned int __fastcall GameLevelManager::removeUserFromList(int a1, int a2, int a3, int a4)
{
unsigned int result; // r0
cocos2d::CCArray *v8; // r4
unsigned int i; // r5
result = GameLevelManager::getStoredUserList(a1, a3, a3, a4);
v8 = (cocos2d::CCArray *)result;
if ( result )
{
for ( i = 0; ; ++i )
{
result = cocos2d::CCArray::count(v8);
if ( i >= result )
break;
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v8, i) + 296) == a2 )
{
cocos2d::CCArray::removeObjectAtIndex(v8, i, 1);
result = *(_DWORD *)(a1 + 892);
if ( result )
return (*(int (__fastcall **)(unsigned int, cocos2d::CCArray *, int))(*(_DWORD *)result + 8))(result, v8, a3);
return result;
}
}
}
return result;
}