//
// EditorSFXManager::ensureLoaded from 0x1008e1420 to 0x1008e1496 (118 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::init @ 0x1000a9da7
// > LoadingLayer::loadAssets @ 0x10038c7fa
//
// 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:46 +0000
//
void __fastcall EditorSFXManager::ensureLoaded(__int64 a1)
{
unsigned int v1; // eax
__int128 v2; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v1 = *(unsigned __int8 *)(a1 + 168);
if ( (v1 & 1) != 0 )
{
if ( !*(_QWORD *)(a1 + 176) )
return;
}
else if ( !(v1 >> 1) )
{
return;
}
__p = *(void **)(a1 + 184);
v2 = *(_OWORD *)(a1 + 168);
*(_OWORD *)(a1 + 168) = 0;
*(_QWORD *)(a1 + 184) = 0;
EditorSFXManager::deserializeAll(a1, &v2, 1);
if ( (v2 & 1) != 0 )
operator delete(__p);
}