//
// MusicDownloadManager::getAllMusicTags from 0x56d2a8 to 0x56d342 (154 bytes)
//
// 1 xrefs:
// > MusicSearchResult::createTagFilterObjects @ 0x56d35c
//
// 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:34 +0000
//
size_t **__fastcall MusicDownloadManager::getAllMusicTags(int a1, unsigned int a2, int a3, int a4)
{
_DWORD *v5; // r4
size_t **v6; // r0
_DWORD *v7; // r5
size_t **v8; // r8
int v9; // r10
cocos2d::CCObject *v10; // r10
int v12[4]; // [sp+0h] [bp-10h] BYREF
v12[0] = a1;
v12[1] = a2;
v12[2] = a3;
v12[3] = a4;
v5 = (_DWORD *)(a1 + 348);
v6 = (size_t **)cocos2d::CCArray::createWithCapacity(*(cocos2d::CCArray **)(a1 + 352), a2);
v7 = (_DWORD *)*(v5 - 1);
v8 = v6;
while ( v7 != v5 )
{
v9 = v7[4];
std::string::basic_string(v12, (int)(v7 + 5));
v10 = (cocos2d::CCObject *)OptionsObject::create(v9, 0, v12, a2);
std::string::~string((int)v12);
cocos2d::CCArray::addObject((cocos2d::CCArray *)v8, v10);
v7 = std::__tree_next *>(v7);
}
if ( cocos2d::CCArray::count((cocos2d::CCArray *)v8) > 1u )
qsort((void *)v8[13][3], *v8[13], 4u, (int (*)(const void *, const void *))optionsStrCompare);
return v8;
}