//
// EditorUI::toggleEditObjectButton from 0x1401baf50 to 0x1401bb045 (245 bytes)
//
// 6 xrefs:
// > EditorUI::updateButtons @ 0x1401ad17f
// > EditorUI::ccTouchEnded @ 0x1401c181b
// > EditorUI::deselectObject @ 0x1401c822e
// > EditorUI::deselectAll @ 0x1401c82ec
// > EditorUI::deselectTargetPortals @ 0x1401c84cf
// > ??> @ 0x14091a45c
//
// This function is hookable on this platform (idp: pc, 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:27:59 +0000
//
__int64 __fastcall EditorUI::toggleEditObjectButton(__int64 a1)
{
__int16 *v2; // rdi
char v3; // bl
__int16 *v4; // rdx
unsigned __int8 v5; // si
__int64 v6; // rdx
char v7; // bl
v2 = &word_140703290;
v3 = EditorUI::editButtonUsable(a1);
*(_BYTE *)(*(_QWORD *)(a1 + 1136) + 408LL) = v3;
v4 = &word_140703290;
if ( v3 )
v4 = &word_14070329C;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 1136) + 320LL))(*(_QWORD *)(a1 + 1136) + 320LL, v4);
v5 = -81;
v6 = 175;
if ( v3 )
v6 = 255;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)(*(_QWORD *)(a1 + 1136) + 320LL) + 40LL))(
*(_QWORD *)(a1 + 1136) + 320LL,
v6);
v7 = EditorUI::editButton2Usable(a1);
*(_BYTE *)(*(_QWORD *)(a1 + 1160) + 408LL) = v7;
if ( v7 )
v2 = &word_14070329C;
(**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 1160) + 320LL))(*(_QWORD *)(a1 + 1160) + 320LL, v2);
if ( v7 )
v5 = -1;
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 1160) + 320LL) + 40LL))(
*(_QWORD *)(a1 + 1160) + 320LL,
v5);
return EditorUI::updateEditColorButton(a1);
}