//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0x1004ae3a0 to 0x1004ae40d (109 bytes)
//
// 0 xrefs:
//
// 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 12:30:58 +0000
//
std::string *__fastcall cocos2d::CCPrettyPrinter::setIndentLevel(__int64 a1, int a2)
{
std::string *result; // rax
int v3; // r12d
*(_DWORD *)(a1 + 8) = a2;
if ( (*(_BYTE *)(a1 + 16) & 1) != 0 )
{
result = *(std::string **)(a1 + 32);
result->__r_.__value_.__s.0 = 0;
*(_QWORD *)(a1 + 24) = 0;
if ( *(int *)(a1 + 8) <= 0 )
return result;
}
else
{
*(_WORD *)(a1 + 16) = 0;
if ( a2 <= 0 )
return result;
}
v3 = 0;
do
{
result = std::string::append((std::string *)(a1 + 16), "\t");
++v3;
}
while ( v3 < *(_DWORD *)(a1 + 8) );
return result;
}