//
// GameLevelManager::getUsers from 0x1000be568 to 0x1000be718 (432 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x1004985dc
//
// 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 10:58:46 +0000
//
void __fastcall GameLevelManager::getUsers(__int64 a1, __int64 a2)
{
char *Key; // x20
__int64 v5; // x0
const char *p_dst; // x22
int v7; // w23
int v8; // w21
__int64 v9; // x0
const char *CString; // x0
__int64 v11; // x0
const std::string::value_type *v12; // x0
std::string *v13; // x1
void *__p[2]; // [xsp+38h] [xbp-A8h] BYREF
char v15; // [xsp+4Fh] [xbp-91h]
void *v16[2]; // [xsp+50h] [xbp-90h] BYREF
char v17; // [xsp+67h] [xbp-79h]
std::string v18; // [xsp+68h] [xbp-78h] BYREF
__int128 __dst; // [xsp+80h] [xbp-60h] BYREF
__int64 v20; // [xsp+90h] [xbp-50h]
std::string v21; // [xsp+98h] [xbp-48h] BYREF
Key = (char *)GJSearchObject::getKey(a2);
if ( !sub_1000ADBAC(a1, Key) )
{
sub_1000ADC1C(a1, Key);
GameLevelManager::getBasePostString(v5, &v21);
if ( *(char *)(a2 + 343) < 0 )
{
sub_1000097D0(&__dst, *(void **)(a2 + 320), *(_QWORD *)(a2 + 328));
}
else
{
__dst = *(_OWORD *)(a2 + 320);
v20 = *(_QWORD *)(a2 + 336);
}
if ( v20 >= 0 )
p_dst = (const char *)&__dst;
else
p_dst = (const char *)__dst;
v7 = *(_DWORD *)(a2 + 400);
v8 = *(_DWORD *)(a2 + 392);
v9 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v9);
v11 = sub_1003065B0("&str=%s&total=%i&page=%i&secret=%s", p_dst, v7, v8, CString);
v12 = (const std::string::value_type *)cocos2d::CCString::getCString(v11);
std::string::append(&v21, v12);
if ( SHIBYTE(v20) < 0 )
operator delete((void *)__dst);
sub_100009900(&v18, "https://www.boomlings.com/database/getGJUsers20.php");
if ( (v21.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v13 = &v21;
else
v13 = (std::string *)v21.__r_.__value_.__r.__words[0];
sub_100009900(v16, (char *)v13);
sub_100009900(__p, Key);
GameLevelManager::ProcessHttpRequest(a1, &v18, (char *)v16, (const std::string::value_type *)__p, 47);
if ( v15 < 0 )
operator delete(__p[0]);
if ( v17 < 0 )
operator delete(v16[0]);
if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v18.__r_.__value_.__l.__data_);
if ( SHIBYTE(v21.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v21.__r_.__value_.__l.__data_);
}
}