// // DeathTrackerPopup::updatePanel from 0xcaa2bc to 0xcaa638 (892 bytes) // // 4 xrefs: // > DeathTrackerPopup::refreshGlobal @ 0xcacf50 // > DeathTrackerPopup::refreshView @ 0xcb2720 // > DeathTrackerPopup::setView @ 0xcb3d94 // > @ 0xca0d8 // // 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:04 +0000 // __int64 __fastcall DeathTrackerPopup::updatePanel(DeathTrackerPopup *this) { int v2; // w0 int v3; // w5 int v4; // w2 int v5; // w3 cocos2d::CCSpriteFrameCache ***v6; // x0 cocos2d::CCSpriteFrameCache ***v7; // x1 __int64 v8; // x2 const char *v9; // x1 cocos2d::CCSpriteFrameCache **v10; // x0 _QWORD *v11; // x20 __int64 i; // x22 __int64 v13; // x0 __int64 v14; // x1 __int64 v15; // x1 unsigned __int64 v16; // x19 int v17; // w24 _BYTE *v18; // x1 unsigned int v19; // w21 __int64 v20; // x0 __int64 v21; // x26 int v22; // w1 int v23; // w4 cocos2d::CCSpriteFrameCache ***v24; // x0 int v26; // w0 _BYTE v27[8]; // [xsp+68h] [xbp+68h] BYREF _BYTE v28[8]; // [xsp+70h] [xbp+70h] BYREF _BYTE v29[8]; // [xsp+78h] [xbp+78h] BYREF char v30; // [xsp+80h] [xbp+80h] BYREF bool v31; // [xsp+81h] [xbp+81h] char v32; // [xsp+82h] [xbp+82h] int v33; // [xsp+88h] [xbp+88h] int v34; // [xsp+8Ch] [xbp+8Ch] int v35; // [xsp+90h] [xbp+90h] v2 = *((_DWORD *)this + 182); v27[0] = -1; v27[1] = -1; v27[2] = -1; memset(v28, 110, 3); memset(v29, 100, 3); if ( v2 == 2 ) { v3 = 0; } else if ( v2 ) { if ( v2 == 1 ) { v3 = 2; } else { v3 = v2; if ( v2 != 3 ) { v4 = *((_DWORD *)this + 185); v5 = *((unsigned __int8 *)this + 744); v33 = 0; v34 = v4; v35 = v5; v32 = 0; v30 = 1; v31 = 1; if ( v4 | v2 ) goto LABEL_6; goto LABEL_35; } } } else { v3 = 1; } v22 = *((_DWORD *)this + 185); v23 = *((unsigned __int8 *)this + 744); v33 = v3; v34 = v22; v35 = v23; v32 = 0; v30 = 1; v31 = v2 != 3; if ( v22 | v2 ) { if ( v2 == 2 ) { v26 = *((unsigned __int8 *)this + 986); v32 = 1; if ( v26 ) { v35 = 0; v31 = 0; } else { v35 = 1; } } LABEL_6: if ( *((_BYTE *)this + 920) ) goto LABEL_7; goto LABEL_36; } LABEL_35: v32 = 1; if ( *((_BYTE *)this + 920) ) { LABEL_7: v6 = *((cocos2d::CCSpriteFrameCache ****)this + 103); v7 = *((cocos2d::CCSpriteFrameCache ****)this + 104); v33 = *((unsigned __int8 *)this + 977); v31 = 0; v32 = 0; if ( v6 != v7 ) sub_CA97C0(*v6, "dtrack_pillar2_001.png"); goto LABEL_9; } LABEL_36: v24 = *((cocos2d::CCSpriteFrameCache ****)this + 103); if ( v24 != *((cocos2d::CCSpriteFrameCache ****)this + 104) ) sub_CA97C0(*v24, "dtrack_graph_001.png"); LABEL_9: v8 = *((_QWORD *)this + 109); if ( (unsigned __int64)(*((_QWORD *)this + 110) - v8) > 0xF ) { if ( *((_DWORD *)this + 182) == 2 ) v9 = "dtrack_list_001.png"; else v9 = "dtrack_rate_001.png"; sub_CA97C0(*(cocos2d::CCSpriteFrameCache ***)(v8 + 8), v9); } v10 = *((cocos2d::CCSpriteFrameCache ***)this + 116); if ( v10 ) { if ( *((_BYTE *)this + 920) ) sub_CA97C0(v10, "dtrackBtn_local_001.png"); else sub_CA97C0(v10, "dtrackBtn_global_001.png"); } v11 = (_QWORD *)((char *)this + 832); for ( i = 0; i != 3; ++i ) { v13 = *((_QWORD *)this + i + 112); if ( v13 ) { if ( *(&v30 + i) ) v14 = 128; else v14 = 85; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 912LL))(v13, v14); } v15 = *(v11 - 1); if ( (*v11 - v15) >> 3 ) { v16 = 0; v17 = (unsigned __int8)*(&v30 + i); do { v21 = *(_QWORD *)(v15 + 8 * v16); if ( v17 && (*((unsigned __int8 *)this + 920) <= (unsigned int)((_DWORD)i != 0) || (int)v16 <= 1) ) { if ( *(&v33 + i) == (_DWORD)v16 ) v18 = v27; else v18 = v28; v19 = 1; (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v21 + 960LL))(v21, v18); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 912LL))(v21, 255); } else { v19 = 0; (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v21 + 960LL))(v21, v29); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 912LL))(v21, 70); } v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v21 + 512LL))(v21); if ( v20 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v20 + 1056LL))(v20, v19); v15 = *(v11 - 1); ++v16; } while ( v16 < (*v11 - v15) >> 3 ); } v11 += 3; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source