{"type": "func", "start": 4301379184, "end": 4301379329, "name": "CustomSongWidget::updateSongObject", "pseudocode": "// \n// CustomSongWidget::updateSongObject from 0x10061d670 to 0x10061d701 (145 bytes)\n// \n// 6 xrefs:\n// > CustomSongLayer::onSearch @ 0x100215b93\n// > CustomSongLayer::dropDownLayerWillClose @ 0x1002162ee\n// > sub_100216300 @ 0x100216345\n// > CustomSongLayer::musicBrowserClosed @ 0x10021639e\n// > sub_1002163B0 @ 0x1002163f5\n// > SongSelectNode::onSongMode @ 0x100219770\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::updateSongObject(CustomSongWidget *a1, SongInfoObject *a2)\n{\n  SongInfoObject *v2; // r14\n  cocos2d::extension::CCScale9Sprite *m_bgSpr; // rdi\n  SongInfoObject *m_songInfoObject; // rdi\n  int m_songID; // eax\n\n  v2 = a2;\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _QWORD))a1->m_errorLabel->setVisible)(a1->m_errorLabel, 0);\n  m_bgSpr = a1->m_bgSpr;\n  if ( m_bgSpr )\n    ((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _QWORD))m_bgSpr->setVisible)(m_bgSpr, 0);\n  m_songInfoObject = a1->m_songInfoObject;\n  if ( m_songInfoObject != a2 )\n  {\n    if ( a2 )\n    {\n      cocos2d::CCObject::retain(a2);\n      m_songInfoObject = a1->m_songInfoObject;\n    }\n    if ( m_songInfoObject )\n      cocos2d::CCObject::release(m_songInfoObject);\n    a1->m_songInfoObject = a2;\n    if ( a2 )\n      goto LABEL_9;\nLABEL_11:\n    m_songID = 0;\n    goto LABEL_12;\n  }\n  v2 = a1->m_songInfoObject;\n  if ( !m_songInfoObject )\n    goto LABEL_11;\nLABEL_9:\n  m_songID = v2->m_songID;\nLABEL_12:\n  a1->m_customSongID = m_songID;\n  CustomSongWidget::updateSongInfo(a1);\n}", "assembly": "; \n; CustomSongWidget::updateSongObject from 0x10061d670 to 0x10061d701 (145 bytes)\n; \n; 6 xrefs:\n; > CustomSongLayer::onSearch @ 0x100215b93\n; > CustomSongLayer::dropDownLayerWillClose @ 0x1002162ee\n; > sub_100216300 @ 0x100216345\n; > CustomSongLayer::musicBrowserClosed @ 0x10021639e\n; > sub_1002163B0 @ 0x1002163f5\n; > SongSelectNode::onSongMode @ 0x100219770\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, 0x10061d670\nmov     rbp, rsp                                                       ; +0x1, 0x10061d671\npush    r14                                                            ; +0x4, 0x10061d674\npush    rbx                                                            ; +0x6, 0x10061d676\nmov     r14, rsi                                                       ; +0x7, 0x10061d677\nmov     rbx, rdi                                                       ; +0xa, 0x10061d67a\nmov     rdi, [rdi+178h]                                                ; +0xd, 0x10061d67d\nmov     rax, [rdi]                                                     ; +0x14, 0x10061d684\nxor     esi, esi                                                       ; +0x17, 0x10061d687\ncall    qword ptr [rax+148h]                                           ; +0x19, 0x10061d689\nmov     rdi, [rbx+1D8h]                                                ; +0x1f, 0x10061d68f\ntest    rdi, rdi                                                       ; +0x26, 0x10061d696\njz      short loc_10061D6A6                                            ; +0x29, 0x10061d699\nmov     rax, [rdi]                                                     ; +0x2b, 0x10061d69b\nxor     esi, esi                                                       ; +0x2e, 0x10061d69e\ncall    qword ptr [rax+148h]                                           ; +0x30, 0x10061d6a0\nmov     rdi, [rbx+150h]                                                ; +0x36, 0x10061d6a6\ncmp     rdi, r14                                                       ; +0x3d, 0x10061d6ad\njz      short loc_10061D6E5                                            ; +0x40, 0x10061d6b0\ntest    r14, r14                                                       ; +0x42, 0x10061d6b2\njz      short loc_10061D6C6                                            ; +0x45, 0x10061d6b5\nmov     rdi, r14                                                       ; +0x47, 0x10061d6b7\ncall    cocos2d__CCObject__retain                                      ; +0x4a, 0x10061d6ba\nmov     rdi, [rbx+150h]                                                ; +0x4f, 0x10061d6bf\ntest    rdi, rdi                                                       ; +0x56, 0x10061d6c6\njz      short loc_10061D6D0                                            ; +0x59, 0x10061d6c9\ncall    cocos2d__CCObject__release                                     ; +0x5b, 0x10061d6cb\nmov     [rbx+150h], r14                                                ; +0x60, 0x10061d6d0\ntest    r14, r14                                                       ; +0x67, 0x10061d6d7\njz      short loc_10061D6ED                                            ; +0x6a, 0x10061d6da\nmov     eax, [r14+13Ch]                                                ; +0x6c, 0x10061d6dc\njmp     short loc_10061D6EF                                            ; +0x73, 0x10061d6e3\nmov     r14, rdi                                                       ; +0x75, 0x10061d6e5\ntest    r14, r14                                                       ; +0x78, 0x10061d6e8\njnz     short loc_10061D6DC                                            ; +0x7b, 0x10061d6eb\nxor     eax, eax                                                       ; +0x7d, 0x10061d6ed\nmov     [rbx+1F0h], eax                                                ; +0x7f, 0x10061d6ef\nmov     rdi, rbx                                                       ; +0x85, 0x10061d6f5\npop     rbx                                                            ; +0x88, 0x10061d6f8\npop     r14                                                            ; +0x89, 0x10061d6f9\npop     rbp                                                            ; +0x8b, 0x10061d6fb\njmp     CustomSongWidget__updateSongInfo                               ; +0x8c, 0x10061d6fc", "xrefs": ["CustomSongLayer::onSearch @ 0x100215b93", "CustomSongLayer::dropDownLayerWillClose @ 0x1002162ee", "sub_100216300 @ 0x100216345", "CustomSongLayer::musicBrowserClosed @ 0x10021639e", "sub_1002163B0 @ 0x1002163f5", "SongSelectNode::onSongMode @ 0x100219770"], "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"}