//
// GameObject::addInternalChild from 0x44cb04 to 0x44cb72 (110 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:34 +0000
//
int __fastcall GameObject::addInternalChild(int a1, const cocos2d::CCPoint *a2, int a3, int a4, int a5)
{
const char *v8; // r1
cocos2d::CCSprite *v9; // r0
int v10; // r4
void (__fastcall *v11)(int, _BYTE *); // r10
_BYTE v13[8]; // [sp+4h] [bp+0h] BYREF
_BYTE v14[8]; // [sp+Ch] [bp+8h] BYREF
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v13, a2);
if ( (*(_BYTE *)a3 & 1) != 0 )
v9 = *(cocos2d::CCSprite **)(a3 + 8);
else
v9 = (cocos2d::CCSprite *)(a3 + 1);
v10 = cocos2d::CCSprite::createWithSpriteFrameName(v9, v8);
v11 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v10 + 92);
cocos2d::CCPoint::operator+(v14, v13, a4);
v11(v10, v14);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)a2 + 232))(a2, v10, a5);
return v10;
}