//
// cocos2d::CCTintBy::update from 0x1003a4e50 to 0x1003a4f17 (199 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b33080
//
// 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:29:21 +0000
//
void __fastcall cocos2d::CCTintBy::update(__int64 a1, __m128 a2)
{
const void *v3; // rdi
void (__fastcall ***v4)(void *, __int16 *); // rax
__m128i v5; // xmm0
int v6; // edx
__int16 v7; // cx
float v8; // [rsp+0h] [rbp-20h]
__int16 v9; // [rsp+14h] [rbp-Ch] BYREF
char v10; // [rsp+16h] [rbp-Ah]
v3 = *(const void **)(a1 + 64);
if ( v3 )
{
v8 = a2.f32[0];
v4 = (void (__fastcall ***)(void *, __int16 *))__dynamic_cast(
v3,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v4 )
{
v5 = _mm_shuffle_epi8(
_mm_cvttps_epi32(
_mm_add_ps(
_mm_mul_ps(
_mm_moveldup_ps(a2),
_mm_cvtepi32_ps(_mm_cvtepi16_epi32(_mm_cvtsi32_si128(*(_DWORD *)(a1 + 92))))),
_mm_cvtepi32_ps(_mm_cvtepi16_epi32(_mm_cvtsi32_si128(*(_DWORD *)(a1 + 98)))))),
(__m128i)xmmword_100A08F10);
v6 = _mm_cvtsi128_si32(_mm_or_si128(_mm_slli_epi64(v5, 8u), _mm_unpackhi_epi16((__m128i)0LL, v5)));
v7 = v6 | (unsigned __int8)(int)(float)((float)((float)*(__int16 *)(a1 + 90) * v8) + (float)*(__int16 *)(a1 + 96));
v10 = BYTE2(v6);
v9 = v7;
(**v4)(v4, &v9);
}
}
}