{"type": "func", "start": 5370172144, "end": 5370172357, "name": "CustomSongLayer::dropDownLayerWillClose", "pseudocode": "// \n// CustomSongLayer::dropDownLayerWillClose from 0x1401652f0 to 0x1401653c5 (213 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140742f30\n// > <???> @ 0x14089bf4c\n// > <???> @ 0x14089bf5c\n// > <???> @ 0x140917ea0\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:27:26 +0000\n// \n\nvoid __fastcall CustomSongLayer::dropDownLayerWillClose(__int64 a1, __int64 a2)\n{\n  unsigned int v3; // eax\n  __int64 v4; // rax\n  __int64 v5; // rbx\n  cocos2d::CCObject *v6; // rdi\n  __int64 v7; // rcx\n  cocos2d::CCObject *v8; // rax\n  cocos2d::CCObject *v9; // rcx\n  int v10; // ecx\n\n  if ( *(_BYTE *)(a2 + 632) )\n  {\n    (***(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 16))(*(_QWORD *)(a1 + 16), *(unsigned int *)(a2 + 628));\n    v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 16) + 8LL))(*(_QWORD *)(a1 + 16));\n    v4 = SongInfoObject::create_1(v3);\n    v5 = *(_QWORD *)(a1 + 32);\n    v6 = (cocos2d::CCObject *)v4;\n    (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v5 + 376) + 336LL))(*(_QWORD *)(v5 + 376), 0);\n    v7 = *(_QWORD *)(v5 + 480);\n    if ( v7 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 336LL))(v7, 0);\n    v8 = *(cocos2d::CCObject **)(v5 + 336);\n    if ( v8 != v6 )\n    {\n      if ( v6 )\n        cocos2d::CCObject::retain(v6);\n      v9 = *(cocos2d::CCObject **)(v5 + 336);\n      if ( v9 )\n        cocos2d::CCObject::release(v9);\n      *(_QWORD *)(v5 + 336) = v6;\n      v8 = v6;\n    }\n    if ( v8 )\n      v10 = *((_DWORD *)v8 + 80);\n    else\n      v10 = 0;\n    *(_DWORD *)(v5 + 504) = v10;\n    CustomSongWidget::updateSongInfo(v5);\n  }\n}", "assembly": "; \n; CustomSongLayer::dropDownLayerWillClose from 0x1401652f0 to 0x1401653c5 (213 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140742f30\n; > <???> @ 0x14089bf4c\n; > <???> @ 0x14089bf5c\n; > <???> @ 0x140917ea0\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:27:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x1401652f0\nsub     rsp, 20h                                                       ; +0x2, 0x1401652f2\ncmp     byte ptr [rdx+278h], 0                                         ; +0x6, 0x1401652f6\nmov     rbx, rcx                                                       ; +0xd, 0x1401652fd\njz      loc_1401653BF                                                  ; +0x10, 0x140165300\nmov     rcx, [rcx+10h]                                                 ; +0x16, 0x140165306\nmov     edx, [rdx+274h]                                                ; +0x1a, 0x14016530a\nmov     [rsp+28h+arg_0], rdi                                           ; +0x20, 0x140165310\nmov     rax, [rcx]                                                     ; +0x25, 0x140165315\ncall    qword ptr [rax]                                                ; +0x28, 0x140165318\nmov     rcx, [rbx+10h]                                                 ; +0x2a, 0x14016531a\nmov     rax, [rcx]                                                     ; +0x2e, 0x14016531e\ncall    qword ptr [rax+8]                                              ; +0x31, 0x140165321\nmov     ecx, eax                                                       ; +0x34, 0x140165324\ncall    SongInfoObject__create_1                                       ; +0x36, 0x140165326\nmov     rbx, [rbx+20h]                                                 ; +0x3b, 0x14016532b\nmov     rdi, rax                                                       ; +0x3f, 0x14016532f\nmov     rcx, [rbx+178h]                                                ; +0x42, 0x140165332\nmov     rdx, [rcx]                                                     ; +0x49, 0x140165339\nmov     r8, [rdx+150h]                                                 ; +0x4c, 0x14016533c\nxor     edx, edx                                                       ; +0x53, 0x140165343\ncall    r8                                                             ; +0x55, 0x140165345\nmov     rcx, [rbx+1E0h]                                                ; +0x58, 0x140165348\ntest    rcx, rcx                                                       ; +0x5f, 0x14016534f\njz      short loc_140165362                                            ; +0x62, 0x140165352\nmov     rdx, [rcx]                                                     ; +0x64, 0x140165354\nmov     rax, [rdx+150h]                                                ; +0x67, 0x140165357\nxor     edx, edx                                                       ; +0x6e, 0x14016535e\ncall    rax                                                            ; +0x70, 0x140165360\nmov     rax, [rbx+150h]                                                ; +0x72, 0x140165362\ncmp     rax, rdi                                                       ; +0x79, 0x140165369\njz      short loc_140165398                                            ; +0x7c, 0x14016536c\ntest    rdi, rdi                                                       ; +0x7e, 0x14016536e\njz      short loc_14016537C                                            ; +0x81, 0x140165371\nmov     rcx, rdi                                                       ; +0x83, 0x140165373\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x86, 0x140165376\nmov     rcx, [rbx+150h]                                                ; +0x8c, 0x14016537c\ntest    rcx, rcx                                                       ; +0x93, 0x140165383\njz      short loc_14016538E                                            ; +0x96, 0x140165386\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x98, 0x140165388\nmov     [rbx+150h], rdi                                                ; +0x9e, 0x14016538e\nmov     rax, rdi                                                       ; +0xa5, 0x140165395\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xa8, 0x140165398\ntest    rax, rax                                                       ; +0xad, 0x14016539d\njz      short loc_1401653AA                                            ; +0xb0, 0x1401653a0\nmov     ecx, [rax+140h]                                                ; +0xb2, 0x1401653a2\njmp     short loc_1401653AC                                            ; +0xb8, 0x1401653a8\nxor     ecx, ecx                                                       ; +0xba, 0x1401653aa\nmov     [rbx+1F8h], ecx                                                ; +0xbc, 0x1401653ac\nmov     rcx, rbx                                                       ; +0xc2, 0x1401653b2\nadd     rsp, 20h                                                       ; +0xc5, 0x1401653b5\npop     rbx                                                            ; +0xc9, 0x1401653b9\njmp     CustomSongWidget__updateSongInfo                               ; +0xca, 0x1401653ba\nadd     rsp, 20h                                                       ; +0xcf, 0x1401653bf\npop     rbx                                                            ; +0xd3, 0x1401653c3\nretn                                                                   ; +0xd4, 0x1401653c4", "xrefs": ["<???> @ 0x140742f30", "<???> @ 0x14089bf4c", "<???> @ 0x14089bf5c", "<???> @ 0x140917ea0"], "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"}