{"type": "func", "start": 5373438192, "end": 5373438282, "name": "MusicDownloadManager::songStateChanged", "pseudocode": "// \n// MusicDownloadManager::songStateChanged from 0x1404828f0 to 0x14048294a (90 bytes)\n// \n// 6 xrefs:\n// > sub_14005C7A0 @ 0x14005c841\n// > FindBPMLayer::onClose @ 0x1401353a7\n// > CustomSongWidget::onSelect @ 0x14016bcc0\n// > CustomSongWidget::onPlayback @ 0x14016c11a\n// > SetupSongTriggerPopup::onPlayback @ 0x1405f3778\n// > <???> @ 0x1409289e8\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:45 +0000\n// \n\nunsigned int __fastcall MusicDownloadManager::songStateChanged(__int64 a1)\n{\n  unsigned int v2; // ebx\n  unsigned int result; // eax\n  struct cocos2d::CCObject *v4; // rax\n\n  v2 = 0;\n  result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n  if ( result )\n  {\n    do\n    {\n      v4 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 336), v2);\n      (*(void (__fastcall **)(_QWORD))(**((_QWORD **)v4 + 40) + 40LL))(*((_QWORD *)v4 + 40));\n      ++v2;\n      result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 336));\n    }\n    while ( v2 < result );\n  }\n  return result;\n}", "assembly": "; \n; MusicDownloadManager::songStateChanged from 0x1404828f0 to 0x14048294a (90 bytes)\n; \n; 6 xrefs:\n; > sub_14005C7A0 @ 0x14005c841\n; > FindBPMLayer::onClose @ 0x1401353a7\n; > CustomSongWidget::onSelect @ 0x14016bcc0\n; > CustomSongWidget::onPlayback @ 0x14016c11a\n; > SetupSongTriggerPopup::onPlayback @ 0x1405f3778\n; > <???> @ 0x1409289e8\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:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1404828f0\npush    rdi                                                            ; +0x5, 0x1404828f5\nsub     rsp, 20h                                                       ; +0x6, 0x1404828f6\nmov     rdi, rcx                                                       ; +0xa, 0x1404828fa\nxor     ebx, ebx                                                       ; +0xd, 0x1404828fd\nmov     rcx, [rcx+150h]                                                ; +0xf, 0x1404828ff\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x16, 0x140482906\ntest    eax, eax                                                       ; +0x1c, 0x14048290c\njz      short loc_14048293F                                            ; +0x1e, 0x14048290e\nmov     rcx, [rdi+150h]                                                ; +0x20, 0x140482910\nmov     edx, ebx                                                       ; +0x27, 0x140482917\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x29, 0x140482919\nmov     rcx, [rax+140h]                                                ; +0x2f, 0x14048291f\nmov     rax, [rcx]                                                     ; +0x36, 0x140482926\ncall    qword ptr [rax+28h]                                            ; +0x39, 0x140482929\nmov     rcx, [rdi+150h]                                                ; +0x3c, 0x14048292c\ninc     ebx                                                            ; +0x43, 0x140482933\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x45, 0x140482935\ncmp     ebx, eax                                                       ; +0x4b, 0x14048293b\njb      short loc_140482910                                            ; +0x4d, 0x14048293d\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4f, 0x14048293f\nadd     rsp, 20h                                                       ; +0x54, 0x140482944\npop     rdi                                                            ; +0x58, 0x140482948\nretn                                                                   ; +0x59, 0x140482949", "xrefs": ["sub_14005C7A0 @ 0x14005c841", "FindBPMLayer::onClose @ 0x1401353a7", "CustomSongWidget::onSelect @ 0x14016bcc0", "CustomSongWidget::onPlayback @ 0x14016c11a", "SetupSongTriggerPopup::onPlayback @ 0x1405f3778", "<???> @ 0x1409289e8"], "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"}