// // DeathTrackerPopup::setView from 0x7752cc to 0x775470 (420 bytes) // // 4 xrefs: // > DeathTrackerPopup::onToggleGlobal @ 0x7754fa // > DeathTrackerPopup::onPanelButton @ 0x775574 // > DeathTrackerPopup::onPanelButton @ 0x7755d6 // > DeathTrackerPopup::init @ 0x776816 // // 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 // int __fastcall DeathTrackerPopup::setView(DeathTrackerPopup *this, int a2) { int v2; // r6 int v4; // r0 int v5; // r1 int v6; // r0 int v7; // r1 bool v8; // zf int v9; // r0 int v10; // r0 int v11; // r0 int v12; // r0 int v13; // r3 char *v14; // r1 float v15; // s15 int v16; // r6 void (__fastcall *v17)(int, _BYTE *); // r8 int v18; // r3 float v20; // s16 _BYTE v21[8]; // [sp+4h] [bp-Ch] BYREF if ( a2 != 2 ) v2 = 0; *((_DWORD *)this + 140) = a2; if ( a2 == 2 ) v2 = *((unsigned __int8 *)this + 706); v4 = *((_DWORD *)this + 138); if ( v4 ) { if ( a2 ) v5 = v2; else v5 = 1; (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 172))(v4, v5); } v6 = *((_DWORD *)this + 133); if ( v6 ) { v7 = *((_DWORD *)this + 140); if ( v7 != 1 ) { v8 = v7 == 2; v7 = v7 == 2 ? *((unsigned __int8 *)this + 706) : 0; if ( v8 ) v7 ^= 1u; } (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, v7); } v9 = *((_DWORD *)this + 151); if ( v9 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v9 + 172))(v9, *((_DWORD *)this + 140) == 1); v10 = *((_DWORD *)this + 139); if ( v10 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v10 + 172))(v10, *((_DWORD *)this + 140) == 3); v11 = *((_DWORD *)this + 153); if ( v11 ) (*(void (__fastcall **)(int, bool))(*(_DWORD *)v11 + 172))(v11, *((_DWORD *)this + 140) != 1); v12 = *((_DWORD *)this + 152); if ( v12 ) { (*(void (__fastcall **)(int, bool))(*(_DWORD *)v12 + 172))(v12, *((_DWORD *)this + 140) != 1); if ( v2 ) { v14 = "Attempt Progress"; } else { v13 = *((_DWORD *)this + 140); if ( v13 ) { if ( v13 == 1 ) v14 = "Death List"; else v14 = v13 == 2 ? "Death History" : "Progression"; } else { v14 = "Death Distribution"; } } (*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 152) + 464))(*((_DWORD *)this + 152), v14); if ( *((_DWORD *)this + 140) != 2 || *((_BYTE *)this + 706) ) { v20 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 164))(*((_DWORD *)this + 152)); v15 = (float)(v20 * (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 84))(*((_DWORD *)this + 152))) + 22.0; } else { v15 = *((float *)this + 134) - 4.0; } v16 = *((_DWORD *)this + 153); if ( v16 ) { v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v21, v15, 18.0); v17(v16, v21); } } v18 = *((_DWORD *)this + 140); if ( v18 == 1 ) { DeathTrackerPopup::buildList((ScrollableContentLayer **)this); } else if ( v18 == 2 ) { if ( *((_BYTE *)this + 706) ) DeathTrackerPopup::buildAttemptLine(this); else DeathTrackerPopup::buildHistory(this); } return DeathTrackerPopup::updatePanel(this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source