//
// cocos2d::CCPrettyPrinter::visit from 0x7c97ac to 0x7c9904 (344 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::CCDictionary *a2)
{
_DWORD *v2; // r5
int v5; // r6
char *v6; // r1
size_t v7; // r2
int v8; // r2
char *v9; // r1
size_t v10; // r2
int v11; // r6
int v12; // r7
int v13; // r3
char *v14; // r2
char *v15; // r1
size_t v16; // r2
int v17; // r2
unsigned __int8 v19; // [sp+8h] [bp-41Ch] BYREF
char v20; // [sp+9h] [bp-41Bh] BYREF
size_t v21; // [sp+Ch] [bp-418h]
char *v22; // [sp+10h] [bp-414h]
_DWORD v23[8]; // [sp+14h] [bp-410h] BYREF
char v24[1000]; // [sp+34h] [bp-3F0h] BYREF
v2 = (_DWORD *)((char *)this + 20);
std::string::append((_DWORD *)this + 5, "\n");
v5 = *((unsigned __int8 *)this + 8);
if ( (v5 & 1) != 0 )
{
v6 = *((char **)this + 4);
v7 = *((_DWORD *)this + 3);
}
else
{
v6 = (char *)this + 9;
v7 = v5 >> 1;
}
std::string::append(v2, v6, v7);
std::string::append(v2, "\n");
cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 1) + 1);
memset(v24, 0, sizeof(v24));
if ( a2 )
{
v11 = *((_DWORD *)a2 + 13);
if ( v11 )
v12 = *(_DWORD *)(v11 + 272);
else
v12 = 0;
v13 = 1;
while ( v11 )
{
if ( !v13 )
std::string::append(v2, "\n");
if ( (*((_BYTE *)this + 8) & 1) != 0 )
v14 = *((char **)this + 4);
else
v14 = (char *)this + 9;
sub_993BD0(v24, "%s%s: ", v14, v11);
std::string::append(v2, v24);
cocos2d::CCPrettyPrinter::CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v23, *((_DWORD *)this + 1));
(*(void (__fastcall **)(_DWORD, _DWORD *))(**(_DWORD **)(v11 + 260) + 16))(*(_DWORD *)(v11 + 260), v23);
cocos2d::CCPrettyPrinter::getResult((cocos2d::CCPrettyPrinter *)&v19, v23);
if ( (v19 & 1) != 0 )
{
v15 = v22;
v16 = v21;
}
else
{
v16 = (int)v19 >> 1;
v15 = &v20;
}
std::string::append(v2, v15, v16);
std::string::~string((int)&v19);
cocos2d::CCPrettyPrinter::~CCPrettyPrinter((cocos2d::CCPrettyPrinter *)v23);
if ( v12 )
v17 = *(_DWORD *)(v12 + 272);
else
v17 = 0;
v11 = v12;
v13 = 0;
v12 = v17;
}
}
cocos2d::CCPrettyPrinter::setIndentLevel(this, *((_DWORD *)this + 1) - 1);
std::string::append(v2, "\n");
v8 = *((unsigned __int8 *)this + 8);
if ( (v8 & 1) != 0 )
{
v9 = *((char **)this + 4);
v10 = *((_DWORD *)this + 3);
}
else
{
v9 = (char *)this + 9;
v10 = v8 >> 1;
}
std::string::append(v2, v9, v10);
return std::string::append(v2, "");
}