//
// GameObject::addInternalChild from 0x10068cb60 to 0x10068cbef (143 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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:35:06 +0000
//
char *__fastcall GameObject::addInternalChild(
double a1,
__int64 a2,
__int64 a3,
__int64 a4,
unsigned __int64 *a5,
unsigned int a6)
{
__int64 v9; // r12
char *v10; // r12
double v12; // [rsp+8h] [rbp-38h] BYREF
unsigned __int64 v13[6]; // [rsp+10h] [rbp-30h] BYREF
cocos2d::CCNode::convertToNodeSpace((double *)v13, a3, (unsigned int *)&unk_100BE5C00);
if ( (*(_BYTE *)a4 & 1) != 0 )
v9 = *(_QWORD *)(a4 + 16);
else
v9 = a4 + 1;
v10 = cocos2d::CCSprite::createWithSpriteFrameName(v9, a1);
sub_100278350(&v12, v13, a5);
(*(void (__fastcall **)(char *, double *))(*(_QWORD *)v10 + 184LL))(v10, &v12);
(*(void (__fastcall **)(__int64, char *, _QWORD))(*(_QWORD *)a3 + 464LL))(a3, v10, a6);
return v10;
}