//
// cocos2d::CCBezierTo::initWithDuration from 0x1800354b0 to 0x180035517 (103 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0768
//
// 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
//
bool __fastcall cocos2d::CCBezierTo::initWithDuration(
cocos2d::CCBezierTo *this,
float a2,
const struct cocos2d::_ccBezierConfig *a3)
{
char *v4; // rbx
this->m_fDuration = a2;
if ( a2 == 0.0 )
this->m_fDuration = 0.00000011920929;
v4 = (char *)this + 136;
this->m_elapsed = 0.0;
this->m_bFirstTick = 1;
cocos2d::CCSize::operator=((_DWORD *)this + 34, a3);
cocos2d::CCSize::operator=((_DWORD *)v4 + 2, (_DWORD *)a3 + 2);
cocos2d::CCSize::operator=((_DWORD *)v4 + 4, (_DWORD *)a3 + 4);
return 0;
}