//
// sub_100899040 from 0x100899040 to 0x100899142 (258 bytes)
//
// 4 xrefs:
// > sub_100899150 @ 0x100899155
// > sub_100899160 @ 0x10089916c
// > sub_100899180 @ 0x100899189
// > sub_1008991A0 @ 0x1008991b3
//
// 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:37:08 +0000
//
__int64 __fastcall sub_100899040(_QWORD *a1)
{
__int64 v2; // rax
_DWORD *v3; // rdi
void *v4; // rdi
void *v5; // rdi
*a1 = off_100BA8530;
a1[40] = off_100BA8AA8;
a1[41] = &off_100BA8B18;
a1[42] = off_100BA8B30;
a1[43] = off_100BA8B50;
a1[44] = off_100BA8B78;
a1[51] = off_100BA8BA8;
a1[54] = off_100BA8C28;
a1[68] = off_100BA8C48;
a1[83] = off_100BA8C90;
a1[84] = off_100BA8CE8;
v2 = MusicDownloadManager::sharedState();
MusicDownloadManager::removeMusicDownloadDelegate(v2, (__int64)(a1 + 84));
v3 = (_DWORD *)a1[85];
if ( v3 )
cocos2d::CCObject::release(v3);
v4 = (void *)a1[91];
if ( v4 )
{
a1[92] = v4;
operator delete(v4);
}
v5 = (void *)a1[88];
if ( v5 )
{
a1[89] = v5;
operator delete(v5);
}
return sub_1004936F0((__int64)a1);
}