//
// sub_1000C6E44 from 0x1000c6e44 to 0x1000c6ff0 (428 bytes)
//
// 2 xrefs:
// > InvitesPopup::init @ 0x10050eacc
// > InvitesPopup::threadUpdateFailed @ 0x100510ac8
//
// 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:49 +0000
//
bool __fastcall sub_1000C6E44(__int64 a1)
{
__int64 v2; // x19
__int64 v3; // x0
__int64 v4; // x19
__int64 v5; // x21
__int64 v6; // x22
__int64 v7; // x0
__int64 v8; // x0
const char *CString; // x0
__int64 v10; // x0
const std::string::value_type *v11; // x0
std::string *v12; // x1
void *__p[2]; // [xsp+30h] [xbp-80h] BYREF
char v15; // [xsp+47h] [xbp-69h]
void *v16[2]; // [xsp+48h] [xbp-68h] BYREF
char v17; // [xsp+5Fh] [xbp-51h]
std::string v18; // [xsp+60h] [xbp-50h] BYREF
std::string v19; // [xsp+78h] [xbp-38h] BYREF
v2 = *(_QWORD *)(a1 + 1088);
sub_100009900(&v19, "threadInvites");
v3 = cocos2d::CCDictionary::objectForKey(v2, &v19);
v4 = v3;
if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 )
{
operator delete(v19.__r_.__value_.__l.__data_);
if ( v4 )
return v4 == 0;
}
else if ( v3 )
{
return v4 == 0;
}
v5 = *(_QWORD *)(a1 + 1088);
v6 = cocos2d::CCNode::create(v3);
sub_100009900(&v19, "threadInvites");
v7 = cocos2d::CCDictionary::setObject(v5, v6, &v19);
if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v19.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString(v7, &v19);
v8 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v8);
v10 = sub_1003065B0("&secret=%s", CString);
v11 = (const std::string::value_type *)cocos2d::CCString::getCString(v10);
std::string::append(&v19, v11);
sub_100009900(&v18, "https://www.boomlings.com/database/getGJThreadInvites.php");
if ( (v19.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v12 = &v19;
else
v12 = (std::string *)v19.__r_.__value_.__r.__words[0];
sub_100009900(v16, (char *)v12);
sub_100009900(__p, "threadInvites");
GameLevelManager::ProcessHttpRequest(a1, &v18, (char *)v16, (const std::string::value_type *)__p, 98);
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(v19.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v19.__r_.__value_.__l.__data_);
return v4 == 0;
}