//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0x1002eb88c to 0x1002eb908 (124 bytes)
//
// 7 xrefs:
// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x1002eb848
// > cocos2d::CCPrettyPrinter::visit_2 @ 0x1002ebcb0
// > cocos2d::CCPrettyPrinter::visit_2 @ 0x1002ebdfc
// > cocos2d::CCPrettyPrinter::visit_1 @ 0x1002ebf8c
// > cocos2d::CCPrettyPrinter::visit_1 @ 0x1002ec0c0
// > cocos2d::CCPrettyPrinter::visit @ 0x1002ec1f4
// > cocos2d::CCPrettyPrinter::visit @ 0x1002ec344
//
// 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 11:02:53 +0000
//
std::string *__fastcall cocos2d::CCPrettyPrinter::setIndentLevel(std::string *result, int a2)
{
std::string *v2; // x19
int v3; // w21
v2 = result;
LODWORD(result->__r_.__value_.__r.__words[1]) = a2;
if ( result[1].__r_.__value_.__s.__data_[15] < 0 )
{
*(_BYTE *)result->__r_.__value_.__r.__words[2] = 0;
result[1].__r_.__value_.__r.__words[0] = 0;
a2 = result->__r_.__value_.__r.__words[1];
}
else
{
result->__r_.__value_.__s.__data_[16] = 0;
result[1].__r_.__value_.__s.__data_[15] = 0;
}
if ( a2 >= 1 )
{
v3 = 0;
do
{
result = std::string::append((std::string *)&v2->__r_.__value_.__r.__words[2], "\t");
++v3;
}
while ( v3 < SLODWORD(v2->__r_.__value_.__r.__words[1]) );
}
return result;
}