//
// cocos2d::CCNodeRGBA::init from 0x5bd550 to 0x5bd58c (60 bytes)
//
// 2 xrefs:
// > AchievementBar::init @ 0x42a214
// > cocos2d::CCSprite::initWithTexture @ 0x5e6f0c
//
// 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
//
bool cocos2d::CCNodeRGBA::init(cocos2d::CCNodeRGBA *a1)
{
_BOOL4 v2; // r0
__int16 v3; // r2
v2 = cocos2d::CCNode::init(a1);
if ( v2 )
{
a1->_realOpacity = -1;
a1->_displayedOpacity = -1;
*(_WORD *)&a1->_realColor.r = -1;
v3 = *(_WORD *)&a1->_realColor.r;
a1->_realColor.b = -1;
a1->_displayedColor.b = -1;
*(_WORD *)&a1->_displayedColor.r = v3;
a1->_cascadeColorEnabled = 0;
a1->_cascadeOpacityEnabled = 0;
}
return v2;
}