//
// sub_1006EA680 from 0x1006ea680 to 0x1006ea6fe (126 bytes)
//
// 1 xrefs:
// > MusicBrowser::onToggleView @ 0x1006e8e4c
//
// 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:49 +0000
//
void __fastcall sub_1006EA680(__int64 a1)
{
__int64 v1; // rax
std::string v2; // [rsp+0h] [rbp-30h] BYREF
bool v3; // [rsp+1Fh] [rbp-11h] BYREF
*(_QWORD *)(*(_QWORD *)(a1 + 712) + 152LL) = *(_QWORD *)(*(_QWORD *)(a1 + 712) + 144LL);
if ( *(_QWORD *)(GameManager::sharedState() + 552) )
{
v3 = 0;
v1 = GameManager::sharedState();
LevelEditorLayer::getSongIDs((__int64)&v2, *(_QWORD *)(v1 + 552), &v3);
sub_100651110(&v2, (void **)(*(_QWORD *)(a1 + 712) + 144LL));
if ( (*(_BYTE *)&v2.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v2.__r_.__value_.__l.__data_);
}
}