//
// GameLevelManager::invalidateRequests from 0x3c2dbc to 0x3c2e4a (142 bytes)
//
// 6 xrefs:
// > GameLevelManager::onDeleteFriendRequestCompleted @ 0x3c2f14
// > FRequestProfilePage::onUpdate @ 0x4c221a
// > ProfilePage::onUpdate @ 0x4c72ae
// > ProfilePage::onUpdate @ 0x4c72ba
// > ProfilePage::init @ 0x4c7bc4
// > ProfilePage::init @ 0x4c7bd0
//
// 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
//
void GameLevelManager::invalidateRequests(GameLevelManager *a1, bool a2, bool a3)
{
_BOOL4 v4; // r9
_BOOL4 v5; // r10
int v6; // r8
char *FriendRequestKey; // r0
int v8; // r5
FriendRequestDelegate *m_friendRequestDelegate; // r0
char *v10; // [sp+8h] [bp+4h] BYREF
v4 = a2;
v5 = a3;
v6 = 0;
do
{
FriendRequestKey = (char *)GameLevelManager::getFriendRequestKey(a1, v4, v6);
sub_776584((int)&v10, FriendRequestKey);
if ( GameLevelManager::getStoredOnlineLevels(a1, v10) )
{
cocos2d::CCDictionary::removeObjectForKey(a1->m_storedLevels);
v8 = 1;
}
else
{
v8 = 0;
}
++v6;
sub_774008(&v10);
}
while ( v8 );
if ( v5 )
{
m_friendRequestDelegate = a1->m_friendRequestDelegate;
if ( m_friendRequestDelegate )
m_friendRequestDelegate->forceReloadRequests(m_friendRequestDelegate, v4);
}
}