//
// sub_1000B8C0C from 0x1000b8c0c to 0x1000b8d50 (324 bytes)
//
// 2 xrefs:
// > GauntletSelectLayer::init @ 0x100254ae4
// > sub_100254C98 @ 0x100254d3c
//
// 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_1000B8C0C(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
const char *CString; // x0
__int64 v5; // x0
const std::string::value_type *v6; // x0
std::string *v7; // x1
void *__p[2]; // [xsp+30h] [xbp-70h] BYREF
char v9; // [xsp+47h] [xbp-59h]
void *v10[2]; // [xsp+48h] [xbp-58h] BYREF
char v11; // [xsp+5Fh] [xbp-41h]
std::string v12; // [xsp+60h] [xbp-40h] BYREF
std::string v13; // [xsp+78h] [xbp-28h] BYREF
if ( !sub_1000ADBAC(a1, "get_gauntlets") )
{
sub_1000ADC1C(a1, "get_gauntlets");
GameLevelManager::getBasePostString(v2, &v13);
v3 = sub_1003065B0("%c%s%s%c%c%s", 87, "mfd", "2893", 103, 98, "7");
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = sub_1003065B0("&secret=%s&special=1&vkey=%i", CString, 51);
v6 = (const std::string::value_type *)cocos2d::CCString::getCString(v5);
std::string::append(&v13, v6);
sub_100009900(&v12, "https://www.boomlings.com/database/getGJGauntlets21.php");
if ( (v13.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v7 = &v13;
else
v7 = (std::string *)v13.__r_.__value_.__r.__words[0];
sub_100009900(v10, (char *)v7);
sub_100009900(__p, "get_gauntlets");
GameLevelManager::ProcessHttpRequest(a1, &v12, (char *)v10, (const std::string::value_type *)__p, 58);
if ( v9 < 0 )
operator delete(__p[0]);
if ( v11 < 0 )
operator delete(v10[0]);
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v13.__r_.__value_.__l.__data_);
}
}