//
// EditorSoundConfigInfoLayer::uploadActionFinished from 0x7864bc to 0x78658a (206 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::uploadActionFinished @ 0x786598
//
// 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
//
int __fastcall EditorSoundConfigInfoLayer::uploadActionFinished(EditorSoundConfigInfoLayer *this, int a2, int a3)
{
int result; // r0
int v5; // r3
int v6; // r4
cocos2d::CCArray **v7; // r0
int v8; // r5
int v9; // r1
int v10; // r5
int v11; // r2
int v12; // r3
int v13[3]; // [sp+0h] [bp-14h] BYREF
result = _stack_chk_guard;
if ( a3 == 73 )
{
v5 = *((_DWORD *)this + 187);
if ( v5 )
{
v6 = *(_DWORD *)(v5 + 264);
if ( v6 == a2 )
{
v7 = (cocos2d::CCArray **)EditorSFXManager::sharedState(_stack_chk_guard);
result = EditorSFXManager::getMyConfigForSoundID(v7, v6);
v8 = result;
if ( result )
{
v9 = *((_DWORD *)this + 187);
if ( result != v9 )
{
std::string::basic_string(v13, v9 + 336);
std::string::operator=((unsigned __int8 *)(v8 + 336), (unsigned __int8 *)v13);
std::string::~string((int)v13);
std::string::basic_string(v13, *((_DWORD *)this + 187) + 348);
std::string::operator=((unsigned __int8 *)(v8 + 348), (unsigned __int8 *)v13);
result = std::string::~string((int)v13);
}
}
v10 = *((_DWORD *)this + 201);
if ( v10 )
{
memset(v13, 0, sizeof(v13));
std::string::__init(v13, "Description updated!", 0x14u);
UploadActionPopup::showSuccessMessage(v10, (const char *)v13, v11, v12);
result = std::string::~string((int)v13);
*(_DWORD *)(*((_DWORD *)this + 201) + 520) = 0;
*((_DWORD *)this + 201) = 0;
}
}
}
}
return result;
}