//
// GameObject::addCustomBlackChild from 0x354868 to 0x354926 (190 bytes)
//
// 0 xrefs:
//
// 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
//
cocos2d::CCSprite *__fastcall GameObject::addCustomBlackChild(GameObject *a1, int a2, float a3, int a4)
{
cocos2d::CCSprite *v6; // r5
cocos2d::CCSprite_vtbl *v7; // r3
const char *v9; // [sp+8h] [bp-10h] BYREF
cocos2d::CCPoint v10; // [sp+Ch] [bp-Ch] BYREF
if ( a4 )
{
sub_775C20(&v10, a2);
v6 = GameObject::addCustomColorChild(a1, (const char **)&v10);
sub_774008(&v10);
}
else
{
sub_775C20(&v9, a2);
cocos2d::CCPoint::CCPoint(&v10, &stru_AC5CA0);
v6 = GameObject::addCustomChild(a1, &v9, (int)&v10, -2);
sub_774008(&v9);
v6->setColor(v6, &stru_9AA617);
v7 = v6->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_blackChildOpacity = a3;
v7->setOpacity(v6, (unsigned int)(float)(a3 * 255.0));
a1->m_isColorSpriteBlack = 1;
}
return v6;
}