// // DeathTrackerPopup::refreshGlobal from 0x772a54 to 0x773016 (1474 bytes) // // 1 xrefs: // > DeathTrackerPopup::refreshView @ 0x7746ce // // 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:17 +0000 // char **__fastcall DeathTrackerPopup::refreshGlobal(DeathTrackerPopup *this) { int v2; // r0 int v3; // r0 int v4; // r6 void (__fastcall *v5)(int, void **); // r7 float v6; // s16 float v7; // r0 int v8; // r7 int v9; // r3 char *v10; // r8 int *v11; // r0 int NormalPercent; // r7 int v13; // r0 cocos2d::CCString *v14; // r0 const char *CString; // r11 size_t v16; // r0 int v17; // r0 cocos2d::CCString *v18; // r0 const char *v19; // r10 size_t v20; // r0 cocos2d::CCString *v21; // r0 const char *v22; // r9 size_t v23; // r0 int v24; // r0 int v26; // [sp+4h] [bp-188h] int v27; // [sp+4h] [bp-188h] int v28; // [sp+4h] [bp-188h] char *v29; // [sp+Ch] [bp-180h] char *v30; // [sp+10h] [bp-17Ch] char *v31[3]; // [sp+20h] [bp-16Ch] BYREF void *v32; // [sp+2Ch] [bp-160h] BYREF unsigned int v33; // [sp+30h] [bp-15Ch] unsigned int v34; // [sp+34h] [bp-158h] void *v35; // [sp+38h] [bp-154h] BYREF unsigned int v36; // [sp+3Ch] [bp-150h] unsigned int v37; // [sp+40h] [bp-14Ch] int v38[3]; // [sp+44h] [bp-148h] BYREF int v39[3]; // [sp+50h] [bp-13Ch] BYREF int v40[3]; // [sp+5Ch] [bp-130h] BYREF int v41[3]; // [sp+68h] [bp-124h] BYREF int v42[3]; // [sp+74h] [bp-118h] BYREF int v43[3]; // [sp+80h] [bp-10Ch] BYREF int v44[3]; // [sp+8Ch] [bp-100h] BYREF int v45[3]; // [sp+98h] [bp-F4h] BYREF int v46[3]; // [sp+A4h] [bp-E8h] BYREF int v47[3]; // [sp+B0h] [bp-DCh] BYREF int v48[3]; // [sp+BCh] [bp-D0h] BYREF int v49[3]; // [sp+C8h] [bp-C4h] BYREF _DWORD v50[11]; // [sp+D4h] [bp-B8h] BYREF _DWORD v51[11]; // [sp+100h] [bp-8Ch] BYREF _DWORD v52[11]; // [sp+12Ch] [bp-60h] BYREF _DWORD v53[11]; // [sp+158h] [bp-34h] BYREF v2 = *((_DWORD *)this + 148); if ( v2 ) (*(void (__fastcall **)(int, void *))(*(_DWORD *)v2 + 464))(v2, &unk_B6B226); v3 = *((_DWORD *)this + 152); if ( v3 ) { (*(void (__fastcall **)(int, const char *))(*(_DWORD *)v3 + 464))(v3, "World Survival"); v4 = *((_DWORD *)this + 153); if ( v4 ) { v5 = *(void (__fastcall **)(int, void **))(*(_DWORD *)v4 + 160); v6 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 164))(*((_DWORD *)this + 152)); v7 = (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 84))(*((_DWORD *)this + 152)); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v35, (float)(v6 * v7) + 22.0, 18.0); v5(v4, &v35); } } v8 = 0; v35 = nullptr; std::vector::vector(v31, 0x65u, &v35); v9 = *((unsigned __int8 *)this + 696); v35 = nullptr; v32 = nullptr; v33 = 0; v34 = 0; v36 = 0; v37 = 0; if ( v9 ) { do { v10 = v31[0]; *(_DWORD *)&v10[v8] = lroundf(); v8 += 4; } while ( v8 != 404 ); v30 = (char *)lroundf(); v11 = *((int **)this + 132); if ( v11 ) { if ( v11[314] > 0 ) NormalPercent = 100; else NormalPercent = GJGameLevel::getNormalPercent((GJGameLevel *)v11); } else { NormalPercent = 0; } v13 = lroundf(); memset(v38, 0, sizeof(v38)); v29 = (char *)v13; std::string::__init(v38, "Global: You beat", 0x10u); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v29); CString = (const char *)cocos2d::CCString::getCString(v14); memset(v39, 0, sizeof(v39)); v16 = strlen(CString); std::string::__init(v39, CString, v16); memset(v40, 0, sizeof(v40)); std::string::__init(v40, "of players", 0xAu); v17 = sub_770744(); LOWORD(v26) = v17; BYTE2(v26) = BYTE2(v17); DTStatSeg::DTStatSeg((int)v50, 0, (int)v38, (int)v39, (int)v40, v26); if ( v33 >= v34 ) { std::vector::__push_back_slow_path((int *)&v32, v50); } else { if ( v33 ) DTStatSeg::DTStatSeg(v33, v50); v33 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v50); std::string::~string((int)v40); std::string::~string((int)v39); std::string::~string((int)v38); memset(v41, 0, sizeof(v41)); std::string::__init(v41, "Completion:", 0xBu); v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", v30); v19 = (const char *)cocos2d::CCString::getCString(v18); memset(v42, 0, sizeof(v42)); v20 = strlen(v19); std::string::__init(v42, v19, v20); memset(v43, 0, sizeof(v43)); std::string::__init(v43, &unk_B6B226, 0); LOWORD(v27) = -1; BYTE2(v27) = -1; DTStatSeg::DTStatSeg((int)v51, (int)"GJ_flagIcon_001.png", (int)v41, (int)v42, (int)v43, v27); if ( v36 >= v37 ) { std::vector::__push_back_slow_path((int *)&v35, v51); } else { if ( v36 ) DTStatSeg::DTStatSeg(v36, v51); v36 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v51); std::string::~string((int)v43); std::string::~string((int)v42); std::string::~string((int)v41); memset(v44, 0, sizeof(v44)); std::string::__init(v44, "Best:", 5u); v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)NormalPercent); v22 = (const char *)cocos2d::CCString::getCString(v21); memset(v45, 0, sizeof(v45)); v23 = strlen(v22); std::string::__init(v45, v22, v23); memset(v46, 0, sizeof(v46)); std::string::__init(v46, &unk_B6B226, 0); LOWORD(v28) = -1; BYTE2(v28) = -1; DTStatSeg::DTStatSeg((int)v52, (int)"GJ_trophyIcon_001.png", (int)v44, (int)v45, (int)v46, v28); if ( v36 >= v37 ) { std::vector::__push_back_slow_path((int *)&v35, v52); } else { if ( v36 ) DTStatSeg::DTStatSeg(v36, v52); v36 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v52); std::string::~string((int)v46); std::string::~string((int)v45); std::string::~string((int)v44); } else { memset(v47, 0, sizeof(v47)); std::string::__init(v47, "Global:", 7u); memset(v48, 0, sizeof(v48)); std::string::__init(v48, "No data yet", 0xBu); memset(v49, 0, sizeof(v49)); std::string::__init(v49, &unk_B6B226, 0); LOWORD(v26) = -1; BYTE2(v26) = -1; DTStatSeg::DTStatSeg((int)v53, 0, (int)v47, (int)v48, (int)v49, v26); if ( v33 >= v34 ) { std::vector::__push_back_slow_path((int *)&v32, v53); } else { if ( v33 ) DTStatSeg::DTStatSeg(v33, v53); v33 += 44; } NormalPercent = -1; DTStatSeg::~DTStatSeg((DTStatSeg *)v53); std::string::~string((int)v49); std::string::~string((int)v48); std::string::~string((int)v47); } DeathTrackerPopup::buildStatRow((int)this, &v32, *((_DWORD *)this + 150)); DeathTrackerPopup::buildStatRow((int)this, &v35, *((_DWORD *)this + 149)); v24 = *((_DWORD *)this + 138); if ( v24 ) DeathHistogram::setSurvival( v24, v31, *((unsigned __int8 *)this + 697) ^ 1, *((unsigned __int8 *)this + 577), NormalPercent); *((_BYTE *)this + 577) = 0; DeathTrackerPopup::updatePanel(this); std::__vector_base::~__vector_base(&v35); std::__vector_base::~__vector_base(&v32); return std::__vector_base::~__vector_base(v31); }
GD Web Decomp Icon

GD Web Decomp

Raw Source