//
// EditorSFXManager::ensureLoaded from 0x781038 to 0x7810ae (118 bytes)
//
// 3 xrefs:
// > LoadingLayer::loadAssets @ 0x3fbfac
// > LevelEditorLayer::init @ 0x475b52
// > EditorSFXManager::encodeDataTo @ 0x7810e0
//
// 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:28 +0000
//
int __fastcall EditorSFXManager::ensureLoaded(int this)
{
int v1; // r3
int v2; // r3
int v3; // r1
int v4; // r2
int v5; // [sp+4h] [bp-20h] BYREF
int v6; // [sp+8h] [bp-1Ch]
int v7; // [sp+Ch] [bp-18h]
int v8; // [sp+10h] [bp-14h]
int v9; // [sp+14h] [bp-10h]
int v10; // [sp+18h] [bp-Ch]
v1 = *(unsigned __int8 *)(this + 84);
if ( (v1 & 1) != 0 )
v2 = *(_DWORD *)(this + 88);
else
v2 = v1 >> 1;
if ( v2 )
{
v5 = 0;
v6 = 0;
v7 = 0;
v8 = 0;
v9 = 0;
v10 = 0;
v3 = *(_DWORD *)(this + 88);
v4 = *(_DWORD *)(this + 92);
v5 = *(_DWORD *)(this + 84);
v6 = v3;
v7 = v4;
*(_DWORD *)(this + 84) = 0;
*(_DWORD *)(this + 88) = 0;
*(_DWORD *)(this + 92) = 0;
EditorSFXManager::deserializeAll((EditorSFXManager *)this, (unsigned __int8 *)&v5, 1);
return std::string::~string((int)&v5);
}
return this;
}