//
// cocos2d::CCNodeRGBA::updateDisplayedColor from 0x1002da408 to 0x1002da504 (252 bytes)
//
// 18 xrefs:
// > cocos2d::extension::CCScale9Sprite::updateDisplayedColor @ 0x1002b2c80
// > sub_1002B2CA0 @ 0x1002b2cb8
// > cocos2d::CCSprite::updateDisplayedColor @ 0x1002d5eac
// > sub_1002D5EC0 @ 0x1002d5ed4
// > sub_1002DA504 @ 0x1002da508
// > ??> @ 0x1008bb190
// > ??> @ 0x1008bd670
// > ??> @ 0x1008c1040
// > ??> @ 0x1008df018
// > ??> @ 0x1008e5e08
// > ??> @ 0x1008f4b08
// > ??> @ 0x1008f5e78
// > ??> @ 0x1008fe130
// > ??> @ 0x10091b190
// > ??> @ 0x1009219e0
// > ??> @ 0x10092b9d0
// > ??> @ 0x10093eed8
// > ??> @ 0x10096dbf8
//
// 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 11:02:44 +0000
//
_BYTE *__fastcall cocos2d::CCNodeRGBA::updateDisplayedColor(_BYTE *result, unsigned __int8 *a2)
{
_BYTE *v2; // x19
__int64 v3; // x8
unsigned int *v4; // x9
__int64 v5; // x8
void **v6; // x22
unsigned __int64 v7; // x23
result[330] = (int)((double)(*a2 * (unsigned int)(unsigned __int8)result[333]) / 255.0);
result[331] = (int)((double)(a2[1] * (unsigned int)(unsigned __int8)result[334]) / 255.0);
result[332] = (int)((double)(a2[2] * (unsigned int)(unsigned __int8)result[335]) / 255.0);
if ( result[336] == 1 )
{
v2 = result;
v3 = *((_QWORD *)result + 26);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
v5 = *v4;
if ( (_DWORD)v5 )
{
v6 = *((void ***)v4 + 2);
v7 = (unsigned __int64)&v6[v5 - 1];
do
{
result = *v6;
if ( !*v6 )
break;
result = __dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&off_1008BD768,
-2);
if ( result )
result = (_BYTE *)(*(__int64 (__fastcall **)(_BYTE *, _BYTE *))(*(_QWORD *)result + 80LL))(result, v2 + 330);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
}
return result;
}