//
// sub_1009865F0 from 0x1009865f0 to 0x100986667 (119 bytes)
//
// 11 xrefs:
// > sub_10097E2F0 @ 0x10097e34a
// > sub_10097F2B0 @ 0x10097f2ea
// > sub_100981DA0 @ 0x100981efa
// > sub_1009821B0 @ 0x1009821ea
// > sub_100982A20 @ 0x100982b2a
// > sub_100982F10 @ 0x10098332a
// > AutoBackupOptionsPopup::FLAlert_Clicked @ 0x10098389a
// > sub_100983A30 @ 0x100983b5a
// > sub_100983A30 @ 0x100983baa
// > sub_100986670 @ 0x100986836
// > sub_100986A50 @ 0x100986a7c
//
// 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 12:39:03 +0000
//
void __fastcall sub_1009865F0(__int64 a1, __int64 a2)
{
if ( (*(_BYTE *)(a2 + 96) & 1) != 0 )
{
operator delete(*(void **)(a2 + 112));
if ( (*(_BYTE *)(a2 + 72) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a2 + 48) & 1) == 0 )
goto LABEL_4;
goto LABEL_9;
}
}
else if ( (*(_BYTE *)(a2 + 72) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a2 + 88));
if ( (*(_BYTE *)(a2 + 48) & 1) == 0 )
{
LABEL_4:
if ( (*(_BYTE *)(a2 + 24) & 1) == 0 )
goto LABEL_5;
goto LABEL_10;
}
LABEL_9:
operator delete(*(void **)(a2 + 64));
if ( (*(_BYTE *)(a2 + 24) & 1) == 0 )
{
LABEL_5:
if ( (*(_BYTE *)a2 & 1) == 0 )
return;
LABEL_11:
operator delete(*(void **)(a2 + 16));
return;
}
LABEL_10:
operator delete(*(void **)(a2 + 40));
if ( (*(_BYTE *)a2 & 1) != 0 )
goto LABEL_11;
}