{"type": "func", "start": 5372106096, "end": 5372106186, "name": "MusicDownloadManager::songStateChanged", "pseudocode": "// \n// MusicDownloadManager::songStateChanged from 0x14033d570 to 0x14033d5ca (90 bytes)\n// \n// 6 xrefs:\n// > sub_140053B20 @ 0x140053b80\n// > FindBPMLayer::onClose @ 0x14009beb1\n// > CustomSongWidget::onSelect @ 0x1400caeaa\n// > CustomSongWidget::onPlayback @ 0x1400cb262\n// > SetupSongTriggerPopup::onPlayback @ 0x14045d9c0\n// > <???> @ 0x1406d55e8\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::songStateChanged(MusicDownloadManager *a1)\n{\n  unsigned int i; // ebx\n  struct cocos2d::CCObject *v3; // rax\n\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_musicDownloadDelegates); ++i )\n  {\n    v3 = cocos2d::CCArray::objectAtIndex(a1->m_musicDownloadDelegates, i);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&v3[5].m_unknown2 + 40LL))(*(_QWORD *)&v3[5].m_unknown2);\n  }\n}", "assembly": "; \n; MusicDownloadManager::songStateChanged from 0x14033d570 to 0x14033d5ca (90 bytes)\n; \n; 6 xrefs:\n; > sub_140053B20 @ 0x140053b80\n; > FindBPMLayer::onClose @ 0x14009beb1\n; > CustomSongWidget::onSelect @ 0x1400caeaa\n; > CustomSongWidget::onPlayback @ 0x1400cb262\n; > SetupSongTriggerPopup::onPlayback @ 0x14045d9c0\n; > <???> @ 0x1406d55e8\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, 0x14033d570\npush    rdi                                                            ; +0x5, 0x14033d575\nsub     rsp, 20h                                                       ; +0x6, 0x14033d576\nmov     rdi, rcx                                                       ; +0xa, 0x14033d57a\nxor     ebx, ebx                                                       ; +0xd, 0x14033d57d\nmov     rcx, [rcx+150h]                                                ; +0xf, 0x14033d57f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x14033d586\ntest    eax, eax                                                       ; +0x1c, 0x14033d58c\njz      short loc_14033D5BF                                            ; +0x1e, 0x14033d58e\nmov     rcx, [rdi+150h]                                                ; +0x20, 0x14033d590\nmov     edx, ebx                                                       ; +0x27, 0x14033d597\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x29, 0x14033d599\nmov     rcx, [rax+140h]                                                ; +0x2f, 0x14033d59f\nmov     rax, [rcx]                                                     ; +0x36, 0x14033d5a6\ncall    qword ptr [rax+28h]                                            ; +0x39, 0x14033d5a9\nmov     rcx, [rdi+150h]                                                ; +0x3c, 0x14033d5ac\ninc     ebx                                                            ; +0x43, 0x14033d5b3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x45, 0x14033d5b5\ncmp     ebx, eax                                                       ; +0x4b, 0x14033d5bb\njb      short loc_14033D590                                            ; +0x4d, 0x14033d5bd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4f, 0x14033d5bf\nadd     rsp, 20h                                                       ; +0x54, 0x14033d5c4\npop     rdi                                                            ; +0x58, 0x14033d5c8\nretn                                                                   ; +0x59, 0x14033d5c9", "xrefs": ["sub_140053B20 @ 0x140053b80", "FindBPMLayer::onClose @ 0x14009beb1", "CustomSongWidget::onSelect @ 0x1400caeaa", "CustomSongWidget::onPlayback @ 0x1400cb262", "SetupSongTriggerPopup::onPlayback @ 0x14045d9c0", "<???> @ 0x1406d55e8"], "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"}