//
// cocos2d::CCPrettyPrinter::visit from 0x7c9920 to 0x7c9a58 (312 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:00:29 +0000
//
_DWORD *__fastcall cocos2d::CCPrettyPrinter::visit(cocos2d::CCPrettyPrinter *this, const cocos2d::CCSet *a2)
{
_DWORD *v2; // r5
int v5; // r8
int v6; // r2
char *v7; // r1
size_t v8; // r2
int v9; // r6
char *v10; // r1
char *v11; // r1
size_t v12; // r2
_DWORD *v13; // r2
int v14; // r2
int v15; // r2
char *v16; // r1
size_t v17; // r2
unsigned __int8 v19; // [sp+8h] [bp-Ch] BYREF
char v20; // [sp+9h] [bp-Bh] BYREF
size_t v21; // [sp+Ch] [bp-8h]
char *v22; // [sp+10h] [bp-4h]
_DWORD v23[8]; // [sp+14h] [bp+0h] BYREF
v2 = (_DWORD *)((char *)this + 20);
v5 = 0;
std::string::append((_DWORD *)this + 5, "\n");
v6 = *((unsigned __int8 *)this + 8);
if ( (v6 & 1) != 0 )
{
v7 = *((char **)this + 4);
v8 = *((_DWORD *)this + 3);
}
else
{
v7 = (char *)this + 9;
v8 = v6 >> 1;
}
std::string::append(v2, v7, v8);
std::string::append(v2, "\n");
cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 1) + 1);
v9 = cocos2d::CCSet::begin(a2);
while ( v9 != cocos2d::CCSet::end(a2) )
{
if ( v5 )
std::string::append(v2, "\n");
if ( (*((_BYTE *)this + 8) & 1) != 0 )
v10 = *((char **)this + 4);
else
v10 = (char *)this + 9;
std::string::append(v2, v10);
cocos2d::CCPrettyPrinter::CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v23, *((_DWORD *)this + 1));
(*(void (__fastcall **)(_DWORD, _DWORD *))(**(_DWORD **)(v9 + 16) + 16))(*(_DWORD *)(v9 + 16), v23);
cocos2d::CCPrettyPrinter::getResult((cocos2d::CCPrettyPrinter *)&v19, v23);
if ( (v19 & 1) != 0 )
{
v11 = v22;
v12 = v21;
}
else
{
v12 = (int)v19 >> 1;
v11 = &v20;
}
std::string::append(v2, v11, v12);
std::string::~string((int)&v19);
cocos2d::CCPrettyPrinter::~CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v23);
v13 = *(_DWORD **)(v9 + 4);
if ( v13 )
{
do
{
v9 = (int)v13;
v13 = (_DWORD *)*v13;
}
while ( v13 );
}
else
{
do
{
v14 = v9;
v9 = *(_DWORD *)(v9 + 8);
}
while ( v14 != *(_DWORD *)v9 );
}
++v5;
}
cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 1) - 1);
std::string::append(v2, "\n");
v15 = *((unsigned __int8 *)this + 8);
if ( (v15 & 1) != 0 )
{
v16 = *((char **)this + 4);
v17 = *((_DWORD *)this + 3);
}
else
{
v16 = (char *)this + 9;
v17 = v15 >> 1;
}
std::string::append(v2, v16, v17);
return std::string::append(v2, "\n");
}