// // CustomSongWidget::updateMultiAssetInfo from 0x4e5018 to 0x4e5440 (1064 bytes) // // 5 xrefs: // > CustomSongWidget::setMultiAssetFilesize @ 0x4e547e // > CustomSongWidget::updateWithMultiAssets @ 0x4e56b2 // > CustomSongWidget::processNextMultiAsset @ 0x4e5762 // > CustomSongWidget::processNextMultiAsset @ 0x4e578e // > CustomSongWidget::downloadAssetFinished @ 0x4e5d7e // // 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:51:04 +0000 // int __fastcall CustomSongWidget::updateMultiAssetInfo(CustomSongWidget *this, int a2) { int v3; // r5 _DWORD *v4; // r6 int v5; // r3 char *v6; // r1 size_t v7; // r2 int v8; // r3 char *v9; // r1 size_t v10; // r2 _DWORD *i; // r6 int v12; // r3 char *v13; // r1 size_t v14; // r2 int v15; // r3 char *v16; // r1 size_t v17; // r2 _BOOL4 v18; // r1 bool v19; // r3 int v20; // r0 const char *v21; // r11 char *v22; // r2 cocos2d::CCString *v23; // r0 const char *CString; // r11 size_t v25; // r0 char *v26; // r3 cocos2d::CCString *v27; // r0 size_t v28; // r0 char *v29; // r1 char *v30; // r1 cocos2d::CCString *v31; // r0 char *v32; // r0 int v34; // [sp+4h] [bp-20h] const char *v35; // [sp+8h] [bp-1Ch] int v37; // [sp+24h] [bp+0h] BYREF int v38; // [sp+28h] [bp+4h] int v39; // [sp+2Ch] [bp+8h] int v40; // [sp+30h] [bp+Ch] BYREF int v41; // [sp+34h] [bp+10h] int v42; // [sp+38h] [bp+14h] int v43; // [sp+3Ch] [bp+18h] BYREF int v44; // [sp+40h] [bp+1Ch] int v45; // [sp+44h] [bp+20h] int v46; // [sp+48h] [bp+24h] BYREF int v47; // [sp+4Ch] [bp+28h] int v48; // [sp+50h] [bp+2Ch] unsigned __int8 v49; // [sp+54h] [bp+30h] BYREF char v50; // [sp+55h] [bp+31h] BYREF size_t v51; // [sp+58h] [bp+34h] char *v52; // [sp+5Ch] [bp+38h] unsigned __int8 v53; // [sp+60h] [bp+3Ch] BYREF char v54; // [sp+61h] [bp+3Dh] BYREF size_t v55; // [sp+64h] [bp+40h] char *v56; // [sp+68h] [bp+44h] unsigned __int8 v57; // [sp+6Ch] [bp+48h] BYREF char v58; // [sp+6Dh] [bp+49h] BYREF size_t v59; // [sp+70h] [bp+4Ch] char *v60; // [sp+74h] [bp+50h] int v61; // [sp+78h] [bp+54h] BYREF size_t v62; // [sp+7Ch] [bp+58h] char *v63; // [sp+80h] [bp+5Ch] char v64; // [sp+84h] [bp+60h] BYREF char v65; // [sp+85h] [bp+61h] BYREF const char *v66; // [sp+8Ch] [bp+68h] int v67[2]; // [sp+90h] [bp+6Ch] BYREF char *v68; // [sp+98h] [bp+74h] v37 = 0; v38 = 0; v39 = 0; std::string::__init(&v37, &unk_B6B226, 0); v40 = 0; v41 = 0; v42 = 0; std::string::__init(&v40, &unk_B6B226, 0); v43 = 0; v44 = 0; v45 = 0; std::string::__init(&v43, &unk_B6B226, 0); v46 = 0; v47 = 0; v48 = 0; std::string::__init(&v46, &unk_B6B226, 0); v3 = 0; v4 = *((_DWORD **)this + 97); v34 = *((_DWORD *)this + 102) + *((_DWORD *)this + 99); while ( v4 != (_DWORD *)((char *)this + 392) ) { if ( *((_BYTE *)v4 + 20) ) { if ( (v37 & 1) != 0 ) v5 = v38; else v5 = (int)(unsigned __int8)v37 >> 1; if ( v5 ) std::string::append(&v37, ", "); GameToolbox::intToString((GameToolbox *)&v49, v4[4]); if ( (v49 & 1) != 0 ) { v6 = v52; v7 = v51; } else { v7 = (int)v49 >> 1; v6 = &v50; } std::string::append(&v37, v6, v7); ++v3; std::string::~string((int)&v49); } else { if ( (v40 & 1) != 0 ) v8 = v41; else v8 = (int)(unsigned __int8)v40 >> 1; if ( v8 ) std::string::append(&v40, ", "); GameToolbox::intToString((GameToolbox *)&v53, v4[4]); if ( (v53 & 1) != 0 ) { v9 = v56; v10 = v55; } else { v10 = (int)v53 >> 1; v9 = &v54; } std::string::append(&v40, v9, v10); std::string::~string((int)&v53); } v4 = std::__tree_next *>(v4); } for ( i = *((_DWORD **)this + 100); i != (_DWORD *)((char *)this + 404); i = std::__tree_next *>(i) ) { if ( *((_BYTE *)i + 20) ) { if ( (v43 & 1) != 0 ) v12 = v44; else v12 = (int)(unsigned __int8)v43 >> 1; if ( v12 ) std::string::append(&v43, ", "); GameToolbox::intToString((GameToolbox *)&v57, i[4]); if ( (v57 & 1) != 0 ) { v13 = v60; v14 = v59; } else { v14 = (int)v57 >> 1; v13 = &v58; } std::string::append(&v43, v13, v14); ++v3; std::string::~string((int)&v57); } else { if ( (v46 & 1) != 0 ) v15 = v47; else v15 = (int)(unsigned __int8)v46 >> 1; if ( v15 ) std::string::append(&v46, ", "); GameToolbox::intToString((GameToolbox *)&v61, i[4]); if ( (v61 & 1) != 0 ) { v16 = v63; v17 = v62; } else { v17 = (int)(unsigned __int8)v61 >> 1; v16 = (char *)&v61 + 1; } std::string::append(&v46, v16, v17); std::string::~string((int)&v61); } } if ( *((_DWORD *)this + 99) ) v18 = 1; else v18 = *((_DWORD *)this + 102) != 0; *((_BYTE *)this + 377) = v18; v19 = v18 && v3 < v34; v20 = *((_DWORD *)this + 81); *((_BYTE *)this + 385) = v19; if ( v20 ) (*(void (__fastcall **)(int))(*(_DWORD *)v20 + 172))(v20); CustomSongWidget::updateUsageButton(this); if ( *((_BYTE *)this + 377) ) { if ( *((int *)this + 107) <= 0 ) { formatBytes((int)&v61); } else { formatBytes((int)&v64); if ( (v64 & 1) != 0 ) v21 = v66; else v21 = &v65; formatBytes((int)v67); if ( (v67[0] & 1) != 0 ) v22 = v68; else v22 = (char *)v67 + 1; v23 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s / %s", v21, v22, LOBYTE(v67[0]) << 31); CString = (const char *)cocos2d::CCString::getCString(v23); v61 = 0; v62 = 0; v63 = nullptr; v25 = strlen(CString); std::string::__init(&v61, CString, v25); std::string::~string((int)v67); std::string::~string((int)&v64); } if ( (v61 & 1) != 0 ) v26 = v63; else v26 = (char *)&v61 + 1; v27 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Songs: %i SFX: %i Size: %s", *((const char **)this + 99), *((_DWORD *)this + 102), v26); v35 = (const char *)cocos2d::CCString::getCString(v27); v67[0] = 0; v67[1] = 0; v68 = nullptr; v28 = strlen(v35); std::string::__init(v67, v35, v28); if ( v3 && v34 > v3 ) { if ( (v67[0] & 1) != 0 ) v30 = v68; else v30 = (char *)v67 + 1; v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s (%i/%i)", v30, v3, v34); v32 = (char *)cocos2d::CCString::getCString(v31); std::string::assign(v67, v32); } if ( (v67[0] & 1) != 0 ) v29 = v68; else v29 = (char *)v67 + 1; (*(void (__fastcall **)(_DWORD, char *, int))(**((_DWORD **)this + 72) + 464))( *((_DWORD *)this + 72), v29, LOBYTE(v67[0]) << 31); cocos2d::CCLabelBMFont::limitLabelWidth(*((cocos2d::CCLabelBMFont **)this + 72), 230.0, 0.4, 0.0); (*(void (**)(void))(**((_DWORD **)this + 72) + 536))(); std::string::~string((int)v67); std::string::~string((int)&v61); } if ( a2 ) CustomSongWidget::updateSongInfo(this); std::string::~string((int)&v46); std::string::~string((int)&v43); std::string::~string((int)&v40); return std::string::~string((int)&v37); }
GD Web Decomp Icon

GD Web Decomp

Raw Source