//
// sub_1000C7938 from 0x1000c7938 to 0x1000c7a80 (328 bytes)
//
// 2 xrefs:
// > sub_1000C7EEC @ 0x1000c7f40
// > sub_1000C7EEC @ 0x1000c7f6c
//
// 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:50 +0000
//
bool __fastcall sub_1000C7938(__int64 a1)
{
_BOOL4 v2; // w19
__int64 v3; // x0
__int64 v4; // x0
const char *CString; // x0
__int64 v6; // x0
const std::string::value_type *v7; // x0
std::string *v8; // x1
void *__p[2]; // [xsp+30h] [xbp-70h] BYREF
char v11; // [xsp+47h] [xbp-59h]
void *v12[2]; // [xsp+48h] [xbp-58h] BYREF
char v13; // [xsp+5Fh] [xbp-41h]
std::string v14; // [xsp+60h] [xbp-40h] BYREF
std::string v15; // [xsp+78h] [xbp-28h] BYREF
v2 = sub_1000ADBAC(a1, "following");
if ( !v2 )
{
sub_1000ADC1C(a1, "following");
GameLevelManager::getBasePostString(v3, &v15);
v4 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v4);
v6 = sub_1003065B0("&ack=1&secret=%s", CString);
v7 = (const std::string::value_type *)cocos2d::CCString::getCString(v6);
std::string::append(&v15, v7);
sub_100009900(&v14, "https://www.boomlings.com/database/getGJFollowing.php");
if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v8 = &v15;
else
v8 = (std::string *)v15.__r_.__value_.__r.__words[0];
sub_100009900(v12, (char *)v8);
sub_100009900(__p, "following");
GameLevelManager::ProcessHttpRequest(a1, &v14, (char *)v12, (const std::string::value_type *)__p, 114);
if ( v11 < 0 )
operator delete(__p[0]);
if ( v13 < 0 )
operator delete(v12[0]);
if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v14.__r_.__value_.__l.__data_);
if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v15.__r_.__value_.__l.__data_);
}
return !v2;
}