{"type": "func", "start": 4296670672, "end": 4296670768, "name": "HSVLiveOverlay::closeColorSelect", "pseudocode": "// \n// HSVLiveOverlay::closeColorSelect from 0x10019fdd0 to 0x10019fe30 (96 bytes)\n// \n// 7 xrefs:\n// > HSVLiveOverlay::keyBackClicked @ 0x1001a00b0\n// > sub_1001A00B4 @ 0x1001a00bc\n// > EditorUI::checkLiveColorSelect @ 0x1003eda98\n// > EditorUI::editColor @ 0x1003edbf0\n// > EditorUI::editHSV @ 0x1003edccc\n// > EditorUI::showLiveColorSelectForMode @ 0x1003f5c4c\n// > HSVLiveOverlay::init @ 0x10019faa0\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 HSVLiveOverlay::closeColorSelect(HSVLiveOverlay *a1, cocos2d::CCObject *a2)\n{\n  ColorSelectDelegate *m_delegate; // x0\n\n  a1->m_unkBool3 = a2 != nullptr;\n  ((void (__fastcall *)(HSVLiveOverlay *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  m_delegate = a1->m_delegate;\n  if ( m_delegate )\n    ((void (__fastcall *)(ColorSelectDelegate *, HSVLiveOverlay *))m_delegate->colorSelectClosed)(m_delegate, a1);\n  ((void (__fastcall *)(HSVLiveOverlay *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; HSVLiveOverlay::closeColorSelect from 0x10019fdd0 to 0x10019fe30 (96 bytes)\n; \n; 7 xrefs:\n; > HSVLiveOverlay::keyBackClicked @ 0x1001a00b0\n; > sub_1001A00B4 @ 0x1001a00bc\n; > EditorUI::checkLiveColorSelect @ 0x1003eda98\n; > EditorUI::editColor @ 0x1003edbf0\n; > EditorUI::editHSV @ 0x1003edccc\n; > EditorUI::showLiveColorSelectForMode @ 0x1003f5c4c\n; > HSVLiveOverlay::init @ 0x10019faa0\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, 0x10019fdd0\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10019fdd4\nADD             X29, SP, #0x10                                         ; +0x8, 0x10019fdd8\nMOV             X19, X0                                                ; +0xc, 0x10019fddc\nCMP             X1, #0                                                 ; +0x10, 0x10019fde0\nCSET            W8, NE                                                 ; +0x14, 0x10019fde4\nSTRB            W8, [X0,#0x2BA]                                        ; +0x18, 0x10019fde8\nLDR             X8, [X0]                                               ; +0x1c, 0x10019fdec\nLDR             X8, [X8,#0x420]                                        ; +0x20, 0x10019fdf0\nMOV             W1, #0                                                 ; +0x24, 0x10019fdf4\nBLR             X8                                                     ; +0x28, 0x10019fdf8\nLDR             X0, [X19,#0x2A0]                                       ; +0x2c, 0x10019fdfc\nCBZ             X0, loc_10019FE14                                      ; +0x30, 0x10019fe00\nLDR             X8, [X0]                                               ; +0x34, 0x10019fe04\nLDR             X8, [X8]                                               ; +0x38, 0x10019fe08\nMOV             X1, X19                                                ; +0x3c, 0x10019fe0c\nBLR             X8                                                     ; +0x40, 0x10019fe10\nLDR             X8, [X19]                                              ; +0x44, 0x10019fe14\nLDR             X2, [X8,#0x200]                                        ; +0x48, 0x10019fe18\nMOV             X0, X19                                                ; +0x4c, 0x10019fe1c\nMOV             W1, #1                                                 ; +0x50, 0x10019fe20\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x10019fe24\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x58, 0x10019fe28\nBR              X2                                                     ; +0x5c, 0x10019fe2c", "xrefs": ["HSVLiveOverlay::keyBackClicked @ 0x1001a00b0", "sub_1001A00B4 @ 0x1001a00bc", "EditorUI::checkLiveColorSelect @ 0x1003eda98", "EditorUI::editColor @ 0x1003edbf0", "EditorUI::editHSV @ 0x1003edccc", "EditorUI::showLiveColorSelectForMode @ 0x1003f5c4c", "HSVLiveOverlay::init @ 0x10019faa0"], "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"}