//
// DeathTrackerPopup::onPanelButton from 0x775524 to 0x7755dc (184 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::onPanelButton(DeathTrackerPopup *this, cocos2d::CCObject *a2)
{
int v3; // r6
int v4; // r5
char **result; // r0
int v6; // r1
int v7; // r3
int v8; // r3
int v9; // r1
bool v10; // r3
int v11; // r3
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = v3 / 10;
v6 = v3 % 10;
result = (char **)(v3 / 10);
v7 = v3 % 10;
if ( !*((_BYTE *)this + 664) )
{
if ( !v4 )
{
DeathTrackerPopup::setView(this, *(_DWORD *)&word_BF0AF0[2 * v6 + 2]);
return DeathTrackerPopup::refreshView(this);
}
v9 = *((_DWORD *)this + 140);
if ( v4 == 1 )
{
if ( v9 == 3 || v9 == 2 && *((_BYTE *)this + 706) )
return result;
*((_DWORD *)this + 143) = v7;
if ( !v7 )
{
LABEL_16:
*((_BYTE *)this + 577) = 1;
return DeathTrackerPopup::refreshView(this);
}
v10 = 0;
}
else
{
if ( v9 )
{
if ( v9 == 2 && v7 <= 1 )
{
v11 = v7 == 0;
if ( *((unsigned __int8 *)this + 706) != v11 )
{
*((_BYTE *)this + 706) = v11;
return (char **)DeathTrackerPopup::setView(this, 2);
}
}
return result;
}
v10 = v7 == 1;
}
*((_BYTE *)this + 576) = v10;
goto LABEL_16;
}
if ( !v4 && v6 <= 1 )
{
v8 = v6 == 1;
if ( *((unsigned __int8 *)this + 697) != v8 )
{
*((_BYTE *)this + 697) = v8;
return DeathTrackerPopup::refreshView(this);
}
}
return result;
}