//
// AnimatedGameObject::updateChildSpriteColor from 0x756644 to 0x7566bc (120 bytes)
//
// 5 xrefs:
// > PlayLayer::updateVisibility @ 0x5ce650
// > LevelEditorLayer::updateObjectColors @ 0x65fa1c
// > LevelEditorLayer::updateVisibility @ 0x6633b0
// > LevelEditorLayer::updateVisibility @ 0x6633c0
// > ??> @ 0xb0bc8
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void AnimatedGameObject::updateChildSpriteColor(AnimatedGameObject *a1, cocos2d::ccColor3B a2)
{
cocos2d::CCSprite *m_childSprite; // x0
unsigned int v3; // w19
cocos2d::CCArray *v4; // x20
__int64 v5; // x0
bool v6; // cf
unsigned int v7; // w1
__int64 v8; // [xsp+38h] [xbp+38h] BYREF
v8 = *(_QWORD *)&a2.r;
m_childSprite = a1->m_childSprite;
if ( m_childSprite )
{
v3 = 0;
v4 = m_childSprite->getChildren(m_childSprite);
while ( 1 )
{
v6 = v3 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v3++;
if ( v6 )
break;
v5 = cocos2d::CCArray::objectAtIndex(v4, v7);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 944LL))(v5, &v8);
}
}
}