//
// cocos2d::ccCArrayAppendValue from 0x7f7a8c to 0x7f7aac (32 bytes)
//
// 9 xrefs:
// > cocos2d::CCKeypadDispatcher::addDelegate @ 0x7d2070
// > cocos2d::CCKeypadDispatcher::removeDelegate @ 0x7d20da
// > cocos2d::ccCArrayAppendValueWithResize @ 0x7f7ac0
// > cocos2d::ccCArrayAppendArray @ 0x7f7adc
// > cocos2d::CCTouchDispatcher::removeDelegate @ 0x8081d6
// > cocos2d::CCKeyboardDispatcher::addDelegate @ 0x8089ac
// > cocos2d::CCKeyboardDispatcher::removeDelegate @ 0x808a16
// > cocos2d::CCMouseDispatcher::addDelegate @ 0x809df8
// > cocos2d::CCMouseDispatcher::removeDelegate @ 0x809e62
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:01:11 +0000
//
int __fastcall cocos2d::ccCArrayAppendValue(int a1, int a2)
{
unsigned int v2; // r3
unsigned int v3; // r2
*(_DWORD *)(*(_DWORD *)(a1 + 12) + 4 * *(_DWORD *)a1) = a2;
v2 = *(_DWORD *)(a1 + 4);
v3 = *(_DWORD *)a1 + 1;
*(_DWORD *)a1 = v3;
if ( v3 >= v2 )
return (int)cocos2d::ccCArrayDoubleCapacity(a1);
return a1;
}