//
// sub_1402F3870 from 0x1402f3870 to 0x1402f3913 (163 bytes)
//
// 3 xrefs:
// > sub_1402F1F20 @ 0x1402f2103
// > sub_1402F1F20 @ 0x1402f211d
// > ??> @ 0x1406d3e9c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall sub_1402F3870(__int64 *a1, __int64 *a2, __int64 a3)
{
__int64 *v5; // rbx
__int64 v6; // rdx
__int64 v7; // rcx
__int64 v8; // rax
if ( a1 != a2 )
{
v5 = a1 + 1;
do
{
v6 = v5[1];
v5[1] = 0;
v7 = *v5;
*v5 = 0;
v8 = *(v5 - 1);
*(v5 - 1) = 0;
*(_QWORD *)a3 = v8;
*(_QWORD *)(a3 + 8) = v7;
*(_QWORD *)(a3 + 16) = v6;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(a3 + 24));
a3 += 32;
v5 += 4;
}
while ( v5 - 1 != a2 );
}
return a3;
}