{"type": "func", "start": 4296011540, "end": 4296011712, "name": "HSVWidgetPopup::onClose", "pseudocode": "// \n// HSVWidgetPopup::onClose from 0x1000fef14 to 0x1000fefc0 (172 bytes)\n// \n// 3 xrefs:\n// > HSVWidgetPopup::keyBackClicked @ 0x1000ff080\n// > sub_1000FF084 @ 0x1000ff088\n// > HSVWidgetPopup::init @ 0x1000fee20\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; // x8\n  cocos2d::CCDictionary *m_inputs; // x9\n  cocos2d::CCDictElement *m_pElements; // x9\n  cocos2d::CCDictElement *next; // x21\n  _QWORD *v7; // x20\n  HSVWidgetDelegate *m_delegate; // x0\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        next = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        v7 = &m_pElements->m_pObject->__vftable;\n        (*(void (__fastcall **)(_QWORD *, _QWORD))(*v7 + 1144LL))(v7, 0);\n        v7[68] = 0;\n        m_pElements = next;\n      }\n      while ( next );\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, _QWORD))m_delegate->hsvPopupClosed)(\n        m_delegate,\n        a1,\n        *(_QWORD *)&m_widget->m_hsv.h,\n        *(_QWORD *)&m_widget->m_hsv.v);\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 0x1000fef14 to 0x1000fefc0 (172 bytes)\n; \n; 3 xrefs:\n; > HSVWidgetPopup::keyBackClicked @ 0x1000ff080\n; > sub_1000FF084 @ 0x1000ff088\n; > HSVWidgetPopup::init @ 0x1000fee20\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1000fef14\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000fef18\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000fef1c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000fef20\nMOV             X19, X0                                                ; +0x10, 0x1000fef24\nLDR             X8, [X0,#0x278]                                        ; +0x14, 0x1000fef28\nLDR             X9, [X8,#0x1A0]                                        ; +0x18, 0x1000fef2c\nCBZ             X9, loc_1000FEF68                                      ; +0x1c, 0x1000fef30\nLDR             X9, [X9,#0x38]                                         ; +0x20, 0x1000fef34\nCBZ             X9, loc_1000FEF68                                      ; +0x24, 0x1000fef38\nLDR             X21, [X9,#0x120]                                       ; +0x28, 0x1000fef3c\nLDR             X20, [X9,#0x108]                                       ; +0x2c, 0x1000fef40\nLDR             X8, [X20]                                              ; +0x30, 0x1000fef44\nLDR             X8, [X8,#0x478]                                        ; +0x34, 0x1000fef48\nMOV             X0, X20                                                ; +0x38, 0x1000fef4c\nMOV             W1, #0                                                 ; +0x3c, 0x1000fef50\nBLR             X8                                                     ; +0x40, 0x1000fef54\nSTR             XZR, [X20,#0x220]                                      ; +0x44, 0x1000fef58\nMOV             X9, X21                                                ; +0x48, 0x1000fef5c\nCBNZ            X21, loc_1000FEF3C                                     ; +0x4c, 0x1000fef60\nLDR             X8, [X19,#0x278]                                       ; +0x50, 0x1000fef64\nLDRB            W9, [X8,#0x188]                                        ; +0x54, 0x1000fef68\nTBNZ            W9, #0, loc_1000FEF8C                                  ; +0x58, 0x1000fef6c\nLDR             X0, [X19,#0x280]                                       ; +0x5c, 0x1000fef70\nCBZ             X0, loc_1000FEF8C                                      ; +0x60, 0x1000fef74\nLDP             X2, X3, [X8,#0x178]                                    ; +0x64, 0x1000fef78\nLDR             X8, [X0]                                               ; +0x68, 0x1000fef7c\nLDR             X8, [X8]                                               ; +0x6c, 0x1000fef80\nMOV             X1, X19                                                ; +0x70, 0x1000fef84\nBLR             X8                                                     ; +0x74, 0x1000fef88\nLDR             X8, [X19]                                              ; +0x78, 0x1000fef8c\nLDR             X8, [X8,#0x420]                                        ; +0x7c, 0x1000fef90\nMOV             X0, X19                                                ; +0x80, 0x1000fef94\nMOV             W1, #0                                                 ; +0x84, 0x1000fef98\nBLR             X8                                                     ; +0x88, 0x1000fef9c\nLDR             X8, [X19]                                              ; +0x8c, 0x1000fefa0\nLDR             X2, [X8,#0x200]                                        ; +0x90, 0x1000fefa4\nMOV             X0, X19                                                ; +0x94, 0x1000fefa8\nMOV             W1, #1                                                 ; +0x98, 0x1000fefac\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x9c, 0x1000fefb0\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa0, 0x1000fefb4\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa4, 0x1000fefb8\nBR              X2                                                     ; +0xa8, 0x1000fefbc", "xrefs": ["HSVWidgetPopup::keyBackClicked @ 0x1000ff080", "sub_1000FF084 @ 0x1000ff088", "HSVWidgetPopup::init @ 0x1000fee20"], "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"}