//
// sub_100406CA0 from 0x100406ca0 to 0x100406d13 (115 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3da18
//
// 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 12:30:05 +0000
//
__int64 __fastcall sub_100406CA0(__int64 a1, unsigned __int16 *a2)
{
cocos2d::CCSprite::setColor(a1 - 320, (__int64)a2);
(*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 1480) + 960LL))(*(_QWORD *)(a1 + 1480), a2);
(*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 1512) + 960LL))(*(_QWORD *)(a1 + 1512), a2);
GJRobotSprite::updateColor01(*(_QWORD *)(a1 + 1816), *a2 | (*((unsigned __int8 *)a2 + 2) << 16));
return GJRobotSprite::updateColor01(*(_QWORD *)(a1 + 1824), *a2 | (*((unsigned __int8 *)a2 + 2) << 16));
}