//
// std::__uninitialized_copy::__uninit_copy from 0x377ca0 to 0x377d5e (190 bytes)
//
// 1 xrefs:
// > std::vector>::_M_emplace_back_aux @ 0x377de6
//
// 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
//
char *__fastcall std::__uninitialized_copy::__uninit_copy(
int a1,
const cocos2d::CCPoint *a2,
int a3)
{
cocos2d::CCPoint *v3; // r4
const cocos2d::CCPoint *i; // r5
float y; // r3
float x; // r6
signed int v8; // r6
unsigned int v9; // r3
float v10; // r1
size_t v11; // r6
v3 = (cocos2d::CCPoint *)(a3 + 12);
for ( i = (const cocos2d::CCPoint *)(a1 + 12);
a2 != (const cocos2d::CCPoint *)&i[-2].y;
i = (const cocos2d::CCPoint *)((char *)i + 20) )
{
if ( v3 != (cocos2d::CCPoint *)&byte_9[3] )
{
y = i[-2].y;
x = i[-1].x;
v3[-2].y = 0.0;
v8 = LODWORD(x) - LODWORD(y);
v3[-1].x = 0.0;
v3[-1].y = 0.0;
v9 = v8 >> 3;
if ( v8 >> 3 )
{
if ( v9 >= 0x20000000 )
sub_772FB4(a1);
v9 = operator new(v8);
}
LODWORD(v3[-2].y) = v9;
LODWORD(v3[-1].x) = v9;
LODWORD(v3[-1].y) = v8 + v9;
v10 = i[-2].y;
v11 = LODWORD(i[-1].x) - LODWORD(v10);
if ( v11 >> 3 )
v9 = (unsigned int)memmove((void *)v9, (const void *)LODWORD(v10), v11);
LODWORD(v3[-1].x) = v11 + v9;
a1 = cocos2d::CCPoint::CCPoint(v3, i);
}
v3 = (cocos2d::CCPoint *)((char *)v3 + 20);
}
return (char *)&v3[-2].y;
}