// // MusicDownloadManager::createArtistsInfo from 0x830398 to 0x830838 (1184 bytes) // // 2 xrefs: // > MusicDownloadManager::createSongsInfo @ 0x837394 // > @ 0xab258 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCDictionary *__fastcall MusicDownloadManager::createArtistsInfo(int a1, _QWORD *a2) { __int64 *v2; // x21 cocos2d::CCDictionary *v3; // x0 const char **v4; // x19 cocos2d::CCDictionary *v5; // x28 __int64 v6; // x22 unsigned __int64 v7; // x20 __int64 v8; // x1 void *v9; // x0 __int64 *v10; // x0 int v11; // w21 cocos2d::CCObject *v12; // x2 void *v13; // x0 void *v14; // x0 void *v15; // x0 unsigned int *v16; // x1 int v17; // w2 __int64 *v18; // x20 __int64 v19; // x1 __int64 *v20; // x0 unsigned int *v21; // x1 int v22; // w2 unsigned int *v24; // x1 int v25; // w3 unsigned int *v26; // x1 int v27; // w3 unsigned int *v28; // x1 int v29; // w3 cocos2d::CCObject *v30; // [xsp+60h] [xbp+60h] cocos2d::CCObject *v31; // [xsp+60h] [xbp+60h] cocos2d::CCObject *v32; // [xsp+60h] [xbp+60h] __int64 v33; // [xsp+90h] [xbp+90h] BYREF __int64 v34; // [xsp+98h] [xbp+98h] BYREF __int64 v35; // [xsp+A0h] [xbp+A0h] BYREF __int64 v36; // [xsp+A8h] [xbp+A8h] BYREF void *v37; // [xsp+B0h] [xbp+B0h] BYREF void *p; // [xsp+B8h] [xbp+B8h] __int64 v39; // [xsp+C0h] [xbp+C0h] if ( !*(_QWORD *)(*a2 - 24LL) ) return nullptr; v37 = nullptr; p = nullptr; v39 = 0; sub_830154(a2, &byte_F804F8, (__int64)&v37); v2 = (__int64 *)p; if ( (unsigned __int64)((_BYTE *)p - (_BYTE *)v37) <= 0xF ) { v18 = (__int64 *)v37; v5 = nullptr; } else { v3 = cocos2d::CCDictionary::create(); v4 = (const char **)v37; v5 = v3; v2 = (__int64 *)p; if ( ((_BYTE *)p - (_BYTE *)v37) >> 3 ) { v6 = 8; v7 = 0; while ( 1 ) { v11 = atoi(v4[v7]); sub_D18D28(&v33); if ( v11 <= 0 ) { v8 = v33; v9 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) goto LABEL_12; LABEL_6: v4 = (const char **)v37; v7 += 2LL; v10 = (__int64 *)p; v6 += 16; if ( v7 >= ((_BYTE *)p - (_BYTE *)v37) >> 3 ) goto LABEL_17; } else { sub_D18D28(&v34); sub_D153B8((int)&v35, &byte_F288A0); sub_D153B8((int)&v36, &byte_F288A0); v12 = (cocos2d::CCObject *)MusicArtistObject::create(v11); v13 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v36 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v29 - 1; } if ( v29 <= 0 ) { v32 = v12; operator delete(v13); v12 = v32; } } v14 = (void *)(v35 - 24); if ( (__int64 *)(v35 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v35 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(v35 - 8); *(_DWORD *)(v35 - 8) = v27 - 1; } if ( v27 <= 0 ) { v31 = v12; operator delete(v14); v12 = v31; } } v15 = (void *)(v34 - 24); if ( (__int64 *)(v34 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v34 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v34 - 8); *(_DWORD *)(v34 - 8) = v25 - 1; } if ( v25 <= 0 ) { v30 = v12; operator delete(v15); v12 = v30; } } cocos2d::CCDictionary::setObject(v5, v12, v11); v8 = v33; v9 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) == &qword_124B6B0 ) goto LABEL_6; LABEL_12: if ( &pthread_create ) { v16 = (unsigned int *)(v8 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v8 - 8); *(_DWORD *)(v8 - 8) = v17 - 1; } if ( v17 > 0 ) goto LABEL_6; v7 += 2LL; v6 += 16; operator delete(v9); v4 = (const char **)v37; v10 = (__int64 *)p; if ( v7 >= ((_BYTE *)p - (_BYTE *)v37) >> 3 ) { LABEL_17: v2 = v10; v18 = (__int64 *)v4; goto LABEL_18; } } } } v18 = (__int64 *)v37; } LABEL_18: if ( v18 != v2 ) { do { while ( 1 ) { v19 = *v18; v20 = (__int64 *)(*v18 - 24); if ( v20 != &qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v19 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(_DWORD *)(v19 - 8); *(_DWORD *)(v19 - 8) = v22 - 1; } if ( v22 <= 0 ) break; } if ( v2 == ++v18 ) goto LABEL_27; } ++v18; operator delete(v20); } while ( v2 != v18 ); LABEL_27: v2 = (__int64 *)v37; } if ( v2 ) operator delete(v2); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source