//
// EditorSFXManager::applyMyConfig from 0x14018bf10 to 0x14018c028 (280 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::applyConfig @ 0x1401971d6
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140197e40
// > ??> @ 0x140918f98
//
// 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:41 +0000
//
// Hidden C++ exception states: #wind=1
char __fastcall EditorSFXManager::applyMyConfig(_QWORD *a1, int a2, unsigned __int8 a3, void **a4)
{
int v5; // r15d
char v7; // si
struct cocos2d::CCObject *MyConfig; // rax
__int64 v10; // rbp
bool v11; // di
char v12; // bl
int v13; // [rsp+20h] [rbp-58h] BYREF
_BYTE v14[16]; // [rsp+28h] [rbp-50h] BYREF
__int64 v15; // [rsp+38h] [rbp-40h]
v5 = a3;
v7 = 0;
v13 = 0;
MyConfig = EditorSFXManager::getMyConfig((__int64)a1, a2);
if ( !MyConfig )
{
if ( a4 )
{
sub_1400405A0(a4, "List not found.", 0xFu);
return 0;
}
return 0;
}
v10 = (__int64)MyConfig + 512;
v11 = true;
if ( *((_BYTE *)MyConfig + 544) )
{
sub_14003F4F0((__int64)v14, (__int64)MyConfig + 512);
v7 = 3;
if ( v15 )
v11 = false;
}
if ( (v7 & 1) != 0 )
sub_14003D310((__int64)v14);
if ( v11 )
{
if ( a4 )
sub_1400405A0(a4, "List has no data.", 0x11u);
return 0;
}
v13 = v5;
sub_14003F4F0((__int64)v14, v10);
v12 = EditorSFXManager::importFromString(a1, (__int64)v14, &v13, a4);
sub_14003D310((__int64)v14);
return v12;
}