//
// sub_10040E264 from 0x10040e264 to 0x10040e2f4 (144 bytes)
//
// 2 xrefs:
// > LevelSettingsObject::dLevelSettingsObject @ 0x10040e2f8
// > sub_10040E2FC @ 0x10040e304
//
// 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:47 +0000
//
__int64 __fastcall sub_10040E264(__int64 a1)
{
_DWORD *v2; // x0
*(_QWORD *)a1 = off_10094CDC0;
v2 = *(_DWORD **)(a1 + 320);
if ( v2 )
cocos2d::CCObject::release(v2);
sub_1000187C4(a1 + 640, *(_QWORD **)(a1 + 648));
if ( *(char *)(a1 + 631) < 0 )
operator delete(*(void **)(a1 + 608));
sub_100076C88(a1 + 584, *(char **)(a1 + 592));
sub_100018470((void **)(a1 + 544));
sub_1004113CC(a1 + 504);
if ( *(char *)(a1 + 503) < 0 )
operator delete(*(void **)(a1 + 480));
if ( *(char *)(a1 + 415) < 0 )
operator delete(*(void **)(a1 + 392));
return cocos2d::CCNode::dCCNode(a1);
}