//
// cocos2d::ccArrayAppendObjectChild from 0xb21428 to 0xb2146c (68 bytes)
//
// 2 xrefs:
// > cocos2d::ccArrayAppendObjectWithResizeChild @ 0xb21498
// > ??> @ 0x98d60
//
// 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
//
__int64 __fastcall cocos2d::ccArrayAppendObjectChild(unsigned int *a1, cocos2d::CCObject *a2)
{
__int64 result; // x0
cocos2d::ccArrayUpdateChildIndexes((__int64)a1);
cocos2d::CCObject::retain(a2);
result = *a1;
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * (unsigned int)result) = a2;
a2->m_uUnknown = result;
*a1 = result + 1;
return result;
}