//
// cocos2d::CCLiquid::copyWithZone from 0xd2e518 to 0xd2e618 (256 bytes)
//
// 2 xrefs:
// > ??> @ 0xab8e0
// > ??> @ 0x1512af0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:07:18 +0000
//
cocos2d::CCLiquid *__fastcall cocos2d::CCLiquid::copyWithZone(cocos2d::CCLiquid *this, cocos2d::CCZone *a2)
{
cocos2d::CCLiquid *v3; // x19
_QWORD *v5; // x19
cocos2d::CCZone *v6; // x21
if ( a2 && (v3 = *(cocos2d::CCLiquid **)a2) != nullptr )
{
cocos2d::CCGridAction::copyWithZone(this, a2);
cocos2d::CCLiquid::initWithDuration(
v3,
*((float *)this + 20),
(cocos2d::CCLiquid *)((char *)this + 92),
*((_DWORD *)this + 25),
*((float *)this + 26));
return v3;
}
else
{
v5 = (_QWORD *)operator new(0x70u);
*v5 = 0;
v5[1] = 0;
v5[2] = 0;
v5[3] = 0;
v5[4] = 0;
v5[5] = 0;
v5[6] = 0;
v5[7] = 0;
v5[8] = 0;
v5[9] = 0;
v5[10] = 0;
v5[11] = 0;
v5[12] = 0;
v5[13] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*((_DWORD *)v5 + 20) = 0;
*v5 = &off_1512180;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)((char *)v5 + 92));
*v5 = &off_1512AF0;
v6 = (cocos2d::CCZone *)operator new(8u);
cocos2d::CCZone::CCZone(v6, (cocos2d::CCObject *)v5);
cocos2d::CCGridAction::copyWithZone(this, v6);
cocos2d::CCLiquid::initWithDuration(
(cocos2d::CCLiquid *)v5,
*((float *)this + 20),
(cocos2d::CCLiquid *)((char *)this + 92),
*((_DWORD *)this + 25),
*((float *)this + 26));
operator delete(v6);
return (cocos2d::CCLiquid *)v5;
}
}