//
// sub_1003F3438 from 0x1003f3438 to 0x1003f347c (68 bytes)
//
// 7 xrefs:
// > cocos2d::CCTouchDispatcher::init @ 0x1001cd48c
// > sub_100242310 @ 0x100242348
// > sub_100242310 @ 0x100242354
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x1002d6464
// > cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher @ 0x1002d6470
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0x10039aa70
// > cocos2d::CCMouseDispatcher::CCMouseDispatcher @ 0x10039aa7c
//
// 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_1003F3438(unsigned int a1)
{
unsigned int v1; // w20
_QWORD *v2; // x19
if ( a1 <= 1 )
v1 = 1;
else
v1 = a1;
v2 = malloc(0x18u);
*(_DWORD *)v2 = 0;
v2[2] = malloc(8LL * v1);
*((_DWORD *)v2 + 1) = v1;
return v2;
}