// // SongInfoObject::addTags from 0x833364 to 0x8335bc (600 bytes) // // 2 xrefs: // > MusicDownloadManager::parseMusicLibrary @ 0x838f40 // > @ 0xc2b80 // // 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 // __int64 __fastcall SongInfoObject::addTags(__int64 a1, const void **a2) { _BOOL4 v5; // w25 _DWORD *v6; // x20 unsigned __int64 v7; // x24 unsigned __int64 v8; // x21 size_t v9; // x2 unsigned __int64 v10; // x21 char *v11; // x0 const char **v12; // x20 const char **v13; // x26 const char **v14; // x21 unsigned __int64 v15; // x19 _QWORD *v16; // x23 const char *v17; // x1 __int64 *v18; // x0 unsigned int *v19; // x1 int v20; // w2 unsigned int *v21; // x20 int v22; // w1 int v23; // [xsp+68h] [xbp+68h] BYREF void *p; // [xsp+70h] [xbp+70h] BYREF const char **v25; // [xsp+78h] [xbp+78h] __int64 v26; // [xsp+80h] [xbp+80h] if ( *((_QWORD *)*a2 - 3) ) { v5 = 0; sub_D153B8((int)&p, &byte_EEFB80); v6 = p; v7 = *((_QWORD *)p - 3); v8 = *((_QWORD *)*a2 - 3); if ( v7 > v8 ) v9 = *((_QWORD *)*a2 - 3); else v9 = *((_QWORD *)p - 3); if ( !memcmp(*a2, p, v9) ) { v10 = v8 - v7; if ( v10 + 0x80000000 <= 0xFFFFFFFF ) v5 = v10 == 0; } v11 = (char *)(v6 - 6); if ( v6 - 6 != (_DWORD *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = v6 - 2; do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *(v6 - 2); *(v6 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v11); } if ( !v5 ) { p = nullptr; v25 = nullptr; v26 = 0; sub_830154(a2, &byte_EEFB80, (__int64)&p); v12 = (const char **)p; v13 = v25; v14 = (const char **)p; if ( ((char *)v25 - (_BYTE *)p) >> 3 ) { v15 = 0; v16 = (_QWORD *)(a1 + 488); do { v23 = atoi(v12[v15]); if ( v23 > 0 ) { std::_Rb_tree,std::less,std::allocator>::_M_insert_unique( v16, &v23); v12 = (const char **)p; v13 = v25; } ++v15; v14 = v12; } while ( v15 < v13 - v12 ); } if ( v12 != v13 ) { do { v17 = *v14; v18 = (__int64 *)(*v14 - 24); if ( v18 != &qword_124B6B0 ) { if ( &pthread_create ) { v19 = (unsigned int *)(v17 - 8); do v20 = __ldaxr(v19); while ( __stlxr(v20 - 1, v19) ); } else { v20 = *((_DWORD *)v17 - 2); *((_DWORD *)v17 - 2) = v20 - 1; } if ( v20 <= 0 ) operator delete(v18); } ++v14; } while ( v13 != v14 ); } if ( p ) operator delete(p); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source