// // cocos2d::CCNodeRGBA::updateDisplayedColor from 0x7c40f8 to 0x7c41b6 (190 bytes) // // 3 xrefs: // > cocos2d::extension::CCScale9Sprite::updateDisplayedColor @ 0x7aca48 // > `non-virtual thunk to'cocos2d::CCNodeRGBA::updateDisplayedColor @ 0x7c41cc // > cocos2d::CCSprite::updateDisplayedColor @ 0x7f21fa // // 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:23 +0000 // _BYTE *__fastcall cocos2d::CCNodeRGBA::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[274]; result[270] = (unsigned int)((double)((unsigned __int8)result[273] * *a2) / 255.0); v3 = v2 * a2[1]; v4 = (unsigned __int8)result[275]; result[271] = (unsigned int)((double)v3 / 255.0); result[272] = (unsigned int)((double)(v4 * a2[2]) / 255.0); if ( result[276] ) { v5 = *((_DWORD *)result + 48); if ( v5 ) { v6 = *(_DWORD **)(v5 + 52); if ( *v6 ) { v7 = (void **)v6[3]; v8 = result + 270; 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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source