//
// cocos2d::CCLiquid::copyWithZone from 0x18002c5a0 to 0x18002c6c8 (296 bytes)
//
// 4 xrefs:
// > ??> @ 0x1800eec08
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9d9c
// > ??> @ 0x1801b9da8
//
// This function is hookable on this platform (idp: pc, 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 11:21:32 +0000
//
// Hidden C++ exception states: #wind=3
struct cocos2d::CCObject *__fastcall cocos2d::CCLiquid::copyWithZone(
cocos2d::CCLiquid *this,
struct cocos2d::CCZone *a2)
{
tinyxml2::XMLHandle *v2; // rax
tinyxml2::XMLHandle *v4; // rdi
__int64 v5; // rbx
tinyxml2::XMLHandle *v6; // rax
int v7; // xmm6_4
int v8; // ebp
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(_QWORD *)a2) == 0 )
{
v5 = sub_1800E4AC0(0x78u);
if ( v5 )
{
*(_OWORD *)v5 = 0;
*(_OWORD *)(v5 + 16) = 0;
*(_OWORD *)(v5 + 32) = 0;
*(_OWORD *)(v5 + 48) = 0;
*(_OWORD *)(v5 + 64) = 0;
*(_OWORD *)(v5 + 80) = 0;
*(_OWORD *)(v5 + 96) = 0;
*(_QWORD *)(v5 + 112) = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*(_DWORD *)(v5 + 80) = 0;
*(_QWORD *)v5 = &cocos2d::CCGridAction::`vftable';
cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v5 + 96));
*(_QWORD *)v5 = &cocos2d::CCLiquid::`vftable';
}
else
{
v5 = 0;
}
v6 = (tinyxml2::XMLHandle *)sub_1800E4AC0(8u);
if ( v6 )
v2 = tinyxml2::XMLHandle::XMLHandle(v6, (struct tinyxml2::XMLNode *)v5);
else
v2 = nullptr;
v4 = v2;
}
cocos2d::CCGridAction::copyWithZone(this, v2);
v7 = *((_DWORD *)this + 27);
v8 = *((_DWORD *)this + 26);
if ( cocos2d::CCGridAction::initWithDuration(
(cocos2d::CCGridAction *)v5,
*((float *)this + 20),
(cocos2d::CCLiquid *)((char *)this + 96)) )
{
*(_DWORD *)(v5 + 104) = v8;
*(_DWORD *)(v5 + 108) = v7;
*(_DWORD *)(v5 + 112) = 1065353216;
}
if ( v4 )
j_j_free_0(v4);
return (struct cocos2d::CCObject *)v5;
}