//
// EditorSFXActionConfigLayer::sfxBrowserClosed from 0x140184990 to 0x140184a12 (130 bytes)
//
// 4 xrefs:
// > ??> @ 0x14074b348
// > ??> @ 0x14089e670
// > ??> @ 0x14089e680
// > ??> @ 0x140918d28
//
// This function is hookable on this platform (idp: pc, 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:27:38 +0000
//
void __fastcall EditorSFXActionConfigLayer::sfxBrowserClosed(__int64 a1, __int64 a2)
{
__int64 NewSound; // rax
struct cocos2d::CCObject *v5; // rsi
unsigned int v6; // ebx
__int64 v7; // rax
cocos2d::CCArray **Binding; // rax
if ( a2 && *(int *)(a2 + 1088) > 0 )
{
NewSound = EditorSFXManager::createNewSound();
v5 = (struct cocos2d::CCObject *)NewSound;
if ( NewSound )
{
*(_DWORD *)(NewSound + 1892) = *(_DWORD *)(a2 + 1024);
v6 = *(_DWORD *)(a1 + 8);
v7 = EditorSFXManager::sharedState();
Binding = (cocos2d::CCArray **)EditorSFXManager::getOrCreateBinding(v7, v6);
cocos2d::CCArray::addObject(*Binding, v5);
cocos2d::CCNode::scheduleOnce(a1 - 1000, EditorSFXActionConfigLayer::refreshRowsAddedDeferred);
}
}
}