// // DeathHistogram::setProgression from 0xc9942c to 0xc99b0c (1760 bytes) // // 2 xrefs: // > DeathTrackerPopup::init @ 0xcb5354 // > @ 0xe1b68 // // 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:05:55 +0000 // __int64 __fastcall DeathHistogram::setProgression(__int64 a1, int32x4_t **a2, __int64 *a3, _QWORD *a4) { __int64 v6; // x22 int32x4_t *v7; // x24 float v8; // s9 unsigned __int64 v9; // x0 __int64 v10; // x1 int32x4_t v11; // q1 int32x4_t *v12; // x3 unsigned __int64 v13; // x2 int32x4_t v14; // t1 int v15; // w19 int v16; // w1 int v17; // w0 int v18; // w0 unsigned __int64 v19; // x2 int v20; // w3 unsigned __int64 v21; // x2 int v22; // w2 unsigned __int64 v23; // x1 int v24; // w1 __int64 i; // x20 int v26; // w1 int v27; // w27 float v28; // s0 float v29; // s0 float v30; // s10 unsigned __int64 v31; // x0 cocos2d::CCString *v32; // x0 cocos2d::CCLabelBMFont *CString; // x0 const char *v34; // x2 __int64 v35; // x27 void (__fastcall *v36)(__int64, time_t *); // x26 const char *v37; // x2 __int64 v38; // x1 __int64 v39; // x0 int v40; // w1 struct tm *v41; // x3 unsigned __int64 v42; // x1 cocos2d::CCString *v43; // x0 char *v44; // x0 cocos2d::CCLabelBMFont *v45; // x0 __int64 v46; // x27 void (__fastcall *v47)(__int64, time_t *); // x2 void (__fastcall *v48)(__int64, time_t *); // x24 __int64 v49; // x19 float v50; // s8 float v51; // s0 __int64 v53; // x23 __int64 v54; // x0 const char *v55; // x2 __int64 v56; // x19 void (__fastcall *v57)(__int64, time_t *); // x3 void (__fastcall *v58)(__int64, time_t *); // x21 unsigned __int64 v59; // [xsp+A8h] [xbp+A8h] __int64 v62; // [xsp+D8h] [xbp+D8h] float v63; // [xsp+E0h] [xbp+E0h] BYREF time_t v64; // [xsp+E8h] [xbp+E8h] BYREF __int64 v65; // [xsp+F0h] [xbp+F0h] BYREF __int64 v66; // [xsp+F8h] [xbp+F8h] void *v67; // [xsp+100h] [xbp+100h] _QWORD v68[2]; // [xsp+108h] [xbp+108h] BYREF v6 = *(_QWORD *)(*(_QWORD *)(a1 + 328) + 416LL); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 576LL))(v6); v7 = *a2; v59 = ((char *)a2[1] - (char *)*a2) >> 2; if ( !(_DWORD)v59 ) { v53 = a1; cocos2d::CCDrawNode::clear(*(cocos2d::CCDrawNode **)(a1 + 336)); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v53 + 344) + 576LL))(*(_QWORD *)(v53 + 344)); v54 = cocos2d::CCRect::operator=(a1 + 372, &unk_155EF70); cocos2d::CCRect::operator=(a1 + 356, v54); v56 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"No sessions yet.", "chatFont.fnt", v55); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v56 + 160LL))(v56, 0.6); v57 = *(void (__fastcall **)(__int64, time_t *))(*(_QWORD *)v56 + 1072LL); LOWORD(v64) = -26986; BYTE2(v64) = -106; v57(v56, &v64); v58 = *(void (__fastcall **)(__int64, time_t *))(*(_QWORD *)v56 + 184LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v63, (const cocos2d::CCSize *)(*(_QWORD *)(a1 + 328) + 424LL)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, v63 * 0.5, *(float *)(a1 + 320) * 0.5); v58(v56, &v64); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 456LL))(v6, v56); ScrollableContentLayer::setContentHeight(*(ScrollableContentLayer **)(v53 + 328), *(float *)(v53 + 316)); ScrollableContentLayer::scrollTo(*(ScrollableContentLayer **)(a1 + 328), 0.0); return _stack_chk_guard; } v8 = (float)(*(float *)(a1 + 320) - 32.0) - 36.0; if ( v8 < 10.0 ) v8 = 10.0; if ( !v59 ) { LABEL_69: v15 = 10; goto LABEL_36; } v9 = ((v59 - 4) >> 2) + 1; v10 = 4 * v9; if ( v59 - 1 <= 3 ) { v10 = 0; v18 = 0; goto LABEL_24; } v11 = 0u; v12 = *a2; v13 = 0; do { v14 = *v12++; ++v13; v11 = vmaxq_s32(v11, v14); } while ( v13 < v9 ); v18 = vmaxvq_s32(v11); if ( v10 != v59 ) { LABEL_24: v19 = v10 + 1; if ( v18 < (signed __int32)v7[(unsigned __int64)v10 / 4].n128_u32[0] ) v18 = v7[(unsigned __int64)v10 / 4].n128_i32[0]; if ( v59 > v19 ) { v20 = v7->n128_i32[v19]; v21 = v10 + 2; if ( v18 < v20 ) v18 = v20; if ( v59 > v21 ) { v22 = v7->n128_i32[v21]; v23 = v10 + 3; if ( v18 < v22 ) v18 = v22; if ( v59 > v23 ) { v24 = v7->n128_i32[v23]; if ( v18 < v24 ) v18 = v24; } } } v15 = 100; if ( v18 > 99 ) goto LABEL_36; LABEL_11: v16 = v18 + 6; if ( v18 + 3 >= 0 ) v16 = v18 + 3; v17 = v18 + (v16 >> 2); if ( v17 > 10 ) { if ( v17 <= 15 ) { v15 = 15; } else if ( v17 <= 20 ) { v15 = 20; } else if ( v17 <= 25 ) { v15 = 25; } else if ( v17 <= 30 ) { v15 = 30; } else if ( v17 <= 40 ) { v15 = 40; } else if ( v17 <= 50 ) { v15 = 50; } else if ( v17 <= 60 ) { v15 = 60; } else if ( v17 >= 76 ) { v15 = 100; } else { v15 = 75; } goto LABEL_36; } goto LABEL_69; } v15 = 100; if ( v18 <= 99 ) goto LABEL_11; LABEL_36: DeathHistogram::rebuildAxis( (cocos2d::CCDrawNode **)a1, (cocos2d::CCLabelBMFont *)"BEST %", v15, 32.0, v8, (cocos2d::CCLabelBMFont *)"SESSIONS"); if ( (int)v59 > 0 ) { for ( i = 0; (int)v59 > (int)i; ++i ) { v26 = (*a2)->n128_i32[i]; if ( v26 > 99 ) { v28 = 100.0; v27 = 100; } else { if ( v26 < 0 ) v27 = 0; else v27 = (*a2)->n128_i32[i]; v28 = (float)v27; } v29 = v28 / (float)v15; v30 = (float)(v29 * v8) + -4.0; if ( v30 < 3.0 ) v30 = 3.0; v31 = sub_C97D5C(1.0 - v29); LOWORD(v62) = v31; BYTE2(v62) = BYTE2(v31); sub_C981E8(v6, v62, (float)((float)(int)i * 31.0) + 15.5, 21.0, v30); v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i%%", (const char *)(unsigned int)v27); CString = (cocos2d::CCLabelBMFont *)cocos2d::CCString::getCString(v32); v35 = cocos2d::CCLabelBMFont::create(CString, "bigFont.fnt", v34); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v35 + 160LL))(v35, 0.26); v36 = *(void (__fastcall **)(__int64, time_t *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)&v64, (float)((float)(int)i * 31.0) + 15.5, (float)(v30 + 35.0) + 8.0); v36(v35, &v64); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 456LL))(v6, v35); v65 = 0; v38 = *a3; v39 = a3[1]; v66 = 0; v67 = nullptr; if ( (int)i < (int)((v39 - v38) >> 2) ) { v40 = *(_DWORD *)(v38 + 4 * i); if ( v40 > 0 ) { v64 = v40; v41 = localtime(&v64); v68[0] = 0; v68[1] = 0; if ( v41 ) strftime((char *)v68, 0x10u, "%m/%d", v41); std::string::assign(&v65, (char *)v68); } } if ( (v65 & 1) != 0 ) { if ( v66 ) goto LABEL_63; } else if ( (int)(unsigned __int8)v65 >> 1 ) { goto LABEL_55; } v42 = (unsigned int)(i + 1); if ( (int)i < (int)((__int64)(a4[1] - *a4) >> 2) ) v42 = *(unsigned int *)(*a4 + 4 * i); v43 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v42); v44 = (char *)cocos2d::CCString::getCString(v43); std::string::assign(&v65, v44); if ( (v65 & 1) != 0 ) { LABEL_63: v45 = (cocos2d::CCLabelBMFont *)v67; goto LABEL_56; } LABEL_55: v45 = (cocos2d::CCLabelBMFont *)((char *)&v65 + 1); LABEL_56: v46 = cocos2d::CCLabelBMFont::create(v45, "chatFont.fnt", v37); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v46 + 160LL))(v46, 0.45); v47 = *(void (__fastcall **)(__int64, time_t *))(*(_QWORD *)v46 + 1072LL); LOWORD(v64) = -14081; BYTE2(v64) = 120; v47(v46, &v64); v48 = *(void (__fastcall **)(__int64, time_t *))(*(_QWORD *)v46 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v64, (float)((float)(int)i * 31.0) + 15.5, 24.0); v48(v46, &v64); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 456LL))(v6, v46); if ( (v65 & 1) != 0 ) operator delete(v67); } } v49 = *(_QWORD *)(a1 + 328); v50 = (float)((float)(int)v59 * 31.0) + 10.0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v63, (const cocos2d::CCSize *)(v49 + 424)); if ( v50 < v63 ) { v49 = *(_QWORD *)(a1 + 328); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v64, (const cocos2d::CCSize *)(v49 + 424)); v51 = *(float *)&v64; } else { v51 = (float)((float)(int)v59 * 31.0) + 10.0; } ScrollableContentLayer::setContentHeight((ScrollableContentLayer *)v49, v51); ScrollableContentLayer::scrollTo(*(ScrollableContentLayer **)(a1 + 328), v50); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source