//
// cocos2d::CCNodeRGBA::updateDisplayedColor from 0x180005660 to 0x180005769 (265 bytes)
//
// 19 xrefs:
// > cocos2d::CCSprite::updateDisplayedColor @ 0x180090779
// > ??> @ 0x1800eb808
// > ??> @ 0x1800ec1d0
// > ??> @ 0x1800ecb28
// > ??> @ 0x1800f1878
// > ??> @ 0x1800fdad8
// > ??> @ 0x1800fdf30
// > ??> @ 0x1800fe388
// > ??> @ 0x1800fe7e0
// > ??> @ 0x1800fec50
// > ??> @ 0x1800ff0c0
// > ??> @ 0x1800ff518
// > ??> @ 0x1800ffce8
// > ??> @ 0x180100138
// > ??> @ 0x18010c078
// > ??> @ 0x18013a188
// > ??> @ 0x18013a1e0
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b76fc
//
// 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:18 +0000
//
void __fastcall cocos2d::CCNodeRGBA::updateDisplayedColor(
cocos2d::CCNodeRGBA *this,
const struct cocos2d::_ccColor3B *a2)
{
char *v2; // rsi
bool v3; // zf
__int64 v4; // rax
unsigned int *v5; // rbx
__int64 v6; // rax
_QWORD *v7; // rbx
_QWORD *i; // rdi
__int64 v9; // rax
v2 = (char *)this + 10;
*((_BYTE *)this + 10) = (int)((double)(*(unsigned __int8 *)a2 * *((unsigned __int8 *)this + 13)) / 255.0);
*((_BYTE *)this + 11) = (int)((double)(*((unsigned __int8 *)this + 14) * *((unsigned __int8 *)a2 + 1)) / 255.0);
v3 = *((_BYTE *)this + 16) == 0;
*((_BYTE *)this + 12) = (int)((double)(*((unsigned __int8 *)this + 15) * *((unsigned __int8 *)a2 + 2)) / 255.0);
if ( !v3 )
{
v4 = *((_QWORD *)this - 14);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((_QWORD **)v5 + 2);
for ( i = &v7[v6 - 1]; v7 <= i; ++v7 )
{
if ( !*v7 )
break;
v9 = _RTDynamicCast(
*v7,
0,
&cocos2d::CCObject `RTTI Type Descriptor',
&cocos2d::CCRGBAProtocol `RTTI Type Descriptor',
0);
if ( v9 )
(*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v9 + 80LL))(v9, v2);
}
}
}
}
}