//
// cocos2d::CCTargetedAction::create from 0x180034bf0 to 0x180034c9a (170 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0690
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCTargetedAction *__fastcall cocos2d::CCTargetedAction::create(
struct cocos2d::CCNode *this,
struct cocos2d::CCFiniteTimeAction *a2)
{
cocos2d::CCAction *v4; // rax
cocos2d::CCAction *v5; // rbx
float m_fDuration; // xmm1_4
v4 = (cocos2d::CCAction *)operator new(0x70u);
v5 = v4;
if ( v4 )
{
cocos2d::CCAction::CCAction(v4);
LODWORD(v4) = 0;
LODWORD(v5[1].__vftable) = 0;
v5->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCTargetedAction::`vftable';
*(_QWORD *)&v5[1].cocos2d::CCObject::m_nTag = 0;
*(_QWORD *)&v5[1].m_uAutoReleaseCount = 0;
}
else
{
v5 = nullptr;
}
m_fDuration = a2->m_fDuration;
*(float *)&v5[1].__vftable = m_fDuration;
if ( m_fDuration == 0.0 )
LODWORD(v5[1].__vftable) = 872415232;
v5[1].m_uID = (unsigned int)v4;
LOBYTE(v5[1].m_nLuaID) = 1;
if ( this )
cocos2d::CCObject::retain(this);
*(_QWORD *)&v5[1].cocos2d::CCObject::m_nTag = this;
cocos2d::CCObject::retain(a2);
*(_QWORD *)&v5[1].m_uAutoReleaseCount = a2;
cocos2d::CCObject::autorelease(v5);
return (struct cocos2d::CCTargetedAction *)v5;
}