//
// cocos2d::CCPrettyPrinter::setIndentLevel from 0x10024e640 to 0x10024e6bc (124 bytes)
//
// 7 xrefs:
// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x10024e5fc
// > cocos2d::CCPrettyPrinter::visit_2 @ 0x10024ea64
// > cocos2d::CCPrettyPrinter::visit_2 @ 0x10024ebb0
// > cocos2d::CCPrettyPrinter::visit_1 @ 0x10024ed40
// > cocos2d::CCPrettyPrinter::visit_1 @ 0x10024ee74
// > cocos2d::CCPrettyPrinter::visit @ 0x10024efa8
// > cocos2d::CCPrettyPrinter::visit @ 0x10024f0f8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall cocos2d::CCPrettyPrinter::setIndentLevel(cocos2d::CCPrettyPrinter *a1, int a2)
{
int v3; // w21
LODWORD(a1[1].__vftable) = a2;
if ( SHIBYTE(a1[4].__vftable) < 0 )
{
LOBYTE(a1[2].~CCPrettyPrinter) = 0;
a1[3].__vftable = nullptr;
a2 = (int)a1[1].__vftable;
}
else
{
LOBYTE(a1[2].__vftable) = 0;
HIBYTE(a1[4].__vftable) = 0;
}
if ( a2 >= 1 )
{
v3 = 0;
do
{
std::string::append((std::string *)&a1[2], "\t");
++v3;
}
while ( v3 < SLODWORD(a1[1].__vftable) );
}
}