//
// sub_100066CFC from 0x100066cfc to 0x100066e08 (268 bytes)
//
// 1 xrefs:
// > PlayerObject::createFadeOutDartStreak @ 0x1002c5c2c
//
// 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 10:57:56 +0000
//
_QWORD *__fastcall sub_100066CFC(__int64 a1)
{
_QWORD *v2; // x19
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x8
unsigned int *v6; // x9
__int64 v7; // x8
unsigned __int64 v8; // x20
unsigned __int64 v9; // x21
__int64 BlendFunc; // [xsp+8h] [xbp-28h] BYREF
v2 = HardStreak::create();
BlendFunc = cocos2d::CCDrawNode::getBlendFunc(a1);
cocos2d::CCDrawNode::setBlendFunc((__int64)v2, &BlendFunc);
sub_1000262F4(&BlendFunc, (double *)(a1 + 424));
sub_10002630C(v2 + 53, (double *)&BlendFunc);
v2[54] = *(_QWORD *)(a1 + 432);
*((_WORD *)v2 + 220) = *(_WORD *)(a1 + 440);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 896LL))(a1);
(*(void (__fastcall **)(_QWORD *, __int64))(*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);
v7 = *v6;
if ( (_DWORD)v7 )
{
v8 = *((_QWORD *)v6 + 2);
v9 = v8 + 8 * v7 - 8;
do
{
if ( !*(_QWORD *)v8 )
break;
sub_1000262F4(&BlendFunc, (double *)(*(_QWORD *)v8 + 56LL));
HardStreak::addPoint((__int64)v2, (double *)&BlendFunc);
v8 += 8LL;
}
while ( v8 <= v9 );
}
}
return v2;
}