//
// EditorSFXActionConfigLayer::onAddSound from 0x140184950 to 0x14018498e (62 bytes)
//
// 2 xrefs:
// > EditorSFXActionConfigLayer::init @ 0x1401839e4
// > ??> @ 0x140918d1c
//
// 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
//
__int64 __fastcall EditorSFXActionConfigLayer::onAddSound(__int64 a1)
{
__int64 *v2; // rax
__int64 v3; // rdx
__int64 v4; // rcx
v2 = (__int64 *)SFXBrowser::create(0, 0);
v3 = a1 + 1000;
if ( !a1 )
v3 = 0;
v4 = *v2;
v2[139] = v3;
return (*(__int64 (__fastcall **)(__int64 *))(v4 + 1064))(v2);
}