//
// EditorSFXActionConfigLayer::sfxBrowserClosed from 0x1004c6fd0 to 0x1004c7050 (128 bytes)
//
// 2 xrefs:
// > sub_1004C708C @ 0x1004c7090
// > ??> @ 0x100986b40
//
// 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:23 +0000
//
__int64 __fastcall EditorSFXActionConfigLayer::sfxBrowserClosed(__int64 result, __int64 a2)
{
__int64 v3; // x19
__n128 v4; // q0
__int64 v5; // x21
__int64 v6; // x0
if ( a2 )
{
v3 = result;
result = *(unsigned int *)(a2 + 1096);
if ( (int)result >= 1 )
{
result = EditorSFXManager::createNewSound();
if ( result )
{
v5 = result;
*(_DWORD *)(result + 1868) = *(_DWORD *)(a2 + 1024);
v6 = EditorSFXManager::sharedState(v4);
sub_1004C83D4(v6, *(unsigned int *)(v3 + 1024), v5);
return (__int64)sub_1002D9610(
v3,
(unsigned __int64)EditorSFXActionConfigLayer::refreshRowsAddedDeferred,
0,
0.0);
}
}
}
return result;
}