//
// cocos2d::CCSpawn::initWithTwoActions from 0x10021dca0 to 0x10021dd5c (188 bytes)
//
// 2 xrefs:
// > cocos2d::CCSpawn::createWithTwoActions @ 0x10021dc6c
// > cocos2d::CCSpawn::copyWithZone @ 0x10021de94
//
// 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
//
__int64 __fastcall cocos2d::CCSpawn::initWithTwoActions(__int64 a1, __int64 a2, __int64 a3)
{
float v4; // s0
float v5; // s1
float v6; // s2
__int64 v8; // x0
_OWORD *v9; // x20
__int64 v10; // x0
v4 = *(float *)(a2 + 80);
v5 = *(float *)(a3 + 80);
if ( v4 >= v5 )
v6 = *(float *)(a2 + 80);
else
v6 = *(float *)(a3 + 80);
if ( v6 == 0.0 )
v6 = 0.00000011921;
*(float *)(a1 + 80) = v6;
*(_DWORD *)(a1 + 84) = 0;
*(_BYTE *)(a1 + 88) = 1;
*(_QWORD *)(a1 + 96) = a2;
*(_QWORD *)(a1 + 104) = a3;
if ( v4 <= v5 )
{
v9 = (_OWORD *)a2;
if ( v4 < v5 )
{
v10 = cocos2d::CCDelayTime::create(v5 - v4);
v9 = cocos2d::CCSequence::createWithTwoActions((__int64)v9, v10);
*(_QWORD *)(a1 + 96) = v9;
}
}
else
{
v8 = cocos2d::CCDelayTime::create(v4 - v5);
*(_QWORD *)(a1 + 104) = cocos2d::CCSequence::createWithTwoActions(a3, v8);
v9 = *(_OWORD **)(a1 + 96);
}
cocos2d::CCObject::retain((__int64)v9);
cocos2d::CCObject::retain(*(_QWORD *)(a1 + 104));
return 1;
}