//
// cocos2d::CCActionManager::actionAllocWithHashElement from 0x1002181c0 to 0x1002181f1 (49 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:27:00 +0000
//
__int64 __fastcall cocos2d::CCActionManager::actionAllocWithHashElement(__int64 a1, __int64 *a2)
{
unsigned int *v2; // rdi
__int64 result; // rax
v2 = (unsigned int *)*a2;
if ( *a2 )
{
result = *v2;
if ( (_DWORD)result == v2[1] )
return sub_100746920();
}
else
{
result = sub_100746770(4);
*a2 = result;
}
return result;
}