// // LevelStatsInfoPopup::buildStatsText from 0xcf85a0 to 0xcf8af4 (1364 bytes) // // 2 xrefs: // > LevelStatsInfoPopup::init @ 0xcf9988 // > @ 0x461c8 // // 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:49 +0000 // __int64 *__usercall LevelStatsInfoPopup::buildStatsText@(LevelStatsInfoPopup *this@, __int64 *a2@) { __int64 v4; // x0 __int64 v5; // x5 char *v6; // x1 cocos2d::CCString *v7; // x0 size_t v8; // x0 _DWORD *v9; // x0 const char *v10; // x1 cocos2d::CCString *v11; // x0 size_t v12; // x0 cocos2d::CCString *v13; // x0 size_t v14; // x0 unsigned int NormalPercent; // w0 cocos2d::CCString *v16; // x0 size_t v17; // x0 __int64 v18; // x1 GameToolbox *v19; // x0 const char *v20; // x1 cocos2d::CCString *v21; // x0 size_t v22; // x0 GameToolbox *v23; // x0 __int64 v24; // x1 __int64 v25; // x21 __int64 v26; // x1 char *v27; // x1 cocos2d::CCString *v28; // x0 size_t v29; // x0 GJGameLevel *v30; // x2 const char *v31; // x1 cocos2d::CCString *v32; // x0 size_t v33; // x0 unsigned int v34; // w22 unsigned int v35; // w0 cocos2d::CCString *v36; // x0 size_t v37; // x0 int v38; // w0 _DWORD *v39; // x2 const char *v40; // x1 cocos2d::CCString *v41; // x0 size_t v42; // x0 int v43; // w0 cocos2d::CCString *v44; // x0 size_t v45; // x0 int v46; // w0 cocos2d::CCString *v47; // x0 size_t v48; // x0 __int64 v49; // x0 __int64 v50; // x1 char *v52; // x1 cocos2d::CCString *v53; // x0 size_t v54; // x0 char *CString; // [xsp+48h] [xbp+48h] char *v56; // [xsp+48h] [xbp+48h] char *v57; // [xsp+48h] [xbp+48h] char *v58; // [xsp+48h] [xbp+48h] char *v59; // [xsp+48h] [xbp+48h] char *v60; // [xsp+48h] [xbp+48h] char *v61; // [xsp+48h] [xbp+48h] char *v62; // [xsp+48h] [xbp+48h] char *v63; // [xsp+48h] [xbp+48h] char *v64; // [xsp+48h] [xbp+48h] char *v65; // [xsp+48h] [xbp+48h] char *v66; // [xsp+48h] [xbp+48h] __int64 v67; // [xsp+50h] [xbp+50h] BYREF __int64 v68; // [xsp+58h] [xbp+58h] void *v69; // [xsp+60h] [xbp+60h] __int64 v70; // [xsp+68h] [xbp+68h] BYREF __int64 v71; // [xsp+70h] [xbp+70h] void *v72; // [xsp+78h] [xbp+78h] __int64 v73; // [xsp+80h] [xbp+80h] BYREF __int64 v74; // [xsp+88h] [xbp+88h] char *v75; // [xsp+90h] [xbp+90h] if ( GJGameLevel::isPlatformer(*((GJGameLevel **)this + 83)) ) { v4 = *((_QWORD *)this + 83); v73 = 0; v74 = 0; v75 = nullptr; if ( (*(_BYTE *)(v4 + 344) & 1) != 0 ) { std::string::__init(&v73, *(void **)(v4 + 360), *(_QWORD *)(v4 + 352)); v4 = *((_QWORD *)this + 83); } else { v5 = *(_QWORD *)(v4 + 352); v73 = *(_QWORD *)(v4 + 344); v74 = v5; v75 = *(char **)(v4 + 360); } v6 = (char *)&v73 + 1; if ( (v73 & 1) != 0 ) v6 = v75; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\nTotal Attempts: %i", v6, (unsigned int)(*(_DWORD *)(v4 + 796) - *(_DWORD *)(v4 + 800))); CString = (char *)cocos2d::CCString::getCString(v7); v67 = 0; v68 = 0; v69 = nullptr; v8 = strlen(CString); std::string::__init(&v67, CString, v8); if ( (v73 & 1) != 0 ) operator delete(v75); v9 = *((_DWORD **)this + 83); v10 = (const char *)(unsigned int)v9[383]; if ( (int)v10 > 0 ) { v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nPractice Attempts: %i", v10); v56 = (char *)cocos2d::CCString::getCString(v11); v12 = strlen(v56); std::string::append((__int64)&v67, v56, v12); v9 = *((_DWORD **)this + 83); } v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nTotal Jumps: %i", (const char *)(unsigned int)(v9[202] - v9[203])); v57 = (char *)cocos2d::CCString::getCString(v13); v14 = strlen(v57); std::string::append((__int64)&v67, v57, v14); if ( (int)GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 83)) > 0 && (int)GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 83)) <= 99 ) { NormalPercent = GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 83)); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nBest: %i%%", (const char *)NormalPercent); v58 = (char *)cocos2d::CCString::getCString(v16); v17 = strlen(v58); std::string::append((__int64)&v67, v58, v17); } v18 = *((_QWORD *)this + 83); v19 = (GameToolbox *)*(unsigned int *)(v18 + 1296); if ( (int)v19 > 0 ) { GameToolbox::msToTimeString(v19, 0, &v70); v20 = (char *)&v70 + 1; if ( (v70 & 1) != 0 ) v20 = (const char *)v72; v21 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nBest Time: %s", v20); v59 = (char *)cocos2d::CCString::getCString(v21); v22 = strlen(v59); std::string::append((__int64)&v67, v59, v22); if ( (v70 & 1) != 0 ) operator delete(v72); v18 = *((_QWORD *)this + 83); } v23 = (GameToolbox *)*(unsigned int *)(v18 + 1336); if ( (_DWORD)v23 ) { GameToolbox::pointsToString(v23, (unsigned __int64 *)&v73); v52 = (char *)&v73 + 1; if ( (v73 & 1) != 0 ) v52 = v75; v53 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nBest Points: %s", v52); v66 = (char *)cocos2d::CCString::getCString(v53); v54 = strlen(v66); std::string::append((__int64)&v67, v66, v54); if ( (v73 & 1) != 0 ) operator delete(v75); } a2[2] = (__int64)v69; v24 = v68; *a2 = v67; a2[1] = v24; } else { v25 = *((_QWORD *)this + 83); v73 = 0; v74 = 0; v75 = nullptr; if ( (*(_BYTE *)(v25 + 344) & 1) != 0 ) { std::string::__init(&v73, *(void **)(v25 + 360), *(_QWORD *)(v25 + 352)); v25 = *((_QWORD *)this + 83); } else { v26 = *(_QWORD *)(v25 + 352); v73 = *(_QWORD *)(v25 + 344); v74 = v26; v75 = *(char **)(v25 + 360); } v27 = (char *)&v73 + 1; if ( (v73 & 1) != 0 ) v27 = v75; v28 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\nTotal Attempts: %i", v27, (unsigned int)(*(_DWORD *)(v25 + 796) - *(_DWORD *)(v25 + 800))); v60 = (char *)cocos2d::CCString::getCString(v28); v70 = 0; v71 = 0; v72 = nullptr; v29 = strlen(v60); std::string::__init(&v70, v60, v29); if ( (v73 & 1) != 0 ) operator delete(v75); v30 = *((GJGameLevel **)this + 83); v31 = (const char *)*((unsigned int *)v30 + 383); if ( (int)v31 > 0 ) { v32 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nPractice Attempts: %i", v31); v61 = (char *)cocos2d::CCString::getCString(v32); v33 = strlen(v61); std::string::append((__int64)&v70, v61, v33); v30 = *((GJGameLevel **)this + 83); } v34 = *((_DWORD *)v30 + 202) - *((_DWORD *)v30 + 203); v35 = GJGameLevel::getNormalPercent(v30); v36 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\n" "Total Jumps: %i\n" "Normal: %i%%\n" "Practice: %i%%", (const char *)v34, v35, *(unsigned int *)(*((_QWORD *)this + 83) + 888LL)); v62 = (char *)cocos2d::CCString::getCString(v36); v37 = strlen(v62); std::string::append((__int64)&v70, v62, v37); v38 = GJGameLevel::getNormalPercent(*((GJGameLevel **)this + 83)); v39 = *((_DWORD **)this + 83); v40 = (const char *)(unsigned int)(v39[219] - v39[220]); if ( v38 != (_DWORD)v40 ) { v41 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nLeaderboard: %i%%", v40); v63 = (char *)cocos2d::CCString::getCString(v41); v42 = strlen(v63); std::string::append((__int64)&v70, v63, v42); v39 = *((_DWORD **)this + 83); } v43 = v39[205]; if ( v43 - v39[206] > 0 ) { v44 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nClicks (best att.): %i", (const char *)(unsigned int)(v43 - v39[206])); v64 = (char *)cocos2d::CCString::getCString(v44); v45 = strlen(v64); std::string::append((__int64)&v70, v64, v45); v39 = *((_DWORD **)this + 83); } v46 = v39[208]; if ( v46 - v39[209] > 0 ) { v47 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"\nTime (best att.): %is", (const char *)(unsigned int)(v46 - v39[209])); v65 = (char *)cocos2d::CCString::getCString(v47); v48 = strlen(v65); std::string::append((__int64)&v70, v65, v48); } v49 = v70; v50 = v71; a2[2] = (__int64)v72; *a2 = v49; a2[1] = v50; } return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source