//
// HardStreak::createDuplicate from 0x56a2fc to 0x56a3d8 (220 bytes)
//
// 1 xrefs:
// > PlayerObject::createFadeOutDartStreak @ 0x435e6c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:30 +0000
//
int *__fastcall HardStreak::createDuplicate(HardStreak *this, int a2, int a3, int a4)
{
int *v5; // r4
void (__fastcall *v6)(int *, int); // r7
int v7; // r0
void (__fastcall *v8)(int *, int); // r7
int v9; // r0
int v10; // r3
_DWORD *v12; // r3
int *v13; // r7
int *v14; // r5
int v15; // r1
int v16; // t1
_DWORD v17[3]; // [sp+4h] [bp-Ch] BYREF
v17[0] = a2;
v17[1] = a3;
v17[2] = a4;
v5 = HardStreak::create(this);
cocos2d::CCDrawNode::getBlendFunc((cocos2d::CCDrawNode *)v17);
cocos2d::CCDrawNode::setBlendFunc(v5, v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (HardStreak *)((char *)this + 348));
cocos2d::CCPoint::operator=(v5 + 87, v17);
v5[89] = *((_DWORD *)this + 89);
v5[90] = *((_DWORD *)this + 90);
*((_BYTE *)v5 + 364) = *((_BYTE *)this + 364);
*((_BYTE *)v5 + 365) = *((_BYTE *)this + 365);
v6 = *(void (__fastcall **)(int *, int))(*v5 + 456);
v7 = (*(int (__fastcall **)(HardStreak *))(*(_DWORD *)this + 448))(this);
v6(v5, v7);
v8 = *(void (__fastcall **)(int *, int))(*v5 + 480);
v9 = (*(int (__fastcall **)(HardStreak *))(*(_DWORD *)this + 472))(this);
v8(v5, v9);
v10 = *((_DWORD *)this + 86);
if ( v10 )
{
v12 = *(_DWORD **)(v10 + 52);
if ( *v12 )
{
v13 = (int *)v12[3];
v14 = &v13[*v12 - 1];
while ( v13 <= v14 )
{
v16 = *v13++;
v15 = v16;
if ( !v16 )
break;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, (const cocos2d::CCPoint *)(v15 + 52));
HardStreak::addPoint((int)v5, (const cocos2d::CCPoint *)v17);
}
}
}
return v5;
}