//
// cocos2d::CCSpawn::create from 0xac41bc to 0xac4274 (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x8f550
//
// 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 *cocos2d::CCSpawn::create(cocos2d::CCArray *a1)
{
unsigned int v2; // w19
cocos2d::ExtraAction *v3; // x0
cocos2d::CCSpawn *v4; // x21
unsigned int v5; // w19
cocos2d::CCFiniteTimeAction *v6; // x0
bool v7; // cf
unsigned int v8; // w1
cocos2d::CCFiniteTimeAction *v10; // x0
v2 = cocos2d::CCArray::count(a1);
if ( !v2 )
return nullptr;
v3 = (cocos2d::ExtraAction *)cocos2d::CCArray::objectAtIndex(a1, 0);
v4 = (cocos2d::CCSpawn *)v3;
if ( v2 <= 1 )
{
v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::ExtraAction::create(v3);
return cocos2d::CCSpawn::createWithTwoActions(v4, v10);
}
else
{
v5 = 1;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1);
v8 = v5++;
if ( v7 )
break;
v6 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCArray::objectAtIndex(a1, v8);
v4 = cocos2d::CCSpawn::createWithTwoActions(v4, v6);
}
return v4;
}
}