//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0x180007ee0 to 0x180007f7b (155 bytes)
//
// 9 xrefs:
// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007ae2
// > cocos2d::CCPrettyPrinter::visit @ 0x180008091
// > cocos2d::CCPrettyPrinter::visit @ 0x180008313
// > cocos2d::CCPrettyPrinter::visit @ 0x180008627
// > cocos2d::CCPrettyPrinter::visit @ 0x180008a29
// > cocos2d::CCPrettyPrinter::visit @ 0x180008f00
// > cocos2d::CCPrettyPrinter::visit @ 0x1800092ce
// > ??> @ 0x1801438a8
// > ??> @ 0x1801adb94
//
// 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::setIndentLevel(cocos2d::CCPrettyPrinter *this, int a2)
{
int v2; // edi
cocos2d::CCPrettyPrinter *v3; // rax
unsigned __int64 v5; // rdx
__int64 v6; // rcx
cocos2d::CCPrettyPrinter *v7; // rax
v2 = 0;
*((_DWORD *)this + 2) = a2;
*((_QWORD *)this + 4) = 0;
v3 = this + 2;
if ( *((_QWORD *)this + 5) > 0xFu )
v3 = *((cocos2d::CCPrettyPrinter **)this + 2);
LOBYTE(v3->__vftable) = 0;
if ( *((int *)this + 2) > 0 )
{
do
{
v5 = *((_QWORD *)this + 5);
v6 = *((_QWORD *)this + 4);
if ( v5 == v6 )
{
sub_180007900((_QWORD *)this + 2, 1u, 0, "\t", 1u);
}
else
{
*((_QWORD *)this + 4) = v6 + 1;
v7 = this + 2;
if ( v5 > 0xF )
v7 = *((cocos2d::CCPrettyPrinter **)this + 2);
*(_WORD *)((char *)&v7->__vftable + v6) = 9;
}
++v2;
}
while ( v2 < *((_DWORD *)this + 2) );
}
}