{"type": "func", "start": 4299286112, "end": 4299286428, "name": "ColorSelectPopup::closeColorSelect", "pseudocode": "// \n// ColorSelectPopup::closeColorSelect from 0x10041e660 to 0x10041e79c (316 bytes)\n// \n// 3 xrefs:\n// > ColorSelectPopup::keyBackClicked @ 0x10041fa40\n// > sub_10041FA44 @ 0x10041fa48\n// > ColorSelectPopup::init @ 0x10041c6a0\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 ColorSelectPopup::closeColorSelect(ColorSelectPopup *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_colorInput; // x0\n  CCTextInputNode *m_fadeTimeInput; // x0\n  CCTextInputNode *m_copyColorInput; // x0\n  CCTextInputNode *m_rInput; // x0\n  CCTextInputNode *m_gInput; // x0\n  CCTextInputNode *m_bInput; // x0\n  CCTextInputNode *m_hexInput; // x0\n  ConfigureHSVWidget *m_hsvWidget; // x8\n  GameManager *v11; // x0\n  ColorSelectDelegate *m_delegate; // x0\n\n  m_colorInput = a1->m_colorInput;\n  if ( m_colorInput )\n  {\n    m_colorInput->m_delegate = nullptr;\n    ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_colorInput->onClickTrackNode)(m_colorInput, 0);\n  }\n  m_fadeTimeInput = a1->m_fadeTimeInput;\n  if ( m_fadeTimeInput )\n  {\n    m_fadeTimeInput->m_delegate = nullptr;\n    ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_fadeTimeInput->onClickTrackNode)(m_fadeTimeInput, 0);\n  }\n  m_copyColorInput = a1->m_copyColorInput;\n  m_copyColorInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_copyColorInput->onClickTrackNode)(m_copyColorInput, 0);\n  m_rInput = a1->m_rInput;\n  m_rInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_rInput->onClickTrackNode)(m_rInput, 0);\n  m_gInput = a1->m_gInput;\n  m_gInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_gInput->onClickTrackNode)(m_gInput, 0);\n  m_bInput = a1->m_bInput;\n  m_bInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_bInput->onClickTrackNode)(m_bInput, 0);\n  m_hexInput = a1->m_hexInput;\n  m_hexInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_hexInput->onClickTrackNode)(m_hexInput, 0);\n  m_hsvWidget = a1->m_hsvWidget;\n  if ( !m_hsvWidget->m_mixed )\n  {\n    a1->m_hsv = m_hsvWidget->m_hsv;\n    ColorSelectPopup::updateHSVValue(a1);\n  }\n  v11 = GameManager::sharedState();\n  LevelEditorLayer::resetEffectTriggerOptim(v11->m_levelEditorLayer, a1->m_gameObject, a1->m_gameObjects);\n  ((void (__fastcall *)(ColorSelectPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    ((void (__fastcall *)(ColorSelectDelegate *, ColorSelectPopup *))m_delegate->colorSelectClosed)(m_delegate, a1);\n  ((void (__fastcall *)(ColorSelectPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; ColorSelectPopup::closeColorSelect from 0x10041e660 to 0x10041e79c (316 bytes)\n; \n; 3 xrefs:\n; > ColorSelectPopup::keyBackClicked @ 0x10041fa40\n; > sub_10041FA44 @ 0x10041fa48\n; > ColorSelectPopup::init @ 0x10041c6a0\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10041e660\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10041e664\nADD             X29, SP, #0x10                                         ; +0x8, 0x10041e668\nMOV             X19, X0                                                ; +0xc, 0x10041e66c\nLDR             X0, [X0,#0x438]                                        ; +0x10, 0x10041e670\nCBZ             X0, loc_10041E68C                                      ; +0x14, 0x10041e674\nSTR             XZR, [X0,#0x220]                                       ; +0x18, 0x10041e678\nLDR             X8, [X0]                                               ; +0x1c, 0x10041e67c\nLDR             X8, [X8,#0x478]                                        ; +0x20, 0x10041e680\nMOV             W1, #0                                                 ; +0x24, 0x10041e684\nBLR             X8                                                     ; +0x28, 0x10041e688\nLDR             X0, [X19,#0x488]                                       ; +0x2c, 0x10041e68c\nCBZ             X0, loc_10041E6A8                                      ; +0x30, 0x10041e690\nSTR             XZR, [X0,#0x220]                                       ; +0x34, 0x10041e694\nLDR             X8, [X0]                                               ; +0x38, 0x10041e698\nLDR             X8, [X8,#0x478]                                        ; +0x3c, 0x10041e69c\nMOV             W1, #0                                                 ; +0x40, 0x10041e6a0\nBLR             X8                                                     ; +0x44, 0x10041e6a4\nLDR             X0, [X19,#0x480]                                       ; +0x48, 0x10041e6a8\nSTR             XZR, [X0,#0x220]                                       ; +0x4c, 0x10041e6ac\nLDR             X8, [X0]                                               ; +0x50, 0x10041e6b0\nLDR             X8, [X8,#0x478]                                        ; +0x54, 0x10041e6b4\nMOV             W1, #0                                                 ; +0x58, 0x10041e6b8\nBLR             X8                                                     ; +0x5c, 0x10041e6bc\nLDR             X0, [X19,#0x4A8]                                       ; +0x60, 0x10041e6c0\nSTR             XZR, [X0,#0x220]                                       ; +0x64, 0x10041e6c4\nLDR             X8, [X0]                                               ; +0x68, 0x10041e6c8\nLDR             X8, [X8,#0x478]                                        ; +0x6c, 0x10041e6cc\nMOV             W1, #0                                                 ; +0x70, 0x10041e6d0\nBLR             X8                                                     ; +0x74, 0x10041e6d4\nLDR             X0, [X19,#0x4B0]                                       ; +0x78, 0x10041e6d8\nSTR             XZR, [X0,#0x220]                                       ; +0x7c, 0x10041e6dc\nLDR             X8, [X0]                                               ; +0x80, 0x10041e6e0\nLDR             X8, [X8,#0x478]                                        ; +0x84, 0x10041e6e4\nMOV             W1, #0                                                 ; +0x88, 0x10041e6e8\nBLR             X8                                                     ; +0x8c, 0x10041e6ec\nLDR             X0, [X19,#0x4B8]                                       ; +0x90, 0x10041e6f0\nSTR             XZR, [X0,#0x220]                                       ; +0x94, 0x10041e6f4\nLDR             X8, [X0]                                               ; +0x98, 0x10041e6f8\nLDR             X8, [X8,#0x478]                                        ; +0x9c, 0x10041e6fc\nMOV             W1, #0                                                 ; +0xa0, 0x10041e700\nBLR             X8                                                     ; +0xa4, 0x10041e704\nLDR             X0, [X19,#0x4C0]                                       ; +0xa8, 0x10041e708\nSTR             XZR, [X0,#0x220]                                       ; +0xac, 0x10041e70c\nLDR             X8, [X0]                                               ; +0xb0, 0x10041e710\nLDR             X8, [X8,#0x478]                                        ; +0xb4, 0x10041e714\nMOV             W1, #0                                                 ; +0xb8, 0x10041e718\nBLR             X8                                                     ; +0xbc, 0x10041e71c\nLDR             X8, [X19,#0x458]                                       ; +0xc0, 0x10041e720\nLDRB            W9, [X8,#0x188]                                        ; +0xc4, 0x10041e724\nTBNZ            W9, #0, loc_10041E740                                  ; +0xc8, 0x10041e728\nADD             X8, X8, #0x178                                         ; +0xcc, 0x10041e72c\nLDR             Q0, [X8]                                               ; +0xd0, 0x10041e730\nSTR             Q0, [X19,#0x460]                                       ; +0xd4, 0x10041e734\nMOV             X0, X19                                                ; +0xd8, 0x10041e738\nBL              ColorSelectPopup__updateHSVValue                       ; +0xdc, 0x10041e73c\nBL              GameManager__sharedState                               ; +0xe0, 0x10041e740\nLDR             X0, [X0,#0x200]                                        ; +0xe4, 0x10041e744\nLDR             X1, [X19,#0x290]                                       ; +0xe8, 0x10041e748\nLDR             X2, [X19,#0x298]                                       ; +0xec, 0x10041e74c\nBL              LevelEditorLayer__resetEffectTriggerOptim              ; +0xf0, 0x10041e750\nLDR             X8, [X19]                                              ; +0xf4, 0x10041e754\nLDR             X8, [X8,#0x420]                                        ; +0xf8, 0x10041e758\nMOV             X0, X19                                                ; +0xfc, 0x10041e75c\nMOV             W1, #0                                                 ; +0x100, 0x10041e760\nBLR             X8                                                     ; +0x104, 0x10041e764\nLDR             X0, [X19,#0x418]                                       ; +0x108, 0x10041e768\nCBZ             X0, loc_10041E780                                      ; +0x10c, 0x10041e76c\nLDR             X8, [X0]                                               ; +0x110, 0x10041e770\nLDR             X8, [X8]                                               ; +0x114, 0x10041e774\nMOV             X1, X19                                                ; +0x118, 0x10041e778\nBLR             X8                                                     ; +0x11c, 0x10041e77c\nLDR             X8, [X19]                                              ; +0x120, 0x10041e780\nLDR             X2, [X8,#0x200]                                        ; +0x124, 0x10041e784\nMOV             X0, X19                                                ; +0x128, 0x10041e788\nMOV             W1, #1                                                 ; +0x12c, 0x10041e78c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x130, 0x10041e790\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x134, 0x10041e794\nBR              X2                                                     ; +0x138, 0x10041e798", "xrefs": ["ColorSelectPopup::keyBackClicked @ 0x10041fa40", "sub_10041FA44 @ 0x10041fa48", "ColorSelectPopup::init @ 0x10041c6a0"], "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"}