//
// cocos2d::CCTintBy::copyWithZone from 0x1800338a0 to 0x1800339a9 (265 bytes)
//
// 3 xrefs:
// > ??> @ 0x1800efdc8
// > ??> @ 0x18014cf68
// > ??> @ 0x1801ba624
//
// 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:34 +0000
//
struct cocos2d::CCObject *__fastcall cocos2d::CCTintBy::copyWithZone(
cocos2d::CCTintBy *this,
struct cocos2d::CCZone *a2)
{
struct cocos2d::CCZone *v2; // rax
struct cocos2d::CCZone *v4; // rdi
cocos2d::CCAction *v5; // rbx
cocos2d::CCAction *v6; // rax
__int16 v7; // ax
__int16 v8; // cx
__int16 v9; // r8
float v10; // xmm1_4
v2 = a2;
v4 = nullptr;
if ( !a2 || (v5 = *(cocos2d::CCAction **)a2) == nullptr )
{
v6 = (cocos2d::CCAction *)sub_1800E4AC0(0x70u);
v5 = v6;
if ( v6 )
{
*(_OWORD *)v6 = 0;
*((_OWORD *)v6 + 1) = 0;
*((_OWORD *)v6 + 2) = 0;
*((_OWORD *)v6 + 3) = 0;
*((_OWORD *)v6 + 4) = 0;
*((_OWORD *)v6 + 5) = 0;
*((_OWORD *)v6 + 6) = 0;
cocos2d::CCAction::CCAction(v6);
*((_DWORD *)v5 + 20) = 0;
*(_QWORD *)v5 = &cocos2d::CCTintBy::`vftable';
}
else
{
v5 = nullptr;
}
v2 = (struct cocos2d::CCZone *)sub_1800E4AC0(8u);
if ( v2 )
v2 = tinyxml2::XMLHandle::XMLHandle(v2, v5);
v4 = v2;
}
cocos2d::CCActionInterval::copyWithZone(this, (struct cocos2d::CCObject **)v2);
v7 = *((unsigned __int8 *)this + 100);
v8 = *((unsigned __int8 *)this + 98);
v9 = *((unsigned __int8 *)this + 96);
v10 = *((float *)this + 20);
*((float *)v5 + 20) = v10;
if ( v10 == 0.0 )
*((_DWORD *)v5 + 20) = 872415232;
*((_DWORD *)v5 + 22) = 0;
*((_BYTE *)v5 + 92) = 1;
*((_WORD *)v5 + 48) = v9;
*((_WORD *)v5 + 49) = v8;
*((_WORD *)v5 + 50) = v7;
if ( v4 )
j_j_free_0(v4);
return v5;
}