//
// GameLevelManager::onUploadFriendRequestCompleted from 0x80e068 to 0x80e20c (420 bytes)
//
// 2 xrefs:
// > GameLevelManager::handleIt @ 0x85bec8
// > ??> @ 0xffd78
//
// 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::onUploadFriendRequestCompleted(GameLevelManager *a1, __int64 a2, char *a3)
{
char *v5; // x19
size_t v6; // x0
__int64 v7; // x23
unsigned int SplitIntFromKey; // w23
_BOOL4 v9; // w22
__int64 v10; // x0
__int64 v12; // x0
__int64 v13; // x1
__int64 v14; // x0
void (__fastcall ***v15)(_QWORD, _QWORD, __int64); // x0
__int64 v16; // [xsp+40h] [xbp+40h] BYREF
__int64 v17; // [xsp+48h] [xbp+48h]
void *v18; // [xsp+50h] [xbp+50h]
v5 = a3 + 1;
if ( (*a3 & 1) != 0 )
v5 = *((char **)a3 + 2);
v16 = 0;
v17 = 0;
v18 = nullptr;
v6 = strlen(v5);
v7 = *((_QWORD *)a1 + 136);
std::string::__init(&v16, v5, v6);
cocos2d::CCDictionary::removeObjectForKey(v7, &v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(a1, v5, 1u);
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, &word_117CE08, 2u);
v9 = sub_7FEA60(a2, (__int64)&v16);
if ( (v16 & 1) != 0 )
{
operator delete(v18);
if ( v9 )
goto LABEL_7;
}
else if ( v9 )
{
LABEL_7:
v10 = *((_QWORD *)a1 + 170);
if ( v10 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v10 + 8LL))(v10, SplitIntFromKey, 35);
GameLevelManager::resetTimerForKey(a1, v5);
return _stack_chk_guard;
}
v12 = GameLevelManager::userInfoForAccountID((cocos2d::CCDictionary **)a1, SplitIntFromKey);
v13 = v12;
if ( v12 )
{
*(_DWORD *)(v12 + 688) = 4;
v14 = *((_QWORD *)a1 + 169);
if ( v14 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v14 + 16LL))(v14, v13);
}
v15 = *((void (__fastcall ****)(_QWORD, _QWORD, __int64))a1 + 170);
if ( v15 )
(**v15)(v15, SplitIntFromKey, 35);
return _stack_chk_guard;
}