//
// sub_1001FCDB0 from 0x1001fcdb0 to 0x1001fce17 (103 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ae1e18
//
// 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:26:50 +0000
//
char __fastcall sub_1001FCDB0(__int64 a1, __int64 a2, char a3)
{
char result; // al
__int64 v4; // rdx
double v5; // xmm0_8
__int64 v6; // rax
char *v7; // rax
result = a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 1);
if ( !result )
{
*(_QWORD *)&v5 = GameManager::sharedState(a2, a2, v4).u64[0];
GameManager::setGameVariable(v6, "0016", 1);
v7 = CustomSongLayer::create(a1 + 16);
*((_QWORD *)v7 + 88) = a1 + 8;
return (*(__int64 (__fastcall **)(char *, double))(*(_QWORD *)v7 + 1312LL))(v7, v5);
}
return result;
}