{"type": "func", "start": 4296879944, "end": 4296880036, "name": "MusicDownloadManager::songStateChanged", "pseudocode": "// \n// MusicDownloadManager::songStateChanged from 0x1001d2f48 to 0x1001d2fa4 (92 bytes)\n// \n// 5 xrefs:\n// > FindBPMLayer::onClose @ 0x100086bf0\n// > sub_10011F824 @ 0x10011f874\n// > sub_10011F910 @ 0x10011fa78\n// > sub_1001BA4EC @ 0x1001ba518\n// > SetupSongTriggerPopup::onPlayback @ 0x100259168\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:23 +0000\n// \n\n__int64 __fastcall MusicDownloadManager::songStateChanged(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 v3; // x20\n  __int64 v4; // x0\n\n  result = sub_1002E757C(*(_QWORD *)(a1 + 336));\n  if ( (_DWORD)result )\n  {\n    v3 = 0;\n    do\n    {\n      v4 = sub_1002E75A0(*(_QWORD *)(a1 + 336), v3);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v4 + 320) + 40LL))(*(_QWORD *)(v4 + 320));\n      v3 = (unsigned int)(v3 + 1);\n      result = sub_1002E757C(*(_QWORD *)(a1 + 336));\n    }\n    while ( (unsigned int)v3 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::songStateChanged from 0x1001d2f48 to 0x1001d2fa4 (92 bytes)\n; \n; 5 xrefs:\n; > FindBPMLayer::onClose @ 0x100086bf0\n; > sub_10011F824 @ 0x10011f874\n; > sub_10011F910 @ 0x10011fa78\n; > sub_1001BA4EC @ 0x1001ba518\n; > SetupSongTriggerPopup::onPlayback @ 0x100259168\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:23 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001d2f48\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001d2f4c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001d2f50\nMOV             X19, X0                                                ; +0xc, 0x1001d2f54\nLDR             X0, [X0,#0x150]                                        ; +0x10, 0x1001d2f58\nBL              sub_1002E757C                                          ; +0x14, 0x1001d2f5c\nCBZ             W0, loc_1001D2F98                                      ; +0x18, 0x1001d2f60\nMOV             W20, #0                                                ; +0x1c, 0x1001d2f64\nLDR             X0, [X19,#0x150]                                       ; +0x20, 0x1001d2f68\nMOV             X1, X20                                                ; +0x24, 0x1001d2f6c\nBL              sub_1002E75A0                                          ; +0x28, 0x1001d2f70\nLDR             X0, [X0,#0x140]                                        ; +0x2c, 0x1001d2f74\nLDR             X8, [X0]                                               ; +0x30, 0x1001d2f78\nLDR             X8, [X8,#0x28]                                         ; +0x34, 0x1001d2f7c\nBLR             X8                                                     ; +0x38, 0x1001d2f80\nADD             W20, W20, #1                                           ; +0x3c, 0x1001d2f84\nLDR             X0, [X19,#0x150]                                       ; +0x40, 0x1001d2f88\nBL              sub_1002E757C                                          ; +0x44, 0x1001d2f8c\nCMP             W20, W0                                                ; +0x48, 0x1001d2f90\nB.CC            loc_1001D2F68                                          ; +0x4c, 0x1001d2f94\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x50, 0x1001d2f98\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x54, 0x1001d2f9c\nRET                                                                    ; +0x58, 0x1001d2fa0", "xrefs": ["FindBPMLayer::onClose @ 0x100086bf0", "sub_10011F824 @ 0x10011f874", "sub_10011F910 @ 0x10011fa78", "sub_1001BA4EC @ 0x1001ba518", "SetupSongTriggerPopup::onPlayback @ 0x100259168"], "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"}