//
// NodePoint::create from 0x667420 to 0x667544 (292 bytes)
//
// 1 xrefs:
// > ??> @ 0xbeec0
//
// 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
//
NodePoint *NodePoint::create(cocos2d::CCPoint a1)
{
const cocos2d::CCPoint *v1; // x0
const cocos2d::CCPoint *v2; // x22
__int64 v3; // x0
NodePoint *v4; // x19
NodePoint_vtbl *v5; // x1
NodePoint *v6; // x0
cocos2d::CCPoint v8; // [xsp+30h] [xbp+30h] BYREF
cocos2d::CCPoint v9; // 0:s0.4,4:s1.4
v2 = v1;
v3 = operator new(0x40u);
*(_QWORD *)v3 = 0;
*(_DWORD *)(v3 + 8) = 0;
*(_DWORD *)(v3 + 12) = 0;
v4 = (NodePoint *)v3;
*(_DWORD *)(v3 + 16) = 0;
*(_DWORD *)(v3 + 20) = 0;
*(_DWORD *)(v3 + 24) = 0;
*(_DWORD *)(v3 + 28) = 0;
*(_DWORD *)(v3 + 32) = 0;
*(_DWORD *)(v3 + 36) = 0;
*(_DWORD *)(v3 + 40) = 0;
*(_DWORD *)(v3 + 44) = 0;
*(_DWORD *)(v3 + 48) = 0;
*(_DWORD *)(v3 + 52) = 0;
*(_DWORD *)(v3 + 56) = 0;
*(_DWORD *)(v3 + 60) = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v3);
v4->__vftable = (NodePoint_vtbl *)&off_1154D30;
cocos2d::CCPoint::CCPoint(&v4->m_point);
cocos2d::CCPoint::CCPoint(&v8, v2);
if ( NodePoint::init(v4, v9) )
{
cocos2d::CCObject::autorelease(v4);
}
else
{
v5 = v4->__vftable;
v6 = v4;
v4 = nullptr;
v5->~NodePoint_0(v6);
}
return v4;
}