//
// cocos2d::CCPrettyPrinter::operator= from 0x1800cebb0 to 0x1800cec1a (106 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ba0d4
//
// 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
//
__int64 __fastcall cocos2d::CCPrettyPrinter::operator=(__int64 a1, __int64 a2)
{
__int64 v2; // r8
void **v4; // rcx
void *v6; // rdx
void *v7; // rdx
v2 = a2 + 16;
*(_DWORD *)(a1 + 8) = *(_DWORD *)(a2 + 8);
v4 = (void **)(a1 + 16);
if ( v4 != (void **)(a2 + 16) )
{
v6 = (void *)(a2 + 16);
if ( *(_QWORD *)(v2 + 24) > 0xFu )
v6 = *(void **)v2;
sub_180010050(v4, v6, *(_QWORD *)(v2 + 16));
}
if ( a1 + 48 != a2 + 48 )
{
v7 = (void *)(a2 + 48);
if ( *(_QWORD *)(a2 + 72) > 0xFu )
v7 = *(void **)(a2 + 48);
sub_180010050((void **)(a1 + 48), v7, *(_QWORD *)(a2 + 64));
}
return a1;
}