//
// PointNode::create from 0x456a48 to 0x456ad0 (136 bytes)
//
// 1 xrefs:
// > HardStreak::addPoint @ 0x456af2
//
// 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
//
PointNode *PointNode::create(cocos2d::CCPoint a1)
{
float x; // r7
PointNode *v2; // r4
cocos2d::CCPoint v3; // r1
PointNode_vtbl *v4; // r3
PointNode *v5; // r0
cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF
x = a1.x;
v2 = (PointNode *)operator new(0x3Cu);
memset(v2, 0, sizeof(PointNode));
cocos2d::CCObject::CCObject(v2);
v2->__vftable = (PointNode_vtbl *)&off_A65970;
cocos2d::CCPoint::CCPoint(&v2->m_point);
cocos2d::CCPoint::CCPoint(&v7, (const cocos2d::CCPoint *)LODWORD(x));
LODWORD(v3.x) = &v7;
if ( PointNode::init(v2, v3) )
{
cocos2d::CCObject::autorelease(v2);
}
else
{
v4 = v2->__vftable;
v5 = v2;
v2 = nullptr;
v4->~PointNode_0(v5);
}
return v2;
}