// // SongInfoObject::getArtistLinks from 0x57372c to 0x57385e (306 bytes) // // 2 xrefs: // > sub_42C208 @ 0x42c220 // > SongInfoLayer::create @ 0x53c41a // // 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:39 +0000 // SongInfoObject *__fastcall SongInfoObject::getArtistLinks(SongInfoObject *this, int a2) { SongInfoObject *v4; // r3 MusicDownloadManager *v5; // r0 cocos2d::CCDictionary *MusicArtistForID; // r0 int v7; // r3 int v8; // r3 int i; // r2 cocos2d::CCString *v10; // r0 char *CString; // r0 GJLinkObject *v12; // r0 _DWORD v14[5]; // [sp+4h] [bp-28h] BYREF int v15[3]; // [sp+18h] [bp-14h] BYREF *(_DWORD *)this = 0; *((_DWORD *)this + 1) = 0; *((_DWORD *)this + 2) = 0; v4 = (SongInfoObject *)(a2 + 424); if ( *(int *)(a2 + 264) <= 9999999 ) { if ( this != v4 ) std::vector::assign( (int)this, *(unsigned __int8 **)(a2 + 424), *(GJLinkObject **)(a2 + 428)); v7 = *(unsigned __int8 *)(a2 + 280); if ( (v7 & 1) != 0 ) v8 = *(_DWORD *)(a2 + 284); else v8 = v7 >> 1; if ( v8 ) { for ( i = 0; i != (*((_DWORD *)this + 1) - *(_DWORD *)this) >> 5; ++i ) { if ( *(_DWORD *)(*(_DWORD *)this + 32 * i + 4) == 2 ) return this; } GJLinkObject::GJLinkObject((GJLinkObject *)v14); v14[0] = *(_DWORD *)(a2 + 304); v14[1] = 2; if ( (*(_BYTE *)(a2 + 280) & 1) != 0 ) v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://%s.newgrounds.com/audio", *(const char **)(a2 + 288)); else v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"https://%s.newgrounds.com/audio", (const char *)(a2 + 281)); CString = (char *)cocos2d::CCString::getCString(v10); std::string::assign(v15, CString); v12 = *((GJLinkObject **)this + 1); if ( v12 == *((GJLinkObject **)this + 2) ) { std::vector::__push_back_slow_path((unsigned int *)this, (GJLinkObject *)v14); } else { if ( v12 ) GJLinkObject::GJLinkObject(v12, (const GJLinkObject *)v14); *((_DWORD *)this + 1) += 32; } GJLinkObject::~GJLinkObject((GJLinkObject *)v14); } } else { if ( this != v4 ) std::vector::assign( (int)this, *(unsigned __int8 **)(a2 + 424), *(GJLinkObject **)(a2 + 428)); if ( *(_DWORD *)this == *((_DWORD *)this + 1) ) { v5 = (MusicDownloadManager *)MusicDownloadManager::sharedState(this); MusicArtistForID = MusicDownloadManager::getMusicArtistForID(v5, *(_DWORD *)(a2 + 304)); if ( MusicArtistForID ) { if ( this != (cocos2d::CCDictionary *)((char *)MusicArtistForID + 68) ) std::vector::assign( (int)this, *((unsigned __int8 **)MusicArtistForID + 17), *((GJLinkObject **)MusicArtistForID + 18)); } } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source