//
// sub_1000C9D68 from 0x1000c9d68 to 0x1000ca010 (680 bytes)
//
// 3 xrefs:
// > sub_1000C9D5C @ 0x1000c9d64
// > sub_10024CA00 @ 0x10024cae4
// > sub_100378994 @ 0x1003789d4
//
// 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:51 +0000
//
__int64 __fastcall sub_1000C9D68(__int64 a1, int a2, __int64 a3, int a4)
{
__int64 v5; // x20
__int64 v8; // x0
int v9; // w8
__int64 v10; // x0
char *CString; // x21
__int64 v12; // x24
__int64 v13; // x0
__int64 v14; // x24
__int64 result; // x0
__int64 v16; // x24
__int64 v17; // x25
__int64 v18; // x0
__int64 v19; // x0
const char *v20; // x0
__int64 v21; // x0
const std::string::value_type *v22; // x0
__int64 i; // x22
__int64 v24; // x25
__int64 v25; // x0
const std::string::value_type *v26; // x0
std::string *v27; // x1
void *__p[2]; // [xsp+30h] [xbp-A0h] BYREF
char v29; // [xsp+47h] [xbp-89h]
void *v30[2]; // [xsp+48h] [xbp-88h] BYREF
char v31; // [xsp+5Fh] [xbp-71h]
std::string v32; // [xsp+60h] [xbp-70h] BYREF
std::string v33; // [xsp+78h] [xbp-58h] BYREF
v5 = a3;
if ( a3 && (unsigned int)sub_1002E757C(a3) == 1 )
{
v8 = sub_1002E75A0(v5, 0);
v5 = 0;
a2 = *(_DWORD *)(v8 + 376);
}
if ( a2 <= 0 )
{
if ( !v5 )
return 0;
result = sub_1002E757C(v5);
if ( !(_DWORD)result )
return result;
}
if ( v5 )
v9 = -1;
else
v9 = a2;
v10 = sub_1003065B0("delFriendReq_%i_%i", v9, a4);
CString = (char *)cocos2d::CCString::getCString(v10);
v12 = *(_QWORD *)(a1 + 1088);
sub_100009900(&v33, CString);
v13 = cocos2d::CCDictionary::objectForKey(v12, &v33);
v14 = v13;
if ( (SHIBYTE(v33.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 )
{
if ( !v13 )
goto LABEL_16;
return 0;
}
operator delete(v33.__r_.__value_.__l.__data_);
if ( v14 )
return 0;
LABEL_16:
v16 = *(_QWORD *)(a1 + 1088);
v17 = cocos2d::CCNode::create(v13);
sub_100009900(&v33, CString);
v18 = cocos2d::CCDictionary::setObject(v16, v17, &v33);
if ( SHIBYTE(v33.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v33.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString(v18, &v33);
v19 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
v20 = (const char *)cocos2d::CCString::getCString(v19);
v21 = sub_1003065B0("&targetAccountID=%i&isSender=%i&secret=%s", a2, a4, v20);
v22 = (const std::string::value_type *)cocos2d::CCString::getCString(v21);
std::string::append(&v33, v22);
if ( v5 )
{
std::string::append(&v33, "&accounts=");
for ( i = 0; (unsigned int)i < (unsigned int)sub_1002E757C(v5); i = (unsigned int)(i + 1) )
{
v24 = sub_1002E75A0(v5, i);
if ( (_DWORD)i )
std::string::append(&v33, ",");
v25 = sub_1003065B0("%i", *(_DWORD *)(v24 + 376));
v26 = (const std::string::value_type *)cocos2d::CCString::getCString(v25);
std::string::append(&v33, v26);
}
}
sub_100009900(&v32, "https://www.boomlings.com/database/deleteGJFriendRequests20.php");
if ( (v33.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v27 = &v33;
else
v27 = (std::string *)v33.__r_.__value_.__r.__words[0];
sub_100009900(v30, (char *)v27);
sub_100009900(__p, CString);
GameLevelManager::ProcessHttpRequest(a1, &v32, (char *)v30, (const std::string::value_type *)__p, 36);
if ( v29 < 0 )
operator delete(__p[0]);
if ( v31 < 0 )
operator delete(v30[0]);
if ( SHIBYTE(v32.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v32.__r_.__value_.__l.__data_);
if ( SHIBYTE(v33.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v33.__r_.__value_.__l.__data_);
return 1;
}