//
// sub_100219920 from 0x100219920 to 0x100219987 (103 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008ddac0
//
// 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
//
char __fastcall sub_100219920(CustomSongDelegate *a1, __int64 a2, char a3)
{
char result; // al
GameManager *v4; // rax
CustomSongLayer *v5; // rax
result = a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1);
if ( !result )
{
v4 = GameManager::sharedState();
GameManager::setGameVariable(v4, "0016", 1);
v5 = CustomSongLayer::create(a1 + 2);
v5->m_delegate = (CustomSongLayerDelegate *)&a1[1];
return ((__int64 (__fastcall *)(CustomSongLayer *))v5->show)(v5);
}
return result;
}