//
// sub_100267118 from 0x100267118 to 0x1002671b4 (156 bytes)
//
// 1 xrefs:
// > GJMultiplayerManager::uploadComment @ 0x100267704
//
// 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 11:01:41 +0000
//
void __usercall sub_100267118(std::string *a1@)
{
__int64 v2; // x0
std::string *v3; // x0
__int64 v4; // x0
void **v5; // x1
void *__p[2]; // [xsp+0h] [xbp-30h] BYREF
__int64 v7; // [xsp+10h] [xbp-20h]
v2 = GameLevelManager::sharedState();
GameLevelManager::getBasePostString(v2, a1);
v3 = std::string::append(a1, "&username=");
v4 = GJAccountManager::sharedState(v3);
if ( *(char *)(v4 + 351) < 0 )
{
sub_1000097D0(__p, *(void **)(v4 + 328), *(_QWORD *)(v4 + 336));
}
else
{
*(_OWORD *)__p = *(_OWORD *)(v4 + 328);
v7 = *(_QWORD *)(v4 + 344);
}
if ( v7 >= 0 )
v5 = __p;
else
v5 = (void **)__p[0];
std::string::append(a1, (const std::string::value_type *)v5);
if ( SHIBYTE(v7) < 0 )
operator delete(__p[0]);
}