//
// sub_1003553C0 from 0x1003553c0 to 0x100355414 (84 bytes)
//
// 2 xrefs:
// > ??> @ 0x100916320
// > ??> @ 0x100947a88
//
// 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
//
__int64 __fastcall sub_1003553C0(__int64 a1, const cocos2d::ccColor3B *a2)
{
__int64 result; // rax
__int64 i; // r14
__int64 v4; // rdi
cocos2d::CCLayerRGBA::setColor((cocos2d::CCLayerRGBA *)(a1 - 408), a2);
result = *(_QWORD *)(a1 + 144);
if ( result )
{
for ( i = *(_QWORD *)(result + 56);
i;
result = (*(__int64 (__fastcall **)(__int64, const cocos2d::ccColor3B *))(*(_QWORD *)v4 + 944LL))(v4, a2) )
{
v4 = *(_QWORD *)(i + 264);
i = *(_QWORD *)(i + 288);
}
}
return result;
}