// // DeathTrackerPopup::updatePanel from 0x770d38 to 0x770f1c (484 bytes) // // 3 xrefs: // > DeathTrackerPopup::refreshGlobal @ 0x772f4c // > DeathTrackerPopup::refreshView @ 0x775034 // > DeathTrackerPopup::setView @ 0x77542e // // 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:15 +0000 // int __fastcall DeathTrackerPopup::updatePanel(DeathTrackerPopup *this) { int v2; // r5 int v3; // r6 int v4; // r3 int v5; // r2 bool v6; // r6 int v7; // r3 int v8; // r2 cocos2d::CCSpriteFrameCache **v9; // r3 const char *v10; // r1 int v11; // r2 const char *v12; // r1 cocos2d::CCSpriteFrameCache *v13; // r0 const char *v14; // r1 char *v15; // r11 DeathTrackerPopup *v16; // r10 int i; // r6 int result; // r0 int v19; // t1 int v20; // r1 unsigned int j; // r8 int v22; // r2 int v23; // r9 int v24; // r5 _BYTE *v25; // r1 int v26; // r1 _BYTE v27[4]; // [sp+0h] [bp-24h] BYREF _BYTE v28[4]; // [sp+4h] [bp-20h] BYREF _BYTE v29[4]; // [sp+8h] [bp-1Ch] BYREF char v30; // [sp+Ch] [bp-18h] BYREF bool v31; // [sp+Dh] [bp-17h] char v32; // [sp+Eh] [bp-16h] _DWORD v33[2]; // [sp+10h] [bp-14h] int v34; // [sp+18h] [bp-Ch] v2 = *((_DWORD *)this + 140); v27[0] = -1; v27[1] = -1; v27[2] = -1; memset(v28, 110, 3); memset(v29, 100, 3); if ( v2 != 2 ) { switch ( v2 ) { case 0: v3 = 1; goto LABEL_9; case 1: v3 = 2; goto LABEL_9; case 3: v3 = 3; goto LABEL_9; } } v3 = 0; LABEL_9: v4 = *((unsigned __int8 *)this + 576); v5 = *((_DWORD *)this + 143); v33[0] = v3; v34 = v4; v6 = 0; v33[1] = v5; v30 = 1; v31 = v2 != 3; if ( !v2 ) { v6 = v5 == 0; LABEL_12: v32 = v6; goto LABEL_15; } if ( v2 != 2 ) goto LABEL_12; v32 = 1; v7 = *((unsigned __int8 *)this + 706); v34 = v7 ^ 1; if ( v7 ) v31 = 0; LABEL_15: v8 = *((unsigned __int8 *)this + 664); if ( *((_BYTE *)this + 664) ) { v33[0] = *((unsigned __int8 *)this + 697); v31 = 0; v32 = 0; } v9 = *((cocos2d::CCSpriteFrameCache ***)this + 154); if ( v9 != *((cocos2d::CCSpriteFrameCache ***)this + 155) ) { if ( v8 ) v10 = "dtrack_pillar2_001.png"; else v10 = "dtrack_graph_001.png"; sub_770938(*v9, v10); } v11 = *((_DWORD *)this + 160); if ( (unsigned int)(*((_DWORD *)this + 161) - v11) > 7 ) { if ( *((_DWORD *)this + 140) == 2 ) v12 = "dtrack_list_001.png"; else v12 = "dtrack_rate_001.png"; sub_770938(*(cocos2d::CCSpriteFrameCache **)(v11 + 4), v12); } v13 = *((cocos2d::CCSpriteFrameCache **)this + 167); if ( v13 ) { if ( *((_BYTE *)this + 664) ) v14 = "dtrackBtn_local_001.png"; else v14 = "dtrackBtn_global_001.png"; sub_770938(v13, v14); } v15 = (char *)this + 648; v16 = this; for ( i = 0; i != 3; ++i ) { v19 = *((_DWORD *)v15 + 1); v15 += 4; result = v19; if ( v19 ) { if ( *(&v30 + i) ) v20 = 128; else v20 = 85; result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 456))(result, v20); } for ( j = 0; ; ++j ) { v22 = *((_DWORD *)v16 + 154); if ( j >= (*((_DWORD *)v16 + 155) - v22) >> 2 ) break; v23 = *(_DWORD *)(v22 + 4 * j); v24 = (unsigned __int8)*(&v30 + i); if ( *(&v30 + i) ) v24 = !*((_BYTE *)this + 664) || i || (int)j <= 1; if ( v24 ) { if ( j == v33[i] ) v25 = v27; else v25 = v28; } else { v25 = v29; } (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v23 + 480))(v23, v25); if ( v24 ) v26 = 255; else v26 = 70; (*(void (__fastcall **)(int, int))(*(_DWORD *)v23 + 456))(v23, v26); result = (*(int (__fastcall **)(int))(*(_DWORD *)v23 + 256))(v23); if ( result ) result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 528))(result, v24); } v16 = (DeathTrackerPopup *)((char *)v16 + 12); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source