//
// cocos2d::CCScaleTo::copyWithZone from 0x180032cb0 to 0x180032db7 (263 bytes)
//
// 4 xrefs:
// > cocos2d::CCScaleBy::copyWithZone @ 0x180032c43
// > ??> @ 0x1800e9a20
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b04c8
//
// 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
//
struct cocos2d::CCObject *__fastcall cocos2d::CCScaleTo::copyWithZone(
cocos2d::CCScaleTo *this,
struct cocos2d::CCZone *a2)
{
struct cocos2d::CCZone *v2; // rax
struct cocos2d::CCZone *v4; // rdi
_OWORD *v5; // rbx
_OWORD *v6; // rax
float m_fEndScaleY; // xmm2_4
float m_fEndScaleX; // xmm3_4
float m_fDuration; // xmm1_4
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(_OWORD **)a2) == nullptr )
{
v6 = operator new(0x80u);
v5 = v6;
if ( v6 )
{
*v6 = 0;
v6[1] = 0;
v6[2] = 0;
v6[3] = 0;
v6[4] = 0;
v6[5] = 0;
v6[6] = 0;
v6[7] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v6);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCScaleTo::`vftable';
}
else
{
v5 = nullptr;
}
v2 = (struct cocos2d::CCZone *)operator new(8u);
if ( v2 )
v2 = tinyxml2::XMLHandle::XMLHandle(v2, (struct tinyxml2::XMLNode *)v5);
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
m_fEndScaleY = this->m_fEndScaleY;
m_fEndScaleX = this->m_fEndScaleX;
m_fDuration = this->m_fDuration;
*((float *)v5 + 20) = m_fDuration;
if ( m_fDuration == 0.0 )
*((_DWORD *)v5 + 20) = 872415232;
*((_DWORD *)v5 + 22) = 0;
*((_BYTE *)v5 + 92) = 1;
*((float *)v5 + 28) = m_fEndScaleX;
*((float *)v5 + 29) = m_fEndScaleY;
if ( v4 )
j_j_free_0(v4);
return (struct cocos2d::CCObject *)v5;
}