//
// cocos2d::CCSpawn::create from 0x1003a02f0 to 0x1003a0492 (418 bytes)
//
// 0 xrefs:
//
// 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:29:19 +0000
//
_OWORD *__fastcall cocos2d::CCSpawn::create(__int64 a1)
{
int v1; // eax
int v2; // ebx
__int64 v3; // r14
_OWORD *v4; // rbx
_OWORD *v5; // r15
_OWORD *v6; // rbx
unsigned int v7; // r12d
__int64 v8; // r13
v1 = sub_1007FEF90(a1);
if ( !v1 )
return nullptr;
v2 = v1;
v3 = sub_1007FEFE0(a1, 0);
if ( v2 == 1 )
{
v4 = operator new(0x58u);
*v4 = 0;
v4[1] = 0;
v4[2] = 0;
v4[3] = 0;
v4[4] = 0;
*((_QWORD *)v4 + 10) = 0;
cocos2d::CCAction::CCAction(v4);
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = off_100B32548;
cocos2d::CCObject::autorelease(v4);
v5 = operator new(0x70u);
*v5 = 0;
v5[1] = 0;
v5[2] = 0;
v5[3] = 0;
v5[4] = 0;
v5[5] = 0;
v5[6] = 0;
cocos2d::CCAction::CCAction(v5);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = off_100B321E0;
cocos2d::CCSpawn::initWithTwoActions(v5, v3, v4);
cocos2d::CCObject::autorelease(v5);
return v5;
}
else if ( (unsigned int)sub_1007FEF90(a1) < 2 )
{
return (_OWORD *)v3;
}
else
{
v7 = 1;
do
{
v8 = sub_1007FEFE0(a1, v7);
v6 = operator new(0x70u);
*v6 = 0;
v6[1] = 0;
v6[2] = 0;
v6[3] = 0;
v6[4] = 0;
v6[5] = 0;
v6[6] = 0;
cocos2d::CCAction::CCAction(v6);
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = off_100B321E0;
cocos2d::CCSpawn::initWithTwoActions(v6, v3, v8);
cocos2d::CCObject::autorelease(v6);
++v7;
v3 = (__int64)v6;
}
while ( v7 < (unsigned int)sub_1007FEF90(a1) );
}
return v6;
}