{"type": "func", "start": 5373509680, "end": 5373509793, "name": "MusicDownloadManager::musicActionFinished", "pseudocode": "// \n// MusicDownloadManager::musicActionFinished from 0x140494030 to 0x1404940a1 (113 bytes)\n// \n// 5 xrefs:\n// > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x14048ba1e\n// > MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x14048c379\n// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x14048ceab\n// > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x14048fbe9\n// > <???> @ 0x140928f40\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:32:52 +0000\n// \n\nunsigned int __fastcall MusicDownloadManager::musicActionFinished(__int64 a1, unsigned int a2)\n{\n  unsigned int v4; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v6; // rax\n\n  v4 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n  if ( result )\n  {\n    do\n    {\n      v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v4);\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v6 + 40) + 64LL))(*((_QWORD *)v6 + 40), a2);\n      ++v4;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n    }\n    while ( v4 < result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::musicActionFinished from 0x140494030 to 0x1404940a1 (113 bytes)\n; \n; 5 xrefs:\n; > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x14048ba1e\n; > MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x14048c379\n; > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x14048ceab\n; > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x14048fbe9\n; > <???> @ 0x140928f40\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:32:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140494030\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140494035\npush    rdi                                                            ; +0xa, 0x14049403a\nsub     rsp, 20h                                                       ; +0xb, 0x14049403b\nmov     rdi, rcx                                                       ; +0xf, 0x14049403f\nmov     esi, edx                                                       ; +0x12, 0x140494042\nmov     rcx, [rcx+150h]                                                ; +0x14, 0x140494044\nxor     ebx, ebx                                                       ; +0x1b, 0x14049404b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x14049404d\ntest    eax, eax                                                       ; +0x23, 0x140494053\njz      short loc_140494091                                            ; +0x25, 0x140494055\nnop     word ptr [rax+rax+00000000h]                                   ; +0x27, 0x140494057\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x140494060\nmov     edx, ebx                                                       ; +0x37, 0x140494067\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x140494069\nmov     edx, esi                                                       ; +0x3f, 0x14049406f\nmov     rcx, [rax+140h]                                                ; +0x41, 0x140494071\nmov     rax, [rcx]                                                     ; +0x48, 0x140494078\ncall    qword ptr [rax+40h]                                            ; +0x4b, 0x14049407b\nmov     rcx, [rdi+150h]                                                ; +0x4e, 0x14049407e\ninc     ebx                                                            ; +0x55, 0x140494085\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x57, 0x140494087\ncmp     ebx, eax                                                       ; +0x5d, 0x14049408d\njb      short loc_140494060                                            ; +0x5f, 0x14049408f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x140494091\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x66, 0x140494096\nadd     rsp, 20h                                                       ; +0x6b, 0x14049409b\npop     rdi                                                            ; +0x6f, 0x14049409f\nretn                                                                   ; +0x70, 0x1404940a0", "xrefs": ["MusicDownloadManager::onGetCustomContentURLCompleted @ 0x14048ba1e", "MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x14048c379", "MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x14048ceab", "MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x14048fbe9", "<???> @ 0x140928f40"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}