//
// AutoBackupOptionsPopup::refreshStats from 0xc56640 to 0xc5687c (572 bytes)
//
// 3 xrefs:
// > AutoBackupOptionsPopup::init @ 0xc56c4c
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0xc58eb4
// > ??> @ 0x845f8
//
// 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:11 +0000
//
__int64 __fastcall AutoBackupOptionsPopup::refreshStats(AutoBackupOptionsPopup *this)
{
__int64 v2; // x20
void (__fastcall *v3)(__int64, char *); // x21
char *v4; // x1
void *v5; // x21
char *v6; // x19
void *v8; // [xsp+48h] [xbp+48h] BYREF
void *v9; // [xsp+50h] [xbp+50h]
__int64 v10; // [xsp+58h] [xbp+58h]
__int64 v11[3]; // [xsp+60h] [xbp+60h] BYREF
__int64 v12[2]; // [xsp+78h] [xbp+78h] BYREF
void *v13; // [xsp+88h] [xbp+88h]
__int64 v14[2]; // [xsp+90h] [xbp+90h] BYREF
void *v15; // [xsp+A0h] [xbp+A0h]
v8 = nullptr;
v9 = nullptr;
v10 = 0;
AutoBackupPopup::backupDirectory(v11);
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, &byte_11B8890, 0);
AutoBackupPopup::listBackups((char *)v11, (__int64 **)&v8, (unsigned __int8 *)v12);
if ( (v12[0] & 1) != 0 )
{
operator delete(v13);
if ( (v11[0] & 1) == 0 )
goto LABEL_3;
}
else if ( (v11[0] & 1) == 0 )
{
goto LABEL_3;
}
operator delete((void *)v11[2]);
LABEL_3:
v2 = *((_QWORD *)this + 129);
v3 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v2 + 928LL);
AutoBackupPopup::statsText((__int64 *)&v8, v14);
v4 = (char *)v14 + 1;
if ( (v14[0] & 1) != 0 )
v4 = (char *)v15;
v3(v2, v4);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
v5 = v8;
if ( v8 )
{
v6 = (char *)v9;
if ( v8 == v9 )
{
LABEL_22:
operator delete(v6);
return _stack_chk_guard;
}
while ( 1 )
{
v9 = v6 - 128;
if ( (*(v6 - 32) & 1) != 0 )
{
operator delete(*((void **)v6 - 2));
if ( (*(v6 - 56) & 1) == 0 )
{
LABEL_11:
if ( (*(v6 - 80) & 1) == 0 )
goto LABEL_12;
goto LABEL_19;
}
}
else if ( (*(v6 - 56) & 1) == 0 )
{
goto LABEL_11;
}
operator delete(*((void **)v6 - 5));
if ( (*(v6 - 80) & 1) == 0 )
{
LABEL_12:
if ( (*(v6 - 104) & 1) != 0 )
goto LABEL_20;
goto LABEL_13;
}
LABEL_19:
operator delete(*((void **)v6 - 8));
if ( (*(v6 - 104) & 1) != 0 )
LABEL_20:
operator delete(*((void **)v6 - 11));
LABEL_13:
if ( (*(v6 - 128) & 1) != 0 )
operator delete(*((void **)v6 - 14));
v6 = (char *)v9;
if ( v5 == v9 )
{
v6 = (char *)v8;
goto LABEL_22;
}
}
}
return _stack_chk_guard;
}