{"type": "func", "start": 4296889556, "end": 4296889672, "name": "MusicDownloadManager::downloadSongFailed", "pseudocode": "// \n// MusicDownloadManager::downloadSongFailed from 0x1001d54d4 to 0x1001d5548 (116 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x1001d5410\n// > MusicDownloadManager::onDownloadSongCompleted @ 0x1001d5420\n// \n// This function is hookable on this platform (idp: arm, 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:00:25 +0000\n// \n\n__int64 __fastcall MusicDownloadManager::downloadSongFailed(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 result; // x0\n  __int64 v7; // x22\n  __int64 v8; // x0\n\n  result = sub_1002E757C(*(_QWORD *)(a1 + 336));\n  if ( (_DWORD)result )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = sub_1002E75A0(*(_QWORD *)(a1 + 336), v7);\n      (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v8 + 320) + 32LL))(*(_QWORD *)(v8 + 320), a2, a3);\n      v7 = (unsigned int)(v7 + 1);\n      result = sub_1002E757C(*(_QWORD *)(a1 + 336));\n    }\n    while ( (unsigned int)v7 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::downloadSongFailed from 0x1001d54d4 to 0x1001d5548 (116 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x1001d5410\n; > MusicDownloadManager::onDownloadSongCompleted @ 0x1001d5420\n; \n; This function is hookable on this platform (idp: arm, 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:00:25 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001d54d4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001d54d8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001d54dc\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001d54e0\nMOV             X19, X2                                                ; +0x10, 0x1001d54e4\nMOV             X20, X1                                                ; +0x14, 0x1001d54e8\nMOV             X21, X0                                                ; +0x18, 0x1001d54ec\nLDR             X0, [X0,#0x150]                                        ; +0x1c, 0x1001d54f0\nBL              sub_1002E757C                                          ; +0x20, 0x1001d54f4\nCBZ             W0, loc_1001D5538                                      ; +0x24, 0x1001d54f8\nMOV             W22, #0                                                ; +0x28, 0x1001d54fc\nLDR             X0, [X21,#0x150]                                       ; +0x2c, 0x1001d5500\nMOV             X1, X22                                                ; +0x30, 0x1001d5504\nBL              sub_1002E75A0                                          ; +0x34, 0x1001d5508\nLDR             X0, [X0,#0x140]                                        ; +0x38, 0x1001d550c\nLDR             X8, [X0]                                               ; +0x3c, 0x1001d5510\nLDR             X8, [X8,#0x20]                                         ; +0x40, 0x1001d5514\nMOV             X1, X20                                                ; +0x44, 0x1001d5518\nMOV             X2, X19                                                ; +0x48, 0x1001d551c\nBLR             X8                                                     ; +0x4c, 0x1001d5520\nADD             W22, W22, #1                                           ; +0x50, 0x1001d5524\nLDR             X0, [X21,#0x150]                                       ; +0x54, 0x1001d5528\nBL              sub_1002E757C                                          ; +0x58, 0x1001d552c\nCMP             W22, W0                                                ; +0x5c, 0x1001d5530\nB.CC            loc_1001D5500                                          ; +0x60, 0x1001d5534\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x64, 0x1001d5538\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x68, 0x1001d553c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x6c, 0x1001d5540\nRET                                                                    ; +0x70, 0x1001d5544", "xrefs": ["MusicDownloadManager::onDownloadSongCompleted @ 0x1001d5410", "MusicDownloadManager::onDownloadSongCompleted @ 0x1001d5420"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}