//
// cocos2d::CCPrettyPrinter::~CCPrettyPrinter from 0x180007b10 to 0x180007bc6 (182 bytes)
//
// 14 xrefs:
// > sub_180007C60 @ 0x180007cc2
// > cocos2d::CCPrettyPrinter::visit @ 0x1800082f0
// > cocos2d::CCConfiguration::dumpInfo @ 0x1800bc5ed
// > sub_1800E0850 @ 0x1800e0857
// > sub_1800E08A0 @ 0x1800e08a7
// > sub_1800E08F0 @ 0x1800e08f7
// > int `__acrt_get_current_directory<__crt_win32_buffer_internal_dynamic_resizing> @ 0x1800e38a7
// > sub_180007C60 @ 0x180007c7c
// > ??> @ 0x1801319b3
// > ??> @ 0x180131a13
// > ??> @ 0x180131a7b
// > ??> @ 0x180141c33
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adb40
//
// 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
//
void __fastcall cocos2d::CCPrettyPrinter::~CCPrettyPrinter(cocos2d::CCPrettyPrinter *this)
{
unsigned __int64 v1; // rdx
_QWORD *v3; // rcx
unsigned __int64 v4; // rdx
void *v5; // rcx
v1 = *((_QWORD *)this + 9);
if ( v1 > 0xF )
{
v3 = *((_QWORD **)this + 6);
if ( v1 + 1 >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
goto LABEL_12;
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free_0(v3);
}
*((_QWORD *)this + 8) = 0;
*((_QWORD *)this + 9) = 15;
*((_BYTE *)this + 48) = 0;
v4 = *((_QWORD *)this + 5);
if ( v4 > 0xF )
{
v5 = *((void **)this + 2);
if ( v4 + 1 < 0x1000 )
{
LABEL_10:
j_j_free_0(v5);
goto LABEL_11;
}
if ( (unsigned __int64)v5 - *((_QWORD *)v5 - 1) - 8 <= 0x1F )
{
v5 = *((void **)v5 - 1);
goto LABEL_10;
}
LABEL_12:
invalid_parameter_noinfo_noreturn();
}
LABEL_11:
*((_QWORD *)this + 4) = 0;
*((_QWORD *)this + 5) = 15;
*((_BYTE *)this + 16) = 0;
this->__vftable = (cocos2d::CCPrettyPrinter_vtbl *)&cocos2d::CCDataVisitor::`vftable';
}