// // DeathTrackerPopup::refreshView from 0x774654 to 0x77519a (2886 bytes) // // 8 xrefs: // > DeathTrackerPopup::onPrevSession @ 0x7751d8 // > DeathTrackerPopup::onNextSession @ 0x775218 // > DeathTrackerPopup::onJumpCurrent @ 0x775264 // > DeathTrackerPopup::onJumpSummary @ 0x775276 // > DeathTrackerPopup::setIDPopupClosed @ 0x7752b8 // > DeathTrackerPopup::onToggleGlobal @ 0x775500 // > DeathTrackerPopup::onPanelButton @ 0x77557e // > DeathTrackerPopup::init @ 0x77681c // // 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::refreshView(DeathTrackerPopup *this) { unsigned int i; // r6 int v3; // r2 int v4; // r0 int v5; // r0 int v7; // r2 int v8; // r3 int v9; // r3 int v10; // r3 int v11; // r7 int j; // r8 int v13; // r3 char *v14; // r9 int m; // r6 int v16; // r0 int v17; // r2 unsigned int k; // r3 unsigned __int8 *v19; // r0 int v20; // r5 int v21; // r5 unsigned int v22; // r2 int v23; // r3 int v24; // r0 int v25; // r2 int v26; // r3 GJGameLevel *v27; // r0 const char *v28; // r9 cocos2d::CCString *v29; // r0 const char *CString; // r7 size_t v31; // r0 cocos2d::CCString *v32; // r0 const char *v33; // r7 size_t v34; // r0 cocos2d::CCString *v35; // r0 const char *v36; // r9 size_t v37; // r0 int *v38; // r0 int *v39; // r11 cocos2d::CCString *v40; // r0 char *v41; // r0 cocos2d::CCString *v42; // r0 const char *v43; // r7 size_t v44; // r0 cocos2d::CCString *v45; // r0 const char *v46; // r7 size_t v47; // r0 int v48; // r0 int v49; // r0 char *v50; // r1 int v51; // r3 int v52; // r0 int v53; // r9 int v54; // [sp+4h] [bp-2A0h] int v55; // [sp+4h] [bp-2A0h] int v56; // [sp+4h] [bp-2A0h] int v57; // [sp+4h] [bp-2A0h] int v58; // [sp+4h] [bp-2A0h] int v59; // [sp+4h] [bp-2A0h] char *NormalPercent; // [sp+Ch] [bp-298h] char v61; // [sp+10h] [bp-294h] int v62; // [sp+14h] [bp-290h] int v63; // [sp+18h] [bp-28Ch] _DWORD *v64; // [sp+24h] [bp-280h] BYREF int v65; // [sp+28h] [bp-27Ch] int v66; // [sp+2Ch] [bp-278h] void *v67; // [sp+30h] [bp-274h] BYREF unsigned int v68; // [sp+34h] [bp-270h] unsigned int v69; // [sp+38h] [bp-26Ch] char *v70; // [sp+3Ch] [bp-268h] BYREF int v71; // [sp+40h] [bp-264h] int v72; // [sp+44h] [bp-260h] char *v73; // [sp+48h] [bp-25Ch] BYREF char *v74; // [sp+4Ch] [bp-258h] int v75; // [sp+50h] [bp-254h] int v76[2]; // [sp+54h] [bp-250h] BYREF char *v77; // [sp+5Ch] [bp-248h] int v78[3]; // [sp+60h] [bp-244h] BYREF int v79[3]; // [sp+6Ch] [bp-238h] BYREF int v80[3]; // [sp+78h] [bp-22Ch] BYREF int v81[3]; // [sp+84h] [bp-220h] BYREF int v82[3]; // [sp+90h] [bp-214h] BYREF int v83[3]; // [sp+9Ch] [bp-208h] BYREF int v84[3]; // [sp+A8h] [bp-1FCh] BYREF int v85[3]; // [sp+B4h] [bp-1F0h] BYREF int v86[3]; // [sp+C0h] [bp-1E4h] BYREF int v87[3]; // [sp+CCh] [bp-1D8h] BYREF int v88[3]; // [sp+D8h] [bp-1CCh] BYREF int v89[3]; // [sp+E4h] [bp-1C0h] BYREF int v90[3]; // [sp+F0h] [bp-1B4h] BYREF int v91[3]; // [sp+FCh] [bp-1A8h] BYREF int v92[3]; // [sp+108h] [bp-19Ch] BYREF int v93[3]; // [sp+114h] [bp-190h] BYREF int v94[3]; // [sp+120h] [bp-184h] BYREF int v95[3]; // [sp+12Ch] [bp-178h] BYREF int v96[3]; // [sp+138h] [bp-16Ch] BYREF int v97[3]; // [sp+144h] [bp-160h] BYREF int v98[3]; // [sp+150h] [bp-154h] BYREF unsigned __int8 v99[12]; // [sp+15Ch] [bp-148h] BYREF _DWORD v100[11]; // [sp+168h] [bp-13Ch] BYREF _DWORD v101[11]; // [sp+194h] [bp-110h] BYREF _DWORD v102[11]; // [sp+1C0h] [bp-E4h] BYREF int v103; // [sp+1ECh] [bp-B8h] BYREF _DWORD v104[11]; // [sp+218h] [bp-8Ch] BYREF _DWORD v105[11]; // [sp+244h] [bp-60h] BYREF _DWORD v106[11]; // [sp+270h] [bp-34h] BYREF for ( i = 0; ; ++i ) { v3 = *((_DWORD *)this + 180); if ( i >= (*((_DWORD *)this + 181) - v3) >> 2 ) break; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 4 * i) + 172))( *(_DWORD *)(v3 + 4 * i), *((unsigned __int8 *)this + 664) ^ 1); v4 = *(_DWORD *)(*((_DWORD *)this + 180) + 4 * i); (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 528))(v4, *((unsigned __int8 *)this + 664) ^ 1); } v5 = *((_DWORD *)this + 168); if ( v5 && *((_DWORD *)this + 145) == *((_DWORD *)this + 146) ) { (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v5 + 172))(v5, 0); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 168) + 528))(*((_DWORD *)this + 168), 0); } v61 = *((_BYTE *)this + 664); if ( v61 ) return DeathTrackerPopup::refreshGlobal(this); v7 = *((_DWORD *)this + 145); v8 = *((_DWORD *)this + 146); if ( v7 == v8 ) *((_BYTE *)this + 564) = 1; if ( *((int *)this + 142) < 0 ) *((_DWORD *)this + 142) = 0; if ( v7 != v8 ) { v9 = 954437177 * ((v8 - v7) >> 2); v7 = *((_DWORD *)this + 142); if ( v7 >= v9 ) *((_DWORD *)this + 142) = v9 - 1; } v64 = nullptr; v65 = 0; v66 = 0; DeathTrackerPopup::countsForScope((int)this, (void **)&v64, v7, 0); v10 = *((unsigned __int8 *)this + 576); if ( *((_BYTE *)this + 576) ) { if ( *((_DWORD *)this + 143) ) { v10 = 0; } else { if ( (unsigned int)(v65 - (_DWORD)v64) < 0x194 ) v11 = *((_DWORD *)this + 143); else v11 = v64[100]; v70 = *((char **)this + 143); std::vector::vector(&v73, 0x65u, &v70); for ( j = 99; j != -1; --j ) { v13 = v64[j]; v11 += v13; if ( v13 > 0 ) { v14 = v73; *(_DWORD *)&v14[j * 4] = lroundf(); } } std::vector::assign(&v64, v73, v74); std::__vector_base::~__vector_base(&v73); v10 = 1; } } m = *((unsigned __int8 *)this + 564); v62 = v10; v67 = nullptr; v68 = 0; v69 = 0; if ( m ) { v16 = *((_DWORD *)this + 132); if ( v16 ) { v70 = nullptr; v71 = 0; v72 = 0; GJGameLevel::dtExpandOrder((unsigned __int8 *)(v16 + 1192), (int)&v70); v17 = 0; for ( k = 0; ; v17 += *(_DWORD *)&v70[4 * k - 4] ) { k += 2; if ( k > (v71 - (int)v70) >> 2 ) break; } v19 = (unsigned __int8 *)(*((_DWORD *)this + 132) + 1204); v20 = *(_DWORD *)(*((_DWORD *)this + 132) + 1256); v73 = nullptr; v74 = nullptr; v21 = v20 + v17; v75 = 0; GJGameLevel::dtExpandOrder(v19, (int)&v73); v22 = 0; for ( m = 0; ; m += *(_DWORD *)&v73[4 * v22 - 4] ) { v22 += 3; if ( v22 > (v74 - v73) >> 2 ) break; } goto LABEL_37; } m = 0; LABEL_39: v21 = 0; goto LABEL_40; } v23 = *((_DWORD *)this + 142); if ( v23 < 0 ) goto LABEL_39; v24 = *((_DWORD *)this + 145); if ( v23 >= 954437177 * ((*((_DWORD *)this + 146) - v24) >> 2) ) goto LABEL_39; v70 = nullptr; v71 = 0; v72 = 0; GJGameLevel::dtExpandOrder((unsigned __int8 *)(v24 + 36 * v23 + 4), (int)&v70); v25 = *((_DWORD *)this + 145); v21 = (v71 - (int)v70) >> 2; v73 = nullptr; v74 = nullptr; v75 = 0; GJGameLevel::dtExpandOrder((unsigned __int8 *)(v25 + 36 * *((_DWORD *)this + 142) + 16), (int)&v73); m = (int)(((v74 - v73) >> 2) + ((unsigned int)(v74 - v73) >> 31)) >> 1; LABEL_37: std::__vector_base::~__vector_base(&v73); std::__vector_base::~__vector_base(&v70); LABEL_40: v26 = *((_DWORD *)this + 143); if ( v26 ) { if ( v26 == 1 ) v21 = m; else v21 += m; } v76[0] = 0; v76[1] = 0; v77 = nullptr; if ( *((_BYTE *)this + 564) ) { v27 = *((GJGameLevel **)this + 132); if ( v27 ) { v28 = *((const char **)v27 + 314); v63 = *((_DWORD *)v27 + 313); NormalPercent = (char *)GJGameLevel::getNormalPercent(v27); } else { v28 = nullptr; v63 = 0; NormalPercent = nullptr; } std::string::assign(v76, "Summary (All-Time)"); memset(v78, 0, sizeof(v78)); std::string::__init(v78, "Attempts:", 9u); v29 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v21); CString = (const char *)cocos2d::CCString::getCString(v29); memset(v79, 0, sizeof(v79)); v31 = strlen(CString); std::string::__init(v79, CString, v31); memset(v80, 0, sizeof(v80)); std::string::__init(v80, &unk_B6B226, 0); LOWORD(v54) = -1; BYTE2(v54) = -1; DTStatSeg::DTStatSeg((int)v100, (int)"GJ_attemptsIcon_001.png", (int)v78, (int)v79, (int)v80, v54); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, v100); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, v100); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v100); std::string::~string((int)v80); std::string::~string((int)v79); std::string::~string((int)v78); memset(v81, 0, sizeof(v81)); std::string::__init(v81, "Best:", 5u); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", NormalPercent); v33 = (const char *)cocos2d::CCString::getCString(v32); memset(v82, 0, sizeof(v82)); v34 = strlen(v33); std::string::__init(v82, v33, v34); memset(v83, 0, sizeof(v83)); std::string::__init(v83, &unk_B6B226, 0); LOWORD(v55) = -1; BYTE2(v55) = -1; DTStatSeg::DTStatSeg((int)v101, (int)"GJ_trophyIcon_001.png", (int)v81, (int)v82, (int)v83, v55); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, v101); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, v101); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v101); std::string::~string((int)v83); std::string::~string((int)v82); std::string::~string((int)v81); memset(v85, 0, sizeof(v85)); std::string::__init(v85, "PlayTime:", 9u); sub_7723A8(v84, v63); memset(v86, 0, sizeof(v86)); std::string::__init(v86, &unk_B6B226, 0); LOWORD(v56) = -1; BYTE2(v56) = -1; DTStatSeg::DTStatSeg((int)v102, (int)"GJ_timeIcon_001.png", (int)v85, (int)v84, (int)v86, v56); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, v102); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, v102); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v102); std::string::~string((int)v86); std::string::~string((int)v84); std::string::~string((int)v85); memset(v87, 0, sizeof(v87)); std::string::__init(v87, "Completed:", 0xAu); v35 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v28); v36 = (const char *)cocos2d::CCString::getCString(v35); memset(v88, 0, sizeof(v88)); v37 = strlen(v36); std::string::__init(v88, v36, v37); memset(v89, 0, sizeof(v89)); std::string::__init(v89, &unk_B6B226, 0); LOWORD(v57) = -1; BYTE2(v57) = -1; DTStatSeg::DTStatSeg((int)&v103, (int)"GJ_flagIcon_001.png", (int)v87, (int)v88, (int)v89, v57); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, &v103); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, &v103); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)&v103); std::string::~string((int)v89); std::string::~string((int)v88); v38 = v87; } else { v39 = (int *)(*((_DWORD *)this + 145) + 36 * *((_DWORD *)this + 142)); NormalPercent = (char *)v39[8]; sub_7710F0(&v103, *v39); v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Session %i / %i%s%s", (const char *)(954437177 * ((*((_DWORD *)this + 146) - *((_DWORD *)this + 145)) >> 2) - *((_DWORD *)this + 142))); v41 = (char *)cocos2d::CCString::getCString(v40); std::string::assign(v76, v41); memset(v90, 0, sizeof(v90)); std::string::__init(v90, "Attempts:", 9u); v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v21); v43 = (const char *)cocos2d::CCString::getCString(v42); memset(v91, 0, sizeof(v91)); v44 = strlen(v43); std::string::__init(v91, v43, v44); memset(v92, 0, sizeof(v92)); std::string::__init(v92, &unk_B6B226, 0); LOWORD(v54) = -1; BYTE2(v54) = -1; DTStatSeg::DTStatSeg((int)v104, (int)"GJ_attemptsIcon_001.png", (int)v90, (int)v91, (int)v92, v54); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, v104); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, v104); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v104); std::string::~string((int)v92); std::string::~string((int)v91); std::string::~string((int)v90); memset(v93, 0, sizeof(v93)); std::string::__init(v93, "Best:", 5u); v45 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", NormalPercent); v46 = (const char *)cocos2d::CCString::getCString(v45); memset(v94, 0, sizeof(v94)); v47 = strlen(v46); std::string::__init(v94, v46, v47); memset(v95, 0, sizeof(v95)); std::string::__init(v95, &unk_B6B226, 0); LOWORD(v58) = -1; BYTE2(v58) = -1; DTStatSeg::DTStatSeg((int)v105, (int)"GJ_trophyIcon_001.png", (int)v93, (int)v94, (int)v95, v58); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, v105); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, v105); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v105); std::string::~string((int)v95); std::string::~string((int)v94); std::string::~string((int)v93); memset(v97, 0, sizeof(v97)); std::string::__init(v97, "PlayTime:", 9u); sub_7723A8(v96, v39[7]); memset(v98, 0, sizeof(v98)); std::string::__init(v98, &unk_B6B226, 0); LOWORD(v59) = -1; BYTE2(v59) = -1; DTStatSeg::DTStatSeg((int)v106, (int)"GJ_timeIcon_001.png", (int)v97, (int)v96, (int)v98, v59); if ( v68 >= v69 ) { std::vector::__push_back_slow_path((int *)&v67, v106); } else { if ( v68 ) DTStatSeg::DTStatSeg(v68, v106); v68 += 44; } DTStatSeg::~DTStatSeg((DTStatSeg *)v106); std::string::~string((int)v98); std::string::~string((int)v96); std::string::~string((int)v97); v38 = &v103; } std::string::~string((int)v38); v48 = *((_DWORD *)this + 148); if ( v48 ) { if ( (v76[0] & 1) != 0 ) v50 = v77; else v50 = (char *)v76 + 1; (*(void (__fastcall **)(int, char *, int))(*(_DWORD *)v48 + 464))(v48, v50, LOBYTE(v76[0]) << 31); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 148), 185.0, 0.5, 0.25); } v49 = *((_DWORD *)this + 150); if ( v49 ) (*(void (__fastcall **)(int))(*(_DWORD *)v49 + 288))(v49); DeathTrackerPopup::buildStatRow((int)this, &v67, *((_DWORD *)this + 149)); v51 = *((_DWORD *)this + 140); if ( v51 == 2 && *((_BYTE *)this + 706) ) { DeathTrackerPopup::buildAttemptLine(this); } else { v52 = *((_DWORD *)this + 138); if ( v52 ) { if ( !v51 ) v61 = *((_BYTE *)this + 704); DeathHistogram::setData(v52, &v64, (int)NormalPercent, v62, *((_BYTE *)this + 577), v61); if ( !*((_DWORD *)this + 140) && *((_BYTE *)this + 705) && !*((_BYTE *)this + 704) && !*((_BYTE *)this + 577) ) { v53 = *((_DWORD *)this + 138); DeathTrackerPopup::dtScrollKey((DeathTrackerPopup *)v99, (int)this); DeathHistogram::restoreScroll(v53, v99); std::string::~string((int)v99); } } if ( *((_DWORD *)this + 140) == 2 ) DeathTrackerPopup::buildHistory(this); else DeathTrackerPopup::buildList((ScrollableContentLayer **)this); } *((_BYTE *)this + 577) = 0; if ( !*((_DWORD *)this + 140) ) { *((_BYTE *)this + 704) = 0; *((_BYTE *)this + 705) = 0; } DeathTrackerPopup::updatePanel(this); std::string::~string((int)v76); std::__vector_base::~__vector_base(&v67); return std::__vector_base::~__vector_base((char **)&v64); }
GD Web Decomp Icon

GD Web Decomp

Raw Source