//
// sub_1008E0860 from 0x1008e0860 to 0x1008e08dc (124 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb4308
//
// 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 12:37:45 +0000
//
__int64 __fastcall sub_1008E0860(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v4; // rdi
__int64 v5; // r14
__int64 v6; // rax
if ( a2 )
{
v4 = *(unsigned int *)(a2 + 1096);
if ( (int)v4 > 0 )
{
result = EditorSFXManager::createNewSound(v4);
if ( result )
{
*(_DWORD *)(result + 1868) = *(_DWORD *)(a2 + 1024);
v5 = result;
v6 = EditorSFXManager::sharedState(v4);
EditorSFXManager::addSound(v6, *(unsigned int *)(a1 + 8), v5);
return cocos2d::CCNode::scheduleOnce(
a1 - 1016,
(__int64)EditorSFXActionConfigLayer::refreshRowsAddedDeferred,
0,
0.0);
}
}
}
return result;
}