// // SongInfoObject::getArtistNames from 0x57475c to 0x574998 (572 bytes) // // 1 xrefs: // > SongInfoLayer::create @ 0x53c4ca // // 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::getArtistNames(SongInfoObject *this, int a2) { int *v4; // r0 int v5; // r2 bool v6; // nf unsigned int i; // r7 int v8; // r11 int v9; // r0 const char *v10; // r0 unsigned __int8 *v11; // r0 _DWORD *j; // r7 MusicDownloadManager *v13; // r0 cocos2d::CCDictionary *MusicArtistForID; // r1 int v15; // r3 unsigned int v16; // r11 unsigned int v17; // r12 _DWORD *v18; // r1 _DWORD *k; // r6 unsigned int v20; // r0 int v21; // r1 int v22; // r3 int v23; // r3 int v24; // r3 char *v25; // r1 size_t v26; // r2 unsigned __int8 *v27; // r0 char **v29; // [sp+14h] [bp-38h] BYREF int v30; // [sp+18h] [bp-34h] BYREF int v31; // [sp+1Ch] [bp-30h] int v32; // [sp+20h] [bp-2Ch] int v33; // [sp+24h] [bp-28h] BYREF size_t v34; // [sp+28h] [bp-24h] char *v35; // [sp+2Ch] [bp-20h] int v36; // [sp+30h] [bp-1Ch] BYREF unsigned int v37; // [sp+34h] [bp-18h] int v38; // [sp+38h] [bp-14h] int v39; // [sp+3Ch] [bp-10h] int v40; // [sp+40h] [bp-Ch] v4 = std::string::basic_string((int *)this, a2 + 280); if ( *(_DWORD *)(a2 + 380) ) { v40 = 1065353216; v5 = *(unsigned __int8 *)(a2 + 356); v36 = 0; v6 = (v5 & 1) != 0; v37 = 0; if ( (v5 & 1) == 0 ) v5 >>= 1; v38 = 0; if ( v6 ) v5 = *(_DWORD *)(a2 + 360); v39 = 0; if ( v5 ) { v30 = 0; v31 = 0; v32 = 0; sub_56DAB4((unsigned __int8 *)(a2 + 356), ",", &v30); if ( (unsigned int)(-1431655765 * ((v31 - v30) >> 2)) > 1 ) { for ( i = 0; ; i += 2 ) { v8 = v30; if ( i >= -1431655765 * ((v31 - v30) >> 2) ) break; v9 = v30 + 12 * i; if ( (*(_BYTE *)v9 & 1) != 0 ) v10 = *(const char **)(v9 + 8); else v10 = (const char *)(v9 + 1); v29 = (char **)atoi(v10); std::string::basic_string(&v33, 12 * i + 12 + v8); if ( (int)v29 > 0 && v29 != &off_98A89C ) { v11 = (unsigned __int8 *)std::unordered_map::operator[]((int)&v36, (unsigned int *)&v29); std::string::operator=(v11, (unsigned __int8 *)&v33); } std::string::~string((int)&v33); } } v4 = (int *)std::__vector_base::~__vector_base((int)&v30); } for ( j = *(_DWORD **)(a2 + 376); ; j = (_DWORD *)*j ) { if ( !j ) { std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::~__hash_table((int)&v36); return this; } v30 = j[2]; if ( (char **)v30 != &off_98A89C ) break; LABEL_54: ; } v33 = 0; v34 = 0; v35 = nullptr; v13 = (MusicDownloadManager *)MusicDownloadManager::sharedState((MusicDownloadManager *)v4); MusicArtistForID = MusicDownloadManager::getMusicArtistForID(v13, v30); if ( MusicArtistForID ) std::string::operator=((unsigned __int8 *)&v33, (unsigned __int8 *)MusicArtistForID + 56); v15 = (unsigned __int8)v33; if ( (v33 & 1) != 0 ) { if ( v34 ) goto LABEL_41; } else if ( (unsigned __int8)v33 >> 1 ) { LABEL_42: v22 = v15 >> 1; goto LABEL_43; } if ( v37 ) { v16 = v37 - 1; v17 = ((v37 - 1) & v37) != 0 ? v30 % v37 : v16 & v30; v18 = *(_DWORD **)(v36 + 4 * v17); if ( v18 ) { for ( k = (_DWORD *)*v18; k; k = (_DWORD *)*k ) { v20 = k[1]; v21 = ((v37 - 1) & v37) != 0 ? v20 % v37 : v16 & v20; if ( v21 != v17 ) break; if ( k[2] == v30 ) { v27 = (unsigned __int8 *)std::unordered_map::operator[]((int)&v36, (unsigned int *)&v30); std::string::operator=((unsigned __int8 *)&v33, v27); break; } } } } v15 = (unsigned __int8)v33; if ( (v33 & 1) == 0 ) goto LABEL_42; LABEL_41: v22 = v34; LABEL_43: if ( v22 ) { v23 = *(unsigned __int8 *)this; if ( (v23 & 1) != 0 ) v24 = *((_DWORD *)this + 1); else v24 = v23 >> 1; if ( v24 ) std::string::append(this, ", "); if ( (v33 & 1) != 0 ) { v25 = v35; v26 = v34; } else { v26 = (int)(unsigned __int8)v33 >> 1; v25 = (char *)&v33 + 1; } std::string::append(this, v25, v26); } v4 = (int *)std::string::~string((int)&v33); goto LABEL_54; } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source