//
// GameObject::updateObjectEditorColor from 0x7706d0 to 0x77080c (316 bytes)
//
// 4 xrefs:
// > GameObject::deselectObject @ 0x770810
// > LevelEditorLayer::updateVisibility @ 0x78e6b4
// > ParticleGameObject::updateParticle @ 0x871f84
// > ??> @ 0x75310
//
// 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:53:12 +0000
//
__int64 __fastcall GameObject::updateObjectEditorColor(GameObject *this)
{
int *v2; // x0
int v3; // w1
void (__fastcall *v4)(GameObject *, __int16 *); // x22
unsigned __int64 v5; // x0
int *v6; // x0
int v7; // w1
unsigned __int64 v8; // x0
__int64 v9; // x2
__int64 v11; // x0
__int16 v12; // [xsp+30h] [xbp+30h] BYREF
char v13; // [xsp+32h] [xbp+32h]
v2 = *((int **)this + 137);
v3 = *v2;
v4 = *(void (__fastcall **)(GameObject *, __int16 *))(*(_QWORD *)this + 1496LL);
if ( *v2 == v2[1] || !v3 )
v3 = 0;
v5 = GameObject::editorColorForMode(this, v3);
v12 = v5;
v13 = BYTE2(v5);
v4(this, &v12);
if ( *((_QWORD *)this + 111) )
{
v6 = *((int **)this + 138);
v7 = *v6;
if ( *v6 == v6[1] || !v7 )
v7 = 0;
v8 = GameObject::editorColorForMode(this, v7);
v9 = *(_QWORD *)this;
v12 = v8;
v13 = BYTE2(v8);
(*(void (__fastcall **)(GameObject *, __int16 *))(v9 + 1592))(this, &v12);
}
if ( *((_BYTE *)this + 772) )
{
v11 = (*(__int64 (__fastcall **)(GameObject *, __int64))(*(_QWORD *)this + 480LL))(this, 999);
if ( v11 )
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v11 + 1072LL))(v11, &unk_1141610);
}
return _stack_chk_guard;
}