//
// cocos2d::CCPrettyPrinter::visitObject from 0x180009430 to 0x180009515 (229 bytes)
//
// 5 xrefs:
// > ??> @ 0x1800e63d0
// > ??> @ 0x1801318f8
// > ??> @ 0x180131908
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adc30
//
// 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::visitObject(
cocos2d::CCPrettyPrinter *this,
const struct cocos2d::CCObject *a2)
{
cocos2d::CCPrettyPrinter *v3; // rcx
unsigned __int64 Size; // rbx
unsigned __int64 v5; // r8
cocos2d::CCPrettyPrinter_vtbl *v6; // rdx
char *v7; // rdi
_OWORD Src[3]; // [rsp+30h] [rbp-48h] BYREF
__int16 v9; // [rsp+60h] [rbp-18h]
v9 = 0;
memset(Src, 0, sizeof(Src));
sub_180009530((char *)Src, "%p");
v3 = this + 6;
Size = -1;
do
++Size;
while ( *((_BYTE *)Src + Size) );
v5 = (unsigned __int64)v3[3].__vftable;
v6 = v3[2].__vftable;
if ( Size > v5 - (unsigned __int64)v6 )
{
sub_180007900(v3, Size, 0, Src, Size);
}
else
{
v3[2].__vftable = (cocos2d::CCPrettyPrinter_vtbl *)((char *)v6 + Size);
if ( v5 > 0xF )
v3 = (cocos2d::CCPrettyPrinter *)v3->__vftable;
v7 = (char *)v6 + (_QWORD)v3;
memmove((char *)v6 + (_QWORD)v3, Src, Size);
v7[Size] = 0;
}
}