//
// sub_1006F70A0 from 0x1006f70a0 to 0x1006f7153 (179 bytes)
//
// 2 xrefs:
// > CustomSongWidget::dCustomSongWidget @ 0x1006f7165
// > sub_1006F7170 @ 0x1006f7179
//
// 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:54 +0000
//
__int64 __fastcall sub_1006F70A0(__int64 a1)
{
__int64 v2; // rax
_DWORD *v3; // rdi
void *v4; // rdi
*(_QWORD *)a1 = off_100B95A38;
*(_QWORD *)(a1 + 320) = off_100B95E20;
*(_QWORD *)(a1 + 328) = &off_100B95E90;
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::removeMusicDownloadDelegate(v2, a1 + 320);
v3 = *(_DWORD **)(a1 + 336);
if ( v3 )
cocos2d::CCObject::release(v3);
sub_10001ADF0(a1 + 632, *(_QWORD **)(a1 + 640));
v4 = *(void **)(a1 + 600);
if ( v4 )
{
*(_QWORD *)(a1 + 608) = v4;
operator delete(v4);
}
sub_10001ADF0(a1 + 576, *(_QWORD **)(a1 + 584));
sub_10001ADF0(a1 + 552, *(_QWORD **)(a1 + 560));
return cocos2d::CCNode::dCCNode(a1);
}