// // SongInfoObject::getTagsString from 0x574ccc to 0x574e48 (380 bytes) // // 2 xrefs: // > CustomSongWidget::updateSongInfo @ 0x4e3758 // > SongInfoLayer::create @ 0x53c426 // // 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:52:41 +0000 // SongInfoObject *__fastcall SongInfoObject::getTagsString(SongInfoObject *this, int a2, int a3) { int v6; // r3 int v7; // r3 int v8; // r1 int v9; // r3 int v10; // r3 int v11; // r5 MusicDownloadManager *v12; // r0 MusicDownloadManager *v13; // r8 int v14; // r11 int v15; // r0 int v16; // r3 char *v17; // r1 size_t v18; // r2 cocos2d::CCString *v19; // r0 char *CString; // r0 unsigned __int8 *v21; // r4 int v23; // [sp+0h] [bp-34h] int v24[3]; // [sp+14h] [bp-20h] BYREF unsigned __int8 v25; // [sp+20h] [bp-14h] BYREF char v26; // [sp+21h] [bp-13h] BYREF size_t v27; // [sp+24h] [bp-10h] char *v28; // [sp+28h] [bp-Ch] if ( a3 ) { v6 = *(unsigned __int8 *)(a2 + 460); if ( (v6 & 1) != 0 ) v7 = *(_DWORD *)(a2 + 464); else v7 = v6 >> 1; if ( v7 ) { v8 = a2 + 460; LABEL_12: std::string::basic_string((int *)this, v8); return this; } } else { v9 = *(unsigned __int8 *)(a2 + 448); if ( (v9 & 1) != 0 ) v10 = *(_DWORD *)(a2 + 452); else v10 = v9 >> 1; if ( v10 ) { v8 = a2 + 448; goto LABEL_12; } } if ( *(_DWORD *)(a2 + 444) ) { v11 = 0; memset(v24, 0, sizeof(v24)); v12 = (MusicDownloadManager *)std::string::__init(v24, &unk_B6B226, 0); v13 = *(MusicDownloadManager **)(a2 + 436); v14 = 1; while ( v13 != (MusicDownloadManager *)(a2 + 440) ) { v23 = *((_DWORD *)v13 + 4); v15 = MusicDownloadManager::sharedState(v12); MusicDownloadManager::nameForTagID((MusicDownloadManager *)&v25, v15, v23); if ( (v25 & 1) != 0 ) v16 = v27; else v16 = (int)v25 >> 1; if ( v16 ) { if ( !v14 ) std::string::append(v24, ", "); if ( (v25 & 1) != 0 ) { v17 = v28; v18 = v27; } else { v18 = (int)v25 >> 1; v17 = &v26; } std::string::append(v24, v17, v18); ++v11; if ( a3 && v11 > 3 ) { if ( *(_DWORD *)(a2 + 444) - v11 > 0 ) { v19 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)" +%i", (const char *)(*(_DWORD *)(a2 + 444) - v11)); CString = (char *)cocos2d::CCString::getCString(v19); std::string::append(v24, CString); } std::string::~string((int)&v25); goto LABEL_36; } v14 = 0; } std::string::~string((int)&v25); v12 = (MusicDownloadManager *)std::__tree_next *>(v13); v13 = v12; } if ( !a3 ) { v21 = (unsigned __int8 *)(a2 + 448); goto LABEL_35; } LABEL_36: v21 = (unsigned __int8 *)(a2 + 460); LABEL_35: std::string::operator=(v21, (unsigned __int8 *)v24); std::string::basic_string((int *)this, (int)v21); std::string::~string((int)v24); } else { *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; std::string::__init((int *)this, &unk_B6B226, 0); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source