{"type": "func", "start": 8150176, "end": 8150484, "name": "EditorUI::editColor", "pseudocode": "// \n// EditorUI::editColor from 0x7c5ca0 to 0x7c5dd4 (308 bytes)\n// \n// 3 xrefs:\n// > EditorUI::onEditColor @ 0x7c60c4\n// > EditorUI::checkLiveColorSelect @ 0xbdca14\n// > <???> @ 0xc0190\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:54:08 +0000\n// \n\n__int64 __fastcall EditorUI::editColor(cocos2d::CCArray **this)\n{\n  EffectGameObject *v2; // x1\n  ColorAction *v3; // x2\n  __int64 v4; // x0\n  GameObject *v6; // x0\n  unsigned int v7; // w21\n  unsigned int v8; // w1\n  GameObject *v9; // x0\n  __int128 v10; // [xsp+30h] [xbp+30h] BYREF\n  EffectGameObject *v11; // [xsp+40h] [xbp+40h] BYREF\n\n  v10 = 0u;\n  v11 = nullptr;\n  EditorUI::getEditColorTargets((EditorUI *)this, (ColorAction **)&v10, (ColorAction **)&v10 + 1, &v11);\n  if ( v10 != 0 || v11 )\n  {\n    EditorUI::closeLiveColorSelect((__int64)this);\n    EditorUI::closeLiveHSVSelect((__int64)this);\n    *(this + 193) = nullptr;\n    v4 = v11\n       ? ColorSelectLiveOverlay::createWithObject(v11, v2)\n       : ColorSelectLiveOverlay::createWithActions((ColorSelectLiveOverlay *)v10, *((ColorAction **)&v10 + 1), v3);\n    *(this + 193) = (cocos2d::CCArray *)v4;\n    *(_QWORD *)(v4 + 736) = this + 52;\n    *((_QWORD *)*(this + 193) + 71) = this;\n    (*(void (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 193) + 1312LL))(*(this + 193));\n    if ( !v11 )\n    {\n      v6 = *(this + 187);\n      if ( v6 )\n      {\n        GameObject::deselectObject(v6);\n      }\n      else\n      {\n        v7 = 0;\n        if ( (unsigned int)cocos2d::CCArray::count(*(this + 112)) )\n        {\n          while ( v7 < (unsigned int)cocos2d::CCArray::count(*(this + 112)) )\n          {\n            v8 = v7++;\n            v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 112), v8);\n            GameObject::deselectObject(v9);\n          }\n        }\n      }\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorUI::editColor from 0x7c5ca0 to 0x7c5dd4 (308 bytes)\n; \n; 3 xrefs:\n; > EditorUI::onEditColor @ 0x7c60c4\n; > EditorUI::checkLiveColorSelect @ 0xbdca14\n; > <???> @ 0xc0190\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:54:08 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x7c5ca0\nMOV             X29, SP                                                ; +0x4, 0x7c5ca4\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x7c5ca8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7c5cac\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x7c5cb0\nADD             X1, X29, #0x50+var_20; ColorAction **                  ; +0x14, 0x7c5cb4\nADD             X2, X29, #0x50+var_20+8; ColorAction **                ; +0x18, 0x7c5cb8\nADD             X3, X29, #0x50+var_10; EffectGameObject **             ; +0x1c, 0x7c5cbc\nMOV             X19, X0                                                ; +0x20, 0x7c5cc0\nLDR             X4, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x7c5cc4\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x28, 0x7c5cc8\nSTR             XZR, [X29,#0x50+var_20+8]                              ; +0x2c, 0x7c5ccc\nLDR             X4, [X4]                                               ; +0x30, 0x7c5cd0\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x34, 0x7c5cd4\nSTR             X4, [X29,#0x50+var_8]                                  ; +0x38, 0x7c5cd8\nBL              _ZN8EditorUI19getEditColorTargetsERP11ColorActionS2_RP16EffectGameObject; EditorUI::getEditColorTargets(ColorAction *&,ColorAction *&,EffectGameObject *&) ; +0x3c, 0x7c5cdc\nLDR             X0, [X29,#0x50+var_20]                                 ; +0x40, 0x7c5ce0\nCBZ             X0, loc_7C5D5C                                         ; +0x44, 0x7c5ce4\nMOV             X0, X19; this                                          ; +0x48, 0x7c5ce8\nBL              _ZN8EditorUI20closeLiveColorSelectEv; EditorUI::closeLiveColorSelect(void) ; +0x4c, 0x7c5cec\nMOV             X0, X19; this                                          ; +0x50, 0x7c5cf0\nBL              _ZN8EditorUI18closeLiveHSVSelectEv; EditorUI::closeLiveHSVSelect(void) ; +0x54, 0x7c5cf4\nSTR             XZR, [X19,#0x608]                                      ; +0x58, 0x7c5cf8\nLDR             X0, [X29,#0x50+var_10]; this                           ; +0x5c, 0x7c5cfc\nCBZ             X0, loc_7C5D80                                         ; +0x60, 0x7c5d00\nBL              _ZN22ColorSelectLiveOverlay16createWithObjectEP16EffectGameObject; ColorSelectLiveOverlay::createWithObject(EffectGameObject *) ; +0x64, 0x7c5d04\nSTR             X0, [X19,#0x608]                                       ; +0x68, 0x7c5d08\nADD             X1, X19, #0x1A0                                        ; +0x6c, 0x7c5d0c\nSTR             X1, [X0,#0x2E0]                                        ; +0x70, 0x7c5d10\nLDR             X0, [X19,#0x608]                                       ; +0x74, 0x7c5d14\nSTR             X19, [X0,#0x238]                                       ; +0x78, 0x7c5d18\nLDR             X1, [X19,#0x608]                                       ; +0x7c, 0x7c5d1c\nMOV             X0, X1                                                 ; +0x80, 0x7c5d20\nLDR             X1, [X1]                                               ; +0x84, 0x7c5d24\nLDR             X1, [X1,#0x520]                                        ; +0x88, 0x7c5d28\nBLR             X1                                                     ; +0x8c, 0x7c5d2c\nLDR             X0, [X29,#0x50+var_10]                                 ; +0x90, 0x7c5d30\nCBZ             X0, loc_7C5D70                                         ; +0x94, 0x7c5d34\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x98, 0x7c5d38\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x9c, 0x7c5d3c\nLDR             X0, [X20]                                              ; +0xa0, 0x7c5d40\nCMP             X1, X0                                                 ; +0xa4, 0x7c5d44\nB.NE            loc_7C5DD0                                             ; +0xa8, 0x7c5d48\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xac, 0x7c5d4c\nLDR             X21, [SP,#0x50+var_30]                                 ; +0xb0, 0x7c5d50\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xb4, 0x7c5d54\nRET                                                                    ; +0xb8, 0x7c5d58\nLDR             X0, [X29,#0x50+var_20+8]                               ; +0xbc, 0x7c5d5c\nCBNZ            X0, loc_7C5CE8                                         ; +0xc0, 0x7c5d60\nLDR             X0, [X29,#0x50+var_10]                                 ; +0xc4, 0x7c5d64\nCBNZ            X0, loc_7C5CE8                                         ; +0xc8, 0x7c5d68\nB               loc_7C5D38                                             ; +0xcc, 0x7c5d6c\nLDR             X0, [X19,#0x5D8]; this                                 ; +0xd0, 0x7c5d70\nCBZ             X0, loc_7C5D94                                         ; +0xd4, 0x7c5d74\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0xd8, 0x7c5d78\nB               loc_7C5D38                                             ; +0xdc, 0x7c5d7c\nLDR             X0, [X29,#0x50+var_20]; this                           ; +0xe0, 0x7c5d80\nLDR             X1, [X29,#0x50+var_20+8]; ColorAction *                ; +0xe4, 0x7c5d84\nBL              _ZN22ColorSelectLiveOverlay17createWithActionsEP11ColorActionS1_; ColorSelectLiveOverlay::createWithActions(ColorAction *,ColorAction *) ; +0xe8, 0x7c5d88\nSTR             X0, [X19,#0x608]                                       ; +0xec, 0x7c5d8c\nB               loc_7C5D0C                                             ; +0xf0, 0x7c5d90\nLDR             X0, [X19,#0x380]; this                                 ; +0xf4, 0x7c5d94\nMOV             W21, #0                                                ; +0xf8, 0x7c5d98\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xfc, 0x7c5d9c\nCBNZ            W0, loc_7C5DBC                                         ; +0x100, 0x7c5da0\nB               loc_7C5D38                                             ; +0x104, 0x7c5da4\nLDR             X0, [X19,#0x380]; this                                 ; +0x108, 0x7c5da8\nMOV             W1, W21; unsigned int                                  ; +0x10c, 0x7c5dac\nADD             W21, W21, #1                                           ; +0x110, 0x7c5db0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x114, 0x7c5db4\nBL              _ZN10GameObject14deselectObjectEv; GameObject::deselectObject(void) ; +0x118, 0x7c5db8\nLDR             X0, [X19,#0x380]; this                                 ; +0x11c, 0x7c5dbc\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x120, 0x7c5dc0\nCMP             W21, W0                                                ; +0x124, 0x7c5dc4\nB.CC            loc_7C5DA8                                             ; +0x128, 0x7c5dc8\nB               loc_7C5D38                                             ; +0x12c, 0x7c5dcc\nBL              .__stack_chk_fail                                      ; +0x130, 0x7c5dd0", "xrefs": ["EditorUI::onEditColor @ 0x7c60c4", "EditorUI::checkLiveColorSelect @ 0xbdca14", "<???> @ 0xc0190"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}