//
// EditorUI::toggleEditObjectButton from 0x7c5b2c to 0x7c5c38 (268 bytes)
//
// 3 xrefs:
// > EditorUI::updateButtons @ 0x7c8094
// > EditorUI::deselectObject @ 0xbdc578
// > ??> @ 0x693b8
//
// 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 12:54:08 +0000
//
__int64 __fastcall EditorUI::toggleEditObjectButton(EditorUI *this)
{
char v2; // w0
void (*v3)(void); // x2
*(_BYTE *)(*((_QWORD *)this + 136) + 408LL) = EditorUI::editButtonUsable(this);
(*(void (**)(void))(**((_QWORD **)this + 136) + 960LL))();
(*(void (**)(void))(**((_QWORD **)this + 136) + 912LL))();
v2 = EditorUI::editButton2Usable(this);
*(_BYTE *)(*((_QWORD *)this + 139) + 408LL) = v2;
v3 = *(void (**)(void))(**((_QWORD **)this + 139) + 960LL);
if ( v2 )
{
v3();
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 139) + 912LL))(*((_QWORD *)this + 139), 255);
}
else
{
v3();
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 139) + 912LL))(*((_QWORD *)this + 139), 175);
}
return EditorUI::updateEditColorButton(this);
}