//
// cocos2d::CCSprite::setColor from 0x7f21ba to 0x7f21ee (52 bytes)
//
// 7 xrefs:
// > CCAnimatedSprite::setColor @ 0x3c3f54
// > CCPartAnimSprite::setColor @ 0x3c71b0
// > EmoteSprite::initWithDef @ 0x3f43e6
// > PlayerObject::setColor @ 0x43474e
// > AnimatedGameObject::setObjectColor @ 0x4e624c
// > GJChestSprite::setColor @ 0x61a162
// > `non-virtual thunk to'cocos2d::CCSprite::setColor @ 0x7f21f2
//
// 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:01:05 +0000
//
unsigned __int8 *__fastcall cocos2d::CCSprite::setColor(unsigned __int8 *result, unsigned __int8 *a2)
{
cocos2d::CCSprite *v2; // r4
int v3; // r2
v2 = (cocos2d::CCSprite *)result;
v3 = result[273];
if ( v3 != *a2 || (v3 = result[274], v3 != a2[1]) || (v3 = result[275], v3 != a2[2]) )
{
cocos2d::CCNodeRGBA::setColor((int)result, (int)a2, v3);
return (unsigned __int8 *)cocos2d::CCSprite::updateColor(v2);
}
return result;
}