//
// EditorSFXManager::applyMyConfig from 0x781498 to 0x78154c (180 bytes)
//
// 2 xrefs:
// > EditorSoundConfigInfoLayer::applyConfig @ 0x785dd2
// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x788a8a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:29 +0000
//
int __fastcall EditorSFXManager::applyMyConfig(cocos2d::CCArray **a1, int a2, int a3, int *a4)
{
int MyConfig; // r0
int v8; // r4
int v9; // r4
int v10; // r8
int v12; // [sp+4h] [bp-14h] BYREF
int v13[3]; // [sp+8h] [bp-10h] BYREF
MyConfig = EditorSFXManager::getMyConfig(a1, a2);
v8 = MyConfig;
if ( MyConfig )
{
if ( *(_BYTE *)(MyConfig + 384) )
{
v9 = MyConfig + 372;
std::string::basic_string(v13, MyConfig + 372);
v10 = (v13[0] & 1) != 0 ? v13[1] : (int)LOBYTE(v13[0]) >> 1;
std::string::~string((int)v13);
if ( v10 )
{
v12 = a3;
std::string::basic_string(v13, v9);
v8 = EditorSFXManager::importFromString((EditorSFXManager *)a1, (unsigned __int8 *)v13, &v12, a4);
std::string::~string((int)v13);
return v8;
}
}
if ( a4 )
std::string::assign(a4, "List has no data.");
return 0;
}
if ( !a4 )
return 0;
std::string::assign(a4, "List not found.");
return v8;
}