//
// GameLevelManager::onUploadFriendRequestCompleted from 0x1005284c0 to 0x100528670 (432 bytes)
//
// 1 xrefs:
// > GameLevelManager::handleIt @ 0x1005201d2
//
// This function is hookable on this platform (idp: pc, 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:31:47 +0000
//
void __fastcall GameLevelManager::onUploadFriendRequestCompleted(_QWORD *a1, unsigned __int8 *a2, __int64 a3)
{
const char *v3; // r14
__int64 v4; // r12
size_t v5; // rax
size_t v6; // r13
char *v7; // rbx
size_t v8; // r12
__int64 v9; // rdi
unsigned int SplitIntFromKey; // r12d
const void *v11; // rdi
unsigned __int64 v12; // rcx
size_t v13; // rdx
__int64 v14; // rdi
__int64 v15; // rax
__int64 v16; // rdi
void (__fastcall ***v17)(_QWORD, _QWORD, __int64); // rdi
__int64 v18; // [rsp+0h] [rbp-50h]
_QWORD __dst[2]; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
if ( (*(_BYTE *)a3 & 1) != 0 )
v3 = *(const char **)(a3 + 16);
else
v3 = (const char *)(a3 + 1);
v4 = a1[136];
v5 = strlen(v3);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v6 = v5;
if ( v5 >= 0x17 )
{
v18 = a1[136];
v8 = 26;
if ( (v5 | 7) != 0x17 )
v8 = (v5 | 7) + 1;
v7 = (char *)operator new(v8);
__p = v7;
__dst[0] = v8 + 1;
v4 = v18;
__dst[1] = v6;
goto LABEL_11;
}
v7 = (char *)__dst + 1;
LOBYTE(__dst[0]) = 2 * v5;
if ( v5 )
LABEL_11:
memmove(v7, v3, v6);
v7[v6] = 0;
v9 = v4;
cocos2d::CCDictionary::removeObjectForKey(v4, (char *)__dst);
if ( (__dst[0] & 1) != 0 )
{
v9 = (__int64)__p;
operator delete(__p);
}
SplitIntFromKey = GameLevelManager::getSplitIntFromKey(v9, v3, 1);
*(_WORD *)((char *)__dst + 1) = 12589;
BYTE3(__dst[0]) = 0;
v11 = a2 + 1;
v12 = *a2 >> 1;
if ( (*a2 & 1) != 0 )
{
v11 = *((const void **)a2 + 2);
v12 = *((_QWORD *)a2 + 1);
}
v13 = 2;
if ( v12 < 2 )
v13 = v12;
if ( (v12 != 2) | (memcmp(v11, (char *)__dst + 1, v13) != 0) )
{
v15 = cocos2d::CCDictionary::objectForKey_1(a1[140], (int)SplitIntFromKey);
if ( v15 )
{
*(_DWORD *)(v15 + 688) = 4;
v16 = a1[169];
if ( v16 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v16 + 16LL))(v16, v15);
}
v17 = (void (__fastcall ***)(_QWORD, _QWORD, __int64))a1[170];
if ( v17 )
(**v17)(v17, SplitIntFromKey, 35);
}
else
{
v14 = a1[170];
if ( v14 )
(*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)v14 + 8LL))(v14, SplitIntFromKey, 35);
GameLevelManager::resetTimerForKey(a1, v3);
}
}