// // MusicChangelogPopup::buildContent from 0x6c0e18 to 0x6c154e (1846 bytes) // // 0 xrefs: // // 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:56:50 +0000 // float __fastcall MusicChangelogPopup::buildContent(cocos2d::CCArray **this, cocos2d::CCNode *a2, float a3, float a4) { float v5; // s16 int v7; // r11 const char *v8; // r2 float v9; // s15 cocos2d::CCArray *v10; // r0 float v11; // s16 int v12; // r6 void (__fastcall *v13)(int, float *); // r2 void (__fastcall *v14)(int, float *); // r5 void (__fastcall *v15)(int, float *); // r5 signed int v16; // r10 int v17; // r4 int v18; // r3 cocos2d::CCString *v19; // r0 char *CString; // r0 int v21; // r7 int v22; // r3 unsigned __int8 *v23; // r2 unsigned __int8 *v24; // r3 unsigned __int8 *v25; // r1 unsigned __int8 *v26; // r5 int v27; // r6 int v28; // r5 int v29; // r3 unsigned int v30; // r6 size_t v31; // r2 int v32; // r3 unsigned int v33; // r3 std::logic_error *exception; // r4 int v35; // r1 size_t v36; // r3 const void *v37; // r1 int v38; // r3 int *v39; // r3 int v40; // r3 unsigned int v41; // r3 int v42; // r2 unsigned __int8 *v43; // r1 unsigned __int8 *v44; // r3 unsigned __int8 *v45; // r5 int v46; // r0 MusicDownloadManager *v47; // r0 unsigned int j; // r5 int v49; // r3 int v50; // r3 int v51; // r4 unsigned int v52; // r0 const char *v53; // r0 MusicDownloadManager *v54; // r0 _DWORD *v55; // r3 _DWORD *v56; // r2 _DWORD *v57; // r1 int v58; // r3 int v59; // r2 const void *v60; // r1 size_t v61; // r2 size_t v62; // r4 char *v63; // r6 cocos2d::CCLabelBMFont *v64; // r1 int *v65; // r0 size_t v66; // r1 char *v67; // r2 char *v68; // r1 size_t v69; // r2 MusicDownloadManager *v70; // r0 MusicDownloadManager *v71; // r0 int *MusicArtistForID; // r0 int v73; // r5 const void *v74; // r1 size_t v75; // r5 unsigned int v76; // r2 char *v77; // r3 int v78; // r3 cocos2d::CCLabelBMFont *v79; // r0 cocos2d::CCLabelBMFont *v80; // r4 void (__fastcall *v81)(cocos2d::CCLabelBMFont *, float *); // r7 void (__fastcall *v82)(cocos2d::CCLabelBMFont *, float *); // r9 const char *v83; // r2 float v84; // s18 cocos2d::CCLabelBMFont *v85; // r0 cocos2d::CCLabelBMFont *v86; // r4 void (__fastcall *v87)(cocos2d::CCLabelBMFont *, float *); // r2 void (__fastcall *v88)(cocos2d::CCLabelBMFont *, float *); // r7 void (__fastcall *v89)(cocos2d::CCLabelBMFont *, float *); // r7 size_t v91; // r1 int v92; // r2 unsigned int i; // [sp+10h] [bp-74h] signed int v94; // [sp+14h] [bp-70h] int v96; // [sp+1Ch] [bp-68h] int v97; // [sp+20h] [bp-64h] int v98; // [sp+40h] [bp-44h] BYREF int v99; // [sp+44h] [bp-40h] cocos2d::CCLabelBMFont *v100; // [sp+48h] [bp-3Ch] unsigned int v101; // [sp+4Ch] [bp-38h] BYREF int v102; // [sp+50h] [bp-34h] char *v103; // [sp+54h] [bp-30h] int v104; // [sp+58h] [bp-2Ch] BYREF size_t v105; // [sp+5Ch] [bp-28h] cocos2d::CCLabelBMFont *v106; // [sp+60h] [bp-24h] float v107; // [sp+64h] [bp-20h] BYREF int *v108; // [sp+68h] [bp-1Ch] int *v109; // [sp+6Ch] [bp-18h] int v110; // [sp+70h] [bp-14h] BYREF int v111; // [sp+74h] [bp-10h] char *v112; // [sp+78h] [bp-Ch] v5 = 0.0; for ( i = 0; i < cocos2d::CCArray::count(*(this + 130)); ++i ) { v7 = cocos2d::CCArray::objectAtIndex(*(this + 130), i); if ( v7 ) { v9 = COERCE_FLOAT( ScrollViewPopup::addVersionHeader( (ScrollViewPopup *)this, a2, *(_DWORD *)(v7 + 52), *(_DWORD *)(v7 + 56), v5, a3)); v10 = *(cocos2d::CCArray **)(v7 + 64); v11 = v5 - v9; if ( v10 ) { v94 = cocos2d::CCArray::count(v10); if ( v94 ) { v16 = 0; while ( 1 ) { if ( v16 >= v94 ) goto LABEL_128; v96 = *(_DWORD *)(cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v7 + 64), v16) + 52); v98 = 0; v99 = 0; v100 = nullptr; do { v17 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v7 + 64), v16); if ( *(_DWORD *)(v17 + 52) != v96 ) break; if ( (v98 & 1) != 0 ) v18 = v99; else v18 = (int)(unsigned __int8)v98 >> 1; if ( v18 ) std::string::append(&v98, ", "); v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"+%i", *(const char **)(v17 + 56)); CString = (char *)cocos2d::CCString::getCString(v19); std::string::append(&v98, CString); v104 = 0; v105 = 0; v106 = nullptr; v107 = 0.0; v108 = nullptr; v109 = nullptr; v21 = *(unsigned __int8 *)(v17 + 60); if ( (v21 & 1) != 0 ) { v22 = *(_DWORD *)(v17 + 64); v23 = *(unsigned __int8 **)(v17 + 68); if ( !v22 ) { v28 = -1; goto LABEL_29; } } else { v22 = v21 >> 1; if ( !(v21 >> 1) ) { v28 = -1; LABEL_31: v29 = v21 >> 1; goto LABEL_32; } v23 = (unsigned __int8 *)(v17 + 61); } v24 = &v23[v22]; v25 = v23; while ( 1 ) { v26 = v25; if ( v25 == v24 ) break; v27 = *v25++; if ( v27 == 46 ) { v28 = v26 - v23; goto LABEL_26; } } v28 = -1; LABEL_26: if ( (v21 & 1) == 0 ) goto LABEL_31; LABEL_29: v29 = *(_DWORD *)(v17 + 64); LABEL_32: v30 = 0; v97 = v29; while ( 1 ) { v110 = 0; v31 = v28 - v30; v111 = 0; v112 = nullptr; v32 = *(unsigned __int8 *)(v17 + 60); if ( (v32 & 1) != 0 ) { v33 = *(_DWORD *)(v17 + 64); if ( v30 > v33 ) goto LABEL_37; v35 = *(_DWORD *)(v17 + 68); } else { v33 = v32 >> 1; if ( v30 > v33 ) { LABEL_37: exception = (std::logic_error *)_cxa_allocate_exception(8u); std::logic_error::logic_error(exception, "basic_string"); *(_DWORD *)exception = &off_D1548C; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))std::length_error::~length_error); } v35 = v17 + 61; } v36 = v33 - v30; v37 = (const void *)(v35 + v30); if ( v31 >= v36 ) v31 = v36; std::string::__init(&v110, v37, v31); if ( (v110 & 1) != 0 ) v38 = v111; else v38 = (int)(unsigned __int8)v110 >> 1; if ( v38 || v30 != v97 ) { v39 = v108; if ( v108 == v109 ) { std::vector::__push_back_slow_path((int *)&v107, (int)&v110); } else { if ( v108 ) { *v108 = 0; v39[1] = 0; v39[2] = 0; if ( (v110 & 1) != 0 ) { std::string::__init(v39, v112, v111); } else { v91 = v111; v92 = (int)v112; *v39 = v110; v39[1] = v91; v39[2] = v92; } } v108 += 3; } } if ( v28 == -1 ) break; v40 = *(unsigned __int8 *)(v17 + 60); v30 = v28 + 1; if ( (v40 & 1) != 0 ) { v41 = *(_DWORD *)(v17 + 64); v42 = *(_DWORD *)(v17 + 68); } else { v41 = v40 >> 1; v42 = v17 + 61; } if ( v30 < v41 ) { v43 = (unsigned __int8 *)(v42 + v30); v44 = (unsigned __int8 *)(v41 + v42); while ( 1 ) { v45 = v43; if ( v43 == v44 ) break; v46 = *v43++; if ( v46 == 46 ) { v28 = (int)&v45[-v42]; goto LABEL_60; } } } v28 = -1; LABEL_60: std::string::~string((int)&v110); } v47 = (MusicDownloadManager *)std::string::~string((int)&v110); for ( j = 0; j < -1431655765 * (((int)v108 - LODWORD(v107)) >> 2); ++j ) { v49 = *(unsigned __int8 *)(LODWORD(v107) + 12 * j); if ( (v49 & 1) != 0 ) v50 = *(_DWORD *)(LODWORD(v107) + 12 * j + 4); else v50 = v49 >> 1; if ( v50 ) { v51 = MusicDownloadManager::sharedState(v47) + 348; v52 = LODWORD(v107) + 12 * j; if ( (*(_BYTE *)v52 & 1) != 0 ) v53 = *(const char **)(v52 + 8); else v53 = (const char *)(v52 + 1); v54 = (MusicDownloadManager *)atoi(v53); v55 = *(_DWORD **)v51; v56 = (_DWORD *)v51; while ( v55 ) { if ( v55[4] >= (int)v54 ) { v57 = (_DWORD *)*v55; } else { v57 = (_DWORD *)v55[1]; v55 = v56; } v56 = v55; v55 = v57; } if ( v56 != (_DWORD *)v51 && (int)v54 >= v56[4] ) v51 = (int)v56; v47 = (MusicDownloadManager *)(MusicDownloadManager::sharedState(v54) + 348); if ( (MusicDownloadManager *)v51 != v47 ) { if ( (v104 & 1) != 0 ) v58 = v105; else v58 = (int)(unsigned __int8)v104 >> 1; if ( v58 ) std::string::append(&v104, ", "); v59 = *(unsigned __int8 *)(v51 + 20); if ( (v59 & 1) != 0 ) { v60 = *(const void **)(v51 + 28); v61 = *(_DWORD *)(v51 + 24); } else { v60 = (const void *)(v51 + 21); v61 = v59 >> 1; } v47 = (MusicDownloadManager *)std::string::append(&v104, v60, v61); } } } std::__vector_base::~__vector_base((int)&v107); if ( (v104 & 1) != 0 ) { v62 = v105; if ( v105 ) goto LABEL_135; } else { v62 = (int)(unsigned __int8)v104 >> 1; if ( v62 ) { LABEL_135: v101 = 0; v102 = 0; v103 = nullptr; if ( v62 + 2 > 0xFFFFFFEF ) sub_389D48(); if ( v62 + 2 > 0xA ) { v63 = (char *)operator new((v62 + 18) & 0xFFFFFFF0); v103 = v63; v101 = (v62 + 18) & 0xFFFFFFF0 | 1; v102 = 2; } else { v63 = (char *)&v101 + 1; LOBYTE(v101) = 4; } std::char_traits::copy(v63, " (", 2u); v63[2] = 0; if ( (v104 & 1) != 0 ) v64 = v106; else v64 = (cocos2d::CCLabelBMFont *)((char *)&v104 + 1); std::string::append(&v101, v64, v62); v65 = std::string::append(&v101, ")"); v66 = v65[1]; v67 = (char *)v65[2]; v110 = *v65; v111 = v66; v112 = v67; *v65 = 0; v65[1] = 0; v65[2] = 0; if ( (v110 & 1) != 0 ) { v68 = v112; v69 = v111; } else { v69 = (int)(unsigned __int8)v110 >> 1; v68 = (char *)&v110 + 1; } std::string::append(&v98, v68, v69); std::string::~string((int)&v110); std::string::~string((int)&v101); } } ++v16; std::string::~string((int)&v104); } while ( v16 != v94 ); v104 = 0; v105 = 0; v106 = nullptr; v70 = (MusicDownloadManager *)std::string::__init(&v104, "Unknown", 7u); v71 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v70); MusicArtistForID = (int *)MusicDownloadManager::getMusicArtistForID(v71, v96); if ( MusicArtistForID && &v104 != MusicArtistForID + 14 ) { v73 = *((unsigned __int8 *)MusicArtistForID + 56); if ( (v73 & 1) != 0 ) { v74 = (const void *)MusicArtistForID[16]; v75 = MusicArtistForID[15]; } else { v74 = (char *)MusicArtistForID + 57; v75 = v73 >> 1; } if ( (v104 & 1) != 0 ) { v76 = (v104 & 0xFFFFFFFE) - 1; if ( v76 >= v75 ) { v77 = (char *)v106; goto LABEL_114; } v78 = v105; LABEL_120: std::string::__grow_by_and_replace((int)&v104, v76, v75 - v76, v78, 0, v78, v75, v74); } else { if ( v75 > 0xA ) { v78 = (int)(unsigned __int8)v104 >> 1; v76 = 10; goto LABEL_120; } v77 = (char *)&v104 + 1; LABEL_114: if ( v75 ) v77 = (char *)memmove(v77, v74, v75); v77[v75] = 0; if ( (v104 & 1) != 0 ) v105 = v75; else LOBYTE(v104) = 2 * v75; } } std::string::append(&v104, ":"); if ( (v104 & 1) != 0 ) v79 = v106; else v79 = (cocos2d::CCLabelBMFont *)((char *)&v104 + 1); v80 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create( v79, "chatFont.fnt", (const char *)((unsigned __int8)v104 << 31)); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v80 + 80))(v80, 1059481190); cocos2d::CCLabelBMFont::limitLabelWidth(v80, (float)(a3 - 35.0) * 0.6, 0.65, 0.35); v81 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v80 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107, 0.0, 0.5); v81(v80, &v107); v82 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v80 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107, 22.0, v11 - 8.0); v82(v80, &v107); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))(*(_DWORD *)a2 + 228))(a2, v80); (*(void (__fastcall **)(float *, cocos2d::CCLabelBMFont *))(*(_DWORD *)v80 + 168))(&v107, v80); v84 = v107; if ( (v98 & 1) != 0 ) v85 = v100; else v85 = (cocos2d::CCLabelBMFont *)((char *)&v98 + 1); v86 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v85, "chatFont.fnt", v83); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v86 + 80))(v86, 1058642330); v87 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v86 + 536); LOWORD(v107) = -19276; BYTE2(v107) = -76; v87(v86, &v107); cocos2d::CCLabelBMFont::limitLabelWidth(v86, (float)(a3 - 41.0) - v84, 0.6, 0.25); v88 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v86 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107, 0.0, 0.5); v88(v86, &v107); v89 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, float *))(*(_DWORD *)v86 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107, (float)(v84 + 22.0) + 6.0, v11 - 8.0); v89(v86, &v107); (*(void (__fastcall **)(cocos2d::CCNode *, cocos2d::CCLabelBMFont *))(*(_DWORD *)a2 + 228))(a2, v86); v11 = v11 - 16.0; std::string::~string((int)&v104); std::string::~string((int)&v98); } } } v12 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"(no new songs)", "chatFont.fnt", v8); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1057803469); v13 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v12 + 536); LOWORD(v107) = -26986; BYTE2(v107) = -106; v13(v12, &v107); v14 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v12 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107, 0.0, 0.5); v14(v12, &v107); v15 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v107, 22.0, v11 - 7.0); v15(v12, &v107); (*(void (__fastcall **)(cocos2d::CCNode *, int))(*(_DWORD *)a2 + 228))(a2, v12); v11 = v11 - 14.0; LABEL_128: v5 = v11 - 10.0; } } return -v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source