//
// cocos2d::ccCArrayAppendValue from 0x5eca46 to 0x5eca64 (30 bytes)
//
// 9 xrefs:
// > cocos2d::CCKeypadDispatcher::addDelegate @ 0x5cad60
// > cocos2d::CCKeypadDispatcher::removeDelegate @ 0x5cadca
// > cocos2d::ccCArrayAppendValueWithResize @ 0x5eca78
// > cocos2d::ccCArrayAppendArray @ 0x5eca94
// > cocos2d::CCTouchDispatcher::removeDelegate @ 0x5fa9f2
// > cocos2d::CCKeyboardDispatcher::addDelegate @ 0x5fb17c
// > cocos2d::CCKeyboardDispatcher::removeDelegate @ 0x5fb1e6
// > cocos2d::CCMouseDispatcher::addDelegate @ 0x5fc0d4
// > cocos2d::CCMouseDispatcher::removeDelegate @ 0x5fc13e
//
// 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
//
unsigned int *__fastcall cocos2d::ccCArrayAppendValue(unsigned int *this, cocos2d::_ccCArray *a2)
{
unsigned int v2; // r3
unsigned int v3; // r2
v2 = *this;
v3 = *(this + 1);
*(_DWORD *)(*(this + 3) + 4 * *this) = a2;
*this = ++v2;
if ( v2 >= v3 )
return (unsigned int *)cocos2d::ccCArrayDoubleCapacity((int)this);
return this;
}