//
// EditorUI::toggleEditObjectButton from 0x100473b14 to 0x100473bd8 (196 bytes)
//
// 2 xrefs:
// > EditorUI::deselectObject_1 @ 0x1001a65e4
// > EditorUI::updateButtons @ 0x100472ea8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:05:39 +0000
//
__int64 __fastcall EditorUI::toggleEditObjectButton(__int64 a1)
{
int v2; // w0
_BYTE *v3; // x8
__int16 *v4; // x1
__int64 v5; // x20
int v6; // w0
_BYTE *v7; // x8
__int16 *v8; // x1
__int64 v9; // x20
v2 = EditorUI::editButtonUsable();
v3 = *(_BYTE **)(a1 + 1088);
v3[408] = v2;
if ( v2 )
v4 = &word_10076F228;
else
v4 = &word_10076F22B;
if ( v2 )
v5 = 255;
else
v5 = 175;
(*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v3 + 960LL))(v3, v4);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1088) + 912LL))(*(_QWORD *)(a1 + 1088), v5);
v6 = EditorUI::editButton2Usable(a1);
v7 = *(_BYTE **)(a1 + 1112);
v7[408] = v6;
if ( v6 )
v8 = &word_10076F228;
else
v8 = &word_10076F22B;
if ( v6 )
v9 = 255;
else
v9 = 175;
(*(void (__fastcall **)(_BYTE *, __int16 *))(*(_QWORD *)v7 + 960LL))(v7, v8);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1112) + 912LL))(*(_QWORD *)(a1 + 1112), v9);
return EditorUI::updateEditColorButton(a1);
}