//
// HardStreak::createDuplicate from 0x100065360 to 0x100065478 (280 bytes)
//
// 1 xrefs:
// > PlayerObject::createFadeOutDartStreak @ 0x100402894
//
// 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 12:19:43 +0000
//
_QWORD *__fastcall HardStreak::createDuplicate(__int64 a1)
{
_QWORD *v2; // rbx
unsigned __int8 v3; // al
__int64 v4; // rax
__int64 v5; // rax
unsigned int *v6; // rax
_QWORD *v7; // r15
unsigned __int64 v8; // r12
_QWORD v10[5]; // [rsp+8h] [rbp-28h] BYREF
v2 = HardStreak::create();
v10[0] = cocos2d::CCDrawNode::getBlendFunc(a1);
cocos2d::CCDrawNode::setBlendFunc(v2, v10);
sub_1002782D0(v10, a1 + 424);
sub_100278300(v2 + 53, v10);
v2[54] = *(_QWORD *)(a1 + 432);
*((_BYTE *)v2 + 440) = *(_BYTE *)(a1 + 440);
*((_BYTE *)v2 + 441) = *(_BYTE *)(a1 + 441);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 912LL))(v2, v3);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 944LL))(a1);
(*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 960LL))(v2, v4);
v5 = *(_QWORD *)(a1 + 416);
if ( v5 )
{
v6 = *(unsigned int **)(v5 + 56);
if ( *v6 )
{
v7 = *((_QWORD **)v6 + 2);
v8 = (unsigned __int64)&v7[*v6 - 1];
do
{
if ( !*v7 )
break;
sub_1002782D0(v10, *v7 + 56LL);
HardStreak::addPoint((__int64)v2, (__int64)v10);
++v7;
}
while ( (unsigned __int64)v7 <= v8 );
}
}
return v2;
}