//
// cocos2d::ccCArrayAppendValue from 0xb21a0c to 0xb21a34 (40 bytes)
//
// 10 xrefs:
// > cocos2d::CCKeypadDispatcher::addDelegate @ 0xae1334
// > cocos2d::CCKeypadDispatcher::removeDelegate @ 0xae1420
// > cocos2d::ccCArrayAppendValueWithResize @ 0xb21a60
// > cocos2d::ccCArrayAppendArray @ 0xb21a98
// > cocos2d::CCTouchDispatcher::removeDelegate @ 0xb3f024
// > cocos2d::CCKeyboardDispatcher::addDelegate @ 0xb3fd74
// > cocos2d::CCKeyboardDispatcher::removeDelegate @ 0xb3fe60
// > cocos2d::CCMouseDispatcher::addDelegate @ 0xb40be4
// > cocos2d::CCMouseDispatcher::removeDelegate @ 0xb40cd0
// > ??> @ 0x2e740
//
// 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; // w5
unsigned int v3; // w3
v2 = *(this + 1);
v3 = *this + 1;
*(_QWORD *)(*((_QWORD *)this + 2) + 8LL * *this) = a2;
*this = v3;
if ( v3 >= v2 )
return (unsigned int *)cocos2d::ccCArrayDoubleCapacity((__int64)this);
return this;
}