//
// cocos2d::CCLayerRGBA::updateDisplayedColor from 0xaeae10 to 0xaeaf18 (264 bytes)
//
// 248 xrefs:
// > `non-virtual thunk to'cocos2d::CCLayerRGBA::updateDisplayedColor @ 0xaeaf24
// > ??> @ 0x78780
// > ??> @ 0x1137008
// > ??> @ 0x11381d8
// > ??> @ 0x113bee8
// > ??> @ 0x113c988
// > ??> @ 0x113f038
// > ??> @ 0x113fc78
// > ??> @ 0x1140878
// > ??> @ 0x1144428
// > ??> @ 0x1145b88
// > ??> @ 0x1146338
// > ??> @ 0x1146a48
// > ??> @ 0x1147d98
// > ??> @ 0x114a268
// > ??> @ 0x114a938
// > ??> @ 0x11587a8
// > ??> @ 0x115a778
// > ??> @ 0x115ae88
// > ??> @ 0x115c568
// > ??> @ 0x115cc18
// > ??> @ 0x115d2f8
// > ??> @ 0x115db08
// > ??> @ 0x11611d8
// > ??> @ 0x1177b38
// > ??> @ 0x1178278
// > ??> @ 0x1179c98
// > ??> @ 0x117a368
// > ??> @ 0x117b688
// > ??> @ 0x117c668
// > ??> @ 0x117d418
// > ??> @ 0x117db38
// > ??> @ 0x117e288
// > ??> @ 0x117e938
// > ??> @ 0x117f038
// > ??> @ 0x117f708
// > ??> @ 0x11802b8
// > ??> @ 0x11809d8
// > ??> @ 0x11810f8
// > ??> @ 0x1181808
// > ??> @ 0x1181f98
// > ??> @ 0x1182668
// > ??> @ 0x1182e48
// > ??> @ 0x1183608
// > ??> @ 0x1184148
// > ??> @ 0x1184818
// > ??> @ 0x1185ff8
// > ??> @ 0x11871e8
// > ??> @ 0x1187898
// > ??> @ 0x1188138
// > ??> @ 0x1188838
// > ??> @ 0x118a828
// > ??> @ 0x118af88
// > ??> @ 0x118b638
// > ??> @ 0x118bd08
// > ??> @ 0x118c8c8
// > ??> @ 0x118d048
// > ??> @ 0x118dd08
// > ??> @ 0x118e4a8
// > ??> @ 0x118ecf8
// > ??> @ 0x118f478
// > ??> @ 0x118fbf8
// > ??> @ 0x1191198
// > ??> @ 0x1191e78
// > ??> @ 0x1193ca8
// > ??> @ 0x1194a18
// > ??> @ 0x11950c8
// > ??> @ 0x11958a8
// > ??> @ 0x1196088
// > ??> @ 0x1196888
// > ??> @ 0x1197088
// > ??> @ 0x1197738
// > ??> @ 0x1197e48
// > ??> @ 0x1198528
// > ??> @ 0x1198bd8
// > ??> @ 0x11992f8
// > ??> @ 0x1199a48
// > ??> @ 0x119a1d8
// > ??> @ 0x119a9b8
// > ??> @ 0x119b0c8
// > ??> @ 0x119b7f8
// > ??> @ 0x119bf08
// > ??> @ 0x119c638
// > ??> @ 0x119cd48
// > ??> @ 0x119d7d8
// > ??> @ 0x119dfd8
// > ??> @ 0x119e7d8
// > ??> @ 0x119efb8
// > ??> @ 0x119f6b8
// > ??> @ 0x119fd68
// > ??> @ 0x11a0598
// > ??> @ 0x11a1bb8
// > ??> @ 0x11a28c8
// > ??> @ 0x11a2f98
// > ??> @ 0x11a3798
// > ??> @ 0x11a3f98
// > ??> @ 0x11a47c8
// > ??> @ 0x11a50a8
// > ??> @ 0x11a58c8
// > ??> @ 0x11a60e8
// > ??> @ 0x11a6948
// > ??> @ 0x11a7178
// > ??> @ 0x11a7828
// > ??> @ 0x11a85b8
// > ??> @ 0x11a9098
// > ??> @ 0x11a97d8
// > ??> @ 0x11a9ec8
// > ??> @ 0x11ab1d8
// > ??> @ 0x11abd88
// > ??> @ 0x11ad818
// > ??> @ 0x11ae018
// > ??> @ 0x11ae828
// > ??> @ 0x11af008
// > ??> @ 0x11afe88
// > ??> @ 0x11b0b28
// > ??> @ 0x11b1298
// > ??> @ 0x11b1a68
// > ??> @ 0x11b2168
// > ??> @ 0x11b49a8
// > ??> @ 0x11b51a8
// > ??> @ 0x11b59a8
// > ??> @ 0x11b61a8
// > ??> @ 0x11b69d8
// > ??> @ 0x11b71b8
// > ??> @ 0x11b7998
// > ??> @ 0x11b8198
// > ??> @ 0x11b8998
// > ??> @ 0x11b9198
// > ??> @ 0x11b9998
// > ??> @ 0x11ba198
// > ??> @ 0x11ba998
// > ??> @ 0x11bb198
// > ??> @ 0x11bb998
// > ??> @ 0x11bc9f8
// > ??> @ 0x11bd108
// > ??> @ 0x11bd8a8
// > ??> @ 0x11bdfb8
// > ??> @ 0x11be7d8
// > ??> @ 0x11beef8
// > ??> @ 0x11bf6f8
// > ??> @ 0x11bfef8
// > ??> @ 0x11c0708
// > ??> @ 0x11c0ee8
// > ??> @ 0x11c1a78
// > ??> @ 0x11c21c8
// > ??> @ 0x11c28f8
// > ??> @ 0x11c3008
// > ??> @ 0x11c4c08
// > ??> @ 0x11c5468
// > ??> @ 0x11c5ce8
// > ??> @ 0x11c64f8
// > ??> @ 0x11c6cd8
// > ??> @ 0x11c74d8
// > ??> @ 0x11c8308
// > ??> @ 0x11c8a88
// > ??> @ 0x11c91f8
// > ??> @ 0x11ca918
// > ??> @ 0x11cb038
// > ??> @ 0x11cb768
// > ??> @ 0x11cbe28
// > ??> @ 0x11cc508
// > ??> @ 0x11ccd48
// > ??> @ 0x11cd548
// > ??> @ 0x11cdd58
// > ??> @ 0x11ce538
// > ??> @ 0x11ced38
// > ??> @ 0x11cfac8
// > ??> @ 0x11d02c8
// > ??> @ 0x11d0b78
// > ??> @ 0x11d1358
// > ??> @ 0x11d1b38
// > ??> @ 0x11d2318
// > ??> @ 0x11d2af8
// > ??> @ 0x11d3308
// > ??> @ 0x11d3ae8
// > ??> @ 0x11d4338
// > ??> @ 0x11d4b68
// > ??> @ 0x11d53f8
// > ??> @ 0x11d5bf8
// > ??> @ 0x11d62a8
// > ??> @ 0x11d6a88
// > ??> @ 0x11d7298
// > ??> @ 0x11d7a78
// > ??> @ 0x11d8278
// > ??> @ 0x11d8a98
// > ??> @ 0x11d9198
// > ??> @ 0x11db648
// > ??> @ 0x11dbde8
// > ??> @ 0x11dc498
// > ??> @ 0x11dcb48
// > ??> @ 0x11dd348
// > ??> @ 0x11ddb78
// > ??> @ 0x11de358
// > ??> @ 0x11debf8
// > ??> @ 0x11df3d8
// > ??> @ 0x11dfbb8
// > ??> @ 0x11e03f8
// > ??> @ 0x11e0de8
// > ??> @ 0x11e15c8
// > ??> @ 0x11e1da8
// > ??> @ 0x11e2588
// > ??> @ 0x11e2d68
// > ??> @ 0x11e3548
// > ??> @ 0x11e3d28
// > ??> @ 0x11e4508
// > ??> @ 0x11e4ce8
// > ??> @ 0x11e54c8
// > ??> @ 0x11e5ca8
// > ??> @ 0x11e6488
// > ??> @ 0x11e6c68
// > ??> @ 0x11e7448
// > ??> @ 0x11e7c28
// > ??> @ 0x11e8408
// > ??> @ 0x11e8c08
// > ??> @ 0x11e93e8
// > ??> @ 0x11e9be8
// > ??> @ 0x11ea3e8
// > ??> @ 0x11eac78
// > ??> @ 0x11eb448
// > ??> @ 0x11ebc08
// > ??> @ 0x11ec318
// > ??> @ 0x11ecac8
// > ??> @ 0x11eddd8
// > ??> @ 0x11ee4a8
// > ??> @ 0x11eeb98
// > ??> @ 0x11ef3c8
// > ??> @ 0x11efad8
// > ??> @ 0x11f0368
// > ??> @ 0x11f0a18
// > ??> @ 0x11f10c8
// > ??> @ 0x11f17f8
// > ??> @ 0x11f1fd8
// > ??> @ 0x11f27b8
// > ??> @ 0x11f2fe8
// > ??> @ 0x11f4a28
// > ??> @ 0x11f5188
// > ??> @ 0x11f5938
// > ??> @ 0x11f6028
// > ??> @ 0x11f6728
// > ??> @ 0x11f6e28
// > ??> @ 0x11f7b58
// > ??> @ 0x11f8808
// > ??> @ 0x11f8ee8
// > ??> @ 0x11fa798
// > ??> @ 0x1204188
// > ??> @ 0x12047e8
// > ??> @ 0x1204e98
// > ??> @ 0x120e768
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void cocos2d::CCLayerRGBA::updateDisplayedColor(cocos2d::CCLayerRGBA *a1, const cocos2d::ccColor3B *a2)
{
int r; // w4
int g; // w0
int b; // w3
_BOOL4 cascadeColorEnabled; // w5
cocos2d::CCArray *m_pChildren; // x0
cocos2d::ccArray *data; // x1
const void **arr; // x19
const void **v10; // x21
const void *v11; // x0
cocos2d::ccColor3B *p_displayedColor; // x20
void *v13; // x0
r = a1->_realColor.r;
g = a1->_realColor.g;
b = a1->_realColor.b;
cascadeColorEnabled = a1->_cascadeColorEnabled;
a1->_displayedColor.r = (unsigned int)((double)(r * a2->r) / 255.0);
a1->_displayedColor.g = (unsigned int)((double)(g * a2->g) / 255.0);
a1->_displayedColor.b = (unsigned int)((double)(b * a2->b) / 255.0);
if ( cascadeColorEnabled )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (const void **)data->arr;
v10 = &arr[data->num - 1];
if ( arr <= v10 )
{
v11 = *arr;
if ( *arr )
{
p_displayedColor = &a1->_displayedColor;
do
{
v13 = _dynamic_cast(
v11,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v13 )
(*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_QWORD *)v13 + 80LL))(v13, p_displayedColor);
if ( v10 < ++arr )
break;
v11 = *arr;
}
while ( *arr );
}
}
}
}
}
}