//
// sub_1000B3ACC from 0x1000b3acc to 0x1000b3e14 (840 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onEnterTransitionDidFinish @ 0x10002dda0
// > sub_1000B3F20 @ 0x1000b3f64
//
// 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:40 +0000
//
void __fastcall sub_1000B3ACC(__int64 a1, int a2, __int64 a3, int a4)
{
std::string *v7; // x0
__int128 v8; // q0
char *v9; // x1
char *v10; // x1
__int64 v11; // x0
std::string *v12; // x0
__int128 v13; // q0
std::string *v14; // x0
__int128 v15; // q0
void **v16; // x1
std::string::size_type v17; // x2
std::string *v18; // x0
__int128 v19; // q0
const std::string::value_type *v20; // x1
std::string::size_type v21; // x2
std::string *v22; // x0
__int64 v23; // x0
__int64 v24; // x0
const std::string::value_type *CString; // x0
std::string *v26; // x1
char *v27; // x1
void *v28[2]; // [xsp+38h] [xbp-138h] BYREF
char v29; // [xsp+4Fh] [xbp-121h]
void *v30[2]; // [xsp+50h] [xbp-120h] BYREF
char v31; // [xsp+67h] [xbp-109h]
std::string v32; // [xsp+68h] [xbp-108h] BYREF
void *__p[2]; // [xsp+80h] [xbp-F0h] BYREF
unsigned __int8 v34; // [xsp+97h] [xbp-D9h]
std::string v35; // [xsp+98h] [xbp-D8h] BYREF
std::string v36; // [xsp+B0h] [xbp-C0h] BYREF
std::string v37; // [xsp+D0h] [xbp-A0h] BYREF
__int128 v38; // [xsp+F0h] [xbp-80h] BYREF
signed __int64 v39; // [xsp+100h] [xbp-70h]
std::string v40; // [xsp+108h] [xbp-68h] BYREF
__int128 v41; // [xsp+120h] [xbp-50h] BYREF
signed __int64 v42; // [xsp+130h] [xbp-40h]
unsigned int v43; // [xsp+13Ch] [xbp-34h] BYREF
v43 = a2;
if ( a2 >= 1 && !sub_100019268((_QWORD *)(a1 + 400), (int *)&v43) && !sub_100019268((_QWORD *)(a1 + 320), (int *)&v43) )
{
GameToolbox::intToString(v43, &v40);
v7 = std::string::insert(&v40, 0, "GetDeathData_");
v8 = *(_OWORD *)&v7->__r_.__value_.__l.__data_;
v42 = v7->__r_.__value_.__r.__words[2];
v41 = v8;
v7->__r_.__value_.__l.__size_ = 0;
v7->__r_.__value_.__r.__words[2] = 0;
v7->__r_.__value_.__r.__words[0] = 0;
if ( SHIBYTE(v40.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v40.__r_.__value_.__l.__data_);
if ( v42 >= 0 )
v9 = (char *)&v41;
else
v9 = (char *)v41;
if ( !sub_1000ADBAC(a1, v9) )
{
if ( v42 >= 0 )
v10 = (char *)&v41;
else
v10 = (char *)v41;
sub_1000ADC1C(a1, v10);
GameLevelManager::getBasePostString(v11, &v40);
GameToolbox::intToString(v43, &v35);
v12 = std::string::insert(&v35, 0, "&levelID=");
v13 = *(_OWORD *)&v12->__r_.__value_.__l.__data_;
v36.__r_.__value_.__r.__words[2] = v12->__r_.__value_.__r.__words[2];
*(_OWORD *)&v36.__r_.__value_.__l.__data_ = v13;
v12->__r_.__value_.__l.__size_ = 0;
v12->__r_.__value_.__r.__words[2] = 0;
v12->__r_.__value_.__r.__words[0] = 0;
v14 = std::string::append(&v36, "&levelVersion=");
v15 = *(_OWORD *)&v14->__r_.__value_.__l.__data_;
v37.__r_.__value_.__r.__words[2] = v14->__r_.__value_.__r.__words[2];
*(_OWORD *)&v37.__r_.__value_.__l.__data_ = v15;
v14->__r_.__value_.__l.__size_ = 0;
v14->__r_.__value_.__r.__words[2] = 0;
v14->__r_.__value_.__r.__words[0] = 0;
GameToolbox::intToString(a3, __p);
if ( (v34 & 0x80u) == 0 )
v16 = __p;
else
v16 = (void **)__p[0];
if ( (v34 & 0x80u) == 0 )
v17 = v34;
else
v17 = (std::string::size_type)__p[1];
v18 = std::string::append(&v37, (const std::string::value_type *)v16, v17);
v19 = *(_OWORD *)&v18->__r_.__value_.__l.__data_;
v39 = v18->__r_.__value_.__r.__words[2];
v38 = v19;
v18->__r_.__value_.__l.__size_ = 0;
v18->__r_.__value_.__r.__words[2] = 0;
v18->__r_.__value_.__r.__words[0] = 0;
if ( v39 >= 0 )
v20 = (const std::string::value_type *)&v38;
else
v20 = (const std::string::value_type *)v38;
if ( v39 >= 0 )
v21 = HIBYTE(v39);
else
v21 = *((_QWORD *)&v38 + 1);
v22 = std::string::append(&v40, v20, v21);
if ( SHIBYTE(v39) < 0 )
operator delete((void *)v38);
if ( (char)v34 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v37.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v37.__r_.__value_.__l.__data_);
if ( SHIBYTE(v36.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v36.__r_.__value_.__l.__data_);
if ( SHIBYTE(v35.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v35.__r_.__value_.__l.__data_);
if ( a4 )
{
v23 = GJAccountManager::sharedState(v22);
if ( *(_DWORD *)(v23 + 352) > *(_DWORD *)(v23 + 356) )
std::string::append(&v40, "&refresh=1");
}
std::string::append(&v40, "&secret=");
v24 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v24);
std::string::append(&v40, CString);
sub_100009900(&v32, "https://www.boomlings.com/database/getGJDeathData.php");
if ( (v40.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v26 = &v40;
else
v26 = (std::string *)v40.__r_.__value_.__r.__words[0];
sub_100009900(v30, (char *)v26);
if ( v42 >= 0 )
v27 = (char *)&v41;
else
v27 = (char *)v41;
sub_100009900(v28, v27);
GameLevelManager::ProcessHttpRequest(a1, &v32, (char *)v30, (const std::string::value_type *)v28, 106);
if ( v29 < 0 )
operator delete(v28[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(v40.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v40.__r_.__value_.__l.__data_);
}
if ( SHIBYTE(v42) < 0 )
operator delete((void *)v41);
}
}