{"type": "func", "start": 3669204, "end": 3669332, "name": "EditorUI::toggleEditObjectButton", "pseudocode": "// \n// EditorUI::toggleEditObjectButton from 0x37fcd4 to 0x37fd54 (128 bytes)\n// \n// 2 xrefs:\n// > EditorUI::deselectObject @ 0x37fd80\n// > EditorUI::updateButtons @ 0x39caf0\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::toggleEditObjectButton(EditorUI *a1)\n{\n  _BOOL4 v2; // r5\n  CCMenuItemSpriteExtra *m_editObjectBtn; // r0\n  CCMenuItemSpriteExtra_vtbl *v4; // r3\n  int v5; // r1\n  _BOOL4 v6; // r5\n  CCMenuItemSpriteExtra *m_editSpecialBtn; // r0\n  CCMenuItemSpriteExtra_vtbl *v8; // r3\n  int v9; // r1\n\n  v2 = EditorUI::editButtonUsable(a1);\n  m_editObjectBtn = a1->m_editObjectBtn;\n  v4 = m_editObjectBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  m_editObjectBtn->m_animationEnabled = v2;\n  ((void (*)(void))v4->setColor)();\n  if ( v2 )\n    v5 = 255;\n  else\n    v5 = 175;\n  a1->m_editObjectBtn->setOpacity(a1->m_editObjectBtn, v5);\n  v6 = EditorUI::editButton2Usable(a1);\n  m_editSpecialBtn = a1->m_editSpecialBtn;\n  v8 = m_editSpecialBtn->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  m_editSpecialBtn->m_animationEnabled = v6;\n  ((void (*)(void))v8->setColor)();\n  if ( v6 )\n    v9 = 255;\n  else\n    v9 = 175;\n  a1->m_editSpecialBtn->setOpacity(a1->m_editSpecialBtn, v9);\n  EditorUI::updateEditColorButton(a1);\n}", "assembly": "; \n; EditorUI::toggleEditObjectButton from 0x37fcd4 to 0x37fd54 (128 bytes)\n; \n; 2 xrefs:\n; > EditorUI::deselectObject @ 0x37fd80\n; > EditorUI::updateButtons @ 0x39caf0\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            {R3-R5,LR}                                             ; +0x0, 0x37fcd4\nMOV             R4, R0                                                 ; +0x2, 0x37fcd6\nBL              _ZN8EditorUI16editButtonUsableEv; EditorUI::editButtonUsable(void) ; +0x4, 0x37fcd8\nMOV             R5, R0                                                 ; +0x8, 0x37fcdc\nLDR.W           R0, [R4,#0x2B0]                                        ; +0xa, 0x37fcde\nLDR             R3, [R0]                                               ; +0xe, 0x37fce2\nSTRB.W          R5, [R0,#0x140]                                        ; +0x10, 0x37fce4\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x14, 0x37fce8\nCBNZ            R5, loc_37FCF6                                         ; +0x18, 0x37fcec\nLDR             R1, =(word_9AA83C - 0x37FCF4)                          ; +0x1a, 0x37fcee\nADD             R1, PC; word_9AA83C                                    ; +0x1c, 0x37fcf0\nADDS            R1, #(word_9AA83F - 0x9AA83C)                          ; +0x1e, 0x37fcf2\nB               loc_37FCFA                                             ; +0x20, 0x37fcf4\nLDR             R1, =(word_9AA83C - 0x37FCFC)                          ; +0x22, 0x37fcf6\nADD             R1, PC; word_9AA83C                                    ; +0x24, 0x37fcf8\nBLX             R3                                                     ; +0x26, 0x37fcfa\nLDR.W           R0, [R4,#0x2B0]                                        ; +0x28, 0x37fcfc\nCMP             R5, #0                                                 ; +0x2c, 0x37fd00\nLDR             R3, [R0]                                               ; +0x2e, 0x37fd02\nITE NE                                                                 ; +0x30, 0x37fd04\nMOVNE           R1, #0xFF                                              ; +0x32, 0x37fd06\nMOVEQ           R1, #0xAF                                              ; +0x34, 0x37fd08\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x36, 0x37fd0a\nBLX             R3                                                     ; +0x3a, 0x37fd0e\nMOV             R0, R4; this                                           ; +0x3c, 0x37fd10\nBL              _ZN8EditorUI17editButton2UsableEv; EditorUI::editButton2Usable(void) ; +0x3e, 0x37fd12\nMOV             R5, R0                                                 ; +0x42, 0x37fd16\nLDR.W           R0, [R4,#0x2BC]                                        ; +0x44, 0x37fd18\nLDR             R3, [R0]                                               ; +0x48, 0x37fd1c\nSTRB.W          R5, [R0,#0x140]                                        ; +0x4a, 0x37fd1e\nLDR.W           R3, [R3,#0x1D8]                                        ; +0x4e, 0x37fd22\nCBNZ            R5, loc_37FD30                                         ; +0x52, 0x37fd26\nLDR             R1, =(word_9AA83C - 0x37FD2E)                          ; +0x54, 0x37fd28\nADD             R1, PC; word_9AA83C                                    ; +0x56, 0x37fd2a\nADDS            R1, #(word_9AA83F - 0x9AA83C)                          ; +0x58, 0x37fd2c\nB               loc_37FD34                                             ; +0x5a, 0x37fd2e\nLDR             R1, =(word_9AA83C - 0x37FD36)                          ; +0x5c, 0x37fd30\nADD             R1, PC; word_9AA83C                                    ; +0x5e, 0x37fd32\nBLX             R3                                                     ; +0x60, 0x37fd34\nLDR.W           R0, [R4,#0x2BC]                                        ; +0x62, 0x37fd36\nCMP             R5, #0                                                 ; +0x66, 0x37fd3a\nLDR             R3, [R0]                                               ; +0x68, 0x37fd3c\nITE NE                                                                 ; +0x6a, 0x37fd3e\nMOVNE           R1, #0xFF                                              ; +0x6c, 0x37fd40\nMOVEQ           R1, #0xAF                                              ; +0x6e, 0x37fd42\nLDR.W           R3, [R3,#0x1C0]                                        ; +0x70, 0x37fd44\nBLX             R3                                                     ; +0x74, 0x37fd48\nMOV             R0, R4; this                                           ; +0x76, 0x37fd4a\nPOP.W           {R3-R5,LR}                                             ; +0x78, 0x37fd4c\nB.W             _ZN8EditorUI21updateEditColorButtonEv; EditorUI::updateEditColorButton(void) ; +0x7c, 0x37fd50", "xrefs": ["EditorUI::deselectObject @ 0x37fd80", "EditorUI::updateButtons @ 0x39caf0"], "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"}