{"type": "func", "start": 4299119768, "end": 4299119880, "name": "EditorUI::colorSelectClosed", "pseudocode": "// \n// EditorUI::colorSelectClosed from 0x1003f5c98 to 0x1003f5d08 (112 bytes)\n// \n// 2 xrefs:\n// > sub_1003F5D94 @ 0x1003f5d98\n// > <???> @ 0x100814048\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 EditorUI::colorSelectClosed(EditorUI *a1, cocos2d::CCNode *a2)\n{\n  ColorSelectLiveOverlay *m_colorOverlay; // x8\n  HSVLiveOverlay *m_hsvOverlay; // x8\n  _BOOL4 m_unkBool3; // w20\n  bool m_closeButtonPressed; // w20\n\n  m_colorOverlay = a1->m_colorOverlay;\n  if ( m_colorOverlay == a2 )\n  {\n    m_closeButtonPressed = m_colorOverlay->m_closeButtonPressed;\n    a1->m_colorOverlay = nullptr;\n    EditorUI::resetSelectedObjectsColor(a1);\n    if ( !m_closeButtonPressed )\n      return;\nLABEL_6:\n    EditorUI::updateEditColorButton(a1);\n    return;\n  }\n  m_hsvOverlay = a1->m_hsvOverlay;\n  if ( m_hsvOverlay == a2 )\n  {\n    m_unkBool3 = m_hsvOverlay->m_unkBool3;\n    a1->m_hsvOverlay = nullptr;\n    EditorUI::resetSelectedObjectsColor(a1);\n    if ( m_unkBool3 )\n      goto LABEL_6;\n  }\n}", "assembly": "; \n; EditorUI::colorSelectClosed from 0x1003f5c98 to 0x1003f5d08 (112 bytes)\n; \n; 2 xrefs:\n; > sub_1003F5D94 @ 0x1003f5d98\n; > <???> @ 0x100814048\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, 0x1003f5c98\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1003f5c9c\nADD             X29, SP, #0x10                                         ; +0x8, 0x1003f5ca0\nMOV             X19, X0                                                ; +0xc, 0x1003f5ca4\nLDR             X8, [X0,#0x548]                                        ; +0x10, 0x1003f5ca8\nCMP             X8, X1                                                 ; +0x14, 0x1003f5cac\nB.EQ            loc_1003F5CE4                                          ; +0x18, 0x1003f5cb0\nLDR             X8, [X19,#0x550]                                       ; +0x1c, 0x1003f5cb4\nCMP             X8, X1                                                 ; +0x20, 0x1003f5cb8\nB.NE            loc_1003F5CD8                                          ; +0x24, 0x1003f5cbc\nLDRB            W20, [X8,#0x2BA]                                       ; +0x28, 0x1003f5cc0\nSTR             XZR, [X19,#0x550]                                      ; +0x2c, 0x1003f5cc4\nMOV             X0, X19                                                ; +0x30, 0x1003f5cc8\nBL              EditorUI__resetSelectedObjectsColor                    ; +0x34, 0x1003f5ccc\nCMP             W20, #1                                                ; +0x38, 0x1003f5cd0\nB.EQ            loc_1003F5CF8                                          ; +0x3c, 0x1003f5cd4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x40, 0x1003f5cd8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x44, 0x1003f5cdc\nRET                                                                    ; +0x48, 0x1003f5ce0\nLDRB            W20, [X8,#0x339]                                       ; +0x4c, 0x1003f5ce4\nSTR             XZR, [X19,#0x548]                                      ; +0x50, 0x1003f5ce8\nMOV             X0, X19                                                ; +0x54, 0x1003f5cec\nBL              EditorUI__resetSelectedObjectsColor                    ; +0x58, 0x1003f5cf0\nTBZ             W20, #0, loc_1003F5CD8                                 ; +0x5c, 0x1003f5cf4\nMOV             X0, X19                                                ; +0x60, 0x1003f5cf8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x64, 0x1003f5cfc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x68, 0x1003f5d00\nB               EditorUI__updateEditColorButton                        ; +0x6c, 0x1003f5d04", "xrefs": ["sub_1003F5D94 @ 0x1003f5d98", "<???> @ 0x100814048"], "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"}