//
// cocos2d::CCSpawn::createWithVariableList from 0x180035080 to 0x1800350ec (108 bytes)
//
// 4 xrefs:
// > ??> @ 0x180135798
// > ??> @ 0x1801357a8
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b06fc
//
// 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
//
struct cocos2d::CCSpawn *__fastcall cocos2d::CCSpawn::createWithVariableList(struct cocos2d::CCSpawn *a1, char *a2)
{
struct cocos2d::CCSpawn *v2; // rdi
char v3; // al
char *v4; // rbx
struct cocos2d::CCFiniteTimeAction *v5; // rdx
struct cocos2d::CCFiniteTimeAction *v6; // rax
v2 = a1;
v3 = 1;
if ( !a1 )
return nullptr;
v4 = a2 - 8;
while ( 1 )
{
v5 = *((struct cocos2d::CCFiniteTimeAction **)v4 + 1);
v4 += 8;
if ( !v5 )
break;
v2 = cocos2d::CCSpawn::createWithTwoActions(v2, v5);
v3 = 0;
}
if ( !v3 )
return v2;
v6 = (struct cocos2d::CCFiniteTimeAction *)sub_180034E40();
return cocos2d::CCSpawn::createWithTwoActions(v2, v6);
}