//
// cocos2d::CCProgressFromTo::copyWithZone from 0x100437cd0 to 0x100437d9c (204 bytes)
//
// 1 xrefs:
// > ??> @ 0x100937d28
//
// 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
//
cocos2d::CCObject *__fastcall cocos2d::CCProgressFromTo::copyWithZone(
cocos2d::CCProgressFromTo *a1,
cocos2d::CCZone *a2)
{
char *v2; // rbx
cocos2d::CCZone *v3; // r15
__m128 v5; // [rsp+0h] [rbp-30h]
if ( a2 && (v2 = *(char **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = (char *)operator new(0x68u);
*(_OWORD *)v2 = 0;
*((_OWORD *)v2 + 1) = 0;
*((_OWORD *)v2 + 2) = 0;
*((_OWORD *)v2 + 3) = 0;
*((_OWORD *)v2 + 4) = 0;
*((_OWORD *)v2 + 5) = 0;
*((_QWORD *)v2 + 12) = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_100937D28;
v3 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
a2 = v3;
}
cocos2d::CCActionInterval::copyWithZone(a1, a2);
v5 = (__m128)*(unsigned __int64 *)(&a1->m_bFirstTick + 4);
if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v2, a1->m_fDuration) )
_mm_storel_ps((double *)(v2 + 92), v5);
if ( v3 )
operator delete(v3);
return (cocos2d::CCObject *)v2;
}