//
// DeathMarkerSettingsPopup::onToggleLabels from 0x76dc4c to 0x76dcb4 (104 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:13 +0000
//
GameManager *__fastcall DeathMarkerSettingsPopup::onToggleLabels(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)
{
GameManager *v2; // r0
GameManager *v3; // r0
char v4; // r4
GameManager *result; // r0
GameManager *v6; // r0
int v7; // r0
int v8; // r0
v2 = (GameManager *)GameManager::sharedState(this);
v3 = (GameManager *)GameManager::toggleGameVariable(v2, "0208");
v4 = (char)v3;
result = (GameManager *)GameManager::sharedState(v3);
if ( *((_DWORD *)result + 101) )
{
v6 = (GameManager *)GameManager::sharedState(result);
if ( *(_DWORD *)(*((_DWORD *)v6 + 101) + 1412) )
{
v7 = GameManager::sharedState(v6);
v6 = (GameManager *)DeathMarkerLayer::setLabelsVisible(
*(DeathMarkerLayer **)(*(_DWORD *)(v7 + 404) + 1412),
v4 != 1);
}
result = (GameManager *)GameManager::sharedState(v6);
if ( *(_DWORD *)(*((_DWORD *)result + 101) + 1416) )
{
v8 = GameManager::sharedState(result);
return (GameManager *)DeathMarkerLayer::setLabelsVisible(
*(DeathMarkerLayer **)(*(_DWORD *)(v8 + 404) + 1416),
v4 != 1);
}
}
return result;
}