{"type": "func", "start": 4299092060, "end": 4299092196, "name": "EditorUI::updateEditButtonColor", "pseudocode": "// \n// EditorUI::updateEditButtonColor from 0x1003ef05c to 0x1003ef0e4 (136 bytes)\n// \n// 4 xrefs:\n// > EditorUI::deactivateScaleControl @ 0x1003c70f0\n// > EditorUI::deactivateTransformControl @ 0x1003c71f4\n// > EditorUI::activateScaleControl @ 0x1003ef1b8\n// > EditorUI::activateTransformControl @ 0x1003efe14\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\n// local variable allocation has failed, the output may be wrong!\nvoid __fastcall EditorUI::updateEditButtonColor(EditorUI *a1, int a2, cocos2d::ccColor3B a3)\n{\n  cocos2d::CCDictionary *m_editButtonDict; // x20\n  int v4; // w19\n  cocos2d::CCString *v5; // x0\n  char *CString; // x0\n  __int64 v7; // x20\n  ButtonSprite *v8; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v10; // [xsp+1Fh] [xbp-11h]\n\n  m_editButtonDict = a1->m_editButtonDict;\n  if ( m_editButtonDict )\n  {\n    v4 = *(_DWORD *)&a3.r;\n    v5 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a2);\n    CString = (char *)cocos2d::CCString::getCString(v5);\n    sub_100009900(__p, CString);\n    v7 = cocos2d::CCDictionary::objectForKey_1(m_editButtonDict, __p);\n    if ( v10 < 0 )\n      operator delete(__p[0]);\n    if ( v7 )\n    {\n      v8 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1056LL))(v7);\n      ButtonSprite::setColor(v8, (cocos2d::ccColor3B)(v4 & 0xFFFFFF));\n    }\n  }\n}", "assembly": "; \n; EditorUI::updateEditButtonColor from 0x1003ef05c to 0x1003ef0e4 (136 bytes)\n; \n; 4 xrefs:\n; > EditorUI::deactivateScaleControl @ 0x1003c70f0\n; > EditorUI::deactivateTransformControl @ 0x1003c71f4\n; > EditorUI::activateScaleControl @ 0x1003ef1b8\n; > EditorUI::activateTransformControl @ 0x1003efe14\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003ef05c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003ef060\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003ef064\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003ef068\nLDR             X20, [X0,#0x2D8]                                       ; +0x10, 0x1003ef06c\nCBZ             X20, loc_1003EF0D4                                     ; +0x14, 0x1003ef070\nMOV             X19, X2                                                ; +0x18, 0x1003ef074\nSTR             X1, [SP,#0x30+var_30]                                  ; +0x1c, 0x1003ef078\nADRL            X0, aI; \"%i\"                                           ; +0x20, 0x1003ef07c\nBL              sub_100268F4C                                          ; +0x28, 0x1003ef084\nBL              cocos2d__CCString__getCString                          ; +0x2c, 0x1003ef088\nMOV             X1, X0; __s                                            ; +0x30, 0x1003ef08c\nADD             X0, SP, #0x30+__p; int                                 ; +0x34, 0x1003ef090\nBL              sub_100009900                                          ; +0x38, 0x1003ef094\nADD             X1, SP, #0x30+__p                                      ; +0x3c, 0x1003ef098\nMOV             X0, X20                                                ; +0x40, 0x1003ef09c\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x44, 0x1003ef0a0\nMOV             X20, X0                                                ; +0x48, 0x1003ef0a4\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x4c, 0x1003ef0a8\nTBZ             W8, #0x1F, loc_1003EF0B8                               ; +0x50, 0x1003ef0ac\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x54, 0x1003ef0b0\nBL              __ZdlPv; operator delete(void *)                       ; +0x58, 0x1003ef0b4\nCBZ             X20, loc_1003EF0D4                                     ; +0x5c, 0x1003ef0b8\nLDR             X8, [X20]                                              ; +0x60, 0x1003ef0bc\nLDR             X8, [X8,#0x420]                                        ; +0x64, 0x1003ef0c0\nMOV             X0, X20                                                ; +0x68, 0x1003ef0c4\nBLR             X8                                                     ; +0x6c, 0x1003ef0c8\nAND             X1, X19, #0xFFFFFF                                     ; +0x70, 0x1003ef0cc\nBL              ButtonSprite__setColor                                 ; +0x74, 0x1003ef0d0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x78, 0x1003ef0d4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x7c, 0x1003ef0d8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x80, 0x1003ef0dc\nRET                                                                    ; +0x84, 0x1003ef0e0", "xrefs": ["EditorUI::deactivateScaleControl @ 0x1003c70f0", "EditorUI::deactivateTransformControl @ 0x1003c71f4", "EditorUI::activateScaleControl @ 0x1003ef1b8", "EditorUI::activateTransformControl @ 0x1003efe14"], "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"}