{"type": "func", "start": 4734760, "end": 4734896, "name": "EditorUI::toggleEditObjectButton", "pseudocode": "// \n// EditorUI::toggleEditObjectButton from 0x483f28 to 0x483fb0 (136 bytes)\n// \n// 2 xrefs:\n// > EditorUI::updateButtons @ 0x485fe8\n// > EditorUI::deselectObject @ 0x6f418c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:24 +0000\n// \n\nint __fastcall EditorUI::toggleEditObjectButton(cocos2d::CCArray **this)\n{\n  int v2; // r5\n  __int16 *v3; // r1\n  int v4; // r1\n  int v5; // r5\n  __int16 *v6; // r1\n  int v7; // r1\n\n  v2 = EditorUI::editButtonUsable(this);\n  *((_BYTE *)*(this + 191) + 320) = v2;\n  if ( v2 )\n    v3 = word_BEBDD8;\n  else\n    v3 = (__int16 *)&byte_BEBE3C;\n  (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 191) + 480))(*(this + 191), v3);\n  if ( v2 )\n    v4 = 255;\n  else\n    v4 = 175;\n  (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 191) + 456))(*(this + 191), v4);\n  v5 = EditorUI::editButton2Usable(this);\n  *((_BYTE *)*(this + 194) + 320) = v5;\n  if ( v5 )\n    v6 = word_BEBDD8;\n  else\n    v6 = (__int16 *)&byte_BEBE3C;\n  (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 194) + 480))(*(this + 194), v6);\n  if ( v5 )\n    v7 = 255;\n  else\n    v7 = 175;\n  (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 194) + 456))(*(this + 194), v7);\n  return EditorUI::updateEditColorButton((EditorUI *)this);\n}", "assembly": "; \n; EditorUI::toggleEditObjectButton from 0x483f28 to 0x483fb0 (136 bytes)\n; \n; 2 xrefs:\n; > EditorUI::updateButtons @ 0x485fe8\n; > EditorUI::deselectObject @ 0x6f418c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:49:24 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x483f28\nMOV             R4, R0                                                 ; +0x2, 0x483f2a\nBL              _ZN8EditorUI16editButtonUsableEv; EditorUI::editButtonUsable(void) ; +0x4, 0x483f2c\nLDR.W           R3, [R4,#0x2FC]                                        ; +0x8, 0x483f30\nMOV             R5, R0                                                 ; +0xc, 0x483f34\nSTRB.W          R0, [R3,#0x140]                                        ; +0xe, 0x483f36\nLDR.W           R0, [R4,#0x2FC]                                        ; +0x12, 0x483f3a\nLDR             R3, [R0]                                               ; +0x16, 0x483f3e\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x18, 0x483f40\nCBNZ            R5, loc_483F4E                                         ; +0x1c, 0x483f44\nLDR             R1, =(word_BEBDD8 - 0x483F4C)                          ; +0x1e, 0x483f46\nADD             R1, PC; word_BEBDD8                                    ; +0x20, 0x483f48\nADDS            R1, #(byte_BEBE3C - 0xBEBDD8)                          ; +0x22, 0x483f4a\nB               loc_483F52                                             ; +0x24, 0x483f4c\nLDR             R1, =(word_BEBDD8 - 0x483F54)                          ; +0x26, 0x483f4e\nADD             R1, PC; word_BEBDD8                                    ; +0x28, 0x483f50\nBLX             R3                                                     ; +0x2a, 0x483f52\nLDR.W           R0, [R4,#0x2FC]                                        ; +0x2c, 0x483f54\nCMP             R5, #0                                                 ; +0x30, 0x483f58\nLDR             R3, [R0]                                               ; +0x32, 0x483f5a\nITE NE                                                                 ; +0x34, 0x483f5c\nMOVNE           R1, #0xFF                                              ; +0x36, 0x483f5e\nMOVEQ           R1, #0xAF                                              ; +0x38, 0x483f60\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x3a, 0x483f62\nBLX             R3                                                     ; +0x3e, 0x483f66\nMOV             R0, R4; this                                           ; +0x40, 0x483f68\nBL              _ZN8EditorUI17editButton2UsableEv; EditorUI::editButton2Usable(void) ; +0x42, 0x483f6a\nLDR.W           R3, [R4,#0x308]                                        ; +0x46, 0x483f6e\nMOV             R5, R0                                                 ; +0x4a, 0x483f72\nSTRB.W          R0, [R3,#0x140]                                        ; +0x4c, 0x483f74\nLDR.W           R0, [R4,#0x308]                                        ; +0x50, 0x483f78\nLDR             R3, [R0]                                               ; +0x54, 0x483f7c\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x56, 0x483f7e\nCBNZ            R5, loc_483F8C                                         ; +0x5a, 0x483f82\nLDR             R1, =(word_BEBDD8 - 0x483F8A)                          ; +0x5c, 0x483f84\nADD             R1, PC; word_BEBDD8                                    ; +0x5e, 0x483f86\nADDS            R1, #(byte_BEBE3C - 0xBEBDD8)                          ; +0x60, 0x483f88\nB               loc_483F90                                             ; +0x62, 0x483f8a\nLDR             R1, =(word_BEBDD8 - 0x483F92)                          ; +0x64, 0x483f8c\nADD             R1, PC; word_BEBDD8                                    ; +0x66, 0x483f8e\nBLX             R3                                                     ; +0x68, 0x483f90\nLDR.W           R0, [R4,#0x308]                                        ; +0x6a, 0x483f92\nCMP             R5, #0                                                 ; +0x6e, 0x483f96\nLDR             R3, [R0]                                               ; +0x70, 0x483f98\nITE NE                                                                 ; +0x72, 0x483f9a\nMOVNE           R1, #0xFF                                              ; +0x74, 0x483f9c\nMOVEQ           R1, #0xAF                                              ; +0x76, 0x483f9e\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x78, 0x483fa0\nBLX             R3                                                     ; +0x7c, 0x483fa4\nMOV             R0, R4; this                                           ; +0x7e, 0x483fa6\nPOP.W           {R3-R5,LR}                                             ; +0x80, 0x483fa8\nB.W             _ZN8EditorUI21updateEditColorButtonEv; EditorUI::updateEditColorButton(void) ; +0x84, 0x483fac", "xrefs": ["EditorUI::updateButtons @ 0x485fe8", "EditorUI::deselectObject @ 0x6f418c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}