//
// cocos2d::CCSpawn::create from 0x1003b6ef0 to 0x1003b7092 (418 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
cocos2d::CCSpawn *__fastcall cocos2d::CCSpawn::create(cocos2d::CCArray *a1)
{
int v1; // eax
int v2; // ebx
cocos2d::CCSpawn *v3; // r14
cocos2d::CCFiniteTimeAction *v4; // rbx
_OWORD *v5; // r15
_OWORD *v6; // rbx
unsigned int v7; // r12d
cocos2d::CCFiniteTimeAction *v8; // r13
v1 = sub_100720070(a1);
if ( !v1 )
return nullptr;
v2 = v1;
v3 = (cocos2d::CCSpawn *)sub_1007200C0(a1, 0);
if ( v2 == 1 )
{
v4 = (cocos2d::CCFiniteTimeAction *)operator new(0x58u);
*(_OWORD *)&v4->__vftable = 0;
*(_OWORD *)&v4->cocos2d::CCAction::cocos2d::CCObject::m_nTag = 0;
*(_OWORD *)&v4->m_uIndexInArray = 0;
*(_OWORD *)&v4->m_uOrderOfArrival = 0;
*(_OWORD *)&v4->m_pTarget = 0;
*(_QWORD *)&v4->m_fDuration = 0;
cocos2d::CCAction::CCAction(v4);
v4->m_fDuration = 0.0;
v4->__vftable = (cocos2d::CCFiniteTimeAction_vtbl *)off_100929D90;
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_100929A28;
cocos2d::CCSpawn::initWithTwoActions((cocos2d::CCSpawn *)v5, v3, v4);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);
return (cocos2d::CCSpawn *)v5;
}
else if ( (unsigned int)sub_100720070(a1) < 2 )
{
return v3;
}
else
{
v7 = 1;
do
{
v8 = (cocos2d::CCFiniteTimeAction *)sub_1007200C0(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_100929A28;
cocos2d::CCSpawn::initWithTwoActions((cocos2d::CCSpawn *)v6, v3, v8);
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
++v7;
v3 = (cocos2d::CCSpawn *)v6;
}
while ( v7 < (unsigned int)sub_100720070(a1) );
}
return (cocos2d::CCSpawn *)v6;
}