//
// GameLevelManager::getStoredUserList from 0x100555da0 to 0x100555e33 (147 bytes)
//
// 2 xrefs:
// > GameLevelManager::removeUserFromList @ 0x100556328
// > FriendsProfilePage::init @ 0x100658263
//
// 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
//
cocos2d::CCArray *__fastcall GameLevelManager::getStoredUserList(GameLevelManager *a1, UserListType a2)
{
cocos2d::CCDictionary *v2; // rdi
cocos2d::CCArray *result; // rax
cocos2d::CCDictionary *m_storedLevels; // rdi
cocos2d::CCArray *v5; // rbx
char v6; // [rsp+0h] [rbp-20h] BYREF
void *v7[3]; // [rsp+1h] [rbp-1Fh] BYREF
if ( a2 == Blocked )
{
m_storedLevels = a1->m_storedLevels;
v6 = 22;
strcpy((char *)v7, "get_blocked");
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey_1((__int64)m_storedLevels, &v6);
}
else
{
if ( a2 )
return nullptr;
v2 = a1->m_storedLevels;
v6 = 22;
strcpy((char *)v7, "get_friends");
result = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey_1((__int64)v2, &v6);
}
if ( (v6 & 1) != 0 )
{
v5 = result;
operator delete(*(void **)((char *)&v7[1] + 7));
return v5;
}
return result;
}