//
// HardStreak::init from 0x1402b8e00 to 0x1402b8ea7 (167 bytes)
//
// 4 xrefs:
// > HardStreak::create @ 0x1402b8dcc
// > HardStreak::create @ 0x1402b8dbd
// > ??> @ 0x140580158
// > ??> @ 0x1406d2690
//
// 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
//
bool HardStreak::init(HardStreak *a1)
{
bool result; // al
__int64 v3; // rcx
cocos2d::CCArray *v4; // rax
double v5; // xmm0_8
cocos2d::CCPoint v6; // rax
__int64 v7; // rax
cocos2d::CCPoint v8; // [rsp+38h] [rbp+10h] BYREF
result = cocos2d::CCDrawNode::init(a1);
if ( result )
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3);
a1->m_pointArray = v4;
cocos2d::CCObject::retain(v4);
v5 = cocos2d::CCPoint::CCPoint(&v8);
HardStreak::addPoint(a1, v6);
cocos2d::CCPoint::CCPoint(*(float *)&v5, 10.0);
cocos2d::CCPoint::operator=(&a1->m_currentPoint, v7);
HardStreak::updateStroke(a1, 0.0);
a1->visit(a1);
cocos2d::CCDrawNode::clear(a1);
cocos2d::CCArray::removeAllObjects(a1->m_pointArray);
return 1;
}
return result;
}