//
// EditorSoundConfigInfoLayer::soundPackDescSaved from 0x786394 to 0x7864ac (280 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::soundPackDescSaved @ 0x7864b8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:32 +0000
//
EditorSoundConfigInfoLayer *__fastcall EditorSoundConfigInfoLayer::soundPackDescSaved(
EditorSoundConfigInfoLayer *result,
int a2,
int a3)
{
int v4; // r9
EditorSoundConfigInfoLayer *v5; // r5
int v6; // r6
GameLevelManager *v7; // r0
int v8; // r0
const char *v9; // r6
int **v10; // r9
int updated; // r6
int v12; // r2
int v13; // r2
int v14; // r3
int v15[3]; // [sp+4h] [bp-20h] BYREF
int v16[3]; // [sp+10h] [bp-14h] BYREF
v4 = *((_DWORD *)result + 187);
v5 = result;
if ( v4 )
{
std::string::basic_string(v15, a2);
LevelTools::base64EncodeString(v16, v15);
std::string::operator=((unsigned __int8 *)(v4 + 336), (unsigned __int8 *)v16);
std::string::~string((int)v16);
std::string::~string((int)v15);
v6 = *((_DWORD *)v5 + 187);
std::string::basic_string(v16, a3);
std::string::operator=((unsigned __int8 *)(v6 + 348), (unsigned __int8 *)v16);
std::string::~string((int)v16);
result = (EditorSoundConfigInfoLayer *)EditorSoundConfigInfoLayer::editsServerDescription(v5);
if ( result )
{
v7 = (GameLevelManager *)GameLevelManager::sharedState(result);
*((_DWORD *)v7 + 222) = (char *)v5 + 736;
v8 = GameLevelManager::sharedState(v7);
v9 = *(const char **)(*((_DWORD *)v5 + 187) + 264);
v10 = (int **)v8;
std::string::basic_string(v16, *((_DWORD *)v5 + 187) + 336);
updated = GameLevelManager::updateEditorSoundDescription(v10, v9, (int)v16, a3);
result = (EditorSoundConfigInfoLayer *)std::string::~string((int)v16);
if ( updated )
{
v12 = *((_DWORD *)v5 + 201);
if ( v12 )
{
*(_DWORD *)(v12 + 520) = 0;
*((_DWORD *)v5 + 201) = 0;
}
memset(v16, 0, sizeof(v16));
std::string::__init(v16, "Updating description...", 0x17u);
*((_DWORD *)v5 + 201) = UploadActionPopup::create((int)v5 + 740, (int)v16, v13, v14);
std::string::~string((int)v16);
return (EditorSoundConfigInfoLayer *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)v5 + 201) + 656))(*((_DWORD *)v5 + 201));
}
}
}
return result;
}