{"type": "func", "start": 5372134960, "end": 5372135073, "name": "MusicDownloadManager::musicActionFinished", "pseudocode": "// \n// MusicDownloadManager::musicActionFinished from 0x140344630 to 0x1403446a1 (113 bytes)\n// \n// 4 xrefs:\n// > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1403402cf\n// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x140340d29\n// > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x140342d85\n// > <???> @ 0x1406d587c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid MusicDownloadManager::musicActionFinished(MusicDownloadManager *a1, GJMusicAction a2)\n{\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v5; // rax\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_musicDownloadDelegates); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, i);\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)&v5[5].m_unknown2 + 64LL))(\n      *(_QWORD *)&v5[5].m_unknown2,\n      (unsigned int)a2);\n  }\n}", "assembly": "; \n; MusicDownloadManager::musicActionFinished from 0x140344630 to 0x1403446a1 (113 bytes)\n; \n; 4 xrefs:\n; > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1403402cf\n; > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x140340d29\n; > MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x140342d85\n; > <???> @ 0x1406d587c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140344630\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140344635\npush    rdi                                                            ; +0xa, 0x14034463a\nsub     rsp, 20h                                                       ; +0xb, 0x14034463b\nmov     rdi, rcx                                                       ; +0xf, 0x14034463f\nmov     esi, edx                                                       ; +0x12, 0x140344642\nmov     rcx, [rcx+150h]                                                ; +0x14, 0x140344644\nxor     ebx, ebx                                                       ; +0x1b, 0x14034464b\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x14034464d\ntest    eax, eax                                                       ; +0x23, 0x140344653\njz      short loc_140344691                                            ; +0x25, 0x140344655\nnop     word ptr [rax+rax+00000000h]                                   ; +0x27, 0x140344657\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x140344660\nmov     edx, ebx                                                       ; +0x37, 0x140344667\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x140344669\nmov     edx, esi                                                       ; +0x3f, 0x14034466f\nmov     rcx, [rax+140h]                                                ; +0x41, 0x140344671\nmov     rax, [rcx]                                                     ; +0x48, 0x140344678\ncall    qword ptr [rax+40h]                                            ; +0x4b, 0x14034467b\nmov     rcx, [rdi+150h]                                                ; +0x4e, 0x14034467e\ninc     ebx                                                            ; +0x55, 0x140344685\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x57, 0x140344687\ncmp     ebx, eax                                                       ; +0x5d, 0x14034468d\njb      short loc_140344660                                            ; +0x5f, 0x14034468f\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x140344691\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x66, 0x140344696\nadd     rsp, 20h                                                       ; +0x6b, 0x14034469b\npop     rdi                                                            ; +0x6f, 0x14034469f\nretn                                                                   ; +0x70, 0x1403446a0", "xrefs": ["MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1403402cf", "MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x140340d29", "MusicDownloadManager::onDownloadSFXLibraryCompleted @ 0x140342d85", "<???> @ 0x1406d587c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}