{"type": "func", "start": 4301372960, "end": 4301373047, "name": "CustomSongWidget::onSelect", "pseudocode": "// \n// CustomSongWidget::onSelect from 0x10061be20 to 0x10061be77 (87 bytes)\n// \n// 1 xrefs:\n// > CustomSongWidget::init @ 0x10061ad72\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 __fastcall CustomSongWidget::onSelect(CustomSongWidget *a1, cocos2d::CCObject *a2)\n{\n  SongInfoObject *m_songInfoObject; // rax\n  CustomSongDelegate *m_songDelegate; // rdi\n  MusicDownloadManager *v5; // rax\n\n  m_songInfoObject = a1->m_songInfoObject;\n  if ( m_songInfoObject )\n  {\n    m_songDelegate = a1->m_songDelegate;\n    if ( m_songDelegate )\n      ((void (__fastcall *)(CustomSongDelegate *, _QWORD))m_songDelegate->songIDChanged)(\n        m_songDelegate,\n        (unsigned int)m_songInfoObject->m_songID);\n    CustomSongWidget::updateSongInfo(a1);\n    if ( a1->m_isInCell )\n    {\n      v5 = MusicDownloadManager::sharedState();\n      MusicDownloadManager::songStateChanged(v5);\n    }\n  }\n}", "assembly": "; \n; CustomSongWidget::onSelect from 0x10061be20 to 0x10061be77 (87 bytes)\n; \n; 1 xrefs:\n; > CustomSongWidget::init @ 0x10061ad72\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\npush    rbp                                                            ; +0x0, 0x10061be20\nmov     rbp, rsp                                                       ; +0x1, 0x10061be21\npush    rbx                                                            ; +0x4, 0x10061be24\npush    rax                                                            ; +0x5, 0x10061be25\nmov     rax, [rdi+150h]                                                ; +0x6, 0x10061be26\ntest    rax, rax                                                       ; +0xd, 0x10061be2d\njz      short loc_10061BE70                                            ; +0x10, 0x10061be30\nmov     rbx, rdi                                                       ; +0x12, 0x10061be32\nmov     rdi, [rdi+1E0h]                                                ; +0x15, 0x10061be35\ntest    rdi, rdi                                                       ; +0x1c, 0x10061be3c\njz      short loc_10061BE4C                                            ; +0x1f, 0x10061be3f\nmov     esi, [rax+13Ch]                                                ; +0x21, 0x10061be41\nmov     rax, [rdi]                                                     ; +0x27, 0x10061be47\ncall    qword ptr [rax]                                                ; +0x2a, 0x10061be4a\nmov     rdi, rbx                                                       ; +0x2c, 0x10061be4c\ncall    CustomSongWidget__updateSongInfo                               ; +0x2f, 0x10061be4f\ncmp     byte ptr [rbx+1F8h], 1                                         ; +0x34, 0x10061be54\njnz     short loc_10061BE70                                            ; +0x3b, 0x10061be5b\ncall    MusicDownloadManager__sharedState                              ; +0x3d, 0x10061be5d\nmov     rdi, rax                                                       ; +0x42, 0x10061be62\nadd     rsp, 8                                                         ; +0x45, 0x10061be65\npop     rbx                                                            ; +0x49, 0x10061be69\npop     rbp                                                            ; +0x4a, 0x10061be6a\njmp     MusicDownloadManager__songStateChanged                         ; +0x4b, 0x10061be6b\nadd     rsp, 8                                                         ; +0x50, 0x10061be70\npop     rbx                                                            ; +0x54, 0x10061be74\npop     rbp                                                            ; +0x55, 0x10061be75\nretn                                                                   ; +0x56, 0x10061be76", "xrefs": ["CustomSongWidget::init @ 0x10061ad72"], "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"}