//
// HardStreak::addPoint from 0x958b30 to 0x958c18 (232 bytes)
//
// 4 xrefs:
// > PlayerObject::placeStreakPoint @ 0x7543c0
// > HardStreak::createDuplicate @ 0x958d34
// > HardStreak::firstSetup @ 0x95998c
// > ??> @ 0xcb308
//
// 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 12:57:26 +0000
//
__int64 __fastcall HardStreak::addPoint(__int64 a1, const cocos2d::CCPoint *a2)
{
cocos2d::CCArray *v4; // x20
cocos2d::CCObject *v5; // x0
__int64 Object; // x0
long double v8; // q0
_BYTE v9[8]; // [xsp+40h] [xbp+40h] BYREF
_BYTE v10[8]; // [xsp+48h] [xbp+48h] BYREF
__int64 v11; // [xsp+50h] [xbp+50h] BYREF
if ( !(unsigned int)cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 416))
|| (Object = cocos2d::CCArray::lastObject(*(cocos2d::CCArray **)(a1 + 416)),
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (const cocos2d::CCPoint *)(Object + 56)),
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, a2),
cocos2d::CCPoint::operator-(&v11, v9, v10, v8),
(float)((float)(*((float *)&v11 + 1) * *((float *)&v11 + 1)) + (float)(*(float *)&v11 * *(float *)&v11)) >= 0.01) )
{
v4 = *(cocos2d::CCArray **)(a1 + 416);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v11, a2);
v5 = (cocos2d::CCObject *)PointNode::create((const cocos2d::CCPoint *)&v11);
cocos2d::CCArray::addObject(v4, v5);
}
return _stack_chk_guard;
}