//
// AutoBackupPopup::reloadFiles from 0x1400ca0c0 to 0x1400ca215 (341 bytes)
//
// 3 xrefs:
// > AutoBackupPopup::init @ 0x1400ca064
// > AutoBackupPopup::backupsChanged @ 0x1400ca860
// > ??> @ 0x140913fa0
//
// This function is hookable on this platform (idp: pc, 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:26:22 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall AutoBackupPopup::reloadFiles(__int64 a1)
{
__int128 *p_Src; // rax
__int128 *v3; // rax
void *v4; // rcx
__int128 Src; // [rsp+38h] [rbp-50h] BYREF
__int64 v7; // [rsp+48h] [rbp-40h]
unsigned __int64 v8; // [rsp+50h] [rbp-38h]
void *Block[2]; // [rsp+58h] [rbp-30h]
__m128i si128; // [rsp+68h] [rbp-20h]
AutoSaveSettingsLayer::getBackupDirectory(&Src);
if ( v7 )
{
p_Src = &Src;
if ( v8 > 0xF )
p_Src = (__int128 *)Src;
if ( *((_BYTE *)p_Src + v7 - 1) != 47 )
{
v3 = &Src;
if ( v8 > 0xF )
v3 = (__int128 *)Src;
if ( *((_BYTE *)v3 + v7 - 1) != 92 )
sub_140044D80(&Src, "/", 1u);
}
}
sub_140059C40(a1 + 800, (__int64)&Src);
sub_14003D310((__int64)&Src);
*(_OWORD *)Block = 0;
si128 = _mm_load_si128((const __m128i *)&Size);
LOBYTE(Block[0]) = 0;
sub_1400CCDF0((void *)(a1 + 800));
if ( si128.m128i_i64[1] > 0xFuLL )
{
v4 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v4 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v4);
}
return AutoBackupPopup::assignRevs(a1);
}