//
// HardStreak::createDuplicate from 0x958c1c to 0x958d70 (340 bytes)
//
// 2 xrefs:
// > PlayerObject::createFadeOutDartStreak @ 0x74fc8c
// > ??> @ 0xe2e10
//
// 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::createDuplicate(HardStreak *this)
{
__int64 v2; // x20
long double v3; // q0
__int64 v4; // x2
void (__fastcall *v5)(__int64, _QWORD); // x22
unsigned int v6; // w0
void (__fastcall *v7)(__int64, __int64); // x22
__int64 v8; // x0
__int64 v9; // x0
unsigned int *v10; // x0
_QWORD *v11; // x19
_QWORD *v12; // x22
const cocos2d::CCPoint *v13; // x1
__int64 BlendFunc; // [xsp+40h] [xbp+40h] BYREF
v2 = HardStreak::create(_stack_chk_guard);
BlendFunc = cocos2d::CCDrawNode::getBlendFunc(this);
cocos2d::CCDrawNode::setBlendFunc(v2, &BlendFunc);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&BlendFunc, (HardStreak *)((char *)this + 424));
*(__n128 *)&v3 = cocos2d::CCPoint::operator=(v2 + 424, &BlendFunc);
v4 = *(_QWORD *)v2;
*(_DWORD *)(v2 + 432) = *((_DWORD *)this + 108);
*(_DWORD *)(v2 + 436) = *((_DWORD *)this + 109);
*(_BYTE *)(v2 + 440) = *((_BYTE *)this + 440);
*(_BYTE *)(v2 + 441) = *((_BYTE *)this + 441);
v5 = *(void (__fastcall **)(__int64, _QWORD))(v4 + 912);
v6 = (*(__int64 (__fastcall **)(HardStreak *, long double))(*(_QWORD *)this + 896LL))(this, v3);
v5(v2, v6);
v7 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 960LL);
v8 = (*(__int64 (__fastcall **)(HardStreak *))(*(_QWORD *)this + 944LL))(this);
v7(v2, v8);
v9 = *((_QWORD *)this + 52);
if ( v9 )
{
v10 = *(unsigned int **)(v9 + 56);
if ( *v10 )
{
v11 = *((_QWORD **)v10 + 2);
v12 = &v11[*v10 - 1];
while ( v12 >= v11 )
{
if ( !*v11 )
break;
v13 = (const cocos2d::CCPoint *)(*v11++ + 56LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&BlendFunc, v13);
HardStreak::addPoint(v2, (const cocos2d::CCPoint *)&BlendFunc);
}
}
}
return v2;
}