// // cocos2d::CCNodeRGBA::setColor from 0x180004b40 to 0x180004bf0 (176 bytes) // // 16 xrefs: // > cocos2d::CCAtlasNode::setColor @ 0x180001e5a // > cocos2d::CCSprite::setColor @ 0x18008c3d3 // > @ 0x1800e6120 // > @ 0x1800e6a80 // > @ 0x1800f7610 // > @ 0x1800f7a58 // > @ 0x1800f7ea0 // > @ 0x1800f82e8 // > @ 0x1800f8748 // > @ 0x1800f8ba8 // > @ 0x1800f8ff0 // > @ 0x1800f97a8 // > @ 0x1801312f8 // > @ 0x180131308 // > @ 0x1801438a8 // > @ 0x1801ad594 // // 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::CCNodeRGBA::setColor(cocos2d::CCNodeRGBA *this, const struct cocos2d::_ccColor3B *a2) { bool v2; // zf __int64 v4; // rcx __int64 v5; // rax __int64 v6; // rdi __int64 v7; // rax __int16 v8; // [rsp+40h] [rbp+8h] BYREF char v9; // [rsp+42h] [rbp+Ah] v2 = LOBYTE(this->m_nTag) == 0; *(struct cocos2d::_ccColor3B *)((char *)&this->m_nLuaID + 1) = *a2; HIWORD(this->m_uID) = *(_WORD *)((char *)&this->m_nLuaID + 1); LOBYTE(this->m_nLuaID) = HIBYTE(this->m_nLuaID); if ( !v2 ) { v4 = *((_QWORD *)this - 13); v8 = -1; v9 = -1; v5 = _RTDynamicCast( v4, 0, &cocos2d::CCNode `RTTI Type Descriptor', &cocos2d::CCRGBAProtocol `RTTI Type Descriptor', 0); v6 = v5; if ( v5 ) { if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v5 + 64LL))(v5) ) { v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 16LL))(v6); v8 = *(_WORD *)v7; v9 = *(_BYTE *)(v7 + 2); } } ((void (__fastcall *)(cocos2d::CCNodeRGBA *, __int16 *))this->setZOrder)(this, &v8); } }