//
// AutoBackupPopup::statsText from 0xc52068 to 0xc52198 (304 bytes)
//
// 3 xrefs:
// > AutoBackupPopup::updateSummary @ 0xc521dc
// > AutoBackupOptionsPopup::refreshStats @ 0xc566e0
// > ??> @ 0x77680
//
// 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 13:05:09 +0000
//
__int64 *__usercall AutoBackupPopup::statsText@(__int64 *a1@, __int64 *a2@)
{
__int64 v3; // x2
__int64 v4; // x4
__int64 v5; // x1
int v6; // w0
__int64 v7; // x3
char *v8; // x2
char *v9; // x3
cocos2d::CCString *v10; // x0
const char *CString; // x0
size_t v12; // x0
char *v14; // [xsp+30h] [xbp+30h]
char *v15; // [xsp+38h] [xbp+38h]
char *v16; // [xsp+38h] [xbp+38h]
__int64 v17[2]; // [xsp+40h] [xbp+40h] BYREF
void *v18; // [xsp+50h] [xbp+50h]
v3 = *a1;
v4 = a1[1];
v5 = (v4 - *a1) >> 7;
if ( !v5 )
{
v6 = 0;
v5 = 0;
LABEL_5:
v8 = "s";
goto LABEL_6;
}
v6 = 0;
do
{
v7 = *(_QWORD *)(v3 + 120);
v3 += 128;
v6 += v7;
}
while ( v3 != v4 );
if ( v5 != 1 )
goto LABEL_5;
v8 = &byte_11B8890;
LABEL_6:
v14 = (char *)v5;
v15 = v8;
formatBytes(v17, v6);
v9 = (char *)v17 + 1;
if ( (v17[0] & 1) != 0 )
v9 = (char *)v18;
v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i backup%s, %s", v14, v15, v9);
CString = (const char *)cocos2d::CCString::getCString(v10);
*a2 = 0;
a2[1] = 0;
a2[2] = 0;
v16 = (char *)CString;
v12 = strlen(CString);
std::string::__init(a2, v16, v12);
if ( (v17[0] & 1) != 0 )
operator delete(v18);
return a2;
}