//
// sub_14051E830 from 0x14051e830 to 0x14051e8d3 (163 bytes)
//
// 3 xrefs:
// > PlayLayer::tryShowDeathMarkers @ 0x14051ffd1
// > PlayLayer::tryShowDeathMarkers @ 0x140520044
// > ??> @ 0x14092b340
//
// 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 11:33:36 +0000
//
__int64 __fastcall sub_14051E830(unsigned __int8 a1)
{
int v1; // ebx
__int64 v2; // rcx
_QWORD *v3; // rax
_QWORD *v5; // rax
void *v6; // [rsp+38h] [rbp+10h]
v1 = a1;
v2 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v2 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v2, "0206") )
return 0;
v3 = (_QWORD *)EditorSFXManager::sharedState();
if ( EditorSFXManager::hasSoundsForAction(v3, v1 + 267) )
return (unsigned int)(v1 + 267);
v5 = (_QWORD *)EditorSFXManager::sharedState();
return EditorSFXManager::hasSoundsForAction(v5, 266) ? 0x10A : 0;
}