{"type": "func", "start": 4299356544, "end": 4299356731, "name": "HSVWidgetPopup::onClose", "pseudocode": "// \n// HSVWidgetPopup::onClose from 0x10042f980 to 0x10042fa3b (187 bytes)\n// \n// 1 xrefs:\n// > HSVWidgetPopup::init @ 0x10042f801\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 HSVWidgetPopup::onClose(HSVWidgetPopup *a1, cocos2d::CCObject *a2)\n{\n  ConfigureHSVWidget *m_widget; // rax\n  cocos2d::CCDictionary *m_inputs; // rcx\n  cocos2d::CCDictElement *m_pElements; // r15\n  _QWORD *v6; // r14\n  HSVWidgetDelegate *m_delegate; // rdi\n\n  m_widget = a1->m_widget;\n  m_inputs = m_widget->m_inputs;\n  if ( m_inputs )\n  {\n    m_pElements = m_inputs->m_pElements;\n    if ( m_pElements )\n    {\n      do\n      {\n        v6 = &m_pElements->m_pObject->__vftable;\n        m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1144LL))(v6, 0);\n        v6[68] = 0;\n      }\n      while ( m_pElements );\n      m_widget = a1->m_widget;\n    }\n  }\n  if ( !m_widget->m_mixed )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      ((void (__fastcall *)(HSVWidgetDelegate *, HSVWidgetPopup *, _QWORD, double))m_delegate->hsvPopupClosed)(\n        m_delegate,\n        a1,\n        *(_QWORD *)&m_widget->m_hsv.v,\n        *(double *)&m_widget->m_hsv.h);\n  }\n  ((void (__fastcall *)(HSVWidgetPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(HSVWidgetPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; HSVWidgetPopup::onClose from 0x10042f980 to 0x10042fa3b (187 bytes)\n; \n; 1 xrefs:\n; > HSVWidgetPopup::init @ 0x10042f801\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, 0x10042f980\nmov     rbp, rsp                                                       ; +0x1, 0x10042f981\npush    r15                                                            ; +0x4, 0x10042f984\npush    r14                                                            ; +0x6, 0x10042f986\npush    rbx                                                            ; +0x8, 0x10042f988\npush    rax                                                            ; +0x9, 0x10042f989\nmov     rbx, rdi                                                       ; +0xa, 0x10042f98a\nmov     rax, [rdi+278h]                                                ; +0xd, 0x10042f98d\nmov     rcx, [rax+1A0h]                                                ; +0x14, 0x10042f994\ntest    rcx, rcx                                                       ; +0x1b, 0x10042f99b\njz      short loc_10042F9E3                                            ; +0x1e, 0x10042f99e\nmov     r15, [rcx+38h]                                                 ; +0x20, 0x10042f9a0\ntest    r15, r15                                                       ; +0x24, 0x10042f9a4\njz      short loc_10042F9E3                                            ; +0x27, 0x10042f9a7\nnop     dword ptr [rax+00000000h]                                      ; +0x29, 0x10042f9a9\nmov     r14, [r15+108h]                                                ; +0x30, 0x10042f9b0\nmov     r15, [r15+120h]                                                ; +0x37, 0x10042f9b7\nmov     rax, [r14]                                                     ; +0x3e, 0x10042f9be\nmov     rdi, r14                                                       ; +0x41, 0x10042f9c1\nxor     esi, esi                                                       ; +0x44, 0x10042f9c4\ncall    qword ptr [rax+478h]                                           ; +0x46, 0x10042f9c6\nmov     qword ptr [r14+220h], 0                                        ; +0x4c, 0x10042f9cc\ntest    r15, r15                                                       ; +0x57, 0x10042f9d7\njnz     short loc_10042F9B0                                            ; +0x5a, 0x10042f9da\nmov     rax, [rbx+278h]                                                ; +0x5c, 0x10042f9dc\ncmp     byte ptr [rax+188h], 0                                         ; +0x63, 0x10042f9e3\njnz     short loc_10042FA0F                                            ; +0x6a, 0x10042f9ea\nmov     rdi, [rbx+280h]                                                ; +0x6c, 0x10042f9ec\ntest    rdi, rdi                                                       ; +0x73, 0x10042f9f3\njz      short loc_10042FA0F                                            ; +0x76, 0x10042f9f6\nmovsd   xmm0, qword ptr [rax+178h]                                     ; +0x78, 0x10042f9f8\nmov     rdx, [rax+180h]                                                ; +0x80, 0x10042fa00\nmov     rax, [rdi]                                                     ; +0x87, 0x10042fa07\nmov     rsi, rbx                                                       ; +0x8a, 0x10042fa0a\ncall    qword ptr [rax]                                                ; +0x8d, 0x10042fa0d\nmov     rax, [rbx]                                                     ; +0x8f, 0x10042fa0f\nmov     rdi, rbx                                                       ; +0x92, 0x10042fa12\nxor     esi, esi                                                       ; +0x95, 0x10042fa15\ncall    qword ptr [rax+420h]                                           ; +0x97, 0x10042fa17\nmov     rax, [rbx]                                                     ; +0x9d, 0x10042fa1d\nmov     rax, [rax+200h]                                                ; +0xa0, 0x10042fa20\nmov     rdi, rbx                                                       ; +0xa7, 0x10042fa27\nmov     esi, 1                                                         ; +0xaa, 0x10042fa2a\nadd     rsp, 8                                                         ; +0xaf, 0x10042fa2f\npop     rbx                                                            ; +0xb3, 0x10042fa33\npop     r14                                                            ; +0xb4, 0x10042fa34\npop     r15                                                            ; +0xb6, 0x10042fa36\npop     rbp                                                            ; +0xb8, 0x10042fa38\njmp     rax                                                            ; +0xb9, 0x10042fa39", "xrefs": ["HSVWidgetPopup::init @ 0x10042f801"], "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"}