//
// PlayerObject::createFadeOutDartStreak from 0x1404f69a0 to 0x1404f6ba8 (520 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::toggleDualMode @ 0x14031e0f7
// > PlayerObject::doReversePlayer @ 0x1404f68a3
// > PlayerObject::rotateGameplay @ 0x1404f80a4
// > ??> @ 0x14092a218
//
// 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:33:20 +0000
//
struct cocos2d::CCAction *__fastcall PlayerObject::createFadeOutDartStreak(__int64 a1)
{
__int64 v1; // rbp
char *v3; // r14
const struct cocos2d::_ccBlendFunc *BlendFunc; // rax
__int64 v5; // rbx
unsigned __int8 v6; // al
void (__fastcall **v7)(__int64, __int64); // rbx
__int64 v8; // rax
__int64 v9; // rbx
unsigned int *v10; // rbx
__int64 v11; // rax
unsigned __int64 v12; // rbx
unsigned __int64 i; // rdi
__int64 *v14; // rdi
__int64 v15; // rbx
unsigned int v16; // eax
__int64 v17; // rbx
__int64 v18; // rax
struct cocos2d::CCFiniteTimeAction *v19; // rbx
__int64 v20; // rax
struct cocos2d::CCAction *v21; // rax
char v23; // [rsp+40h] [rbp+8h] BYREF
v1 = *(_QWORD *)(a1 + 1976);
v3 = HardStreak::create();
BlendFunc = (const struct cocos2d::_ccBlendFunc *)cocos2d::CCDrawNode::getBlendFunc(v1, &v23);
cocos2d::CCDrawNode::setBlendFunc((cocos2d::CCDrawNode *)v3, BlendFunc);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, (const struct cocos2d::CCPoint *)(v1 + 424));
cocos2d::CCPoint::operator=(v3 + 424, &v23);
v5 = *((_QWORD *)v3 + 40);
*((_DWORD *)v3 + 108) = *(_DWORD *)(v1 + 432);
*((_DWORD *)v3 + 109) = *(_DWORD *)(v1 + 436);
v3[440] = *(_BYTE *)(v1 + 440);
v3[441] = *(_BYTE *)(v1 + 441);
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v1 + 320) + 32LL))(v1 + 320);
(*(void (__fastcall **)(char *, _QWORD))(v5 + 40))(v3 + 320, v6);
v7 = *((void (__fastcall ***)(__int64, __int64))v3 + 40);
v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v1 + 320) + 8LL))(v1 + 320);
(*v7)((__int64)(v3 + 320), v8);
v9 = *(_QWORD *)(v1 + 416);
if ( v9 )
{
v10 = *(unsigned int **)(v9 + 56);
v11 = *v10;
if ( (_DWORD)v11 )
{
v12 = *((_QWORD *)v10 + 2);
for ( i = v12 + 8 * (v11 - 1); v12 <= i; v12 += 8LL )
{
if ( !*(_QWORD *)v12 )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v23, (const struct cocos2d::CCPoint *)(*(_QWORD *)v12 + 56LL));
HardStreak::addPoint((__int64)v3, (const struct cocos2d::CCPoint *)&v23);
}
}
}
v14 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1976) + 504LL))(*(_QWORD *)(a1 + 1976));
v15 = *v14;
v16 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1976) + 96LL))(*(_QWORD *)(a1 + 1976));
(*(void (__fastcall **)(__int64 *, char *, _QWORD))(v15 + 456))(v14, v3, v16);
v17 = *(_QWORD *)v3;
v18 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1976) + 200LL))(*(_QWORD *)(a1 + 1976));
(*(void (__fastcall **)(char *, __int64))(v17 + 184))(v3, v18);
v3[442] = 1;
HardStreak::updateStroke((__int64)v3);
cocos2d::CCNode::schedule(v3, HardStreak::updateStroke);
v19 = cocos2d::CCFadeTo::create(0.5, 0);
v20 = cocos2d::CCCallFunc::create(v3, sub_14003F5B0);
v21 = cocos2d::CCSequence::create(v19, v20, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)v3, v21);
}