//
// DeathMarkerSettingsPopup::onToggleLabels from 0xca59e8 to 0xca5a70 (136 bytes)
//
// 3 xrefs:
// > ??> @ 0x5a850
// > DeathMarkerSettingsPopup::init @ 0xca6ae8
// > ??> @ 0x1542170
//
// 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:06:02 +0000
//
GameManager *__fastcall DeathMarkerSettingsPopup::onToggleLabels(DeathMarkerSettingsPopup *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
GameManager *v3; // x0
char v4; // w19
GameManager *result; // x0
GameManager *v6; // x0
__int64 v7; // x0
__int64 v8; // x0
v2 = (GameManager *)GameManager::sharedState(this);
v3 = (GameManager *)GameManager::toggleGameVariable(v2, "0208");
v4 = (char)v3;
result = *(GameManager **)(GameManager::sharedState(v3) + 544);
if ( result )
{
v6 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(result) + 544) + 1944LL);
if ( v6 )
{
v7 = GameManager::sharedState(v6);
v6 = (GameManager *)DeathMarkerLayer::setLabelsVisible(
*(DeathMarkerLayer **)(*(_QWORD *)(v7 + 544) + 1944LL),
v4 ^ 1u);
}
result = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v6) + 544) + 1952LL);
if ( result )
{
v8 = GameManager::sharedState(result);
return (GameManager *)DeathMarkerLayer::setLabelsVisible(
*(DeathMarkerLayer **)(*(_QWORD *)(v8 + 544) + 1952LL),
v4 ^ 1u);
}
}
return result;
}