//
// GameLevelManager::resetStoredUserList from 0x1000a8f30 to 0x1000a8fb0 (128 bytes)
//
// 3 xrefs:
// > GameLevelManager::onAcceptFriendRequestCompleted @ 0x10008d1ec
// > GameLevelManager::onBlockUserCompleted @ 0x10008d564
// > GameLevelManager::invalidateUserList @ 0x1000a9bec
//
// 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 __fastcall GameLevelManager::resetStoredUserList(GameLevelManager *a1, UserListType a2)
{
cocos2d::CCDictionary *v2; // x19
cocos2d::CCDictionary *m_storedLevels; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v5; // [xsp+1Fh] [xbp-11h]
if ( a2 == Blocked )
{
m_storedLevels = a1->m_storedLevels;
sub_100009900(__p, "get_blocked");
cocos2d::CCDictionary::removeObjectForKey_1((int)m_storedLevels, (char *)__p);
}
else
{
if ( a2 )
return;
v2 = a1->m_storedLevels;
sub_100009900(__p, "get_friends");
cocos2d::CCDictionary::removeObjectForKey_1((int)v2, (char *)__p);
}
if ( v5 < 0 )
operator delete(__p[0]);
}