//
// sub_1004B7C40 from 0x1004b7c40 to 0x1004b7cc8 (136 bytes)
//
// 1 xrefs:
// > DeathMarkerSettingsPopup::init @ 0x1004b7344
//
// 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 11:06:15 +0000
//
__int64 sub_1004B7C40()
{
__int64 v0; // x0
__int64 result; // x0
__int64 v2; // x0
__int64 v3; // x0
v0 = GameManager::sharedState();
GameManager::toggleGameVariable(v0, "0208");
result = GameManager::sharedState();
if ( *(_QWORD *)(result + 544) )
{
if ( *(_QWORD *)(*(_QWORD *)(GameManager::sharedState() + 544) + 1944LL) )
{
v2 = GameManager::sharedState();
sub_1004B3060(*(_QWORD *)(*(_QWORD *)(v2 + 544) + 1944LL));
}
result = GameManager::sharedState();
if ( *(_QWORD *)(*(_QWORD *)(result + 544) + 1952LL) )
{
v3 = GameManager::sharedState();
return sub_1004B3060(*(_QWORD *)(*(_QWORD *)(v3 + 544) + 1952LL));
}
}
return result;
}