//
// EditorBuildStats::toString from 0x4d7394 to 0x4d752e (410 bytes)
//
// 2 xrefs:
// > GameLevelManager::uploadLevel @ 0x4d77d8
// > GJGameLevel::encodeWithCoder @ 0x4d86ec
//
// 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 11:50:53 +0000
//
EditorBuildStats *__fastcall EditorBuildStats::toString(EditorBuildStats *this, int a2)
{
int v4; // s15
int v5; // r2
int i; // r9
const char *v7; // r1
cocos2d::CCString *v8; // r0
const char *CString; // r9
size_t v10; // r0
const char *v11; // r0
const char *v12; // r4
size_t v13; // r0
const char *v15; // [sp+Ch] [bp-60h] BYREF
size_t v16; // [sp+10h] [bp-5Ch]
int v17[3]; // [sp+14h] [bp-58h] BYREF
_DWORD v18[19]; // [sp+20h] [bp-4Ch]
int v19[3]; // [sp+6Ch] [bp+0h] BYREF
char v20; // [sp+78h] [bp+Ch] BYREF
v4 = (int)*(float *)(a2 + 28);
v18[0] = *(_DWORD *)a2;
v5 = *(_DWORD *)(a2 + 4);
v18[7] = v4;
v18[1] = v5;
v18[2] = *(_DWORD *)(a2 + 8);
v18[3] = *(_DWORD *)(a2 + 12);
v18[4] = *(_DWORD *)(a2 + 16);
v18[5] = *(_DWORD *)(a2 + 20);
v18[6] = *(_DWORD *)(a2 + 24);
v18[8] = *(_DWORD *)(a2 + 32);
v18[9] = *(_DWORD *)(a2 + 64);
v18[10] = *(_DWORD *)(a2 + 68);
v18[11] = *(_DWORD *)(a2 + 72);
v18[12] = *(_DWORD *)(a2 + 76);
v18[13] = *(_DWORD *)(a2 + 80);
v18[14] = *(_DWORD *)(a2 + 84);
v18[15] = *(_DWORD *)(a2 + 88);
v18[16] = *(_DWORD *)(a2 + 92);
v18[17] = *(_DWORD *)(a2 + 36);
v18[18] = *(_DWORD *)(a2 + 40);
v19[0] = 0;
v19[1] = 500;
v19[2] = (int)&v20;
fmt::BasicWriter::operator<<((unsigned int *)v19, 1);
for ( i = 0; i != 19; ++i )
{
v15 = ",";
v16 = 0;
fmt::BasicWriter::operator<<((unsigned int *)v19, ",", 0);
fmt::BasicWriter::operator<<((unsigned int *)v19, v18[i]);
}
v15 = ",";
v16 = 0;
fmt::BasicWriter::operator<<((unsigned int *)v19, ",", 0);
v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%llu",
v7,
*(_DWORD *)(a2 + 48),
*(_DWORD *)(a2 + 52));
CString = (const char *)cocos2d::CCString::getCString(v8);
memset(v17, 0, sizeof(v17));
v10 = strlen(CString);
std::string::__init(v17, CString, v10);
fmt::BasicStringRef::BasicStringRef((unsigned __int8 **)&v15, (unsigned __int8 *)v17);
fmt::BasicWriter::operator<<((unsigned int *)v19, v15, v16);
std::string::~string((int)v17);
v15 = ",";
v16 = 0;
fmt::BasicWriter::operator<<((unsigned int *)v19, ",", 0);
fmt::BasicWriter::operator<<((unsigned int *)v19, *(_DWORD *)(a2 + 56));
v15 = ",";
v16 = 0;
fmt::BasicWriter::operator<<((unsigned int *)v19, ",", 0);
fmt::BasicWriter::operator<<((unsigned int *)v19, *(_DWORD *)(a2 + 60));
v11 = (const char *)fmt::BasicWriter::c_str(v19);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v12 = v11;
*((_DWORD *)this + 2) = 0;
v13 = strlen(v11);
std::string::__init((int *)this, v12, v13);
fmt::internal::Array::free((int)v19);
return this;
}