{"type": "func", "start": 4296911872, "end": 4296911980, "name": "MusicDownloadManager::downloadSFXFinished", "pseudocode": "// \n// MusicDownloadManager::downloadSFXFinished from 0x1001dac00 to 0x1001dac6c (108 bytes)\n// \n// 5 xrefs:\n// > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1001d2838\n// > MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x1001d2954\n// > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x1001dbc00\n// > sub_1001DEF68 @ 0x1001df010\n// > sub_1001E0334 @ 0x1001e051c\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:27 +0000\n// \n\n__int64 __fastcall MusicDownloadManager::downloadSFXFinished(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x21\n  __int64 v6; // x0\n\n  result = sub_1002E757C(*(_QWORD *)(a1 + 336));\n  if ( (_DWORD)result )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1002E75A0(*(_QWORD *)(a1 + 336), v5);\n      (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v6 + 320) + 64LL))(*(_QWORD *)(v6 + 320), a2);\n      v5 = (unsigned int)(v5 + 1);\n      result = sub_1002E757C(*(_QWORD *)(a1 + 336));\n    }\n    while ( (unsigned int)v5 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::downloadSFXFinished from 0x1001dac00 to 0x1001dac6c (108 bytes)\n; \n; 5 xrefs:\n; > MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1001d2838\n; > MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x1001d2954\n; > MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x1001dbc00\n; > sub_1001DEF68 @ 0x1001df010\n; > sub_1001E0334 @ 0x1001e051c\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:27 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001dac00\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001dac04\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001dac08\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001dac0c\nMOV             X19, X1                                                ; +0x10, 0x1001dac10\nMOV             X20, X0                                                ; +0x14, 0x1001dac14\nLDR             X0, [X0,#0x150]                                        ; +0x18, 0x1001dac18\nBL              sub_1002E757C                                          ; +0x1c, 0x1001dac1c\nCBZ             W0, loc_1001DAC5C                                      ; +0x20, 0x1001dac20\nMOV             W21, #0                                                ; +0x24, 0x1001dac24\nLDR             X0, [X20,#0x150]                                       ; +0x28, 0x1001dac28\nMOV             X1, X21                                                ; +0x2c, 0x1001dac2c\nBL              sub_1002E75A0                                          ; +0x30, 0x1001dac30\nLDR             X0, [X0,#0x140]                                        ; +0x34, 0x1001dac34\nLDR             X8, [X0]                                               ; +0x38, 0x1001dac38\nLDR             X8, [X8,#0x40]                                         ; +0x3c, 0x1001dac3c\nMOV             X1, X19                                                ; +0x40, 0x1001dac40\nBLR             X8                                                     ; +0x44, 0x1001dac44\nADD             W21, W21, #1                                           ; +0x48, 0x1001dac48\nLDR             X0, [X20,#0x150]                                       ; +0x4c, 0x1001dac4c\nBL              sub_1002E757C                                          ; +0x50, 0x1001dac50\nCMP             W21, W0                                                ; +0x54, 0x1001dac54\nB.CC            loc_1001DAC28                                          ; +0x58, 0x1001dac58\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x5c, 0x1001dac5c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x60, 0x1001dac60\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x64, 0x1001dac64\nRET                                                                    ; +0x68, 0x1001dac68", "xrefs": ["MusicDownloadManager::onGetCustomContentURLCompleted @ 0x1001d2838", "MusicDownloadManager::onGetAudioFilesizeCompleted @ 0x1001d2954", "MusicDownloadManager::onDownloadMusicLibraryCompleted @ 0x1001dbc00", "sub_1001DEF68 @ 0x1001df010", "sub_1001E0334 @ 0x1001e051c"], "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"}