{"type": "func", "start": 5373509424, "end": 5373509545, "name": "MusicDownloadManager::downloadSongFailed", "pseudocode": "// \n// MusicDownloadManager::downloadSongFailed from 0x140493f30 to 0x140493fa9 (121 bytes)\n// \n// 3 xrefs:\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840b0\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840f6\n// > <???> @ 0x140928f28\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::downloadSongFailed(__int64 a1, unsigned int a2, unsigned int a3)\n{\n  unsigned int v6; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v8; // rax\n\n  v6 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n  if ( result )\n  {\n    do\n    {\n      v8 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v6);\n      (*(void (__fastcall **)(_QWORD, _QWORD, _QWORD))(**((_QWORD **)v8 + 40) + 32LL))(*((_QWORD *)v8 + 40), a2, a3);\n      ++v6;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n    }\n    while ( v6 < result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::downloadSongFailed from 0x140493f30 to 0x140493fa9 (121 bytes)\n; \n; 3 xrefs:\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840b0\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x1404840f6\n; > <???> @ 0x140928f28\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, 0x140493f30\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140493f35\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140493f3a\npush    rdi                                                            ; +0xf, 0x140493f3f\nsub     rsp, 20h                                                       ; +0x10, 0x140493f40\nmov     rdi, rcx                                                       ; +0x14, 0x140493f44\nmov     esi, r8d                                                       ; +0x17, 0x140493f47\nmov     rcx, [rcx+150h]                                                ; +0x1a, 0x140493f4a\nmov     ebp, edx                                                       ; +0x21, 0x140493f51\nxor     ebx, ebx                                                       ; +0x23, 0x140493f53\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x25, 0x140493f55\ntest    eax, eax                                                       ; +0x2b, 0x140493f5b\njz      short loc_140493F94                                            ; +0x2d, 0x140493f5d\nnop                                                                    ; +0x2f, 0x140493f5f\nmov     rcx, [rdi+150h]                                                ; +0x30, 0x140493f60\nmov     edx, ebx                                                       ; +0x37, 0x140493f67\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x140493f69\nmov     r8d, esi                                                       ; +0x3f, 0x140493f6f\nmov     edx, ebp                                                       ; +0x42, 0x140493f72\nmov     rcx, [rax+140h]                                                ; +0x44, 0x140493f74\nmov     rax, [rcx]                                                     ; +0x4b, 0x140493f7b\ncall    qword ptr [rax+20h]                                            ; +0x4e, 0x140493f7e\nmov     rcx, [rdi+150h]                                                ; +0x51, 0x140493f81\ninc     ebx                                                            ; +0x58, 0x140493f88\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x5a, 0x140493f8a\ncmp     ebx, eax                                                       ; +0x60, 0x140493f90\njb      short loc_140493F60                                            ; +0x62, 0x140493f92\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x140493f94\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x69, 0x140493f99\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x6e, 0x140493f9e\nadd     rsp, 20h                                                       ; +0x73, 0x140493fa3\npop     rdi                                                            ; +0x77, 0x140493fa7\nretn                                                                   ; +0x78, 0x140493fa8", "xrefs": ["MusicDownloadManager::onDownloadSongCompleted @ 0x1404840b0", "MusicDownloadManager::onDownloadSongCompleted @ 0x1404840f6", "<???> @ 0x140928f28"], "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"}