//
// cocos2d::CCLayerRGBA::updateDisplayedColor from 0x7d77e8 to 0x7d78a6 (190 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'cocos2d::CCLayerRGBA::updateDisplayedColor @ 0x7d78bc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:40 +0000
//
_BYTE *__fastcall cocos2d::CCLayerRGBA::updateDisplayedColor(_BYTE *result, unsigned __int8 *a2)
{
__int16 v2; // r2
int v3; // r3
__int16 v4; // r2
int v5; // r3
_DWORD *v6; // r2
void **v7; // r4
char *v8; // r6
void **v9; // r5
_BYTE *v10; // t1
v2 = (unsigned __int8)result[326];
result[322] = (unsigned int)((double)((unsigned __int8)result[325] * *a2) / 255.0);
v3 = v2 * a2[1];
v4 = (unsigned __int8)result[327];
result[323] = (unsigned int)((double)v3 / 255.0);
result[324] = (unsigned int)((double)(v4 * a2[2]) / 255.0);
if ( result[329] )
{
v5 = *((_DWORD *)result + 48);
if ( v5 )
{
v6 = *(_DWORD **)(v5 + 52);
if ( *v6 )
{
v7 = (void **)v6[3];
v8 = result + 322;
v9 = &v7[*v6] + 0x3FFFFFFF;
while ( v7 <= v9 )
{
v10 = *v7++;
result = v10;
if ( !v10 )
break;
result = _dynamic_cast(
result,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCObject,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( result )
result = (_BYTE *)(*(int (__fastcall **)(_BYTE *, char *))(*(_DWORD *)result + 40))(result, v8);
}
}
}
}
return result;
}