//
// GameLevelManager::followUser from 0x10054e6f0 to 0x10054e7f4 (260 bytes)
//
// 2 xrefs:
// > sub_10053CFE0 @ 0x10053d0c3
// > ProfilePage::loadPageFromUserInfo @ 0x10089f4a8
//
// 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:32:02 +0000
//
void __fastcall GameLevelManager::followUser(__int64 a1)
{
__int64 v1; // r14
char v2; // al
__int64 v3; // rax
const char *CString; // r15
size_t v5; // rax
size_t v6; // r12
char *v7; // r13
size_t v8; // rbx
__int64 v9; // [rsp+0h] [rbp-60h]
__int16 v10; // [rsp+8h] [rbp-58h] BYREF
char v11; // [rsp+Ah] [rbp-56h]
void *v12; // [rsp+18h] [rbp-48h]
_QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF
void *__p; // [rsp+30h] [rbp-30h]
v1 = *(_QWORD *)(a1 + 776);
v10 = 12546;
v11 = 0;
v2 = sub_10088E600(&v10);
v3 = sub_10088E820("%i", v2);
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = strlen(CString);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v6 = v5;
if ( v5 >= 0x17 )
{
v8 = 26;
if ( (v5 | 7) != 0x17 )
v8 = (v5 | 7) + 1;
v7 = (char *)operator new(v8);
__p = v7;
__dst[0] = v8 | 1;
__dst[1] = v6;
goto LABEL_8;
}
LOBYTE(__dst[0]) = 2 * v5;
v7 = (char *)__dst + 1;
if ( v5 )
LABEL_8:
memmove(v7, CString, v6);
v7[v6] = 0;
cocos2d::CCDictionary::setObject(v1, v9, (char *)__dst);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
if ( (v10 & 1) != 0 )
operator delete(v12);
}