//
// AutoBackupPopup::reloadFiles from 0xc5d040 to 0xc5d13c (252 bytes)
//
// 3 xrefs:
// > AutoBackupPopup::init @ 0xc5d6f8
// > AutoBackupPopup::backupsChanged @ 0xc5da68
// > ??> @ 0x1010e0
//
// 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:19 +0000
//
__int64 __fastcall AutoBackupPopup::reloadFiles(AutoBackupPopup *this)
{
char *v2; // x20
__int64 v3; // x4
__int64 v4; // x5
__int64 v6; // [xsp+30h] [xbp+30h] BYREF
__int64 v7; // [xsp+38h] [xbp+38h]
void *v8; // [xsp+40h] [xbp+40h]
v2 = (char *)this + 800;
AutoBackupPopup::backupDirectory(&v6);
if ( (*((_BYTE *)this + 800) & 1) != 0 )
{
**((_BYTE **)v2 + 2) = 0;
*((_QWORD *)v2 + 1) = 0;
}
else
{
*((_BYTE *)this + 801) = 0;
*((_BYTE *)this + 800) = 0;
}
std::string::reserve((__int64 *)v2, 0);
v3 = v6;
v4 = v7;
*((_QWORD *)v2 + 2) = v8;
*(_QWORD *)v2 = v3;
*((_QWORD *)v2 + 1) = v4;
v6 = 0;
v7 = 0;
v8 = nullptr;
std::string::__init(&v6, &byte_11B8890, 0);
AutoBackupPopup::listBackups(v2, (__int64 **)this + 103, (unsigned __int8 *)&v6);
if ( (v6 & 1) != 0 )
operator delete(v8);
AutoBackupPopup::assignRevs(this);
return _stack_chk_guard;
}