//
// sub_1003F2DA8 from 0x1003f2da8 to 0x1003f2df4 (76 bytes)
//
// 9 xrefs:
// > cocos2d::CCScheduler::scheduleSelector @ 0x10023f5e0
// > sub_1002E72A4 @ 0x1002e72d0
// > sub_1002E72FC @ 0x1002e7318
// > sub_1002E7334 @ 0x1002e7354
// > sub_1002E736C @ 0x1002e7394
// > sub_1002E7420 @ 0x1002e7448
// > sub_1002E7510 @ 0x1002e753c
// > sub_1002E7778 @ 0x1002e77b8
// > cocos2d::CCActionManager::actionAllocWithHashElement @ 0x100390a78
//
// 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 11:04:31 +0000
//
_QWORD *__fastcall sub_1003F2DA8(unsigned int a1)
{
size_t v1; // x19
_QWORD *v2; // x20
if ( a1 <= 1 )
v1 = 1;
else
v1 = a1;
v2 = malloc(0x18u);
*(_DWORD *)v2 = 0;
v2[2] = calloc(v1, 8u);
*((_DWORD *)v2 + 1) = v1;
*((_DWORD *)v2 + 2) = -1;
return v2;
}