{"type": "func", "start": 5369512464, "end": 5369512672, "name": "CustomSongLayer::dropDownLayerWillClose", "pseudocode": "// \n// CustomSongLayer::dropDownLayerWillClose from 0x1400c4210 to 0x1400c42e0 (208 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14054d3e8\n// > <???> @ 0x14066c500\n// > <???> @ 0x14066c510\n// > <???> @ 0x1406c8094\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::dropDownLayerWillClose(CustomSongLayer *a1, GJDropDownLayer *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 ( LOBYTE(a2[1].m_uAutoReleaseCount) )\n  {\n    (***(void (__fastcall ****)(_QWORD, _QWORD))&a1->m_nTag)(*(_QWORD *)&a1->m_nTag, a2[1].m_uReference);\n    v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)&a1->m_nTag + 8LL))(*(_QWORD *)&a1->m_nTag);\n    v4 = SongInfoObject::create_1(v3);\n    v5 = *(CustomSongWidget **)&a1->m_uIndexInArray;\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::dropDownLayerWillClose from 0x1400c4210 to 0x1400c42e0 (208 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14054d3e8\n; > <???> @ 0x14066c500\n; > <???> @ 0x14066c510\n; > <???> @ 0x1406c8094\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, 0x1400c4210\nsub     rsp, 20h                                                       ; +0x2, 0x1400c4212\ncmp     byte ptr [rdx+278h], 0                                         ; +0x6, 0x1400c4216\nmov     rbx, rcx                                                       ; +0xd, 0x1400c421d\njz      loc_1400C42DA                                                  ; +0x10, 0x1400c4220\nmov     rcx, [rcx+10h]                                                 ; +0x16, 0x1400c4226\nmov     edx, [rdx+274h]                                                ; +0x1a, 0x1400c422a\nmov     [rsp+28h+arg_0], rdi                                           ; +0x20, 0x1400c4230\nmov     rax, [rcx]                                                     ; +0x25, 0x1400c4235\ncall    qword ptr [rax]                                                ; +0x28, 0x1400c4238\nmov     rcx, [rbx+10h]                                                 ; +0x2a, 0x1400c423a\nmov     rax, [rcx]                                                     ; +0x2e, 0x1400c423e\ncall    qword ptr [rax+8]                                              ; +0x31, 0x1400c4241\nmov     ecx, eax                                                       ; +0x34, 0x1400c4244\ncall    SongInfoObject__create_1                                       ; +0x36, 0x1400c4246\nmov     rbx, [rbx+20h]                                                 ; +0x3b, 0x1400c424b\nxor     edx, edx                                                       ; +0x3f, 0x1400c424f\nmov     rdi, rax                                                       ; +0x41, 0x1400c4251\nmov     rcx, [rbx+178h]                                                ; +0x44, 0x1400c4254\nmov     r8, [rcx]                                                      ; +0x4b, 0x1400c425b\ncall    qword ptr [r8+140h]                                            ; +0x4e, 0x1400c425e\nmov     rcx, [rbx+1D8h]                                                ; +0x55, 0x1400c4265\ntest    rcx, rcx                                                       ; +0x5c, 0x1400c426c\njz      short loc_1400C427D                                            ; +0x5f, 0x1400c426f\nmov     r8, [rcx]                                                      ; +0x61, 0x1400c4271\nxor     edx, edx                                                       ; +0x64, 0x1400c4274\ncall    qword ptr [r8+140h]                                            ; +0x66, 0x1400c4276\nmov     rax, [rbx+150h]                                                ; +0x6d, 0x1400c427d\ncmp     rax, rdi                                                       ; +0x74, 0x1400c4284\njz      short loc_1400C42B3                                            ; +0x77, 0x1400c4287\ntest    rdi, rdi                                                       ; +0x79, 0x1400c4289\njz      short loc_1400C4297                                            ; +0x7c, 0x1400c428c\nmov     rcx, rdi                                                       ; +0x7e, 0x1400c428e\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x81, 0x1400c4291\nmov     rcx, [rbx+150h]                                                ; +0x87, 0x1400c4297\ntest    rcx, rcx                                                       ; +0x8e, 0x1400c429e\njz      short loc_1400C42A9                                            ; +0x91, 0x1400c42a1\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x93, 0x1400c42a3\nmov     [rbx+150h], rdi                                                ; +0x99, 0x1400c42a9\nmov     rax, rdi                                                       ; +0xa0, 0x1400c42b0\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa3, 0x1400c42b3\ntest    rax, rax                                                       ; +0xa8, 0x1400c42b8\njz      short loc_1400C42C5                                            ; +0xab, 0x1400c42bb\nmov     ecx, [rax+140h]                                                ; +0xad, 0x1400c42bd\njmp     short loc_1400C42C7                                            ; +0xb3, 0x1400c42c3\nxor     ecx, ecx                                                       ; +0xb5, 0x1400c42c5\nmov     [rbx+1F0h], ecx                                                ; +0xb7, 0x1400c42c7\nmov     rcx, rbx                                                       ; +0xbd, 0x1400c42cd\nadd     rsp, 20h                                                       ; +0xc0, 0x1400c42d0\npop     rbx                                                            ; +0xc4, 0x1400c42d4\njmp     CustomSongWidget__updateSongInfo                               ; +0xc5, 0x1400c42d5\nadd     rsp, 20h                                                       ; +0xca, 0x1400c42da\npop     rbx                                                            ; +0xce, 0x1400c42de\nretn                                                                   ; +0xcf, 0x1400c42df", "xrefs": ["<???> @ 0x14054d3e8", "<???> @ 0x14066c500", "<???> @ 0x14066c510", "<???> @ 0x1406c8094"], "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"}