//
// sub_1006A60E0 from 0x1006a60e0 to 0x1006a61b6 (214 bytes)
//
// 4 xrefs:
// > sub_1006A61C0 @ 0x1006a61c5
// > sub_1006A61D0 @ 0x1006a61dc
// > sub_1006A61F0 @ 0x1006a61f9
// > sub_1006A6210 @ 0x1006a6223
//
// This function is hookable on this platform (idp: pc, 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 12:35:19 +0000
//
__int64 __fastcall sub_1006A60E0(__int64 a1)
{
__int64 v1; // rax
__int64 v2; // rsi
*(_QWORD *)a1 = off_100B85D60;
*(_QWORD *)(a1 + 320) = off_100B862B0;
*(_QWORD *)(a1 + 328) = &off_100B86320;
*(_QWORD *)(a1 + 336) = off_100B86338;
*(_QWORD *)(a1 + 344) = off_100B86358;
*(_QWORD *)(a1 + 352) = off_100B86380;
*(_QWORD *)(a1 + 408) = off_100B863B0;
*(_QWORD *)(a1 + 432) = off_100B86430;
*(_QWORD *)(a1 + 544) = off_100B86450;
cocos2d::CCNode::removeAllChildrenWithCleanup(a1, 1);
v1 = cocos2d::CCTextureCache::sharedTextureCache(a1);
if ( (*(_BYTE *)(a1 + 664) & 1) != 0 )
v2 = *(_QWORD *)(a1 + 680);
else
v2 = a1 + 665;
cocos2d::CCTextureCache::removeTextureForKey(v1, v2);
if ( (*(_BYTE *)(a1 + 664) & 1) != 0 )
operator delete(*(void **)(a1 + 680));
return sub_1004936F0(a1);
}