//
// HardStreak::create from 0x1403bf9a0 to 0x1403bfa65 (197 bytes)
//
// 3 xrefs:
// > PlayerObject::setupStreak @ 0x1404e6db7
// > PlayerObject::createFadeOutDartStreak @ 0x1404f69c2
// > ??> @ 0x140923fd8
//
// 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
char *HardStreak::create()
{
char *v0; // rbx
__int64 (__fastcall *v1)(char *); // rdx
char v2; // al
v0 = (char *)operator new(0x1C0u);
cocos2d::CCDrawNode::CCDrawNode((cocos2d::CCDrawNode *)v0);
*(_QWORD *)v0 = &HardStreak::`vftable';
*((_QWORD *)v0 + 40) = &HardStreak::`vftable';
*((_QWORD *)v0 + 52) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 424));
*((_DWORD *)v0 + 108) = 1065353216;
*((_DWORD *)v0 + 109) = 1065353216;
*((_WORD *)v0 + 220) = 0;
v0[442] = 0;
v1 = *(__int64 (__fastcall **)(char *))(*(_QWORD *)v0 + 72LL);
if ( (char *)v1 == (char *)HardStreak::init )
v2 = HardStreak::init(v0);
else
v2 = v1(v0);
if ( v2 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return v0;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
return nullptr;
}
}