//
// cocos2d::CCMotionStreak::tintWithColor from 0xd6840c to 0xd6847c (112 bytes)
//
// 1 xrefs:
// > ??> @ 0xb25d0
//
// This function is hookable on this platform (idp: arm, 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 13:07:55 +0000
//
__int64 __fastcall cocos2d::CCMotionStreak::tintWithColor(__int64 a1, __int64 a2)
{
__int64 result; // x0
__int64 v4; // x1
__int64 v5; // x3
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
v6 = a2;
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 960LL))(a1, &v6);
for ( result = 0; (unsigned int)result < 2 * *(_DWORD *)(a1 + 392); *(_BYTE *)(v5 + 2) = BYTE2(v6) )
{
v4 = 4 * (result & 0x3FFFFFFF);
result = (unsigned int)(result + 1);
v5 = *(_QWORD *)(a1 + 424) + v4;
*(_WORD *)v5 = v6;
}
return result;
}