//
// EditorSFXActionConfigLayer::sfxBrowserClosed from 0xcbd900 to 0xcbd974 (116 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSFXActionConfigLayer::sfxBrowserClosed @ 0xcbd978
// > ??> @ 0x83b90
// > ??> @ 0x14fcd00
//
// 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:15 +0000
//
__int64 __fastcall EditorSFXActionConfigLayer::sfxBrowserClosed(__int64 this, SFXBrowser *a2)
{
int v2; // w2
__int64 v3; // x20
__int64 v5; // x2
EditorSFXManager *v6; // x0
EditorSFXManager *v7; // x0
SFXTriggerGameObject *v8; // [xsp+28h] [xbp+28h]
if ( a2 )
{
v2 = *((_DWORD *)a2 + 274);
if ( v2 > 0 )
{
v3 = this;
this = EditorSFXManager::createNewSound((EditorSFXManager *)(unsigned int)v2, (int)a2);
v5 = this;
if ( this )
{
v6 = (EditorSFXManager *)*((unsigned int *)a2 + 256);
*(_DWORD *)(v5 + 1868) = (_DWORD)v6;
v8 = (SFXTriggerGameObject *)v5;
v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v6);
EditorSFXManager::addSound(v7, *(_DWORD *)(v3 + 1024), v8);
return cocos2d::CCNode::scheduleOnce(v3, EditorSFXActionConfigLayer::refreshRowsAddedDeferred, 0, 0.0);
}
}
}
return this;
}