// // MusicSearchResult::applyArtistFilters from 0x96d444 to 0x96d6c8 (644 bytes) // // 2 xrefs: // > MusicSearchResult::updateObjects @ 0x971e9c // > @ 0x9db40 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:57:39 +0000 // cocos2d::CCArray *__fastcall MusicSearchResult::applyArtistFilters(MusicSearchResult *this, cocos2d::CCArray *a2) { __int64 v4; // x0 __int64 v5; // x1 unsigned int *v6; // x1 __int64 *v7; // x20 __int64 *v8; // x19 __int64 v9; // x1 int *v10; // x0 int v11; // w1 int *i; // x19 cocos2d::CCArray *v13; // x21 unsigned int *v15; // x1 __int64 *v16; // x24 __int64 *v17; // x25 __int64 v18; // x20 __int64 v19; // x27 int v20; // w1 __int64 v21; // x19 int v22; // w1 int v23; // [xsp+6Ch] [xbp+6Ch] BYREF void *v24; // [xsp+70h] [xbp+70h] BYREF int *v25; // [xsp+78h] [xbp+78h] int *v26; // [xsp+80h] [xbp+80h] __int64 v27; // [xsp+88h] [xbp+88h] v24 = nullptr; v25 = nullptr; v4 = *((_QWORD *)this + 10); v5 = _stack_chk_guard; *((_BYTE *)this + 133) = 0; v27 = v5; v26 = nullptr; if ( v4 && (v6 = *(unsigned int **)(v4 + 56), *v6) && (v7 = *((__int64 **)v6 + 2), v8 = &v7[*v6 - 1], v7 <= v8) && (v9 = *v7, v10 = nullptr, *v7) ) { do { if ( *(_BYTE *)(v9 + 60) ) { if ( v26 == v10 ) { std::vector::__push_back_slow_path((__int64)&v24, (_DWORD *)(v9 + 56)); v10 = v25; } else { v11 = *(_DWORD *)(v9 + 56); if ( v10 ) { *v10 = v11; v10 = v25; } v25 = ++v10; } } if ( v8 < ++v7 ) break; v9 = *v7; } while ( *v7 ); if ( v10 == v24 ) { i = v10; goto LABEL_15; } if ( !(unsigned int)cocos2d::CCArray::count(a2) ) { i = (int *)v24; LABEL_15: v13 = a2; goto LABEL_16; } *((_BYTE *)this + 133) = (unsigned __int8)&dword_0 + 1; v13 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)((char *)&dword_0 + 1)); if ( a2 && (v15 = *((unsigned int **)a2 + 7), *v15) && (v16 = *((__int64 **)v15 + 2), v17 = &v16[*v15 - 1], v16 <= v17) ) { v18 = *v16; for ( i = (int *)v24; *v16; v18 = *v16 ) { v19 = v25 - i; if ( v19 ) { v20 = *(_DWORD *)(v18 + 392); v23 = *i; if ( v23 != v20 ) { v21 = 0; do { if ( std::__hash_table,std::equal_to,std::allocator>::find( (_QWORD *)(v18 + 488), &v23) ) { break; } if ( ++v21 == v19 ) goto LABEL_31; v22 = *(_DWORD *)(v18 + 392); v23 = *((_DWORD *)v24 + v21); } while ( v23 != v22 ); } cocos2d::CCArray::addObject(v13, (cocos2d::CCObject *)v18); LABEL_31: i = (int *)v24; } if ( v17 < ++v16 ) break; } } else { i = (int *)v24; } } else { i = nullptr; v13 = a2; } LABEL_16: if ( i ) { if ( v25 != i ) v25 += ~((unsigned __int64)((char *)(v25 - 1) - (char *)i) >> 2); operator delete(i); } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source