//
// HardStreak::create from 0x569d38 to 0x569db6 (126 bytes)
//
// 2 xrefs:
// > PlayerObject::setupStreak @ 0x44705c
// > HardStreak::createDuplicate @ 0x56a314
//
// 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::create(HardStreak *this)
{
int *v1; // r4
int v2; // r3
int v3; // r3
int *v4; // r0
v1 = (int *)operator new(0x170u);
cocos2d::CCDrawNode::CCDrawNode((cocos2d::CCDrawNode *)v1);
v1[86] = 0;
*v1 = (int)&off_CB0A78;
v1[66] = (int)&off_CB0C78;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 87));
v1[89] = 1065353216;
v1[90] = 1065353216;
v2 = *v1;
*((_BYTE *)v1 + 364) = 0;
*((_BYTE *)v1 + 365) = 0;
*((_BYTE *)v1 + 366) = 0;
if ( (*(int (__fastcall **)(int *))(v2 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v3 = *v1;
v4 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v3 + 8))(v4);
}
return v1;
}