//
// GameObject::addInternalChild from 0x643e10 to 0x643ee0 (208 bytes)
//
// 1 xrefs:
// > ??> @ 0x37698
//
// 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::addInternalChild(
int a1,
cocos2d::CCNode *this,
const char **a3,
__int64 a4,
int a5)
{
cocos2d::CCSprite *v6; // x20
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22
_BYTE v12[8]; // [xsp+68h] [xbp+68h] BYREF
__int64 v13; // [xsp+70h] [xbp+70h] BYREF
cocos2d::CCNode::convertToNodeSpace(this, &stru_1242068);
v6 = cocos2d::CCSprite::createWithSpriteFrameName(*a3);
setPosition = v6->setPosition;
cocos2d::CCPoint::operator+(&v13, v12, a4);
setPosition(v6, (const cocos2d::CCPoint *)&v13);
this->addChild_0(this, v6, a5);
return v6;
}