//
// cocos2d::ccArrayAppendObjectNew from 0xb20ff4 to 0xb21038 (68 bytes)
//
// 2 xrefs:
// > cocos2d::ccArrayAppendObjectWithResizeNew @ 0xb210d8
// > ??> @ 0x2ea40
//
// 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::ccArrayAppendObjectNew(unsigned int *a1, cocos2d::CCObject *this)
{
__int64 result; // x0
cocos2d::CCObject::retain(this);
result = *a1;
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8LL * (unsigned int)result) = this;
this->m_uIndexInArray = result;
*a1 = result + 1;
return result;
}