//
// GameLevelManager::getStoredUserList from 0x1401630a0 to 0x140163226 (390 bytes)
//
// 4 xrefs:
// > FriendsProfilePage::init @ 0x1401403f8
// > GameLevelManager::onRemoveFriendCompleted @ 0x140161e3c
// > GameLevelManager::removeUserFromList @ 0x140162900
// > ??> @ 0x1406cac20
//
// 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
//
// Hidden C++ exception states: #wind=1
cocos2d::CCArray *GameLevelManager::getStoredUserList(GameLevelManager *a1, UserListType a2)
{
cocos2d::CCArray *v3; // rbx
void *v4; // rcx
void *Block[2]; // [rsp+20h] [rbp-38h] BYREF
__int64 v6; // [rsp+30h] [rbp-28h]
unsigned __int64 v7; // [rsp+38h] [rbp-20h]
if ( a2 )
{
if ( a2 != Blocked )
return nullptr;
HIWORD(Block[1]) = 0;
v6 = 11;
v7 = 15;
qmemcpy(Block, "get_blocke", 10);
*(_DWORD *)((char *)&Block[1] + 2) = (unsigned __int8)aGetBlocked[10];
v3 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_storedLevels, Block);
if ( v7 > 0xF )
{
v4 = Block[0];
if ( v7 + 1 >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
LABEL_12:
j_j_free(v4);
}
}
else
{
HIWORD(Block[1]) = 0;
v6 = 11;
v7 = 15;
qmemcpy(Block, "get_friend", 10);
*(_DWORD *)((char *)&Block[1] + 2) = (unsigned __int8)aGetFriends[10];
v3 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_storedLevels, Block);
if ( v7 > 0xF )
{
v4 = Block[0];
if ( v7 + 1 >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
goto LABEL_12;
}
}
return v3;
}