//
// GameLevelManager::resetStoredUserList from 0x8095d0 to 0x80974c (380 bytes)
//
// 9 xrefs:
// > GameLevelManager::invalidateUserList @ 0x809768
// > GameLevelManager::onFollowUserCompleted @ 0x80cde0
// > GameLevelManager::onAcceptFriendRequestCompleted @ 0x80e58c
// > GameLevelManager::onRemoveFriendCompleted @ 0x80e734
// > GameLevelManager::onRemoveFriendCompleted @ 0x80e7b8
// > GameLevelManager::onBlockUserCompleted @ 0x80e964
// > GameLevelManager::onBlockUserCompleted @ 0x80e99c
// > GameLevelManager::onBlockUserCompleted @ 0x80e9a8
// > ??> @ 0xe58e8
//
// 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::resetStoredUserList(__int64 a1, int a2)
{
__int64 v2; // x21
__int64 v4; // x21
__int64 v5; // x21
__int64 v6; // x21
__int64 v7; // [xsp+30h] [xbp+30h] BYREF
__int64 v8; // [xsp+38h] [xbp+38h]
void *v9; // [xsp+40h] [xbp+40h]
switch ( a2 )
{
case 0:
v6 = *(_QWORD *)(a1 + 1040);
v7 = 0;
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "get_friends", 0xBu);
cocos2d::CCDictionary::removeObjectForKey(v6, &v7);
goto LABEL_3;
case 1:
v5 = *(_QWORD *)(a1 + 1040);
v7 = 0;
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "get_blocked", 0xBu);
cocos2d::CCDictionary::removeObjectForKey(v5, &v7);
goto LABEL_3;
case 3:
v4 = *(_QWORD *)(a1 + 1040);
v7 = 0;
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "get_following", 0xDu);
cocos2d::CCDictionary::removeObjectForKey(v4, &v7);
goto LABEL_3;
case 4:
v2 = *(_QWORD *)(a1 + 1040);
v7 = 0;
v8 = 0;
v9 = nullptr;
std::string::__init(&v7, "get_muted", 9u);
cocos2d::CCDictionary::removeObjectForKey(v2, &v7);
LABEL_3:
if ( (v7 & 1) != 0 )
operator delete(v9);
break;
default:
return _stack_chk_guard;
}
return _stack_chk_guard;
}