//
// SongInfoLayer::onPracticeMusic from 0x1006d9590 to 0x1006d9613 (131 bytes)
//
// 1 xrefs:
// > SongInfoLayer::init @ 0x1006d8ec5
//
// 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:41 +0000
//
__int64 __fastcall SongInfoLayer::onPracticeMusic(__int64 a1)
{
__int64 v1; // rax
__int64 result; // rax
int v3; // r14d
int v4; // r15d
v1 = GameStatsManager::sharedState();
result = GameStatsManager::isItemUnlocked(v1, 12, 0x10u);
if ( !(_BYTE)result )
return SongInfoLayer::showCustomMusicUnlockInfo(a1);
if ( *(int *)(a1 + 712) > 0 )
{
v3 = *(_DWORD *)(GameManager::sharedState() + 1144);
v4 = *(_DWORD *)(a1 + 712);
result = GameManager::sharedState();
if ( v3 == v4 )
*(_DWORD *)(result + 1144) = 0;
else
*(_DWORD *)(result + 1144) = *(_DWORD *)(a1 + 712);
}
return result;
}