{"type": "func", "start": 3661908, "end": 3662018, "name": "EditorUI::updateEditButtonColor", "pseudocode": "// \n// EditorUI::updateEditButtonColor from 0x37e054 to 0x37e0c2 (110 bytes)\n// \n// 4 xrefs:\n// > EditorUI::deactivateScaleControl @ 0x386b88\n// > EditorUI::deactivateTransformControl @ 0x38794a\n// > EditorUI::activateScaleControl @ 0x39c7ea\n// > EditorUI::activateTransformControl @ 0x39d894\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 EditorUI::updateEditButtonColor(EditorUI *a1, int a2, cocos2d::ccColor3B a3)\n{\n  cocos2d::CCDictionary *m_editButtonDict; // r6\n  cocos2d::CCString *v4; // r0\n  char *CString; // r0\n  int v6; // r6\n  ButtonSprite *v7; // r0\n  int v8; // [sp+4h] [bp-14h]\n  std::string v9; // [sp+10h] [bp-8h] BYREF\n\n  v8 = *(_DWORD *)&a3.r;\n  m_editButtonDict = a1->m_editButtonDict;\n  if ( m_editButtonDict )\n  {\n    v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"%i\", (const char *)a2);\n    CString = (char *)cocos2d::CCString::getCString(v4);\n    sub_776584((int)&v9, CString);\n    v6 = cocos2d::CCDictionary::objectForKey(m_editButtonDict, &v9);\n    sub_774008(&v9);\n    if ( v6 )\n    {\n      v7 = (ButtonSprite *)(*(int (__fastcall **)(int))(*(_DWORD *)v6 + 528))(v6);\n      ButtonSprite::setColor(v7, (cocos2d::ccColor3B)v8);\n    }\n  }\n}", "assembly": "; \n; EditorUI::updateEditButtonColor from 0x37e054 to 0x37e0c2 (110 bytes)\n; \n; 4 xrefs:\n; > EditorUI::deactivateScaleControl @ 0x386b88\n; > EditorUI::deactivateTransformControl @ 0x38794a\n; > EditorUI::activateScaleControl @ 0x39c7ea\n; > EditorUI::activateTransformControl @ 0x39d894\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x37E05C)                ; +0x0, 0x37e054\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x37e056\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x37e058\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x37e05a\nSUB             SP, SP, #0x18                                          ; +0x8, 0x37e05c\nMOV             R4, R3                                                 ; +0xa, 0x37e05e\nSTR             R2, [SP,#0x18+var_14]                                  ; +0xc, 0x37e060\nLDR             R2, [R3]                                               ; +0xe, 0x37e062\nLDR.W           R6, [R0,#0x224]                                        ; +0x10, 0x37e064\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x14, 0x37e068\nCBZ             R6, loc_37E0B2                                         ; +0x16, 0x37e06a\nLDR             R0, =(aI - 0x37E074); \"%i\"                             ; +0x18, 0x37e06c\nADD             R5, SP, #0x18+var_8                                    ; +0x1a, 0x37e06e\nADD             R0, PC; \"%i\"                                           ; +0x1c, 0x37e070\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x1e, 0x37e072\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x22, 0x37e076\nADD             R2, SP, #0x18+var_C                                    ; +0x26, 0x37e07a\nMOV             R1, R0; char *                                         ; +0x28, 0x37e07c\nMOV             R0, R5; int                                            ; +0x2a, 0x37e07e\nBL              sub_776584                                             ; +0x2c, 0x37e080\nMOV             R0, R6                                                 ; +0x30, 0x37e084\nMOV             R1, R5                                                 ; +0x32, 0x37e086\nBL              _ZN7cocos2d12CCDictionary12objectForKeyERKSs; cocos2d::CCDictionary::objectForKey(std::string const&) ; +0x34, 0x37e088\nMOV             R6, R0                                                 ; +0x38, 0x37e08c\nMOV             R0, R5                                                 ; +0x3a, 0x37e08e\nBL              sub_774008                                             ; +0x3c, 0x37e090\nCBZ             R6, loc_37E0B2                                         ; +0x40, 0x37e094\nLDR             R3, [R6]                                               ; +0x42, 0x37e096\nMOV             R0, R6                                                 ; +0x44, 0x37e098\nLDR.W           R3, [R3,#0x210]                                        ; +0x46, 0x37e09a\nBLX             R3                                                     ; +0x4a, 0x37e09e\nLDR             R1, [SP,#0x18+var_14]                                  ; +0x4c, 0x37e0a0\nBL              _ZN12ButtonSprite8setColorEN7cocos2d10_ccColor3BE; ButtonSprite::setColor(cocos2d::_ccColor3B) ; +0x4e, 0x37e0a2\nB               loc_37E0B2                                             ; +0x52, 0x37e0a6\nMOV             R0, R5                                                 ; +0x54, 0x37e0a8\nBL              sub_774008                                             ; +0x56, 0x37e0aa\nBL              __cxa_end_cleanup                                      ; +0x5a, 0x37e0ae\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x5e, 0x37e0b2\nLDR             R3, [R4]                                               ; +0x60, 0x37e0b4\nCMP             R2, R3                                                 ; +0x62, 0x37e0b6\nBEQ             loc_37E0BE                                             ; +0x64, 0x37e0b8\nBLX             __stack_chk_fail                                       ; +0x66, 0x37e0ba\nADD             SP, SP, #0x18                                          ; +0x6a, 0x37e0be\nPOP             {R4-R6,PC}                                             ; +0x6c, 0x37e0c0", "xrefs": ["EditorUI::deactivateScaleControl @ 0x386b88", "EditorUI::deactivateTransformControl @ 0x38794a", "EditorUI::activateScaleControl @ 0x39c7ea", "EditorUI::activateTransformControl @ 0x39d894"], "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"}