//
// DeathTrackerPopup::onToggleGlobal from 0x77548c to 0x77551e (146 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:19 +0000
//
char **__fastcall DeathTrackerPopup::onToggleGlobal(DeathTrackerPopup *this, cocos2d::CCObject *a2)
{
int v2; // r7
int v4; // r5
int v5; // r1
unsigned __int8 v7[12]; // [sp+0h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 138);
if ( v2 && !*((_BYTE *)this + 664) && (*((_DWORD *)this + 140) != 2 || !*((_BYTE *)this + 706)) )
{
DeathTrackerPopup::dtScrollKey((DeathTrackerPopup *)v7, (int)this);
DeathHistogram::persistScroll(v2, v7);
std::string::~string((int)v7);
}
v4 = *((unsigned __int8 *)this + 664) ^ 1;
*((_BYTE *)this + 664) = v4;
if ( v4 )
{
v5 = 0;
*((_DWORD *)this + 175) = *((_DWORD *)this + 140);
}
else
{
v5 = *((_DWORD *)this + 175);
*((_BYTE *)this + 705) = 1;
}
*((_DWORD *)this + 140) = v5;
DeathTrackerPopup::setView(this, v5);
return DeathTrackerPopup::refreshView(this);
}