//
// HardStreak::create from 0x958428 to 0x9584f8 (208 bytes)
//
// 3 xrefs:
// > PlayerObject::setupStreak @ 0x766dac
// > HardStreak::createDuplicate @ 0x958c48
// > ??> @ 0x77c20
//
// 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::create(HardStreak *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x1C0u);
cocos2d::CCDrawNode::CCDrawNode((cocos2d::CCDrawNode *)v1);
*(_QWORD *)(v1 + 416) = 0;
*(_QWORD *)v1 = &off_146DCB0;
*(_QWORD *)(v1 + 320) = &off_146E0B0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 424));
v2 = *(_QWORD *)v1;
*(_BYTE *)(v1 + 440) = 0;
*(_BYTE *)(v1 + 441) = 0;
*(_BYTE *)(v1 + 442) = 0;
*(float *)(v1 + 432) = 1.0;
*(float *)(v1 + 436) = 1.0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v2 + 80))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}