//
// GameObject::addInternalChild from 0x76e468 to 0x76e544 (220 bytes)
//
// 1 xrefs:
// > ??> @ 0xd8238
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:53:11 +0000
//
__int64 __fastcall GameObject::addInternalChild(
int a1,
cocos2d::CCNode *this,
unsigned __int8 *a3,
__int64 a4,
unsigned int a5)
{
cocos2d::CCSprite *v8; // x0
const char *v9; // x1
__int64 v10; // x20
void (__fastcall *v11)(__int64, __int64 *); // x23
__int64 v13; // [xsp+58h] [xbp+58h] BYREF
__int64 v14; // [xsp+60h] [xbp+60h] BYREF
cocos2d::CCNode::convertToNodeSpace(&v13, this, (const cocos2d::CCPoint *)&unk_155C668);
v8 = (cocos2d::CCSprite *)(a3 + 1);
v9 = (const char *)*a3;
if ( ((unsigned __int8)v9 & 1) != 0 )
v8 = *((cocos2d::CCSprite **)a3 + 2);
v10 = cocos2d::CCSprite::createWithSpriteFrameName(v8, v9);
v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 184LL);
cocos2d::CCPoint::operator+(&v14, &v13);
v11(v10, &v14);
(*(void (__fastcall **)(cocos2d::CCNode *, __int64, _QWORD))(*(_QWORD *)this + 464LL))(this, v10, a5);
return v10;
}