//
// cocos2d::CCDelayTime::copyWithZone from 0x180031e70 to 0x180031f47 (215 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800e9de0
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b0420
//
// 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=2
struct cocos2d::CCObject *__fastcall cocos2d::CCDelayTime::copyWithZone(
cocos2d::CCDelayTime *this,
struct cocos2d::CCObject **a2)
{
struct cocos2d::CCObject *v3; // rbx
struct tinyxml2::XMLNode *v5; // rax
struct tinyxml2::XMLNode *v6; // rbx
struct cocos2d::CCObject **v7; // rdi
tinyxml2::XMLHandle *v8; // rax
if ( a2 && (v3 = *a2) != nullptr )
{
cocos2d::CCActionInterval::copyWithZone(this, a2);
return v3;
}
else
{
v5 = (struct tinyxml2::XMLNode *)operator new(0x60u);
v6 = v5;
if ( v5 )
{
*(_OWORD *)v5 = 0;
*((_OWORD *)v5 + 1) = 0;
*((_OWORD *)v5 + 2) = 0;
*((_OWORD *)v5 + 3) = 0;
*((_OWORD *)v5 + 4) = 0;
*((_OWORD *)v5 + 5) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
v7 = nullptr;
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = &cocos2d::CCDelayTime::`vftable';
}
else
{
v7 = nullptr;
v6 = nullptr;
}
v8 = (tinyxml2::XMLHandle *)operator new(8u);
if ( v8 )
v7 = (struct cocos2d::CCObject **)tinyxml2::XMLHandle::XMLHandle(v8, v6);
cocos2d::CCActionInterval::copyWithZone(this, v7);
if ( v7 )
j_j_free_0(v7);
return (struct cocos2d::CCObject *)v6;
}
}