//
// cocos2d::CCSequence::createWithVariableList from 0xac1644 to 0xac1718 (212 bytes)
//
// 2 xrefs:
// > cocos2d::CCSequence::create @ 0xac17ac
// > ??> @ 0xbdc60
//
// 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::CCSequence *cocos2d::CCSequence::createWithVariableList(cocos2d::CCFiniteTimeAction *a1, va_list a2)
{
cocos2d::CCSequence *v3; // x21
cocos2d::CCFiniteTimeAction **v4; // x1
int v5; // w20
int v6; // w3
unsigned __int64 v7; // x19
cocos2d::CCSequence *result; // x0
cocos2d::CCFiniteTimeAction *v9; // x1
cocos2d::CCFiniteTimeAction **v10; // x0
cocos2d::CCFiniteTimeAction *v11; // x2
cocos2d::CCFiniteTimeAction *v12; // x0
v3 = (cocos2d::CCSequence *)a1;
v4 = *(cocos2d::CCFiniteTimeAction ***)a2;
v5 = *((_DWORD *)a2 + 6);
if ( !a1 )
return nullptr;
v6 = 1;
while ( (v5 & 0x80000000) == 0 )
{
v7 = ((unsigned __int64)v4 + 15) & 0xFFFFFFFFFFFFFFF8LL;
result = v3;
v9 = *v4;
if ( !v9 )
goto LABEL_9;
LABEL_5:
v3 = cocos2d::CCSequence::createWithTwoActions(result, v9);
v6 = 0;
v4 = (cocos2d::CCFiniteTimeAction **)v7;
}
v7 = ((unsigned __int64)v4 + 15) & 0xFFFFFFFFFFFFFFF8LL;
v10 = v4;
if ( v5 + 8 <= 0 )
{
v7 = (unsigned __int64)v4;
v10 = (cocos2d::CCFiniteTimeAction **)(*((_QWORD *)a2 + 1) + v5);
}
v5 += 8;
v11 = *v10;
result = v3;
v9 = v11;
if ( v11 )
goto LABEL_5;
LABEL_9:
if ( v6 )
{
v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::ExtraAction::create((cocos2d::ExtraAction *)result);
return cocos2d::CCSequence::createWithTwoActions(v3, v12);
}
return result;
}