//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0xd47840 to 0xd478c4 (132 bytes)
//
// 8 xrefs:
// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0xd478f0
// > cocos2d::CCPrettyPrinter::visit @ 0xd47974
// > cocos2d::CCPrettyPrinter::visit @ 0xd479a8
// > cocos2d::CCPrettyPrinter::visit @ 0xd47c28
// > cocos2d::CCPrettyPrinter::visit @ 0xd47d3c
// > cocos2d::CCPrettyPrinter::visit @ 0xd47ea4
// > cocos2d::CCPrettyPrinter::visit @ 0xd47f8c
// > ??> @ 0xc9418
//
// This function is hookable on this platform (idp: arm, 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 13:07:35 +0000
//
__int64 __fastcall cocos2d::CCPrettyPrinter::setIndentLevel(cocos2d::CCPrettyPrinter *this, int a2)
{
char *v3; // x22
__int64 result; // x0
int v5; // w19
v3 = (char *)this + 16;
result = *((unsigned __int8 *)this + 16);
*((_DWORD *)this + 2) = a2;
if ( (result & 1) != 0 )
{
result = *((_QWORD *)v3 + 2);
*(_BYTE *)result = 0;
*((_QWORD *)v3 + 1) = 0;
a2 = *((_DWORD *)this + 2);
}
else
{
*((_BYTE *)this + 17) = 0;
*((_BYTE *)this + 16) = 0;
}
v5 = 0;
if ( a2 > 0 )
{
do
{
++v5;
std::string::append((__int64)v3, "\t", 1u);
result = *((unsigned int *)this + 2);
}
while ( (int)result > v5 );
}
return result;
}