//
// GameObject::updateObjectEditorColor from 0x1401a12f0 to 0x1401a13aa (186 bytes)
//
// 19 xrefs:
// > CustomizeObjectLayer::onLiveEdit @ 0x1400a7f96
// > CustomizeObjectLayer::onLiveEdit @ 0x1400a7fe4
// > EditorUI::deselectTargetPortals @ 0x1400e698e
// > EditorUI::deselectObjectsColor @ 0x1401107b1
// > EditorUI::deselectObjectsColor @ 0x1401107f9
// > EditorUI::deselectObject @ 0x1401113ab
// > EditorUI::deselectObject @ 0x1401113fa
// > EditorUI::deselectAll @ 0x1401114ab
// > EditorUI::deselectAll @ 0x140111519
// > EditorUI::editColor @ 0x14011ee73
// > EditorUI::editColor @ 0x14011eeb9
// > EditorUI::editHSV @ 0x14011f04b
// > EditorUI::editHSV @ 0x14011f093
// > EditorUI::ccTouchEnded @ 0x140125125
// > EditorUI::ccTouchEnded @ 0x140125176
// > EditorUI::ccTouchEnded @ 0x140125222
// > LevelEditorLayer::updateVisibility @ 0x1402d9d2a
// > ParticleGameObject::updateParticle @ 0x1404a098e
// > ??> @ 0x1406cbf40
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GameObject::updateObjectEditorColor(GameObject *a1)
{
GJSpriteColor *m_baseColor; // rax
int m_colorID; // r8d
cocos2d::ccColor3B *v4; // rax
__int64 v5; // r10
GJSpriteColor *m_detailColor; // rax
int v7; // r8d
cocos2d::CCNode *v8; // rax
char v9; // [rsp+30h] [rbp+8h] BYREF
m_baseColor = a1->m_baseColor;
m_colorID = m_baseColor->m_colorID;
if ( m_baseColor->m_defaultColorID == m_baseColor->m_colorID || !m_colorID )
m_colorID = 0;
v4 = GameObject::editorColorForMode((cocos2d::ccColor3B *)a1, (GameObject *)&v9, m_colorID);
(*(void (__fastcall **)(GameObject *, cocos2d::ccColor3B *))(v5 + 1328))(a1, v4);
if ( a1->m_colorSprite )
{
m_detailColor = a1->m_detailColor;
v7 = m_detailColor->m_colorID;
if ( m_detailColor->m_defaultColorID == m_detailColor->m_colorID || !v7 )
v7 = 0;
GameObject::editorColorForMode((cocos2d::ccColor3B *)a1, (GameObject *)&v9, v7);
a1->updateSecondaryColor(a1, (const cocos2d::ccColor3B *)&v9);
}
if ( a1->m_addToNodeContainer )
{
v8 = a1->getChildByTag(a1, 999);
if ( v8 )
(**(void (__fastcall ***)(__int64, __int16 *))&v8[1].m_uOrderOfArrival)(
(__int64)&v8[1].m_uOrderOfArrival,
&word_140529A70);
}
}