//
// GameLevelManager::onDeleteFriendRequestCompleted from 0x80e20c to 0x80e3f0 (484 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85aaf4
// > ??> @ 0xc27b8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:54:48 +0000
//
__int64 __fastcall GameLevelManager::onDeleteFriendRequestCompleted(GameLevelManager *a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x23
unsigned int SplitIntFromKey; // w23
int v9; // w25
_BOOL4 v10; // w19
__int64 v11; // x0
__int64 v13; // x0
__int64 v14; // x1
__int64 v15; // x0
void (__fastcall ***v16)(_QWORD, _QWORD, __int64); // x0
__int64 v17; // [xsp+50h] [xbp+50h] BYREF
__int64 v18; // [xsp+58h] [xbp+58h]
void *v19; // [xsp+60h] [xbp+60h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v17 = 0;
v18 = 0;
v19 = nullptr;
v6 = strlen(v5);
v7 = *((_QWORD *)a1 + 136);
std::string::__init(&v17, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v17);
if ( (v17 & 1) != 0 )
operator delete(v19);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1u);
v9 = GameLevelManager::getSplitIntFromKey(a1, v5, 2u);
v17 = 0;
v18 = 0;
v19 = nullptr;
std::string::__init(&v17, &word_117CE08, 2u);
v10 = sub_7FEA60(a2, (__int64)&v17);
if ( (v17 & 1) != 0 )
{
operator delete(v19);
if ( v10 )
{
LABEL_7:
v11 = *((_QWORD *)a1 + 170);
if ( v11 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v11 + 8LL))(v11, SplitIntFromKey, 36);
return _stack_chk_guard;
}
}
else if ( v10 )
{
goto LABEL_7;
}
v13 = GameLevelManager::userInfoForAccountID((cocos2d::CCDictionary **)a1, SplitIntFromKey);
v14 = v13;
if ( v13 )
{
*(_DWORD *)(v13 + 688) = 0;
v15 = *((_QWORD *)a1 + 169);
if ( v15 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 16LL))(v15, v14);
}
v16 = *((void (__fastcall ****)(_QWORD, _QWORD, __int64))a1 + 170);
if ( v16 )
(**v16)(v16, SplitIntFromKey, 36);
if ( SplitIntFromKey == -1 )
GameLevelManager::invalidateRequests(a1, v9 != 0, 1u);
else
GameLevelManager::friendRequestWasRemoved(a1, SplitIntFromKey, v9 != 0);
return _stack_chk_guard;
}