//
// cocos2d::CCSpawn::createWithVariableList from 0x5b8da4 to 0x5b8dd8 (52 bytes)
//
// 1 xrefs:
// > cocos2d::CCSpawn::create @ 0x5b8dee
//
// 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::createWithVariableList(cocos2d::CCFiniteTimeAction *a1, va_list a2)
{
char *v2; // r6
cocos2d::CCFiniteTimeAction *v3; // r5
cocos2d::CCSpawn *v4; // r4
int v5; // r3
cocos2d::CCFiniteTimeAction *v6; // r1
cocos2d::CCFiniteTimeAction *v7; // t1
cocos2d::CCFiniteTimeAction *v8; // r1
v2 = (char *)a2 - 4;
v3 = a1;
v4 = (cocos2d::CCSpawn *)a1;
v5 = 1;
while ( v3 )
{
v7 = *((cocos2d::CCFiniteTimeAction **)v2 + 1);
v2 += 4;
v6 = v7;
if ( !v7 )
{
if ( v5 )
{
v8 = (cocos2d::CCFiniteTimeAction *)cocos2d::ExtraAction::create((cocos2d::ExtraAction *)a1);
return cocos2d::CCSpawn::createWithTwoActions(v4, v8);
}
return v4;
}
a1 = cocos2d::CCSpawn::createWithTwoActions(v4, v6);
v5 = 0;
v4 = (cocos2d::CCSpawn *)a1;
}
return v4;
}