//
// EditorSoundConfigInfoLayer::uploadActionFinished from 0x1004d321c to 0x1004d3350 (308 bytes)
//
// 2 xrefs:
// > sub_1004D3398 @ 0x1004d339c
// > ??> @ 0x1009890c0
//
// 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:06:29 +0000
//
void __fastcall EditorSoundConfigInfoLayer::uploadActionFinished(__int64 a1, int a2, int a3)
{
__int64 v4; // x8
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x20
__int64 v9; // x8
__int64 v10; // x8
__int64 v11; // x20
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v13; // [xsp+1Fh] [xbp-51h]
std::string __dst; // [xsp+20h] [xbp-50h] BYREF
std::string __str; // [xsp+40h] [xbp-30h] BYREF
if ( a3 == 73 )
{
v4 = *(_QWORD *)(a1 + 1088);
if ( v4 )
{
if ( *(_DWORD *)(v4 + 316) == a2 )
{
v6 = EditorSFXManager::sharedState();
v7 = sub_1004CB090(v6, a2);
if ( v7 )
{
v8 = v7;
v9 = *(_QWORD *)(a1 + 1088);
if ( v7 != v9 )
{
if ( *(char *)(v9 + 423) < 0 )
sub_1000097D0(&__str, *(void **)(v9 + 400), *(_QWORD *)(v9 + 408));
else
__str = *(std::string *)(v9 + 400);
std::string::operator=((std::string *)(v8 + 400), &__str);
if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__str.__r_.__value_.__l.__data_);
v10 = *(_QWORD *)(a1 + 1088);
if ( *(char *)(v10 + 447) < 0 )
sub_1000097D0(&__dst, *(void **)(v10 + 424), *(_QWORD *)(v10 + 432));
else
__dst = *(std::string *)(v10 + 424);
std::string::operator=((std::string *)(v8 + 424), &__dst);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}
}
v11 = *(_QWORD *)(a1 + 1200);
if ( v11 )
{
sub_100009900(__p, "Description updated!");
UploadActionPopup::showSuccessMessage(v11, (char *)__p);
if ( v13 < 0 )
operator delete(__p[0]);
*(_QWORD *)(*(_QWORD *)(a1 + 1200) + 664LL) = 0;
*(_QWORD *)(a1 + 1200) = 0;
}
}
}
}
}