// // LevelStatsInfoPopup::decodeProgress from 0xcf8af4 to 0xcf8d5c (616 bytes) // // 2 xrefs: // > LevelStatsInfoPopup::buildInfoText @ 0xcf90a0 // > @ 0xc2db8 // // 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:50 +0000 // __int64 *__usercall LevelStatsInfoPopup::decodeProgress@(char *a1@, __int64 *a2@) { unsigned __int8 v4; // w0 __int64 v5; // x1 int v6; // w2 unsigned __int64 v7; // x19 unsigned int v8; // w22 unsigned __int64 v9; // x1 int v10; // w1 unsigned __int64 v11; // x1 const char *v12; // x0 __int64 v13; // x0 cocos2d::CCString *v14; // x0 size_t v15; // x0 char v16; // w0 __int64 v17; // x2 __int64 v18; // x3 char *CString; // [xsp+68h] [xbp+68h] __int64 v21; // [xsp+78h] [xbp+78h] BYREF __int64 v22; // [xsp+80h] [xbp+80h] void *v23; // [xsp+88h] [xbp+88h] __int64 v24; // [xsp+90h] [xbp+90h] BYREF __int64 v25; // [xsp+98h] [xbp+98h] void *v26; // [xsp+A0h] [xbp+A0h] v4 = *a1; v5 = (unsigned __int8)*a1 >> 1; if ( (v4 & 1) != 0 ) v5 = *((_QWORD *)a1 + 1); if ( !v5 ) { *a2 = 0; a2[1] = 0; a2[2] = 0; std::string::__init(a2, &byte_11B8890, 0); return a2; } v21 = 0; v6 = v4 & 1; v22 = 0; v23 = nullptr; v24 = 0; v7 = 0; v25 = 0; v8 = 0; v26 = nullptr; if ( (v4 & 1) == 0 ) goto LABEL_11; while ( 1 ) { v9 = *((_QWORD *)a1 + 1); if ( v7 > v9 ) break; if ( v7 != v9 ) { v10 = *(unsigned __int8 *)(*((_QWORD *)a1 + 2) + v7); if ( v10 != 44 ) { LABEL_8: std::string::push_back(&v24, v10); v4 = *a1; v6 = *a1 & 1; LABEL_9: ++v7; goto LABEL_10; } } while ( 1 ) { if ( (v24 & 1) != 0 ) { if ( !v25 ) goto LABEL_9; v12 = (const char *)v26; } else { if ( !((int)(unsigned __int8)v24 >> 1) ) goto LABEL_9; v12 = (char *)&v24 + 1; } v8 += atoi(v12); v13 = (unsigned __int8)v21 >> 1; if ( (v21 & 1) != 0 ) v13 = v22; if ( v13 ) std::string::append((__int64)&v21, &byte_11E1A70, 1u); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i%%", (const char *)v8); CString = (char *)cocos2d::CCString::getCString(v14); v15 = strlen(CString); std::string::append((__int64)&v21, CString, v15); if ( (v24 & 1) != 0 ) { ++v7; *(_BYTE *)v26 = 0; v25 = 0; v4 = *a1; } else { v4 = *a1; ++v7; LOWORD(v24) = 0; } v6 = v4 & 1; LABEL_10: if ( v6 ) break; LABEL_11: v11 = v4 >> 1; if ( v7 > v11 ) goto LABEL_27; if ( v7 != v11 ) { v10 = (unsigned __int8)a1[v7 + 1]; if ( v10 != 44 ) goto LABEL_8; } } } LABEL_27: v16 = v24; v17 = v21; v18 = v22; a2[2] = (__int64)v23; v21 = 0; v22 = 0; v23 = nullptr; *a2 = v17; a2[1] = v18; if ( (v16 & 1) != 0 ) { operator delete(v26); if ( (v21 & 1) == 0 ) return a2; LABEL_31: operator delete(v23); return a2; } if ( (v21 & 1) != 0 ) goto LABEL_31; return a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source