//
// EditorSFXManager::applyMyConfig from 0xcc796c to 0xcc7b30 (452 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::applyConfig @ 0xcceb40
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd389c
// > ??> @ 0xada40
//
// 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:21 +0000
//
__int64 __fastcall EditorSFXManager::applyMyConfig(EditorSFXManager *a1, int a2, unsigned __int8 a3, __int64 *a4)
{
int v4; // w23
__int64 MyConfig; // x0
__int64 v7; // x20
__int64 *v8; // x3
unsigned int v9; // w20
__int64 *v11; // x21
__int64 v12; // x1
_BOOL4 v13; // w25
__int64 v14; // x1
int v16[2]; // [xsp+58h] [xbp+58h]
int v17[2]; // [xsp+58h] [xbp+58h]
int v18; // [xsp+68h] [xbp+68h] BYREF
__int64 v19; // [xsp+70h] [xbp+70h] BYREF
__int64 v20; // [xsp+78h] [xbp+78h]
void *v21; // [xsp+80h] [xbp+80h]
v4 = a3;
MyConfig = EditorSFXManager::getMyConfig(a1, a2);
v7 = MyConfig;
v8 = a4;
if ( !MyConfig )
{
if ( a4 )
{
v9 = 0;
std::string::assign(a4, "List not found.");
return v9;
}
return 0;
}
if ( !*(_BYTE *)(MyConfig + 496) )
goto LABEL_3;
v19 = 0;
v20 = 0;
v11 = (__int64 *)(MyConfig + 472);
v21 = nullptr;
if ( (*(_BYTE *)(MyConfig + 472) & 1) != 0 )
{
std::string::__init(&v19, *(void **)(MyConfig + 488), *(_QWORD *)(MyConfig + 480));
v8 = a4;
}
else
{
v12 = *(_QWORD *)(MyConfig + 480);
v19 = *v11;
v20 = v12;
v21 = *(void **)(MyConfig + 488);
}
if ( (v19 & 1) != 0 )
{
*(_QWORD *)v16 = v8;
v13 = v20 == 0;
operator delete(v21);
v8 = *(__int64 **)v16;
}
else
{
v13 = (int)(unsigned __int8)v19 >> 1 == 0;
}
if ( v13 )
{
LABEL_3:
if ( v8 )
{
v9 = 0;
std::string::assign(v8, "List has no data.");
return v9;
}
return 0;
}
v19 = 0;
v20 = 0;
v21 = nullptr;
v18 = v4;
if ( (*(_BYTE *)(v7 + 472) & 1) != 0 )
{
*(_QWORD *)v17 = v8;
std::string::__init(&v19, *(void **)(v7 + 488), *(_QWORD *)(v7 + 480));
v8 = *(__int64 **)v17;
}
else
{
v14 = *(_QWORD *)(v7 + 480);
v19 = *v11;
v20 = v14;
v21 = *(void **)(v7 + 488);
}
v9 = (unsigned __int8)EditorSFXManager::importFromString(a1, (__int64)&v19, &v18, v8);
if ( (v19 & 1) != 0 )
operator delete(v21);
return v9;
}