//
// cocos2d::ccCArrayAppendValue from 0xd925b0 to 0xd925dc (44 bytes)
//
// 10 xrefs:
// > cocos2d::CCKeypadDispatcher::addDelegate @ 0xd53f9c
// > cocos2d::CCKeypadDispatcher::removeDelegate @ 0xd54088
// > cocos2d::ccCArrayAppendValueWithResize @ 0xd92608
// > cocos2d::ccCArrayAppendArray @ 0xd92640
// > cocos2d::CCTouchDispatcher::removeDelegate @ 0xdb1dd0
// > cocos2d::CCKeyboardDispatcher::addDelegate @ 0xdb2c98
// > cocos2d::CCKeyboardDispatcher::removeDelegate @ 0xdb2d84
// > cocos2d::CCMouseDispatcher::addDelegate @ 0xdb4274
// > cocos2d::CCMouseDispatcher::removeDelegate @ 0xdb4360
// > ??> @ 0x45ca0
//
// 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::ccCArrayAppendValue(__int64 a1, __int64 a2)
{
unsigned int v2; // w3
unsigned int v3; // w1
*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * *(unsigned int *)a1) = a2;
v2 = *(_DWORD *)(a1 + 4);
v3 = *(_DWORD *)a1 + 1;
*(_DWORD *)a1 = v3;
if ( v3 >= v2 )
return (__int64)cocos2d::ccCArrayDoubleCapacity(a1);
return a1;
}