{"type": "func", "start": 5372134704, "end": 5372134825, "name": "MusicDownloadManager::downloadSongFailed", "pseudocode": "// \n// MusicDownloadManager::downloadSongFailed from 0x140344530 to 0x1403445a9 (121 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ed9e\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ede4\n// > <???> @ 0x1406d5864\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::downloadSongFailed(MusicDownloadManager *a1, int a2, GJSongError a3)\n{\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v7; // rax\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_musicDownloadDelegates); ++i )\n  {\n    v7 = cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, i);\n    (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**(_QWORD **)&v7[5].m_unknown2 + 32LL))(\n      *(_QWORD *)&v7[5].m_unknown2,\n      (unsigned int)a2,\n      (unsigned int)a3);\n  }\n}", "assembly": "; \n; MusicDownloadManager::downloadSongFailed from 0x140344530 to 0x1403445a9 (121 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ed9e\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ede4\n; > <???> @ 0x1406d5864\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, 0x140344530\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140344535\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14034453a\npush    rdi                                                            ; +0xf, 0x14034453f\nsub     rsp, 20h                                                       ; +0x10, 0x140344540\nmov     rdi, rcx                                                       ; +0x14, 0x140344544\nmov     esi, r8d                                                       ; +0x17, 0x140344547\nmov     rcx, [rcx+150h]                                                ; +0x1a, 0x14034454a\nmov     ebp, edx                                                       ; +0x21, 0x140344551\nxor     ebx, ebx                                                       ; +0x23, 0x140344553\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x140344555\ntest    eax, eax                                                       ; +0x2b, 0x14034455b\njz      short loc_140344594                                            ; +0x2d, 0x14034455d\nnop                                                                    ; +0x2f, 0x14034455f\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x140344560\nmov     edx, ebx                                                       ; +0x37, 0x140344567\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x140344569\nmov     r8d, esi                                                       ; +0x3f, 0x14034456f\nmov     edx, ebp                                                       ; +0x42, 0x140344572\nmov     rcx, [rax+140h]                                                ; +0x44, 0x140344574\nmov     rax, [rcx]                                                     ; +0x4b, 0x14034457b\ncall    qword ptr [rax+20h]                                            ; +0x4e, 0x14034457e\nmov     rcx, [rdi+150h]                                                ; +0x51, 0x140344581\ninc     ebx                                                            ; +0x58, 0x140344588\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5a, 0x14034458a\ncmp     ebx, eax                                                       ; +0x60, 0x140344590\njb      short loc_140344560                                            ; +0x62, 0x140344592\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x140344594\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x69, 0x140344599\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6e, 0x14034459e\nadd     rsp, 20h                                                       ; +0x73, 0x1403445a3\npop     rdi                                                            ; +0x77, 0x1403445a7\nretn                                                                   ; +0x78, 0x1403445a8", "xrefs": ["MusicDownloadManager::onDownloadSongCompleted @ 0x14033ed9e", "MusicDownloadManager::onDownloadSongCompleted @ 0x14033ede4", "<???> @ 0x1406d5864"], "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"}