//
// HardStreak::addPoint from 0x1403c0710 to 0x1403c082b (283 bytes)
//
// 4 xrefs:
// > HardStreak::init @ 0x1403bfab7
// > PlayerObject::createFadeOutDartStreak @ 0x1404f6acf
// > PlayerObject::placeStreakPoint @ 0x1404fec6d
// > ??> @ 0x140924014
//
// This function is hookable on this platform (idp: pc, 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 11:31:28 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall HardStreak::addPoint(__int64 a1, const struct cocos2d::CCPoint *a2)
{
struct cocos2d::CCObject *Object; // rax
__int64 v5; // rax
float *v6; // rax
const struct cocos2d::CCPoint *v7; // rax
const struct cocos2d::CCPoint *v8; // rdi
_OWORD *v9; // rsi
__int64 v10; // rax
char v11; // [rsp+40h] [rbp+8h] BYREF
_OWORD *v12; // [rsp+50h] [rbp+18h] BYREF
char v13; // [rsp+58h] [rbp+20h] BYREF
if ( !cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 416))
|| (Object = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 416)),
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, (struct cocos2d::CCObject *)((char *)Object + 56)),
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a2),
cocos2d::CCPoint::operator-(&v11, &v13, v5),
(float)((float)(*v6 * *v6) + (float)(v6[1] * v6[1])) >= 0.0099999998) )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, a2);
v8 = v7;
v9 = operator new(0x40u);
v12 = v9;
*v9 = 0;
v9[1] = 0;
v9[2] = 0;
v9[3] = 0;
cocos2d::CCObject::CCObject((cocos2d::CCObject *)v9);
*(_QWORD *)v9 = &PointNode::`vftable';
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)v9 + 56));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v8);
cocos2d::CCPoint::operator=((char *)v9 + 56, v10);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(a1 + 416), (struct cocos2d::CCObject *)v9);
}
}