//
// cocos2d::CCSequence::createWithVariableList from 0x10021d448 to 0x10021d4c8 (128 bytes)
//
// 1 xrefs:
// > sub_10021D420 @ 0x10021d438
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:01:06 +0000
//
_OWORD *__fastcall cocos2d::CCSequence::createWithVariableList(_OWORD *a1, __int64 *a2)
{
_OWORD *v2; // x19
__int64 v3; // x20
__int64 v4; // x1
__int64 *v5; // x8
_OWORD *v6; // x0
__int64 *v8; // [xsp+8h] [xbp-18h]
v2 = a1;
if ( a1 )
{
v8 = a2 + 1;
v3 = *a2;
if ( *a2 )
{
v4 = *a2;
do
{
v2 = cocos2d::CCSequence::createWithTwoActions((__int64)v2, v4);
v5 = v8++;
v4 = *v5;
}
while ( *v5 );
}
if ( !v3 )
{
v6 = sub_10021D098();
return cocos2d::CCSequence::createWithTwoActions((__int64)v2, (__int64)v6);
}
}
return v2;
}