// // MusicDownloadManager::responseToDict from 0x82933c to 0x8295f0 (692 bytes) // // 2 xrefs: // > MusicDownloadManager::addSongObjectFromString @ 0x836690 // > @ 0x679f8 // // 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::responseToDict(__int64 a1, char **a2, char *a3) { cocos2d::CCDictionary *v4; // x24 cocos2d::CCArray *v5; // x21 char *v6; // x0 void *v7; // x0 unsigned int v8; // w19 unsigned int v9; // w22 cocos2d::CCString *v10; // x0 char *CString; // x26 cocos2d::CCObject *v12; // x22 char *v13; // x0 unsigned int *v15; // x1 int v16; // w2 unsigned int *v17; // x1 int v18; // w2 unsigned int *v19; // x1 int v20; // w2 __int64 v22; // [xsp+88h] [xbp+88h] BYREF _DWORD *v23; // [xsp+90h] [xbp+90h] BYREF v4 = cocos2d::CCDictionary::create(); sub_D153B8((int)&v22, *a2); sub_D153B8((int)&v23, a3); v5 = sub_827328(&v22, (void **)&v23); v6 = (char *)(v23 - 6); if ( v23 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v19 = v23 - 2; do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *(v23 - 2); *(v23 - 2) = v20 - 1; } if ( v20 <= 0 ) operator delete(v6); } v7 = (void *)(v22 - 24); if ( (__int64 *)(v22 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v22 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *(_DWORD *)(v22 - 8); *(_DWORD *)(v22 - 8) = v18 - 1; } if ( v18 <= 0 ) operator delete(v7); } v8 = 0; v9 = 1; if ( (unsigned int)cocos2d::CCArray::count(v5) > 1 ) { do { v10 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v5, v8); CString = (char *)cocos2d::CCString::getCString(v10); v12 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(v5, v9); sub_D153B8((int)&v23, CString); cocos2d::CCDictionary::setObject((int)v4, v12); v13 = (char *)(v23 - 6); if ( v23 - 6 == (_DWORD *)&qword_124B6B0 ) goto LABEL_5; if ( &pthread_create ) { v15 = v23 - 2; do v16 = __ldaxr(v15); while ( __stlxr(v16 - 1, v15) ); } else { v16 = *(v23 - 2); *(v23 - 2) = v16 - 1; } if ( v16 > 0 ) { LABEL_5: v8 += 2; } else { v8 += 2; operator delete(v13); } v9 = v8 + 1; } while ( (unsigned int)cocos2d::CCArray::count(v5) > v8 + 1 ); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source