//
// GameLevelManager::resetStoredUserList from 0x4af210 to 0x4af2e2 (210 bytes)
//
// 7 xrefs:
// > GameLevelManager::invalidateUserList @ 0x4af300
// > GameLevelManager::onFollowUserCompleted @ 0x4b1c36
// > GameLevelManager::onAcceptFriendRequestCompleted @ 0x4c2762
// > GameLevelManager::onRemoveFriendCompleted @ 0x4c2896
// > GameLevelManager::onBlockUserCompleted @ 0x4c2998
// > GameLevelManager::onBlockUserCompleted @ 0x4c29bc
// > GameLevelManager::onBlockUserCompleted @ 0x4c29c4
//
// 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
//
int __fastcall GameLevelManager::resetStoredUserList(int result, int a2, int a3, int a4)
{
cocos2d::CCDictionary *v4; // r6
cocos2d::CCDictionary *v5; // r6
cocos2d::CCDictionary *v6; // r6
cocos2d::CCDictionary *v7; // r6
int v8; // [sp+0h] [bp-10h] BYREF
int v9; // [sp+4h] [bp-Ch]
int v10; // [sp+8h] [bp-8h]
int v11; // [sp+Ch] [bp-4h]
v8 = result;
v9 = a2;
v10 = a3;
v11 = a4;
switch ( a2 )
{
case 0:
v4 = *(cocos2d::CCDictionary **)(result + 724);
v8 = 0;
v9 = 0;
v10 = 0;
std::string::__init(&v8, "get_friends", 0xBu);
cocos2d::CCDictionary::removeObjectForKey(v4);
goto LABEL_6;
case 1:
v5 = *(cocos2d::CCDictionary **)(result + 724);
v8 = 0;
v9 = 0;
v10 = 0;
std::string::__init(&v8, "get_blocked", 0xBu);
cocos2d::CCDictionary::removeObjectForKey(v5);
goto LABEL_6;
case 3:
v6 = *(cocos2d::CCDictionary **)(result + 724);
v8 = 0;
v9 = 0;
v10 = 0;
std::string::__init(&v8, "get_following", 0xDu);
cocos2d::CCDictionary::removeObjectForKey(v6);
goto LABEL_6;
case 4:
v7 = *(cocos2d::CCDictionary **)(result + 724);
v8 = 0;
v9 = 0;
v10 = 0;
std::string::__init(&v8, "get_muted", 9u);
cocos2d::CCDictionary::removeObjectForKey(v7);
LABEL_6:
result = std::string::~string((int)&v8);
break;
default:
return result;
}
return result;
}