//
// cocos2d::CCSpawn::create from 0x180035050 to 0x1800351ba (362 bytes)
//
// 3 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba78c
// > ??> @ 0x1801ba798
//
// 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 11:21:34 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCSpawn *__fastcall cocos2d::CCSpawn::create(struct cocos2d::CCArray *this)
{
unsigned int v2; // ebx
struct cocos2d::CCFiniteTimeAction *v3; // rbp
unsigned int v4; // esi
struct cocos2d::CCFiniteTimeAction *v5; // r14
cocos2d::CCSpawn *v6; // rax
cocos2d::CCSpawn *v7; // rbx
__int64 v9; // rbx
v2 = cocos2d::CCArray::count(this);
if ( !v2 )
return nullptr;
v3 = cocos2d::CCArray::stringAtIndex(this, 0);
if ( v2 <= 1 )
{
v9 = sub_1800E4AC0(0x58u);
if ( v9 )
{
*(_OWORD *)v9 = 0;
*(_OWORD *)(v9 + 16) = 0;
*(_OWORD *)(v9 + 32) = 0;
*(_OWORD *)(v9 + 48) = 0;
*(_OWORD *)(v9 + 64) = 0;
*(_QWORD *)(v9 + 80) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v9);
*(_DWORD *)(v9 + 80) = 0;
*(_QWORD *)v9 = &cocos2d::ExtraAction::`vftable';
}
else
{
v9 = 0;
}
if ( v9 )
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);
return cocos2d::CCSpawn::createWithTwoActions(v3, (struct cocos2d::CCFiniteTimeAction *)v9);
}
v4 = 1;
if ( (unsigned int)cocos2d::CCArray::count(this) <= 1 )
return v3;
do
{
v5 = cocos2d::CCArray::stringAtIndex(this, v4);
v6 = (cocos2d::CCSpawn *)sub_1800E4AC0(0x70u);
v7 = v6;
if ( v6 )
{
*(_OWORD *)v6 = 0;
*((_OWORD *)v6 + 1) = 0;
*((_OWORD *)v6 + 2) = 0;
*((_OWORD *)v6 + 3) = 0;
*((_OWORD *)v6 + 4) = 0;
*((_OWORD *)v6 + 5) = 0;
*((_OWORD *)v6 + 6) = 0;
cocos2d::CCAction::CCAction(v6);
*((_DWORD *)v7 + 20) = 0;
*(_QWORD *)v7 = &cocos2d::CCSpawn::`vftable';
}
else
{
v7 = nullptr;
}
cocos2d::CCSpawn::initWithTwoActions(v7, v3, v5);
cocos2d::CCObject::autorelease(v7);
v3 = v7;
++v4;
}
while ( v4 < (unsigned int)cocos2d::CCArray::count(this) );
return v7;
}