//
// AutoBackupPopup::backupDirectory from 0x73caf0 to 0x73cb48 (88 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x472c66
// > AutoBackupOptionsPopup::refreshStats @ 0x73dd68
// > AutoBackupOptionsPopup::onDeleteAll @ 0x73e4ac
// > AutoBackupOptionsPopup::onPrune @ 0x73e982
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x73eb06
// > AutoBackupPopup::reloadFiles @ 0x742010
// > AutoBackupPopup::init @ 0x7420d0
//
// 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:58:31 +0000
//
AutoBackupPopup *__fastcall AutoBackupPopup::backupDirectory(AutoBackupPopup *this)
{
int v2; // r3
int v3; // r2
char *v4; // r1
char *v5; // r2
int v6; // r3
AutoSaveSettingsLayer::getBackupDirectory(this);
v2 = *(unsigned __int8 *)this;
if ( (v2 & 1) != 0 )
{
v3 = *((_DWORD *)this + 1);
if ( !v3 )
return this;
v4 = *((char **)this + 2);
}
else
{
v3 = v2 >> 1;
if ( !(v2 >> 1) )
return this;
v4 = (char *)this + 1;
}
if ( v4[v3 - 1] != 47 )
{
if ( (v2 & 1) != 0 )
{
v5 = *((char **)this + 2);
v6 = *((_DWORD *)this + 1);
}
else
{
v5 = (char *)this + 1;
v6 = v2 >> 1;
}
if ( v5[v6 - 1] != 92 )
std::string::append(this, "/");
}
return this;
}