//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0x180008000 to 0x18000809c (156 bytes)
//
// 9 xrefs:
// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007c52
// > cocos2d::CCPrettyPrinter::visit @ 0x1800081bb
// > cocos2d::CCPrettyPrinter::visit @ 0x1800084b7
// > cocos2d::CCPrettyPrinter::visit @ 0x1800087da
// > cocos2d::CCPrettyPrinter::visit @ 0x180008b1d
// > cocos2d::CCPrettyPrinter::visit @ 0x180008fd8
// > cocos2d::CCPrettyPrinter::visit @ 0x18000938c
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b7bb8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:21:19 +0000
//
void __fastcall cocos2d::CCPrettyPrinter::setIndentLevel(cocos2d::CCPrettyPrinter *this, int a2)
{
int v2; // edi
_BYTE *v3; // rax
unsigned __int64 v5; // rdx
__int64 v6; // rcx
char *v7; // rax
v2 = 0;
*((_DWORD *)this + 2) = a2;
*((_QWORD *)this + 4) = 0;
v3 = (char *)this + 16;
if ( *((_QWORD *)this + 5) > 0xFu )
v3 = *((_BYTE **)this + 2);
*v3 = 0;
if ( *((int *)this + 2) > 0 )
{
do
{
v5 = *((_QWORD *)this + 5);
v6 = *((_QWORD *)this + 4);
if ( v5 == v6 )
{
sub_180007A50((_QWORD *)this + 2, 1u, 0, "\t", 1u);
}
else
{
*((_QWORD *)this + 4) = v6 + 1;
v7 = (char *)this + 16;
if ( v5 > 0xF )
v7 = *((char **)this + 2);
*(_WORD *)&v7[v6] = 9;
}
++v2;
}
while ( v2 < *((_DWORD *)this + 2) );
}
}