//
// GameLevelManager::uploadLevelComment from 0x840574 to 0x84064c (216 bytes)
//
// 2 xrefs:
// > ShareCommentLayer::onShare @ 0x90e744
// > ??> @ 0x104758
//
// 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::uploadLevelComment(GameLevelManager *a1, unsigned int a2, char *a3, int a4)
{
int v4; // w4
char v7; // w0
__int64 v8; // x0
__int64 v9; // x1
__int64 v12; // [xsp+40h] [xbp+40h] BYREF
__int64 v13; // [xsp+48h] [xbp+48h]
void *v14; // [xsp+50h] [xbp+50h]
v4 = a4;
v7 = *a3;
v12 = 0;
v13 = 0;
v14 = nullptr;
if ( (v7 & 1) != 0 )
{
std::string::__init(&v12, *((void **)a3 + 2), *((_QWORD *)a3 + 1));
v4 = a4;
}
else
{
v8 = *(_QWORD *)a3;
v9 = *((_QWORD *)a3 + 1);
v14 = *((void **)a3 + 2);
v12 = v8;
v13 = v9;
}
GameLevelManager::uploadComment(a1, (char *)&v12, 0, a2, v4);
if ( (v12 & 1) != 0 )
operator delete(v14);
return _stack_chk_guard;
}