//
// cocos2d::CCActionManager::actionAllocWithHashElement from 0x7bfc5e to 0x7bfc82 (36 bytes)
//
// 1 xrefs:
// > cocos2d::CCActionManager::addAction @ 0x7c00c0
//
// 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:00:19 +0000
//
_DWORD *__fastcall cocos2d::CCActionManager::actionAllocWithHashElement(int a1, _DWORD *a2)
{
_DWORD *result; // r0
result = (_DWORD *)*a2;
if ( *a2 )
{
if ( *result == result[1] )
return (_DWORD *)cocos2d::ccArrayDoubleCapacity();
}
else
{
result = (_DWORD *)cocos2d::ccArrayNew((cocos2d *)&byte_4, (unsigned int)a2);
*a2 = result;
}
return result;
}