//
// cocos2d::ccArrayAppendObjectChild from 0xd91f98 to 0xd91fe4 (76 bytes)
//
// 2 xrefs:
// > cocos2d::ccArrayAppendObjectWithResizeChild @ 0xd92010
// > ??> @ 0xc9c88
//
// 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 13:08:19 +0000
//
__int64 __fastcall cocos2d::ccArrayAppendObjectChild(unsigned int *a1, __int64 a2)
{
__int64 result; // x0
cocos2d::ccArrayUpdateChildIndexes((__int64)a1);
cocos2d::CCObject::retain(a2);
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * *a1) = a2;
*(_DWORD *)(a2 + 36) = *a1;
result = *a1 + 1;
*a1 = result;
return result;
}