//
// AutoBackupPopup::FLAlert_Clicked from 0x1005323dc to 0x100532538 (348 bytes)
//
// 2 xrefs:
// > sub_100532538 @ 0x10053253c
// > ??> @ 0x1009a5060
//
// 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:21 +0000
//
__int64 __fastcall AutoBackupPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
__int64 result; // x0
const void **v6; // x22
const void ***v7; // x20
std::error_code *v8; // x1
const std::__fs::filesystem::path *v9; // x0
const void **v10; // x9
const void ***v11; // x8
bool v12; // zf
__int64 v13; // x8
__int64 v14; // x9
std::error_code *v15; // x1
const std::__fs::filesystem::path *v16; // x0
void *__p[2]; // [xsp+8h] [xbp-38h] BYREF
char v18; // [xsp+1Fh] [xbp-21h]
result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)result == 3 )
{
if ( !a3 )
return result;
v6 = *(const void ***)(a1 + 944);
v7 = (const void ***)(a1 + 952);
if ( v6 != (const void **)(a1 + 952) )
{
do
{
sub_10011E060((const void **)(a1 + 800), v6 + 4, (__int64)__p);
if ( v18 >= 0 )
v9 = (const std::__fs::filesystem::path *)__p;
else
v9 = (const std::__fs::filesystem::path *)__p[0];
remove(v9, v8);
if ( v18 < 0 )
operator delete(__p[0]);
v10 = (const void **)v6[1];
if ( v10 )
{
do
{
v11 = (const void ***)v10;
v10 = (const void **)*v10;
}
while ( v10 );
}
else
{
do
{
v11 = (const void ***)v6[2];
v12 = *v11 == v6;
v6 = (const void **)v11;
}
while ( !v12 );
}
v6 = (const void **)v11;
}
while ( v11 != v7 );
}
sub_1000D8D9C(a1 + 944, *(char **)(a1 + 952));
*(_QWORD *)(a1 + 944) = v7;
*(_OWORD *)v7 = 0u;
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1368LL))(a1);
}
v13 = *(unsigned int *)(a1 + 936);
*(_DWORD *)(a1 + 936) = -1;
if ( a3 )
{
if ( (v13 & 0x80000000) == 0 )
{
v14 = *(_QWORD *)(a1 + 848);
if ( (int)v13 < (int)((unsigned __int64)(*(_QWORD *)(a1 + 856) - v14) >> 7) )
{
sub_10011E060((const void **)(a1 + 800), (const void **)(v14 + (v13 << 7)), (__int64)__p);
if ( v18 >= 0 )
v16 = (const std::__fs::filesystem::path *)__p;
else
v16 = (const std::__fs::filesystem::path *)__p[0];
remove(v16, v15);
if ( v18 < 0 )
operator delete(__p[0]);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1368LL))(a1);
}
}
}
return result;
}