//
// sub_1400CF6A0 from 0x1400cf6a0 to 0x1400cf72c (140 bytes)
//
// 7 xrefs:
// > AutoBackupPopup::buildRows @ 0x1400caeee
// > AutoBackupPopup::buildRows @ 0x1400cb0eb
// > AutoBackupPopup::onToggleRow @ 0x1400cc57e
// > AutoBackupPopup::onDeleteSelected @ 0x1400cc7ea
// > NewsPopup::rebuildPage @ 0x14049f65e
// > NewsPopup::prefetchPageImages @ 0x14049f9e8
// > ??> @ 0x140914198
//
// 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
//
_BOOL8 __fastcall sub_1400CF6A0(__int64 **a1, _QWORD *a2)
{
__int64 *v2; // rbx
__int64 *v4; // rdi
unsigned int v5; // eax
__int64 *v6; // rcx
__int64 *v7; // rcx
v2 = *a1;
v4 = (__int64 *)(*a1)[1];
if ( !*((_BYTE *)v4 + 25) )
{
do
{
v5 = (unsigned int)sub_14003D160(v4 + 4, a2) >> 31;
v6 = v4;
if ( (_BYTE)v5 )
v6 = v2;
v2 = v6;
v7 = v4 + 2;
if ( !(_BYTE)v5 )
v7 = v4;
v4 = (__int64 *)*v7;
}
while ( !*(_BYTE *)(*v7 + 25) );
}
return !*((_BYTE *)v2 + 25) && sub_14003D160(a2, v2 + 4) >= 0;
}