//
// sub_1003F3064 from 0x1003f3064 to 0x1003f30b4 (80 bytes)
//
// 1 xrefs:
// > cocos2d::CCNode::insertChild @ 0x1002d8930
//
// 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
//
__int64 __fastcall sub_1003F3064(unsigned int *a1, __int64 a2)
{
__int64 result; // x0
__int64 v5; // x9
sub_1003F2EAC(a1, 1);
sub_1003F2FB4((__int64)a1);
result = cocos2d::CCObject::retain(a2);
v5 = *a1;
*(_QWORD *)(*((_QWORD *)a1 + 2) + 8 * v5) = a2;
*(_DWORD *)(a2 + 36) = v5;
*a1 = v5 + 1;
return result;
}