//
// GameLevelManager::invalidateRequests from 0x4b019c to 0x4b0286 (234 bytes)
//
// 6 xrefs:
// > GameLevelManager::onDeleteFriendRequestCompleted @ 0x4c264c
// > FRequestProfilePage::onUpdate @ 0x5f10ce
// > ProfilePage::onUpdate @ 0x5f65c2
// > ProfilePage::onUpdate @ 0x5f65ce
// > ProfilePage::init @ 0x5faeaa
// > ProfilePage::init @ 0x5faeb6
//
// 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:02 +0000
//
cocos2d::CCString *__fastcall GameLevelManager::invalidateRequests(
cocos2d::CCDictionary **this,
const char *a2,
int a3)
{
int v3; // r8
const char *FriendRequestKey; // r0
size_t v7; // r0
char *v8; // r1
int v9; // r2
cocos2d::CCString *result; // r0
const char *v12; // [sp+Ch] [bp-28h]
int v13; // [sp+Ch] [bp-28h]
int v14[2]; // [sp+14h] [bp-20h] BYREF
char *v15; // [sp+1Ch] [bp-18h]
int v16[3]; // [sp+20h] [bp-14h] BYREF
v3 = 0;
do
{
memset(v16, 0, sizeof(v16));
std::string::__init(v16, &unk_B6B226, 0);
FriendRequestKey = (const char *)GameLevelManager::getFriendRequestKey(
(int)this,
(int)a2,
v3,
(unsigned __int8 *)v16,
0);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v12 = FriendRequestKey;
v7 = strlen(FriendRequestKey);
std::string::__init(v14, v12, v7);
std::string::~string((int)v16);
if ( (v14[0] & 1) != 0 )
v8 = v15;
else
v8 = (char *)v14 + 1;
if ( GameLevelManager::getStoredOnlineLevels((GameLevelManager *)this, v8) )
{
cocos2d::CCDictionary::removeObjectForKey(*(this + 181));
v9 = 1;
}
else
{
v9 = 0;
}
v13 = v9;
std::string::~string((int)v14);
++v3;
}
while ( v13 );
result = (cocos2d::CCString *)GameLevelManager::purgeFriendRequestSearchCache(this, a2, 0);
if ( !a2 )
result = GameLevelManager::dropIgnoredRequestLists(this);
if ( a3 )
{
result = *(this + 224);
if ( result )
return (cocos2d::CCString *)(*(int (__fastcall **)(cocos2d::CCString *, const char *))(*(_DWORD *)result + 12))(
result,
a2);
}
return result;
}