//
// sub_1003F3194 from 0x1003f3194 to 0x1003f3214 (128 bytes)
//
// 2 xrefs:
// > sub_1002E7640 @ 0x1002e7644
// > sub_1002E7684 @ 0x1002e76a4
//
// 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_1003F3194(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 result; // x0
sub_1003F2EAC((_DWORD *)a1, 1);
if ( *(_DWORD *)a1 != a3 )
memmove(
(void *)(*(_QWORD *)(a1 + 16) + 8LL * (a3 + 1)),
(const void *)(*(_QWORD *)(a1 + 16) + 8LL * a3),
8LL * (*(_DWORD *)a1 - a3));
result = cocos2d::CCObject::retain(a2);
*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL * a3) = a2;
++*(_DWORD *)a1;
return result;
}