//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0x7c95bc to 0x7c95f8 (60 bytes)
//
// 7 xrefs:
// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x7c9618
// > cocos2d::CCPrettyPrinter::visit @ 0x7c967e
// > cocos2d::CCPrettyPrinter::visit @ 0x7c9696
// > cocos2d::CCPrettyPrinter::visit @ 0x7c9800
// > cocos2d::CCPrettyPrinter::visit @ 0x7c981c
// > cocos2d::CCPrettyPrinter::visit @ 0x7c997c
// > cocos2d::CCPrettyPrinter::visit @ 0x7c9a0e
//
// 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::setIndentLevel(_DWORD *this, int a2)
{
_DWORD *v2; // r4
char v3; // r3
int i; // r5
v2 = this;
v3 = *((_BYTE *)this + 8);
*(this + 1) = a2;
if ( (v3 & 1) != 0 )
{
*(_BYTE *)*(this + 4) = 0;
*(this + 3) = 0;
}
else
{
*((_BYTE *)this + 9) = 0;
*((_BYTE *)this + 8) = 0;
}
for ( i = 0; i < v2[1]; ++i )
this = std::string::append(v2 + 2, "\t");
return this;
}