//
// EditorSFXManager::ensureLoaded from 0xcc710c to 0xcc71d0 (196 bytes)
//
// 4 xrefs:
// > LoadingLayer::loadAssets @ 0x6ede8c
// > LevelEditorLayer::init @ 0x7ae924
// > EditorSFXManager::encodeDataTo @ 0xcc7220
// > ??> @ 0x4b868
//
// 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::ensureLoaded(EditorSFXManager *this)
{
__int64 *v1; // x3
__int64 v2; // x2
__int64 v3; // x8
__int64 v4; // x9
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
__int64 v7; // [xsp+30h] [xbp+30h]
void *v8; // [xsp+38h] [xbp+38h]
__int64 v9; // [xsp+40h] [xbp+40h]
__int64 v10; // [xsp+48h] [xbp+48h]
__int64 v11; // [xsp+50h] [xbp+50h]
v1 = (__int64 *)((char *)this + 168);
v2 = *((_BYTE *)this + 168) >> 1;
if ( (*((_BYTE *)this + 168) & 1) != 0 )
v2 = *((_QWORD *)this + 22);
if ( v2 )
{
v6 = 0;
v7 = 0;
v3 = *v1;
v4 = *((_QWORD *)this + 22);
v8 = *((void **)this + 23);
*((_QWORD *)this + 23) = 0;
v6 = v3;
v7 = v4;
*v1 = 0;
*((_QWORD *)this + 22) = 0;
v11 = 0;
v9 = 0;
v10 = 0;
EditorSFXManager::deserializeAll(this, (unsigned __int8 *)&v6, 1u);
if ( (v6 & 1) != 0 )
operator delete(v8);
}
return _stack_chk_guard;
}