{"type": "func", "start": 5369325856, "end": 5369326067, "name": "HSVWidgetPopup::onClose", "pseudocode": "// \n// HSVWidgetPopup::onClose from 0x140096920 to 0x1400969f3 (211 bytes)\n// \n// 5 xrefs:\n// > HSVWidgetPopup::keyBackClicked @ 0x140096a09\n// > HSVWidgetPopup::init @ 0x140096803\n// > <???> @ 0x140669854\n// > <???> @ 0x14066988c\n// > <???> @ 0x1406c7284\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 HSVWidgetPopup::onClose(HSVWidgetPopup *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCDictionary *m_inputs; // rbx\n  cocos2d::CCDictElement *m_pElements; // rbx\n  cocos2d::CCDictElement *i; // rdi\n  _QWORD *v6; // rbx\n  ConfigureHSVWidget *m_widget; // rax\n  HSVWidgetDelegate *m_delegate; // rcx\n  cocos2d::ccHSVValue m_hsv; // xmm0\n  HSVWidgetDelegate_vtbl *v10; // rax\n  _BOOL8 v11; // rdx\n  cocos2d::ccHSVValue v12; // [rsp+20h] [rbp-18h] BYREF\n\n  m_inputs = a1->m_widget->m_inputs;\n  if ( m_inputs )\n  {\n    m_pElements = m_inputs->m_pElements;\n    if ( m_pElements )\n    {\n      for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )\n      {\n        v6 = &m_pElements->m_pObject->__vftable;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1016LL))(v6, 0);\n        v6[70] = 0;\n        m_pElements = i;\n        if ( !i )\n          break;\n      }\n    }\n  }\n  m_widget = a1->m_widget;\n  if ( !m_widget->m_mixed )\n  {\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n    {\n      m_hsv = m_widget->m_hsv;\n      v10 = m_delegate->__vftable;\n      v12 = m_hsv;\n      v10->hsvPopupClosed(m_delegate, a1, &v12);\n    }\n  }\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v11) = 1;\n  a1->removeFromParentAndCleanup(a1, v11);\n}", "assembly": "; \n; HSVWidgetPopup::onClose from 0x140096920 to 0x1400969f3 (211 bytes)\n; \n; 5 xrefs:\n; > HSVWidgetPopup::keyBackClicked @ 0x140096a09\n; > HSVWidgetPopup::init @ 0x140096803\n; > <???> @ 0x140669854\n; > <???> @ 0x14066988c\n; > <???> @ 0x1406c7284\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    rsi                                                            ; +0x0, 0x140096920\nsub     rsp, 30h                                                       ; +0x2, 0x140096922\nmov     rax, [rcx+278h]                                                ; +0x6, 0x140096926\nmov     rsi, rcx                                                       ; +0xd, 0x14009692d\nmov     [rsp+38h+arg_0], rbx                                           ; +0x10, 0x140096930\nmov     rbx, [rax+1A0h]                                                ; +0x15, 0x140096935\ntest    rbx, rbx                                                       ; +0x1c, 0x14009693c\njz      short loc_140096997                                            ; +0x1f, 0x14009693f\nmov     rbx, [rbx+38h]                                                 ; +0x21, 0x140096941\ntest    rbx, rbx                                                       ; +0x25, 0x140096945\njz      short loc_140096997                                            ; +0x28, 0x140096948\nmov     [rsp+38h+arg_8], rbp                                           ; +0x2a, 0x14009694a\nxor     ebp, ebp                                                       ; +0x2f, 0x14009694f\nmov     [rsp+38h+arg_10], rdi                                          ; +0x31, 0x140096951\nmov     rdi, [rbx+120h]                                                ; +0x36, 0x140096956\nnop     dword ptr [rax]                                                ; +0x3d, 0x14009695d\nmov     rbx, [rbx+108h]                                                ; +0x40, 0x140096960\nxor     edx, edx                                                       ; +0x47, 0x140096967\nmov     rcx, rbx                                                       ; +0x49, 0x140096969\nmov     rax, [rbx]                                                     ; +0x4c, 0x14009696c\ncall    qword ptr [rax+3F8h]                                           ; +0x4f, 0x14009696f\nmov     [rbx+230h], rbp                                                ; +0x55, 0x140096975\nmov     rbx, rdi                                                       ; +0x5c, 0x14009697c\ntest    rdi, rdi                                                       ; +0x5f, 0x14009697f\njz      short loc_14009698D                                            ; +0x62, 0x140096982\nmov     rdi, [rdi+120h]                                                ; +0x64, 0x140096984\njmp     short loc_140096960                                            ; +0x6b, 0x14009698b\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x6d, 0x14009698d\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x72, 0x140096992\nmov     rax, [rsi+278h]                                                ; +0x77, 0x140096997\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7e, 0x14009699e\ncmp     byte ptr [rax+188h], 0                                         ; +0x83, 0x1400969a3\njnz     short loc_1400969D1                                            ; +0x8a, 0x1400969aa\nmov     rcx, [rsi+280h]                                                ; +0x8c, 0x1400969ac\ntest    rcx, rcx                                                       ; +0x93, 0x1400969b3\njz      short loc_1400969D1                                            ; +0x96, 0x1400969b6\nmovups  xmm0, xmmword ptr [rax+178h]                                   ; +0x98, 0x1400969b8\nmov     rax, [rcx]                                                     ; +0x9f, 0x1400969bf\nlea     r8, [rsp+38h+var_18]                                           ; +0xa2, 0x1400969c2\nmov     rdx, rsi                                                       ; +0xa7, 0x1400969c7\nmovaps  xmmword ptr [rsp+38h+var_18.h], xmm0                           ; +0xaa, 0x1400969ca\ncall    qword ptr [rax]                                                ; +0xaf, 0x1400969cf\nmov     rax, [rsi]                                                     ; +0xb1, 0x1400969d1\nxor     edx, edx                                                       ; +0xb4, 0x1400969d4\nmov     rcx, rsi                                                       ; +0xb6, 0x1400969d6\ncall    qword ptr [rax+3D0h]                                           ; +0xb9, 0x1400969d9\nmov     rax, [rsi]                                                     ; +0xbf, 0x1400969df\nmov     dl, 1                                                          ; +0xc2, 0x1400969e2\nmov     rcx, rsi                                                       ; +0xc4, 0x1400969e4\nadd     rsp, 30h                                                       ; +0xc7, 0x1400969e7\npop     rsi                                                            ; +0xcb, 0x1400969eb\njmp     qword ptr [rax+1F8h]                                           ; +0xcc, 0x1400969ec", "xrefs": ["HSVWidgetPopup::keyBackClicked @ 0x140096a09", "HSVWidgetPopup::init @ 0x140096803", "<???> @ 0x140669854", "<???> @ 0x14066988c", "<???> @ 0x1406c7284"], "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"}