//
// cocos2d::CCPrettyPrinter::getResult from 0x7c9374 to 0x7c93d8 (100 bytes)
//
// 3 xrefs:
// > cocos2d::CCPrettyPrinter::visit @ 0x7c975c
// > cocos2d::CCPrettyPrinter::visit @ 0x7c989c
// > cocos2d::CCPrettyPrinter::visit @ 0x7c99c8
//
// 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
//
cocos2d::CCPrettyPrinter *__fastcall cocos2d::CCPrettyPrinter::getResult(cocos2d::CCPrettyPrinter *this, _DWORD *a2)
{
_DWORD *v3; // r3
int v4; // r0
int v5; // r1
int v6; // r2
size_t v7; // r5
const void *v8; // r8
char *v9; // r6
unsigned int v10; // r0
int v11; // r7
char *v12; // r0
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
if ( (a2[5] & 1) != 0 )
{
v7 = a2[6];
v8 = (const void *)a2[7];
if ( v7 > 0xA )
{
v10 = (v7 + 16) & 0xFFFFFFF0;
v11 = v10 | 1;
v12 = (char *)operator new(v10);
*(_DWORD *)this = v11;
*((_DWORD *)this + 1) = v7;
v9 = v12;
*((_DWORD *)this + 2) = v12;
}
else
{
*(_BYTE *)this = 2 * v7;
v9 = (char *)this + 1;
}
std::char_traits::copy(v9, v8, v7);
v9[v7] = 0;
}
else
{
v3 = a2 + 5;
v4 = a2[5];
v5 = a2[6];
v6 = v3[2];
*(_DWORD *)this = v4;
*((_DWORD *)this + 1) = v5;
*((_DWORD *)this + 2) = v6;
}
return this;
}