{"type": "func", "start": 4295223856, "end": 4295224114, "name": "EditorUI::updateEditButtonColor", "pseudocode": "// \n// EditorUI::updateEditButtonColor from 0x10003ea30 to 0x10003eb32 (258 bytes)\n// \n// 19 xrefs:\n// > EditorUI::init @ 0x1000093b1\n// > EditorUI::init @ 0x10000949e\n// > EditorUI::deactivateScaleControl @ 0x10000bb33\n// > EditorUI::deactivateTransformControl @ 0x10000bc1e\n// > EditorUI::deleteObject @ 0x100032bc0\n// > EditorUI::deleteObject @ 0x100032c3f\n// > EditorUI::deselectAll @ 0x100032e71\n// > EditorUI::deselectAll @ 0x100032ee6\n// > EditorUI::selectAll @ 0x10003d125\n// > EditorUI::selectAll @ 0x10003d19a\n// > EditorUI::selectAllWithDirection @ 0x10003d51c\n// > EditorUI::selectAllWithDirection @ 0x10003d591\n// > EditorUI::activateRotationControl @ 0x10003d65b\n// > EditorUI::activateScaleControl @ 0x10003ebe4\n// > EditorUI::activateScaleControl @ 0x10003ec8e\n// > EditorUI::activateScaleControl @ 0x10003ecf0\n// > EditorUI::activateTransformControl @ 0x1000400ec\n// > EditorUI::activateTransformControl @ 0x10004020f\n// > EditorUI::activateTransformControl @ 0x100040239\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  double v3; // xmm0_8\n  cocos2d::CCDictionary *m_editButtonDict; // r14\n  int v5; // ebx\n  cocos2d::CCString *v6; // rax\n  const char *CString; // r12\n  size_t v8; // rax\n  size_t v9; // r15\n  char *v10; // r13\n  size_t v11; // rbx\n  __int64 v12; // r14\n  ButtonSprite *v13; // rax\n  char v14; // [rsp+0h] [rbp-50h]\n  _QWORD __dst[2]; // [rsp+8h] [rbp-48h] BYREF\n  void *__p; // [rsp+18h] [rbp-38h]\n  int v17; // [rsp+24h] [rbp-2Ch]\n\n  m_editButtonDict = a1->m_editButtonDict;\n  if ( !m_editButtonDict )\n    return;\n  v5 = *(_DWORD *)&a3.r;\n  v6 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v14);\n  CString = cocos2d::CCString::getCString(v6);\n  v8 = strlen(CString);\n  if ( v8 >= 0xFFFFFFFFFFFFFFF8LL )\n    sub_100006BF0(v3);\n  v9 = v8;\n  if ( v8 >= 0x17 )\n  {\n    v17 = v5;\n    v11 = 26;\n    if ( (v8 | 7) != 0x17 )\n      v11 = (v8 | 7) + 1;\n    v10 = (char *)operator new(v11);\n    __p = v10;\n    __dst[0] = v11 + 1;\n    v5 = v17;\n    __dst[1] = v9;\n  }\n  else\n  {\n    LOBYTE(__dst[0]) = 2 * v8;\n    v10 = (char *)__dst + 1;\n    if ( !v8 )\n      goto LABEL_10;\n  }\n  memmove(v10, CString, v9);\nLABEL_10:\n  v10[v9] = 0;\n  v12 = cocos2d::CCDictionary::objectForKey_1(m_editButtonDict, __dst);\n  if ( (__dst[0] & 1) != 0 )\n    operator delete(__p);\n  if ( v12 )\n  {\n    v13 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v12 + 1056LL))(v12);\n    ButtonSprite::setColor(v13, (cocos2d::ccColor3B)v5);\n  }\n}", "assembly": "; \n; EditorUI::updateEditButtonColor from 0x10003ea30 to 0x10003eb32 (258 bytes)\n; \n; 19 xrefs:\n; > EditorUI::init @ 0x1000093b1\n; > EditorUI::init @ 0x10000949e\n; > EditorUI::deactivateScaleControl @ 0x10000bb33\n; > EditorUI::deactivateTransformControl @ 0x10000bc1e\n; > EditorUI::deleteObject @ 0x100032bc0\n; > EditorUI::deleteObject @ 0x100032c3f\n; > EditorUI::deselectAll @ 0x100032e71\n; > EditorUI::deselectAll @ 0x100032ee6\n; > EditorUI::selectAll @ 0x10003d125\n; > EditorUI::selectAll @ 0x10003d19a\n; > EditorUI::selectAllWithDirection @ 0x10003d51c\n; > EditorUI::selectAllWithDirection @ 0x10003d591\n; > EditorUI::activateRotationControl @ 0x10003d65b\n; > EditorUI::activateScaleControl @ 0x10003ebe4\n; > EditorUI::activateScaleControl @ 0x10003ec8e\n; > EditorUI::activateScaleControl @ 0x10003ecf0\n; > EditorUI::activateTransformControl @ 0x1000400ec\n; > EditorUI::activateTransformControl @ 0x10004020f\n; > EditorUI::activateTransformControl @ 0x100040239\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\npush    rbp                                                            ; +0x0, 0x10003ea30\nmov     rbp, rsp                                                       ; +0x1, 0x10003ea31\npush    r15                                                            ; +0x4, 0x10003ea34\npush    r14                                                            ; +0x6, 0x10003ea36\npush    r13                                                            ; +0x8, 0x10003ea38\npush    r12                                                            ; +0xa, 0x10003ea3a\npush    rbx                                                            ; +0xc, 0x10003ea3c\nsub     rsp, 28h                                                       ; +0xd, 0x10003ea3d\nmov     r14, [rdi+2D8h]                                                ; +0x11, 0x10003ea41\ntest    r14, r14                                                       ; +0x18, 0x10003ea48\njz      loc_10003EB1E                                                  ; +0x1b, 0x10003ea4b\nmov     ebx, edx                                                       ; +0x21, 0x10003ea51\nlea     rdi, aI; \"%i\"                                                  ; +0x23, 0x10003ea53\nxor     eax, eax                                                       ; +0x2a, 0x10003ea5a\ncall    sub_1007AB580                                                  ; +0x2c, 0x10003ea5c\nmov     rdi, rax                                                       ; +0x31, 0x10003ea61\ncall    cocos2d__CCString__getCString                                  ; +0x34, 0x10003ea64\nmov     r12, rax                                                       ; +0x39, 0x10003ea69\nmov     rdi, rax; __s                                                  ; +0x3c, 0x10003ea6c\ncall    _strlen                                                        ; +0x3f, 0x10003ea6f\ncmp     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x44, 0x10003ea74\njnb     loc_10003EB2D                                                  ; +0x48, 0x10003ea78\nmov     r15, rax                                                       ; +0x4e, 0x10003ea7e\ncmp     rax, 17h                                                       ; +0x51, 0x10003ea81\njnb     short loc_10003EA99                                            ; +0x55, 0x10003ea85\nlea     eax, [r15+r15]                                                 ; +0x57, 0x10003ea87\nmov     byte ptr [rbp+__dst], al                                       ; +0x5b, 0x10003ea8b\nlea     r13, [rbp+__dst+1]                                             ; +0x5e, 0x10003ea8e\ntest    r15, r15                                                       ; +0x62, 0x10003ea92\njnz     short loc_10003EAD1                                            ; +0x65, 0x10003ea95\njmp     short loc_10003EADF                                            ; +0x67, 0x10003ea97\nmov     rax, r15                                                       ; +0x69, 0x10003ea99\nor      rax, 7                                                         ; +0x6c, 0x10003ea9c\nlea     rcx, [rax+1]                                                   ; +0x70, 0x10003eaa0\ncmp     rax, 17h                                                       ; +0x74, 0x10003eaa4\nmov     [rbp+var_2C], ebx                                              ; +0x78, 0x10003eaa8\nmov     ebx, 1Ah                                                       ; +0x7b, 0x10003eaab\ncmovnz  rbx, rcx                                                       ; +0x80, 0x10003eab0\nmov     rdi, rbx; __sz                                                 ; +0x84, 0x10003eab4\ncall    __Znwm; operator new(ulong)                                    ; +0x87, 0x10003eab7\nmov     r13, rax                                                       ; +0x8c, 0x10003eabc\nmov     [rbp+__p], rax                                                 ; +0x8f, 0x10003eabf\ninc     rbx                                                            ; +0x93, 0x10003eac3\nmov     [rbp+__dst], rbx                                               ; +0x96, 0x10003eac6\nmov     ebx, [rbp+var_2C]                                              ; +0x9a, 0x10003eaca\nmov     [rbp+var_40], r15                                              ; +0x9d, 0x10003eacd\nmov     rdi, r13; __dst                                                ; +0xa1, 0x10003ead1\nmov     rsi, r12; __src                                                ; +0xa4, 0x10003ead4\nmov     rdx, r15; __len                                                ; +0xa7, 0x10003ead7\ncall    _memmove                                                       ; +0xaa, 0x10003eada\nmov     byte ptr [r13+r15+0], 0                                        ; +0xaf, 0x10003eadf\nlea     rsi, [rbp+__dst]                                               ; +0xb5, 0x10003eae5\nmov     rdi, r14                                                       ; +0xb9, 0x10003eae9\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0xbc, 0x10003eaec\nmov     r14, rax                                                       ; +0xc1, 0x10003eaf1\ntest    byte ptr [rbp+__dst], 1                                        ; +0xc4, 0x10003eaf4\njz      short loc_10003EB03                                            ; +0xc8, 0x10003eaf8\nmov     rdi, [rbp+__p]; __p                                            ; +0xca, 0x10003eafa\ncall    __ZdlPv; operator delete(void *)                               ; +0xce, 0x10003eafe\ntest    r14, r14                                                       ; +0xd3, 0x10003eb03\njz      short loc_10003EB1E                                            ; +0xd6, 0x10003eb06\nmov     rax, [r14]                                                     ; +0xd8, 0x10003eb08\nmov     rdi, r14                                                       ; +0xdb, 0x10003eb0b\ncall    qword ptr [rax+420h]                                           ; +0xde, 0x10003eb0e\nmov     rdi, rax                                                       ; +0xe4, 0x10003eb14\nmov     esi, ebx                                                       ; +0xe7, 0x10003eb17\ncall    ButtonSprite__setColor                                         ; +0xe9, 0x10003eb19\nadd     rsp, 28h                                                       ; +0xee, 0x10003eb1e\npop     rbx                                                            ; +0xf2, 0x10003eb22\npop     r12                                                            ; +0xf3, 0x10003eb23\npop     r13                                                            ; +0xf5, 0x10003eb25\npop     r14                                                            ; +0xf7, 0x10003eb27\npop     r15                                                            ; +0xf9, 0x10003eb29\npop     rbp                                                            ; +0xfb, 0x10003eb2b\nretn                                                                   ; +0xfc, 0x10003eb2c\ncall    sub_100006BF0                                                  ; +0xfd, 0x10003eb2d", "xrefs": ["EditorUI::init @ 0x1000093b1", "EditorUI::init @ 0x10000949e", "EditorUI::deactivateScaleControl @ 0x10000bb33", "EditorUI::deactivateTransformControl @ 0x10000bc1e", "EditorUI::deleteObject @ 0x100032bc0", "EditorUI::deleteObject @ 0x100032c3f", "EditorUI::deselectAll @ 0x100032e71", "EditorUI::deselectAll @ 0x100032ee6", "EditorUI::selectAll @ 0x10003d125", "EditorUI::selectAll @ 0x10003d19a", "EditorUI::selectAllWithDirection @ 0x10003d51c", "EditorUI::selectAllWithDirection @ 0x10003d591", "EditorUI::activateRotationControl @ 0x10003d65b", "EditorUI::activateScaleControl @ 0x10003ebe4", "EditorUI::activateScaleControl @ 0x10003ec8e", "EditorUI::activateScaleControl @ 0x10003ecf0", "EditorUI::activateTransformControl @ 0x1000400ec", "EditorUI::activateTransformControl @ 0x10004020f", "EditorUI::activateTransformControl @ 0x100040239"], "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"}