//
// cocos2d::CCMotionStreak::tintWithColor from 0x100576810 to 0x100576888 (120 bytes)
//
// 0 xrefs:
//
// 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 __fastcall cocos2d::CCMotionStreak::tintWithColor(cocos2d::CCMotionStreak *a1, cocos2d::ccColor3B a2)
{
__int64 v2; // rax
__int64 v3; // rax
unsigned __int64 v4; // rcx
cocos2d::ccColor3B v5; // [rsp+0h] [rbp-Ch] BYREF
char v6; // [rsp+3h] [rbp-9h]
v6 = HIBYTE(v2);
v5 = a2;
((void (__fastcall *)(cocos2d::CCMotionStreak *, cocos2d::ccColor3B *))a1->setColor)(a1, &v5);
if ( (a1->m_uNuPoints & 0x7FFFFFFF) != 0 )
{
v3 = 0;
v4 = 0;
do
{
*(cocos2d::ccColor3B *)&a1->m_pColorPointer[v3 & 0xFFFFFFFC] = v5;
++v4;
v3 += 4;
}
while ( v4 < 2 * a1->m_uNuPoints );
}
}