//
// sub_1004CCE8C from 0x1004cce8c to 0x1004ccf88 (252 bytes)
//
// 4 xrefs:
// > EditorSoundBrowserLayer::dEditorSoundBrowserLayer @ 0x1004ccf8c
// > sub_1004CCF90 @ 0x1004ccf94
// > sub_1004CCF98 @ 0x1004ccfa0
// > sub_1004CCFAC @ 0x1004ccfb8
//
// 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:06:26 +0000
//
__int64 __fastcall sub_1004CCE8C(__int64 a1)
{
_DWORD *v2; // x0
_DWORD *v3; // x0
_DWORD *v4; // x0
*(_QWORD *)a1 = off_100987B88;
*(_QWORD *)(a1 + 320) = off_1009881A8;
*(_QWORD *)(a1 + 328) = &off_100988218;
*(_QWORD *)(a1 + 336) = off_100988230;
*(_QWORD *)(a1 + 344) = off_100988250;
*(_QWORD *)(a1 + 352) = off_100988278;
*(_QWORD *)(a1 + 408) = off_1009882A8;
*(_QWORD *)(a1 + 432) = off_100988328;
*(_QWORD *)(a1 + 544) = off_100988348;
*(_QWORD *)(a1 + 664) = &off_100988390;
*(_QWORD *)(a1 + 672) = off_1009883A8;
*(_QWORD *)(a1 + 1016) = off_1009883C8;
*(_QWORD *)(a1 + 1024) = &off_1009883E8;
*(_QWORD *)(a1 + 1032) = off_100988400;
*(_QWORD *)(a1 + 1040) = &off_100988458;
if ( GameLevelManager::sharedState() && *(_QWORD *)(GameLevelManager::sharedState() + 1328) == a1 + 1016 )
*(_QWORD *)(GameLevelManager::sharedState() + 1328) = 0;
v2 = *(_DWORD **)(a1 + 1104);
if ( v2 )
cocos2d::CCObject::release(v2);
v3 = *(_DWORD **)(a1 + 1168);
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = *(_DWORD **)(a1 + 1176);
if ( v4 )
cocos2d::CCObject::release(v4);
if ( *(char *)(a1 + 1167) < 0 )
operator delete(*(void **)(a1 + 1144));
if ( *(char *)(a1 + 1143) < 0 )
operator delete(*(void **)(a1 + 1120));
return sub_1001ABB48(a1);
}