//
// sub_C36304 from 0xc36304 to 0xc3638c (136 bytes)
//
// 2 xrefs:
// > PlayLayer::tryShowDeathMarkers @ 0xc37564
// > PlayLayer::tryShowDeathMarkers @ 0xc377a0
//
// This function is hookable on this platform (idp: arm, 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 13:04:51 +0000
//
__int64 __fastcall sub_C36304(GameManager *a1)
{
int v1; // w19
GameManager *v2; // x0
int GameVariable; // w1
__int64 result; // x0
char *v5; // x19
EditorSFXManager *v6; // x0
int hasSoundsForAction; // w1
EditorSFXManager *v8; // x0
v1 = (unsigned __int8)a1;
v2 = (GameManager *)GameManager::sharedState(a1);
GameVariable = (unsigned __int8)GameManager::getGameVariable(v2, "0206");
result = 0;
if ( !GameVariable )
{
if ( v1 )
v5 = (char *)&qword_108 + 4;
else
LODWORD(v5) = 267;
v6 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)((char *)&qword_108 + 4));
hasSoundsForAction = (unsigned __int8)EditorSFXManager::hasSoundsForAction(v6, (int)v5);
result = (unsigned int)v5;
if ( !hasSoundsForAction )
{
v8 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)(unsigned int)v5);
if ( (unsigned __int8)EditorSFXManager::hasSoundsForAction(v8, 266) )
return 266;
else
return 0;
}
}
return result;
}