//
// sub_1005D47A0 from 0x1005d47a0 to 0x1005d4868 (200 bytes)
//
// 4 xrefs:
// > sub_1005D4870 @ 0x1005d4875
// > sub_1005D4880 @ 0x1005d488c
// > sub_1005D48A0 @ 0x1005d48a9
// > sub_1005D48C0 @ 0x1005d48d3
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005D47A0(__int64 a1)
{
cocos2d::CCTextureCache *v1; // rax
const char *v2; // rsi
*(_QWORD *)a1 = off_100973288;
*(_QWORD *)(a1 + 320) = off_1009737A8;
*(_QWORD *)(a1 + 328) = &off_100973818;
*(_QWORD *)(a1 + 336) = off_100973830;
*(_QWORD *)(a1 + 344) = off_100973850;
*(_QWORD *)(a1 + 352) = off_100973870;
*(_QWORD *)(a1 + 408) = off_100973898;
*(_QWORD *)(a1 + 432) = off_100973918;
cocos2d::CCNode::removeAllChildrenWithCleanup((cocos2d::CCNode *)a1, 1);
v1 = cocos2d::CCTextureCache::sharedTextureCache();
if ( (*(_BYTE *)(a1 + 632) & 1) != 0 )
v2 = *(const char **)(a1 + 648);
else
v2 = (const char *)(a1 + 633);
cocos2d::CCTextureCache::removeTextureForKey(v1, v2);
if ( (*(_BYTE *)(a1 + 632) & 1) != 0 )
operator delete(*(void **)(a1 + 648));
return FLAlertLayer::dFLAlertLayer(a1);
}