//
// sub_D041EC from 0xd041ec to 0xd042d0 (228 bytes)
//
// 2 xrefs:
// > std::__ndk1::vector>::assign @ 0xd07808
// > std::__ndk1::vector>::assign @ 0xd07948
//
// 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 13:06:55 +0000
//
cocos2d::CCPoint *__fastcall sub_D041EC(cocos2d::CCPoint *result, __int64 a2, __int64 a3)
{
__int64 v4; // x20
cocos2d::CCPoint *v5; // x21
__int64 v6; // x19
v4 = a2;
v5 = result;
if ( a3 != a2 )
{
v6 = *((_QWORD *)result + 1);
do
{
result = (cocos2d::CCPoint *)(v6 + 28);
if ( v6 )
{
*(_DWORD *)v6 = *(_DWORD *)v4;
*(_DWORD *)(v6 + 4) = *(_DWORD *)(v4 + 4);
*(_DWORD *)(v6 + 8) = *(_DWORD *)(v4 + 8);
*(_DWORD *)(v6 + 12) = *(_DWORD *)(v4 + 12);
*(_DWORD *)(v6 + 16) = *(_DWORD *)(v4 + 16);
*(_DWORD *)(v6 + 20) = *(_DWORD *)(v4 + 20);
*(_BYTE *)(v6 + 24) = *(_BYTE *)(v4 + 24);
*(_BYTE *)(v6 + 25) = *(_BYTE *)(v4 + 25);
cocos2d::CCPoint::CCPoint(result, (const cocos2d::CCPoint *)(v4 + 28));
*(_BYTE *)(v6 + 36) = *(_BYTE *)(v4 + 36);
*(_BYTE *)(v6 + 37) = *(_BYTE *)(v4 + 37);
*(_BYTE *)(v6 + 38) = *(_BYTE *)(v4 + 38);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v6 + 40), (const cocos2d::CCPoint *)(v4 + 40));
*(_DWORD *)(v6 + 48) = *(_DWORD *)(v4 + 48);
*(_DWORD *)(v6 + 52) = *(_DWORD *)(v4 + 52);
*(_BYTE *)(v6 + 56) = *(_BYTE *)(v4 + 56);
result = (cocos2d::CCPoint *)*(unsigned __int8 *)(v4 + 57);
*(_BYTE *)(v6 + 57) = (_BYTE)result;
v6 = *((_QWORD *)v5 + 1);
}
v4 += 60;
v6 += 60;
*((_QWORD *)v5 + 1) = v6;
}
while ( v4 != a3 );
}
return result;
}