//
// sub_1000B79EC from 0x1000b79ec to 0x1000b7d0c (800 bytes)
//
// 1 xrefs:
// > sub_1004D65A0 @ 0x1004d691c
//
// 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:42 +0000
//
void __fastcall sub_1000B79EC(
__int64 a1,
__int64 a2,
__int64 a3,
__int64 a4,
int a5,
int a6,
int a7,
int a8,
__int64 a9)
{
void *v17; // x0
__int64 v18; // x0
size_t v19; // x0
const char *v20; // x8
std::string *p_dst; // x9
std::string *v22; // x10
const char *v23; // x11
__int64 v24; // x0
const std::string::value_type *CString; // x0
__int64 v26; // x0
const std::string::value_type *v27; // x0
std::string *v28; // x1
void *v29[2]; // [xsp+40h] [xbp-140h] BYREF
__int64 v30; // [xsp+50h] [xbp-130h]
void *v31[2]; // [xsp+58h] [xbp-128h] BYREF
char v32; // [xsp+6Fh] [xbp-111h]
std::string v33; // [xsp+70h] [xbp-110h] BYREF
std::string v34; // [xsp+88h] [xbp-F8h] BYREF
std::string v35; // [xsp+A0h] [xbp-E0h] BYREF
std::string __p; // [xsp+C0h] [xbp-C0h] BYREF
std::string v37; // [xsp+E0h] [xbp-A0h] BYREF
std::string __dst; // [xsp+100h] [xbp-80h] BYREF
__int128 v39; // [xsp+118h] [xbp-68h] BYREF
__int64 v40; // [xsp+128h] [xbp-58h]
sub_100009900(&v39, "es_upload");
if ( !sub_1000D9098(a1 + 720, &v39) )
{
v17 = (void *)sub_1000D8F30(a1 + 720, &v39, &v39);
if ( *(char *)(a2 + 23) < 0 )
v17 = sub_1000097D0(&__dst, *(void **)a2, *(_QWORD *)(a2 + 8));
else
__dst = *(std::string *)a2;
if ( *(char *)(a3 + 23) < 0 )
v17 = sub_1000097D0(&v37, *(void **)a3, *(_QWORD *)(a3 + 8));
else
v37 = *(std::string *)a3;
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
v17 = sub_1000097D0(&__p, __dst.__r_.__value_.__l.__data_, __dst.__r_.__value_.__l.__size_);
else
__p = __dst;
v18 = GameLevelManager::removeDelimiterChars((__int64)v17, &__p, 0);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
if ( SHIBYTE(v37.__r_.__value_.__r.__words[2]) < 0 )
v18 = (__int64)sub_1000097D0(&v35, v37.__r_.__value_.__l.__data_, v37.__r_.__value_.__l.__size_);
else
v35 = v37;
v19 = GameLevelManager::removeDelimiterChars(v18, &v35, 0);
if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v35.__r_.__value_.__l.__data_);
GameLevelManager::getBasePostString(v19, &v34);
v20 = (const char *)a9;
p_dst = &__dst;
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
v22 = &v37;
if ( (v37.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
v22 = (std::string *)v37.__r_.__value_.__r.__words[0];
if ( *(char *)(a4 + 23) >= 0 )
v23 = (const char *)a4;
else
v23 = *(const char **)a4;
if ( *(char *)(a9 + 23) < 0 )
v20 = *(const char **)a9;
v24 = sub_1003065B0(
"&soundID=%i&soundName=%s&soundDesc=%s&soundData=%s&actionCount=%i&soundCount=%i&unlisted=%i&emote=%s",
a7,
(const char *)p_dst,
(const char *)v22,
v23,
a5,
a6,
a8,
v20);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v24);
std::string::append(&v34, CString);
std::string::append(&v34, "&secret=");
v26 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
v27 = (const std::string::value_type *)cocos2d::CCString::getCString(v26);
std::string::append(&v34, v27);
sub_100009900(&v33, "https://www.boomlings.com/database/uploadGJEditorSound.php");
if ( (v34.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v28 = &v34;
else
v28 = (std::string *)v34.__r_.__value_.__r.__words[0];
sub_100009900(v31, (char *)v28);
if ( SHIBYTE(v40) < 0 )
{
sub_1000097D0(v29, (void *)v39, *((unsigned __int64 *)&v39 + 1));
}
else
{
*(_OWORD *)v29 = v39;
v30 = v40;
}
GameLevelManager::ProcessHttpRequest(a1, &v33, (char *)v31, (const std::string::value_type *)v29, 69);
if ( SHIBYTE(v30) < 0 )
operator delete(v29[0]);
if ( v32 < 0 )
operator delete(v31[0]);
if ( SHIBYTE(v33.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v33.__r_.__value_.__l.__data_);
if ( SHIBYTE(v34.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v34.__r_.__value_.__l.__data_);
if ( SHIBYTE(v37.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v37.__r_.__value_.__l.__data_);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}
if ( SHIBYTE(v40) < 0 )
operator delete((void *)v39);
}