//
// sub_100414D74 from 0x100414d74 to 0x100414df4 (128 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x10040bb88
// > sub_10040BC70 @ 0x10040bd18
// > sub_100414B90 @ 0x100414ce8
// > sub_100414D04 @ 0x100414d68
//
// 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_100414D74(__int64 *a1)
{
__int64 v2; // x20
v2 = *a1;
*a1 = 0;
if ( v2 )
{
if ( *(char *)(v2 + 111) < 0 )
operator delete(*(void **)(v2 + 88));
if ( *(char *)(v2 + 87) < 0 )
operator delete(*(void **)(v2 + 64));
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;
}