//
// cocos2d::CCSequence::createWithVariableList from 0x10039ec10 to 0x10039eea7 (663 bytes)
//
// 1 xrefs:
// > sub_10039EB60 @ 0x10039ebeb
//
// This function is hookable on this platform (idp: pc, 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 12:29:19 +0000
//
_OWORD *__fastcall cocos2d::CCSequence::createWithVariableList(__int64 a1, unsigned int *a2)
{
_OWORD *v2; // rbx
unsigned __int64 v3; // rcx
__int64 *v4; // rax
__int64 v5; // r12
_OWORD *v6; // r14
_OWORD *v7; // rdi
__m128 v8; // xmm0
__m128 v9; // rt1
__m128 v10; // xmm1
unsigned __int64 v11; // rcx
__int64 *v12; // rax
__int64 *v13; // rax
_OWORD *v14; // r15
__int64 *v15; // rax
_OWORD *v16; // r14
__m128 v17; // xmm0
__m128 v18; // xmm1
if ( !a1 )
return nullptr;
v2 = (_OWORD *)a1;
v3 = *a2;
if ( v3 < 0x29 )
{
v4 = (__int64 *)(*((_QWORD *)a2 + 2) + v3);
*a2 = v3 + 8;
v5 = *v4;
if ( *v4 )
goto LABEL_4;
goto LABEL_12;
}
v15 = *((__int64 **)a2 + 1);
*((_QWORD *)a2 + 1) = v15 + 1;
v5 = *v15;
if ( !*v15 )
{
LABEL_12:
v16 = operator new(0x58u);
*v16 = 0;
v16[1] = 0;
v16[2] = 0;
v16[3] = 0;
v16[4] = 0;
*((_QWORD *)v16 + 10) = 0;
cocos2d::CCAction::CCAction(v16);
*((_DWORD *)v16 + 20) = 0;
*(_QWORD *)v16 = off_100B32548;
cocos2d::CCObject::autorelease(v16);
v14 = operator new(0x78u);
*v14 = 0;
v14[1] = 0;
v14[2] = 0;
v14[3] = 0;
v14[4] = 0;
v14[5] = 0;
v14[6] = 0;
*((_QWORD *)v14 + 14) = 0;
cocos2d::CCAction::CCAction(v14);
*(_QWORD *)v14 = off_100B32048;
v17 = (__m128)*(unsigned int *)(a1 + 80);
v17.f32[0] = v17.f32[0] + *((float *)v16 + 20);
v18 = _mm_cmpeq_ss((__m128)0LL, v17);
*((_QWORD *)v14 + 10) = v18.i32[0] & 0x34000000 | _mm_andnot_ps(v18, v17).u32[0];
*((_BYTE *)v14 + 88) = 1;
*((_QWORD *)v14 + 12) = a1;
cocos2d::CCObject::retain(a1);
*((_QWORD *)v14 + 13) = v16;
cocos2d::CCObject::retain(v16);
cocos2d::CCObject::autorelease(v14);
return v14;
}
do
{
LABEL_4:
while ( 1 )
{
v6 = operator new(0x78u);
*v6 = 0;
v6[1] = 0;
v6[2] = 0;
v6[3] = 0;
v6[4] = 0;
v6[5] = 0;
v6[6] = 0;
*((_QWORD *)v6 + 14) = 0;
cocos2d::CCAction::CCAction(v6);
v7 = v2;
v2 = v6;
*(_QWORD *)v6 = off_100B32048;
v8 = (__m128)*((unsigned int *)v7 + 20);
v8.f32[0] = v8.f32[0] + *(float *)(v5 + 80);
v9.i32[0] = 0;
v10 = _mm_cmpeq_ss(v8, v9);
*((_QWORD *)v6 + 10) = v10.i32[0] & 0x34000000 | COERCE_UNSIGNED_INT(_mm_andnot_ps(v10, v8).f32[0]);
*((_BYTE *)v6 + 88) = 1;
*((_QWORD *)v6 + 12) = v7;
cocos2d::CCObject::retain(v7);
*((_QWORD *)v6 + 13) = v5;
cocos2d::CCObject::retain(v5);
cocos2d::CCObject::autorelease(v6);
v11 = *a2;
if ( v11 > 0x28 )
break;
v12 = (__int64 *)(*((_QWORD *)a2 + 2) + v11);
*a2 = v11 + 8;
v5 = *v12;
if ( !*v12 )
return v6;
}
v13 = *((__int64 **)a2 + 1);
*((_QWORD *)a2 + 1) = v13 + 1;
v5 = *v13;
}
while ( *v13 );
return v6;
}