//
// PlayLayer::dtLiveMarkersChanged from 0x1009610a0 to 0x100961121 (129 bytes)
//
// 10 xrefs:
// > PlayLayer::setupHasCompleted @ 0x10007b344
// > PlayLayer::togglePracticeMode @ 0x10008c6e5
// > UILayer::handleAction @ 0x1004c409a
// > UILayer::handleAction @ 0x1004c42fe
// > UILayer::handleAction @ 0x1004c46f1
// > sub_1008C7F70 @ 0x1008c7fa4
// > sub_1008C7FB0 @ 0x1008c7fe4
// > sub_1008C8050 @ 0x1008c812b
// > sub_1008C8210 @ 0x1008c8244
// > DeathMarkerSettingsPopup::FLAlert_Clicked @ 0x1008c8434
//
// 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:38:45 +0000
//
__int64 __fastcall PlayLayer::dtLiveMarkersChanged(__int64 a1)
{
__int64 v1; // rax
__int64 result; // rax
bool v3; // zf
v1 = GameManager::sharedState();
if ( (unsigned __int8)GameManager::getGameVariable(v1, "0216") && !*(_BYTE *)(a1 + 12236) )
{
if ( *(_BYTE *)(a1 + 12544) == 1 )
{
*(_BYTE *)(a1 + 14524) = 1;
return PlayLayer::dtRebuildLiveMarkers(a1);
}
v3 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 1140LL) == 2;
result = *(unsigned __int8 *)(a1 + 14524);
*(_BYTE *)(a1 + 14524) = v3;
if ( v3 )
return PlayLayer::dtRebuildLiveMarkers(a1);
}
else
{
result = *(unsigned __int8 *)(a1 + 14524);
*(_BYTE *)(a1 + 14524) = 0;
}
if ( (_BYTE)result )
return PlayLayer::dtRebuildLiveMarkers(a1);
return result;
}