//
// cocos2d::CCEaseRateAction::copyWithZone from 0x100514730 to 0x100514813 (227 bytes)
//
// 1 xrefs:
// > ??> @ 0x10095eef8
//
// 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::CCEaseRateAction::copyWithZone(
cocos2d::CCEaseRateAction *a1,
cocos2d::CCZone *a2)
{
_OWORD *v2; // rbx
_QWORD *v3; // r15
cocos2d::CCObject *v4; // rax
cocos2d::CCObject *v5; // r12
unsigned int m_uID; // [rsp+Ch] [rbp-24h]
if ( a2 && (v2 = *(_OWORD **)a2) != nullptr )
{
v3 = nullptr;
}
else
{
v2 = operator new(0x70u);
*v2 = 0;
v2[1] = 0;
v2[2] = 0;
v2[3] = 0;
v2[4] = 0;
v2[5] = 0;
v2[6] = 0;
cocos2d::CCAction::CCAction(v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_10095EEF8;
v3 = operator new(8u);
cocos2d::CCZone::CCZone(v3, (__int64)v2);
}
v4 = (cocos2d::CCObject *)sub_10048AAA0(a1[1].__vftable);
v5 = cocos2d::CCObject::autorelease(v4);
m_uID = a1[1].m_uID;
if ( cocos2d::CCActionInterval::initWithDuration(
(cocos2d::CCActionInterval *)v2,
*(float *)&v5[1].m_uAutoReleaseCount) )
{
*((_QWORD *)v2 + 12) = v5;
cocos2d::CCObject::retain(v5);
*((_DWORD *)v2 + 26) = m_uID;
}
if ( v3 )
operator delete(v3);
return (cocos2d::CCObject *)v2;
}