// // MusicChangelogPopup::buildContent from 0x100517024 to 0x1005177e4 (1984 bytes) // // 1 xrefs: // > @ 0x10099c898 // // 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 11:07:06 +0000 // float __fastcall MusicChangelogPopup::buildContent(__int64 a1, __int64 a2, float a3) { __int64 v4; // x19 unsigned int v5; // w20 float v6; // s10 float v7; // s15 float v8; // s14 __int64 v9; // x0 __int64 v10; // x27 float v11; // s11 __int64 v12; // x0 int v13; // w0 signed int v14; // w23 signed int v15; // w20 __int64 v16; // x19 std::string::size_type size; // x8 void *v18; // x0 const std::string::value_type *CString; // x0 __int64 v20; // x8 __int64 v21; // x22 _BYTE *v22; // x9 __int64 v23; // x11 _BYTE *v24; // x10 _BYTE *v25; // x8 __int64 v26; // x28 std::string::size_type v27; // x25 std::string::size_type v28; // x8 __int64 v29; // x23 bool v30; // zf int v31; // w8 std::string::size_type v32; // x11 bool v33; // cc __int64 v34; // x8 _BYTE *v35; // x9 _BYTE *v36; // x10 std::string::size_type v37; // x11 _BYTE *v38; // x8 std::string::size_type v39; // x8 unsigned __int64 i; // x21 std::string::size_type v41; // x9 __int64 v42; // x19 std::string::size_type v43; // x0 int v44; // w0 __int64 v45; // x8 __int64 v46; // x9 __int64 v47; // x19 std::string::size_type v48; // x8 const std::string::value_type *v49; // x8 __int64 v50; // x19 const std::string::value_type *v51; // t1 int v52; // w10 const std::string::value_type *v53; // x1 std::string::size_type v54; // x2 std::string::size_type v55; // x9 char v56; // w8 std::string *v57; // x0 __int128 v58; // q0 std::string *v59; // x1 std::string::size_type v60; // x2 __int64 v61; // x0 __int64 MusicArtistForID; // x8 std::string *v63; // x0 void *v64; // x19 float v65; // s8 std::string *v66; // x0 void *v67; // x19 void *v68; // x19 __int64 v70; // [xsp+18h] [xbp-128h] float v71; // [xsp+20h] [xbp-120h] unsigned int v72; // [xsp+24h] [xbp-11Ch] signed int v74; // [xsp+30h] [xbp-110h] int v75; // [xsp+34h] [xbp-10Ch] std::string v76; // [xsp+38h] [xbp-108h] BYREF std::string v77; // [xsp+50h] [xbp-F0h] BYREF std::string v78; // [xsp+68h] [xbp-D8h] BYREF std::string v79; // [xsp+80h] [xbp-C0h] BYREF std::allocator __a; // [xsp+9Fh] [xbp-A1h] BYREF v4 = a1; if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 664)) ) { v5 = 0; v6 = (float)(a3 + -35.0) * 0.6; v7 = a3 + -41.0; v8 = 0.0; v70 = v4; v71 = a3; while ( 1 ) { v9 = sub_1002E75A0(*(_QWORD *)(v4 + 664), v5); if ( v9 ) { v10 = v9; v11 = v8 - sub_100527278(v4, a2, *(unsigned int *)(v9 + 56), *(unsigned int *)(v9 + 60), v8, a3); v12 = *(_QWORD *)(v10 + 72); v72 = v5; if ( v12 && (v13 = sub_1002E757C(v12)) != 0 ) { v14 = v13; if ( v13 >= 1 ) { v15 = 0; v74 = v13; do { v75 = *(_DWORD *)(sub_1002E75A0(*(_QWORD *)(v10 + 72), v15) + 56); memset(&v77, 0, sizeof(v77)); do { v16 = sub_1002E75A0(*(_QWORD *)(v10 + 72), v15); if ( *(_DWORD *)(v16 + 56) != v75 ) break; size = HIBYTE(v77.__r_.__value_.__r.__words[2]); if ( (v77.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = v77.__r_.__value_.__l.__size_; if ( size ) std::string::append(&v77, ", "); v18 = sub_1003065B0("+%i", *(_DWORD *)(v16 + 60)); CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v18); std::string::append(&v77, CString); memset(&v76, 0, sizeof(v76)); memset(&v78, 0, sizeof(v78)); v20 = *(_QWORD *)(v16 + 64); if ( *(char *)(v16 + 87) < 0 ) { v21 = *(_QWORD *)(v16 + 72); } else { v20 = v16 + 64; v21 = *(unsigned __int8 *)(v16 + 87); } if ( v21 ) { v22 = (_BYTE *)(v20 + v21); v23 = v21; v24 = (_BYTE *)v20; while ( *v24 != 46 ) { ++v24; if ( !--v23 ) { v24 = (_BYTE *)(v20 + v21); break; } } v25 = &v24[-v20]; if ( v24 == v22 ) v26 = -1; else v26 = (__int64)v25; } else { v26 = -1; } v27 = 0; do { std::string::basic_string(&v79, (const std::string *)(v16 + 64), v27, v26 - v27, &__a); v28 = HIBYTE(v79.__r_.__value_.__r.__words[2]); if ( (v79.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v28 = v79.__r_.__value_.__l.__size_; if ( v27 != v21 || v28 ) sub_100017C70((__int64)&v78); if ( v26 == -1 ) goto LABEL_33; v27 = v26 + 1; v31 = *(char *)(v16 + 87); v32 = *(_QWORD *)(v16 + 72); v33 = v31 < 0; if ( v31 >= 0 ) v34 = v16 + 64; else v34 = *(_QWORD *)(v16 + 64); if ( !v33 ) v32 = *(unsigned __int8 *)(v16 + 87); if ( v32 <= v27 ) { LABEL_33: v29 = -1; } else { v35 = (_BYTE *)(v34 + v32); v36 = (_BYTE *)(v34 + v27); v37 = ~v26 + v32; while ( *v36 != 46 ) { ++v36; if ( !--v37 ) { v36 = v35; break; } } v38 = &v36[-v34]; if ( v36 == v35 ) v29 = -1; else v29 = (__int64)v38; } if ( SHIBYTE(v79.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v79.__r_.__value_.__l.__data_); v30 = v26 == -1; v26 = v29; } while ( !v30 ); v39 = v78.__r_.__value_.__r.__words[0]; v14 = v74; if ( v78.__r_.__value_.__l.__size_ != v78.__r_.__value_.__r.__words[0] ) { for ( i = 0; i < 0xAAAAAAAAAAAAAAABLL * ((__int64)(v78.__r_.__value_.__l.__size_ - v78.__r_.__value_.__r.__words[0]) >> 3); ++i ) { v41 = v39 + 24 * i; if ( (*(char *)(v41 + 23) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(v41 + 8) ) { LABEL_58: v42 = MusicDownloadManager::sharedState(); v43 = v78.__r_.__value_.__r.__words[0] + 24 * i; if ( *(char *)(v43 + 23) < 0 ) v43 = *(_QWORD *)v43; v44 = atoi((const char *)v43); v45 = v42 + 472; v46 = *(_QWORD *)(v42 + 472); if ( !v46 ) goto LABEL_67; v47 = v42 + 472; do { if ( *(_DWORD *)(v46 + 32) >= v44 ) v47 = v46; v46 = *(_QWORD *)(v46 + 8LL * (*(_DWORD *)(v46 + 32) < v44)); } while ( v46 ); if ( v47 == v45 || v44 < *(_DWORD *)(v47 + 32) ) LABEL_67: v47 = v45; if ( v47 != MusicDownloadManager::sharedState() + 472 ) { v48 = HIBYTE(v76.__r_.__value_.__r.__words[2]); if ( (v76.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v48 = v76.__r_.__value_.__l.__size_; if ( v48 ) std::string::append(&v76, ", "); v51 = *(const std::string::value_type **)(v47 + 40); v50 = v47 + 40; v49 = v51; v52 = *(char *)(v50 + 23); if ( v52 >= 0 ) v53 = (const std::string::value_type *)v50; else v53 = v49; if ( v52 >= 0 ) v54 = *(unsigned __int8 *)(v50 + 23); else v54 = *(_QWORD *)(v50 + 8); std::string::append(&v76, v53, v54); } } } else if ( *(_BYTE *)(v41 + 23) ) { goto LABEL_58; } v39 = v78.__r_.__value_.__r.__words[0]; } } v79.__r_.__value_.__r.__words[0] = (std::string::size_type)&v78; sub_100018250((void ***)&v79); v55 = HIBYTE(v76.__r_.__value_.__r.__words[2]); v56 = HIBYTE(v76.__r_.__value_.__r.__words[2]); if ( (v76.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) v55 = v76.__r_.__value_.__l.__size_; if ( v55 ) { std::operator+(&v78, " (", &v76); v57 = std::string::append(&v78, ")"); v58 = *(_OWORD *)&v57->__r_.__value_.__l.__data_; v79.__r_.__value_.__r.__words[2] = v57->__r_.__value_.__r.__words[2]; *(_OWORD *)&v79.__r_.__value_.__l.__data_ = v58; v57->__r_.__value_.__l.__size_ = 0; v57->__r_.__value_.__r.__words[2] = 0; v57->__r_.__value_.__r.__words[0] = 0; if ( (v79.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v59 = &v79; else v59 = (std::string *)v79.__r_.__value_.__r.__words[0]; if ( (v79.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v60 = HIBYTE(v79.__r_.__value_.__r.__words[2]); else v60 = v79.__r_.__value_.__l.__size_; std::string::append(&v77, (const std::string::value_type *)v59, v60); if ( SHIBYTE(v79.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v79.__r_.__value_.__l.__data_); if ( SHIBYTE(v78.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v78.__r_.__value_.__l.__data_); v56 = HIBYTE(v76.__r_.__value_.__r.__words[2]); } if ( v56 < 0 ) operator delete(v76.__r_.__value_.__l.__data_); ++v15; } while ( v15 < v74 ); sub_100009900(&v79, "Unknown"); v61 = MusicDownloadManager::sharedState(); MusicArtistForID = MusicDownloadManager::getMusicArtistForID(v61, v75); if ( MusicArtistForID ) std::string::operator=(&v79, (const std::string *)(MusicArtistForID + 64)); std::string::append(&v79, ":"); if ( (v79.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v63 = &v79; else v63 = (std::string *)v79.__r_.__value_.__r.__words[0]; v64 = cocos2d::CCLabelBMFont::create_1((const char *)v63, "chatFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v64 + 160LL))(v64, 0.65); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v64, v6, 0.65, 0.35); sub_1000262BC((float *)&v78, 0.0, 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v64 + 296LL))(v64, &v78); sub_1000262BC((float *)&v78, 22.0, v11 + -8.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v64 + 184LL))(v64, &v78); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v64); (*(void (__fastcall **)(std::string *__return_ptr, void *))(*(_QWORD *)v64 + 336LL))(&v78, v64); v65 = *(float *)&v78.__r_.__value_.__l.__data_; if ( (v77.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v66 = &v77; else v66 = (std::string *)v77.__r_.__value_.__r.__words[0]; v67 = cocos2d::CCLabelBMFont::create_1((const char *)v66, "chatFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v67 + 160LL))(v67, 0.6); v78.__r_.__value_.__s.__data_[2] = -76; LOWORD(v78.__r_.__value_.__l.__data_) = -19276; (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v67 + 1072LL))(v67, &v78); cocos2d::CCLabelBMFont::limitLabelWidth((__int64)v67, v7 - v65, 0.6, 0.25); sub_1000262BC((float *)&v78, 0.0, 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v67 + 296LL))(v67, &v78); sub_1000262BC((float *)&v78, (float)(v65 + 22.0) + 6.0, v11 + -8.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v67 + 184LL))(v67, &v78); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v67); if ( SHIBYTE(v79.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v79.__r_.__value_.__l.__data_); if ( SHIBYTE(v77.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v77.__r_.__value_.__l.__data_); v11 = v11 + -16.0; } while ( v15 < v14 ); } } else { v68 = cocos2d::CCLabelBMFont::create_1("(no new songs)", "chatFont.fnt"); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v68 + 160LL))(v68, 0.55); v79.__r_.__value_.__s.__data_[2] = -106; LOWORD(v79.__r_.__value_.__l.__data_) = -26986; (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v68 + 1072LL))(v68, &v79); sub_1000262BC((float *)&v79, 0.0, 0.5); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v68 + 296LL))(v68, &v79); sub_1000262BC((float *)&v79, 22.0, v11 + -7.0); (*(void (__fastcall **)(void *, std::string *))(*(_QWORD *)v68 + 184LL))(v68, &v79); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 456LL))(a2, v68); v11 = v11 + -14.0; } v8 = v11 + -10.0; a3 = v71; v4 = v70; v5 = v72; } if ( ++v5 >= (unsigned int)sub_1002E757C(*(_QWORD *)(v4 + 664)) ) return -v8; } } v8 = 0.0; return -v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source