//
// sub_100414B30 from 0x100414b30 to 0x100414b90 (96 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::doAutoSave @ 0x10040b618
// > sub_10040B6B8 @ 0x10040b738
// > sub_1004149FC @ 0x100414ac4
// > sub_100414ADC @ 0x100414b24
//
// 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:04:52 +0000
//
__int64 *__fastcall sub_100414B30(__int64 *a1)
{
__int64 v2; // x20
v2 = *a1;
*a1 = 0;
if ( v2 )
{
if ( *(char *)(v2 + 55) < 0 )
operator delete(*(void **)(v2 + 32));
if ( *(char *)(v2 + 31) < 0 )
operator delete(*(void **)(v2 + 8));
sub_1002DE764((std::__thread_struct **)v2, nullptr);
operator delete((void *)v2);
}
return a1;
}