//
// GameLevelManager::removeUserFromList from 0x809484 to 0x80953c (184 bytes)
//
// 3 xrefs:
// > GameLevelManager::onBlockUserCompleted @ 0x80e984
// > GameLevelManager::onUnblockUserCompleted @ 0x80eb1c
// > ??> @ 0x104c38
//
// This function is hookable on this platform (idp: arm, 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 12:54:46 +0000
//
__int64 __fastcall GameLevelManager::removeUserFromList(__int64 a1, int a2, unsigned int a3)
{
unsigned int v6; // w19
__int64 result; // x0
cocos2d::CCArray *v8; // x20
bool v9; // cf
v6 = 0;
result = GameLevelManager::getStoredUserList(a1, a3);
v8 = (cocos2d::CCArray *)result;
if ( result )
{
while ( 1 )
{
v9 = v6 >= (unsigned int)cocos2d::CCArray::count(v8);
result = (__int64)v8;
if ( v9 )
break;
if ( *(_DWORD *)(cocos2d::CCArray::objectAtIndex(v8, v6) + 376) == a2 )
{
cocos2d::CCArray::removeObjectAtIndex(v8, v6, 1);
result = *(_QWORD *)(a1 + 1368);
if ( result )
return (*(__int64 (__fastcall **)(__int64, cocos2d::CCArray *, _QWORD))(*(_QWORD *)result + 16LL))(
result,
v8,
a3);
return result;
}
++v6;
}
}
return result;
}