{"type": "func", "start": 5369512672, "end": 5369512880, "name": "CustomSongLayer::musicBrowserClosed", "pseudocode": "// \n// CustomSongLayer::musicBrowserClosed from 0x1400c42e0 to 0x1400c43b0 (208 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14054e488\n// > <???> @ 0x14066c524\n// > <???> @ 0x14066c534\n// > <???> @ 0x1406c80ac\n// > <???> @ 0x1406c80b8\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 CustomSongLayer::musicBrowserClosed(CustomSongLayer *a1, MusicBrowser *a2)\n{\n  int v3; // eax\n  SongInfoObject *v4; // rax\n  CustomSongWidget *v5; // rbx\n  cocos2d::CCObject *v6; // rdi\n  cocos2d::extension::CCScale9Sprite *m_bgSpr; // rcx\n  SongInfoObject *m_songInfoObject; // rax\n  cocos2d::CCObject *v9; // rcx\n  int m_songID; // ecx\n\n  if ( a2->m_selectedCell )\n  {\n    (***(void (__fastcall ****)(_QWORD, _QWORD))&a1->m_uID)(*(_QWORD *)&a1->m_uID, (unsigned int)a2->m_songID);\n    v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_uID + 8LL))(*(_QWORD *)&a1->m_uID);\n    v4 = SongInfoObject::create_1(v3);\n    v5 = *(CustomSongWidget **)&a1->m_uAutoReleaseCount;\n    v6 = v4;\n    v5->m_errorLabel->setVisible(v5->m_errorLabel, 0);\n    m_bgSpr = v5->m_bgSpr;\n    if ( m_bgSpr )\n      m_bgSpr->setVisible(m_bgSpr, 0);\n    m_songInfoObject = v5->m_songInfoObject;\n    if ( m_songInfoObject != v6 )\n    {\n      if ( v6 )\n        cocos2d::CCObject::retain(v6);\n      v9 = v5->m_songInfoObject;\n      if ( v9 )\n        cocos2d::CCObject::release(v9);\n      v5->m_songInfoObject = (SongInfoObject *)v6;\n      m_songInfoObject = (SongInfoObject *)v6;\n    }\n    if ( m_songInfoObject )\n      m_songID = m_songInfoObject->m_songID;\n    else\n      m_songID = 0;\n    v5->m_customSongID = m_songID;\n    CustomSongWidget::updateSongInfo(v5);\n  }\n}", "assembly": "; \n; CustomSongLayer::musicBrowserClosed from 0x1400c42e0 to 0x1400c43b0 (208 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14054e488\n; > <???> @ 0x14066c524\n; > <???> @ 0x14066c534\n; > <???> @ 0x1406c80ac\n; > <???> @ 0x1406c80b8\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    rbx                                                            ; +0x0, 0x1400c42e0\nsub     rsp, 20h                                                       ; +0x2, 0x1400c42e2\ncmp     byte ptr [rdx+309h], 0                                         ; +0x6, 0x1400c42e6\nmov     rbx, rcx                                                       ; +0xd, 0x1400c42ed\njz      loc_1400C43AA                                                  ; +0x10, 0x1400c42f0\nmov     rcx, [rcx+8]                                                   ; +0x16, 0x1400c42f6\nmov     edx, [rdx+300h]                                                ; +0x1a, 0x1400c42fa\nmov     [rsp+28h+arg_0], rdi                                           ; +0x20, 0x1400c4300\nmov     rax, [rcx]                                                     ; +0x25, 0x1400c4305\ncall    qword ptr [rax]                                                ; +0x28, 0x1400c4308\nmov     rcx, [rbx+8]                                                   ; +0x2a, 0x1400c430a\nmov     rax, [rcx]                                                     ; +0x2e, 0x1400c430e\ncall    qword ptr [rax+8]                                              ; +0x31, 0x1400c4311\nmov     ecx, eax                                                       ; +0x34, 0x1400c4314\ncall    SongInfoObject__create_1                                       ; +0x36, 0x1400c4316\nmov     rbx, [rbx+18h]                                                 ; +0x3b, 0x1400c431b\nxor     edx, edx                                                       ; +0x3f, 0x1400c431f\nmov     rdi, rax                                                       ; +0x41, 0x1400c4321\nmov     rcx, [rbx+178h]                                                ; +0x44, 0x1400c4324\nmov     r8, [rcx]                                                      ; +0x4b, 0x1400c432b\ncall    qword ptr [r8+140h]                                            ; +0x4e, 0x1400c432e\nmov     rcx, [rbx+1D8h]                                                ; +0x55, 0x1400c4335\ntest    rcx, rcx                                                       ; +0x5c, 0x1400c433c\njz      short loc_1400C434D                                            ; +0x5f, 0x1400c433f\nmov     r8, [rcx]                                                      ; +0x61, 0x1400c4341\nxor     edx, edx                                                       ; +0x64, 0x1400c4344\ncall    qword ptr [r8+140h]                                            ; +0x66, 0x1400c4346\nmov     rax, [rbx+150h]                                                ; +0x6d, 0x1400c434d\ncmp     rax, rdi                                                       ; +0x74, 0x1400c4354\njz      short loc_1400C4383                                            ; +0x77, 0x1400c4357\ntest    rdi, rdi                                                       ; +0x79, 0x1400c4359\njz      short loc_1400C4367                                            ; +0x7c, 0x1400c435c\nmov     rcx, rdi                                                       ; +0x7e, 0x1400c435e\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x81, 0x1400c4361\nmov     rcx, [rbx+150h]                                                ; +0x87, 0x1400c4367\ntest    rcx, rcx                                                       ; +0x8e, 0x1400c436e\njz      short loc_1400C4379                                            ; +0x91, 0x1400c4371\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x93, 0x1400c4373\nmov     [rbx+150h], rdi                                                ; +0x99, 0x1400c4379\nmov     rax, rdi                                                       ; +0xa0, 0x1400c4380\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa3, 0x1400c4383\ntest    rax, rax                                                       ; +0xa8, 0x1400c4388\njz      short loc_1400C4395                                            ; +0xab, 0x1400c438b\nmov     ecx, [rax+140h]                                                ; +0xad, 0x1400c438d\njmp     short loc_1400C4397                                            ; +0xb3, 0x1400c4393\nxor     ecx, ecx                                                       ; +0xb5, 0x1400c4395\nmov     [rbx+1F0h], ecx                                                ; +0xb7, 0x1400c4397\nmov     rcx, rbx                                                       ; +0xbd, 0x1400c439d\nadd     rsp, 20h                                                       ; +0xc0, 0x1400c43a0\npop     rbx                                                            ; +0xc4, 0x1400c43a4\njmp     CustomSongWidget__updateSongInfo                               ; +0xc5, 0x1400c43a5\nadd     rsp, 20h                                                       ; +0xca, 0x1400c43aa\npop     rbx                                                            ; +0xce, 0x1400c43ae\nretn                                                                   ; +0xcf, 0x1400c43af", "xrefs": ["<???> @ 0x14054e488", "<???> @ 0x14066c524", "<???> @ 0x14066c534", "<???> @ 0x1406c80ac", "<???> @ 0x1406c80b8"], "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"}