//
// GameLevelManager::uploadEditorSoundComment from 0x84071c to 0x8407f0 (212 bytes)
//
// 2 xrefs:
// > ShareCommentLayer::onShare @ 0x90e7ec
// > ??> @ 0xe6b00
//
// 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 12:55:17 +0000
//
__int64 __fastcall GameLevelManager::uploadEditorSoundComment(GameLevelManager *a1, unsigned int a2, char *a3)
{
unsigned int v3; // w3
char v5; // w0
__int64 v6; // x0
__int64 v7; // x1
__int64 v10; // [xsp+40h] [xbp+40h] BYREF
__int64 v11; // [xsp+48h] [xbp+48h]
void *v12; // [xsp+50h] [xbp+50h]
v3 = a2;
v10 = 0;
v5 = *a3;
v11 = 0;
v12 = nullptr;
if ( (v5 & 1) != 0 )
{
std::string::__init(&v10, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
v3 = a2;
}
else
{
v6 = *(_QWORD *)a3;
v7 = *((_QWORD *)a3 + 1);
v12 = *((void **)a3 + 2);
v10 = v6;
v11 = v7;
}
GameLevelManager::uploadComment(a1, (char *)&v10, 6u, v3, 0);
if ( (v10 & 1) != 0 )
operator delete(v12);
return _stack_chk_guard;
}