// // cocos2d::CCSpawn::initWithTwoActions from 0x180035920 to 0x1800359d9 (185 bytes) // // 5 xrefs: // > cocos2d::CCSpawn::copyWithZone @ 0x1800330c8 // > cocos2d::CCSpawn::create @ 0x180034abf // > cocos2d::CCSpawn::createWithTwoActions @ 0x180034ff0 // > @ 0x1801438a8 // > @ 0x1801b07b0 // // 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 // char __fastcall cocos2d::CCSpawn::initWithTwoActions( cocos2d::CCSpawn *this, struct cocos2d::CCFiniteTimeAction *a2, struct cocos2d::CCFiniteTimeAction *a3) { float m_fDuration; // xmm2_4 float v4; // xmm3_4 float v5; // xmm1_4 struct cocos2d::CCDelayTime *v9; // rax struct cocos2d::CCDelayTime *v10; // rax m_fDuration = a2->m_fDuration; v4 = a3->m_fDuration; v5 = fmaxf(m_fDuration, v4); this->m_fDuration = v5; if ( v5 == 0.0 ) this->m_fDuration = 0.00000011920929; this->m_elapsed = 0.0; this->m_bFirstTick = 1; *((_QWORD *)this + 12) = a2; *((_QWORD *)this + 13) = a3; if ( m_fDuration <= v4 ) { if ( v4 > m_fDuration ) { v10 = cocos2d::CCDelayTime::create(v4 - m_fDuration); *((_QWORD *)this + 12) = cocos2d::CCSequence::createWithTwoActions(a2, v10); } } else { v9 = cocos2d::CCDelayTime::create(m_fDuration - v4); *((_QWORD *)this + 13) = cocos2d::CCSequence::createWithTwoActions(a3, v9); } cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 12)); cocos2d::CCObject::retain(*((cocos2d::CCObject **)this + 13)); return 1; }