//
// cocos2d::CCLayerRGBA::updateDisplayedColor from 0x1004b2030 to 0x1004b2146 (278 bytes)
//
// 247 xrefs:
// > ??> @ 0x1008af218
// > ??> @ 0x1008afa10
// > ??> @ 0x1008b24b0
// > ??> @ 0x1008b2ca8
// > ??> @ 0x1008b4f90
// > ??> @ 0x1008b5788
// > ??> @ 0x1008b5f40
// > ??> @ 0x1008b8878
// > ??> @ 0x1008b9010
// > ??> @ 0x1008c2598
// > ??> @ 0x1008d9840
// > ??> @ 0x1008da040
// > ??> @ 0x1008daf30
// > ??> @ 0x1008db710
// > ??> @ 0x1008dcb60
// > ??> @ 0x1008ddfd8
// > ??> @ 0x1008de7b0
// > ??> @ 0x1008dee78
// > ??> @ 0x1008df580
// > ??> @ 0x1008dfcf8
// > ??> @ 0x1008e03f8
// > ??> @ 0x1008e16f8
// > ??> @ 0x1008e1ee0
// > ??> @ 0x1008e2ad8
// > ??> @ 0x1008ec1e8
// > ??> @ 0x1008ec8f8
// > ??> @ 0x1008ed098
// > ??> @ 0x1008ed748
// > ??> @ 0x1008eded0
// > ??> @ 0x1008ee6e0
// > ??> @ 0x1008f1510
// > ??> @ 0x1008f1bc0
// > ??> @ 0x1008f2300
// > ??> @ 0x1008f2a10
// > ??> @ 0x1008f32f0
// > ??> @ 0x1008f4120
// > ??> @ 0x1008f6270
// > ??> @ 0x1008f6980
// > ??> @ 0x1008f7510
// > ??> @ 0x1008f8368
// > ??> @ 0x1008f8a18
// > ??> @ 0x1008f9210
// > ??> @ 0x1008f98b8
// > ??> @ 0x1008fa0a8
// > ??> @ 0x1008fa788
// > ??> @ 0x1008faea8
// > ??> @ 0x1008fb5f8
// > ??> @ 0x1008fbd88
// > ??> @ 0x1008fc498
// > ??> @ 0x1008fcc00
// > ??> @ 0x1008fd3f8
// > ??> @ 0x1008fdb08
// > ??> @ 0x1008fe300
// > ??> @ 0x1008feb10
// > ??> @ 0x1008ff3c8
// > ??> @ 0x1008ffbd8
// > ??> @ 0x100900440
// > ??> @ 0x100900bb8
// > ??> @ 0x1009012e0
// > ??> @ 0x100901a58
// > ??> @ 0x1009024d0
// > ??> @ 0x100902cf8
// > ??> @ 0x1009034f0
// > ??> @ 0x100903d00
// > ??> @ 0x100904760
// > ??> @ 0x1009054f8
// > ??> @ 0x100905cf0
// > ??> @ 0x1009064e8
// > ??> @ 0x100907528
// > ??> @ 0x100908038
// > ??> @ 0x1009088f0
// > ??> @ 0x100908fb8
// > ??> @ 0x10090a660
// > ??> @ 0x10090ad60
// > ??> @ 0x10090b4a0
// > ??> @ 0x10090c690
// > ??> @ 0x10090d218
// > ??> @ 0x10090d8e0
// > ??> @ 0x10090e128
// > ??> @ 0x10090e920
// > ??> @ 0x100910348
// > ??> @ 0x100910b30
// > ??> @ 0x100911258
// > ??> @ 0x1009119e0
// > ??> @ 0x100912738
// > ??> @ 0x100912e18
// > ??> @ 0x100914188
// > ??> @ 0x1009159f8
// > ??> @ 0x1009160d0
// > ??> @ 0x1009168f8
// > ??> @ 0x100916fd8
// > ??> @ 0x100917740
// > ??> @ 0x100917f38
// > ??> @ 0x100918610
// > ??> @ 0x100918ea0
// > ??> @ 0x100919550
// > ??> @ 0x100919c00
// > ??> @ 0x10091a3e0
// > ??> @ 0x10091ab08
// > ??> @ 0x10091b440
// > ??> @ 0x10091cde0
// > ??> @ 0x10091d4a8
// > ??> @ 0x10091e708
// > ??> @ 0x10091f330
// > ??> @ 0x100920ac8
// > ??> @ 0x1009212c0
// > ??> @ 0x100921ab8
// > ??> @ 0x1009222b0
// > ??> @ 0x100922ff8
// > ??> @ 0x100923fd8
// > ??> @ 0x100924af8
// > ??> @ 0x1009251f0
// > ??> @ 0x1009259e8
// > ??> @ 0x1009261e0
// > ??> @ 0x100926f60
// > ??> @ 0x100928740
// > ??> @ 0x100928e60
// > ??> @ 0x10092d7c8
// > ??> @ 0x10092e828
// > ??> @ 0x10092f940
// > ??> @ 0x100930138
// > ??> @ 0x100930908
// > ??> @ 0x1009313f8
// > ??> @ 0x100932828
// > ??> @ 0x100934980
// > ??> @ 0x100936a60
// > ??> @ 0x100938610
// > ??> @ 0x100938e30
// > ??> @ 0x1009394f8
// > ??> @ 0x100939d80
// > ??> @ 0x10093a440
// > ??> @ 0x10093ac00
// > ??> @ 0x1009429f0
// > ??> @ 0x100943248
// > ??> @ 0x1009443c8
// > ??> @ 0x100944b40
// > ??> @ 0x100945370
// > ??> @ 0x100947020
// > ??> @ 0x100947818
// > ??> @ 0x100948a18
// > ??> @ 0x100949648
// > ??> @ 0x100949ca8
// > ??> @ 0x10094a9b8
// > ??> @ 0x10094b208
// > ??> @ 0x10094ba00
// > ??> @ 0x10094c1f8
// > ??> @ 0x10094ca90
// > ??> @ 0x10094d328
// > ??> @ 0x10094db20
// > ??> @ 0x10094e318
// > ??> @ 0x10094f310
// > ??> @ 0x10094fdf0
// > ??> @ 0x1009505e8
// > ??> @ 0x100950cb0
// > ??> @ 0x100951a80
// > ??> @ 0x100952278
// > ??> @ 0x100952a70
// > ??> @ 0x100953268
// > ??> @ 0x100953a60
// > ??> @ 0x1009542a0
// > ??> @ 0x100954a98
// > ??> @ 0x1009552b8
// > ??> @ 0x100955980
// > ??> @ 0x1009566c0
// > ??> @ 0x100956dd8
// > ??> @ 0x100957508
// > ??> @ 0x100957bc0
// > ??> @ 0x100958428
// > ??> @ 0x100959118
// > ??> @ 0x10095a138
// > ??> @ 0x10095a9b8
// > ??> @ 0x10095b0f8
// > ??> @ 0x10095b8f0
// > ??> @ 0x10095c0e8
// > ??> @ 0x10095c828
// > ??> @ 0x10095cf48
// > ??> @ 0x10095d898
// > ??> @ 0x10095e5d0
// > ??> @ 0x100960178
// > ??> @ 0x100963240
// > ??> @ 0x100963908
// > ??> @ 0x100964700
// > ??> @ 0x1009662b0
// > ??> @ 0x100966a90
// > ??> @ 0x1009672a0
// > ??> @ 0x100967a98
// > ??> @ 0x100968290
// > ??> @ 0x100968a88
// > ??> @ 0x100969280
// > ??> @ 0x100969a78
// > ??> @ 0x10096a2b0
// > ??> @ 0x10096aaa8
// > ??> @ 0x10096b2e0
// > ??> @ 0x10096bad8
// > ??> @ 0x10096c2d0
// > ??> @ 0x10096cac8
// > ??> @ 0x10096d2c0
// > ??> @ 0x10096dab8
// > ??> @ 0x10096e2b0
// > ??> @ 0x10096eaa8
// > ??> @ 0x10096f2a0
// > ??> @ 0x10096fa98
// > ??> @ 0x1009710a8
// > ??> @ 0x100973080
// > ??> @ 0x100973740
// > ??> @ 0x100973e08
// > ??> @ 0x1009760d0
// > ??> @ 0x100977620
// > ??> @ 0x100977e18
// > ??> @ 0x100978610
// > ??> @ 0x100978d20
// > ??> @ 0x10097b1d0
// > ??> @ 0x10097c730
// > ??> @ 0x10097d8b8
// > ??> @ 0x10097e058
// > ??> @ 0x10097f788
// > ??> @ 0x100980318
// > ??> @ 0x100980b10
// > ??> @ 0x1009812d8
// > ??> @ 0x100982ed8
// > ??> @ 0x100983618
// > ??> @ 0x100984878
// > ??> @ 0x100984f80
// > ??> @ 0x100986470
// > ??> @ 0x1009870b0
// > ??> @ 0x100987778
// > ??> @ 0x100987f70
// > ??> @ 0x100988798
// > ??> @ 0x100988f90
// > ??> @ 0x100989f38
// > ??> @ 0x10098ad78
// > ??> @ 0x10098b978
// > ??> @ 0x10098c4f8
// > ??> @ 0x10098cb80
// > ??> @ 0x10098d628
// > ??> @ 0x10098de20
// > ??> @ 0x10098eb68
// > ??> @ 0x10098f2b0
// > ??> @ 0x10098f960
// > ??> @ 0x100990058
// > ??> @ 0x100990708
// > ??> @ 0x100992990
// > ??> @ 0x1009931d8
// > ??> @ 0x100994240
// > ??> @ 0x100994b10
// > ??> @ 0x1009951d8
// > ??> @ 0x1009958a0
//
// 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 __fastcall cocos2d::CCLayerRGBA::updateDisplayedColor(cocos2d::CCLayerRGBA *a1, const cocos2d::ccColor3B *a2)
{
cocos2d::CCArray *m_pChildren; // rax
cocos2d::ccArray *data; // rax
const void **arr; // r12
unsigned __int64 v5; // r13
void *v6; // rax
a1->_displayedColor.r = (int)((double)(a1->_realColor.r * a2->r) / 255.0);
a1->_displayedColor.g = (int)((double)(a1->_realColor.g * a2->g) / 255.0);
a1->_displayedColor.b = (int)((double)(a1->_realColor.b * a2->b) / 255.0);
if ( a1->_cascadeColorEnabled )
{
m_pChildren = a1->m_pChildren;
if ( m_pChildren )
{
data = m_pChildren->data;
if ( data->num )
{
arr = (const void **)data->arr;
v5 = (unsigned __int64)&arr[data->num - 1];
do
{
if ( !*arr )
break;
v6 = __dynamic_cast(
*arr,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v6 )
(*(void (__fastcall **)(void *, cocos2d::ccColor3B *))(*(_QWORD *)v6 + 80LL))(v6, &a1->_displayedColor);
++arr;
}
while ( (unsigned __int64)arr <= v5 );
}
}
}
}