//
// EditorSFXManager::ensureLoaded from 0x1004c75f8 to 0x1004c7664 (108 bytes)
//
// 3 xrefs:
// > LoadingLayer::loadAssets @ 0x10026efe8
// > LevelEditorLayer::init @ 0x1003f6720
// > EditorSFXManager::encodeDataTo @ 0x1004ca468
//
// 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 11:06:23 +0000
//
void __fastcall EditorSFXManager::ensureLoaded(__int64 a1)
{
std::string __p; // [xsp+0h] [xbp-30h] BYREF
if ( (*(char *)(a1 + 191) & 0x8000000000000000LL) != 0 )
{
if ( !*(_QWORD *)(a1 + 176) )
return;
}
else if ( !*(_BYTE *)(a1 + 191) )
{
return;
}
__p = *(std::string *)(a1 + 168);
*(_QWORD *)(a1 + 176) = 0;
*(_QWORD *)(a1 + 184) = 0;
*(_QWORD *)(a1 + 168) = 0;
EditorSFXManager::deserializeAll(a1, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}