//
// cocos2d::CCMotionStreak::tintWithColor from 0x18005f200 to 0x18005f267 (103 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd3fc
//
// 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 11:21:50 +0000
//
__int64 __fastcall cocos2d::CCMotionStreak::tintWithColor(__int64 a1, __int64 a2)
{
unsigned int v4; // r8d
__int64 result; // rax
__int64 v6; // rdx
(**(void (__fastcall ***)(__int64))(a1 + 320))(a1 + 320);
v4 = 0;
result = (unsigned int)(2 * *(_DWORD *)(a1 + 392));
if ( (_DWORD)result )
{
do
{
v6 = *(_QWORD *)(a1 + 424) + 4 * v4++;
*(_WORD *)v6 = *(_WORD *)a2;
*(_BYTE *)(v6 + 2) = *(_BYTE *)(a2 + 2);
result = (unsigned int)(2 * *(_DWORD *)(a1 + 392));
}
while ( v4 < (unsigned int)result );
}
return result;
}