//
// AutoBackupPopup::backupDirectory from 0x10053008c to 0x1005300f4 (104 bytes)
//
// 7 xrefs:
// > LevelEditorLayer::doAutoBackup @ 0x10040b870
// > AutoBackupPopup::init @ 0x10052fb10
// > sub_100530498 @ 0x1005304b0
// > sub_100532E54 @ 0x100532e74
// > sub_100532F70 @ 0x100532f94
// > sub_1005331C8 @ 0x1005331f0
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x1005335e8
//
// 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 11:07:20 +0000
//
void __usercall AutoBackupPopup::backupDirectory(__int64 a1@)
{
__int64 v2; // x8
__int64 v3; // x8
__int64 v4; // x8
int v5; // w8
sub_1001683A8(a1);
v2 = *(char *)(a1 + 23);
if ( v2 < 0 )
{
v4 = *(_QWORD *)(a1 + 8);
if ( !v4 )
return;
v3 = *(_QWORD *)a1 + v4;
}
else
{
if ( !*(_BYTE *)(a1 + 23) )
return;
v3 = a1 + v2;
}
v5 = *(unsigned __int8 *)(v3 - 1);
if ( v5 != 47 && v5 != 92 )
std::string::append((std::string *)a1, "/");
}