//
// EditorSoundConfigInfoLayer::uploadActionFinished from 0xccf868 to 0xccfa78 (528 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::uploadActionFinished @ 0xccfa7c
// > ??> @ 0xeeba0
// > ??> @ 0x14fee90
//
// 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 13:06:26 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::uploadActionFinished(EditorSoundConfigInfoLayer *this, int a2, int a3)
{
EditorSFXManager *v5; // x0
int v6; // w21
EditorSFXManager *v7; // x0
__int64 MyConfigForSoundID; // x21
__int64 v9; // x0
size_t v10; // x1
__int64 *v11; // x0
__int64 v12; // x0
size_t v13; // x1
__int64 *v14; // x0
__int64 v15; // x21
__int64 v16; // [xsp+30h] [xbp+30h] BYREF
size_t v17; // [xsp+38h] [xbp+38h]
void *v18; // [xsp+40h] [xbp+40h]
if ( a3 == 73 )
{
v5 = *((EditorSFXManager **)this + 136);
if ( v5 )
{
v6 = *((_DWORD *)v5 + 79);
if ( v6 == a2 )
{
v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v5);
MyConfigForSoundID = EditorSFXManager::getMyConfigForSoundID(v7, v6);
if ( MyConfigForSoundID )
{
v9 = *((_QWORD *)this + 136);
if ( MyConfigForSoundID != v9 )
{
v16 = 0;
v17 = 0;
v18 = nullptr;
if ( (*(_BYTE *)(v9 + 400) & 1) != 0 )
{
std::string::__init(&v16, *(void **)(v9 + 416), *(_QWORD *)(v9 + 408));
}
else
{
v10 = *(_QWORD *)(v9 + 408);
v16 = *(_QWORD *)(v9 + 400);
v17 = v10;
v18 = *(void **)(v9 + 416);
}
v11 = (__int64 *)(MyConfigForSoundID + 400);
if ( (__int64 *)(MyConfigForSoundID + 400) != &v16 )
{
if ( (v16 & 1) != 0 )
std::string::assign(v11, v18, v17);
else
std::string::assign(v11, (char *)&v16 + 1, (unsigned __int8)v16 >> 1);
}
if ( (v16 & 1) != 0 )
operator delete(v18);
v12 = *((_QWORD *)this + 136);
v16 = 0;
v17 = 0;
v18 = nullptr;
if ( (*(_BYTE *)(v12 + 424) & 1) != 0 )
{
std::string::__init(&v16, *(void **)(v12 + 440), *(_QWORD *)(v12 + 432));
}
else
{
v13 = *(_QWORD *)(v12 + 432);
v16 = *(_QWORD *)(v12 + 424);
v17 = v13;
v18 = *(void **)(v12 + 440);
}
v14 = (__int64 *)(MyConfigForSoundID + 424);
if ( (__int64 *)(MyConfigForSoundID + 424) != &v16 )
{
if ( (v16 & 1) != 0 )
std::string::assign(v14, v18, v17);
else
std::string::assign(v14, (char *)&v16 + 1, (unsigned __int8)v16 >> 1);
}
if ( (v16 & 1) != 0 )
operator delete(v18);
}
}
v15 = *((_QWORD *)this + 150);
if ( v15 )
{
v16 = 0;
v17 = 0;
v18 = nullptr;
std::string::__init(&v16, "Description updated!", 0x14u);
UploadActionPopup::showSuccessMessage(v15, (__int64)&v16);
if ( (v16 & 1) != 0 )
operator delete(v18);
*(_QWORD *)(*((_QWORD *)this + 150) + 664LL) = 0;
*((_QWORD *)this + 150) = 0;
}
}
}
}
return _stack_chk_guard;
}