//
// AutoBackupPopup::FLAlert_Clicked from 0xc52fe0 to 0xc531ac (460 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'AutoBackupPopup::FLAlert_Clicked @ 0xc531b0
// > ??> @ 0x4f948
// > ??> @ 0x14e8d98
//
// 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:10 +0000
//
__int64 __fastcall AutoBackupPopup::FLAlert_Clicked(AutoBackupPopup *this, FLAlertLayer *a2, unsigned __int8 a3)
{
unsigned int v4; // w19
int v5; // w0
__int64 v7; // x2
char *v8; // x0
char *v9; // x19
char *v10; // x23
char *v11; // x0
char *v12; // x0
char *v13; // x1
char *v14; // x1
unsigned __int64 v15[2]; // [xsp+40h] [xbp+40h] BYREF
char *filename; // [xsp+50h] [xbp+50h]
v4 = a3;
if ( (*(unsigned int (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 3 )
{
if ( v4 )
{
v9 = *((char **)this + 118);
v10 = (char *)this + 952;
while ( v9 != v10 )
{
while ( 1 )
{
std::operator+((__int64)this + 800, (__int64)(v9 + 32), v15);
v11 = (char *)v15 + 1;
if ( (v15[0] & 1) != 0 )
v11 = filename;
remove(v11);
if ( (v15[0] & 1) != 0 )
operator delete(filename);
v12 = *((char **)v9 + 1);
if ( !v12 )
break;
do
{
v9 = v12;
v12 = *(char **)v12;
}
while ( v12 );
if ( v9 == v10 )
goto LABEL_20;
}
do
{
v13 = v9;
v9 = *((char **)v9 + 2);
if ( v13 == *(char **)v9 )
break;
v14 = v9;
v9 = *((char **)v9 + 2);
}
while ( v14 != *(char **)v9 );
}
LABEL_20:
std::__tree::clear((_QWORD *)this + 118);
(*(void (__fastcall **)(AutoBackupPopup *))(*(_QWORD *)this + 1368LL))(this);
}
}
else
{
v5 = *((_DWORD *)this + 234);
*((_DWORD *)this + 234) = -1;
if ( v4 > (unsigned int)v5 >> 31 )
{
v7 = *((_QWORD *)this + 106);
if ( v5 < (int)((*((_QWORD *)this + 107) - v7) >> 7) )
{
std::operator+((__int64)this + 800, v7 + ((__int64)v5 << 7), v15);
if ( (v15[0] & 1) != 0 )
v8 = filename;
else
v8 = (char *)v15 + 1;
remove(v8);
if ( (v15[0] & 1) != 0 )
operator delete(filename);
(*(void (__fastcall **)(AutoBackupPopup *))(*(_QWORD *)this + 1368LL))(this);
}
}
}
return _stack_chk_guard;
}