//
// sub_1400CFB10 from 0x1400cfb10 to 0x1400cfbaa (154 bytes)
//
// 14 xrefs:
// > AutoBackupPopup::dAutoBackupPopup @ 0x1400c98b6
// > AutoBackupPopup::dAutoBackupPopup @ 0x1400c98c2
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x1400cf432
// > sub_14068E01C @ 0x14068e02a
// > sub_14068E02F @ 0x14068e03d
// > sub_14068E380 @ 0x14068e387
// > sub_14068E420 @ 0x14068e427
// > sub_14068E4F0 @ 0x14068e4f7
// > sub_14068E5D1 @ 0x14068e5d8
// > ??> @ 0x1408912fb
// > ??> @ 0x140891403
// > ??> @ 0x1408914c7
// > ??> @ 0x140891560
// > ??> @ 0x140914240
//
// 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:24 +0000
//
void __fastcall sub_1400CFB10(_QWORD *a1)
{
_QWORD *v2; // rcx
_QWORD *v3; // rcx
v2 = (_QWORD *)*a1;
if ( v2 )
{
sub_1400CFEF0(v2, a1[1]);
v3 = (_QWORD *)*a1;
if ( (unsigned __int64)(168 * ((a1[2] - *a1) / 168LL)) >= 0x1000 )
{
if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
v3 = (_QWORD *)*(v3 - 1);
}
j_j_free(v3);
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
}
}