//
// sub_1005FFDA0 from 0x1005ffda0 to 0x1005ffe94 (244 bytes)
//
// 4 xrefs:
// > sub_1005FFEA0 @ 0x1005ffea5
// > sub_1005FFEB0 @ 0x1005ffebc
// > sub_1005FFED0 @ 0x1005ffed9
// > sub_1005FFEF0 @ 0x1005fff03
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_1005FFDA0(__int64 a1)
{
*(_QWORD *)a1 = off_10097DBA0;
*(_QWORD *)(a1 + 320) = off_10097E0C0;
*(_QWORD *)(a1 + 328) = &off_10097E130;
*(_QWORD *)(a1 + 336) = off_10097E148;
*(_QWORD *)(a1 + 344) = off_10097E168;
*(_QWORD *)(a1 + 352) = off_10097E188;
*(_QWORD *)(a1 + 408) = off_10097E1B0;
*(_QWORD *)(a1 + 432) = off_10097E230;
if ( (*(_BYTE *)(a1 + 704) & 1) != 0 )
{
operator delete(*(void **)(a1 + 720));
if ( (*(_BYTE *)(a1 + 680) & 1) == 0 )
{
LABEL_3:
if ( (*(_BYTE *)(a1 + 656) & 1) == 0 )
goto LABEL_4;
LABEL_9:
operator delete(*(void **)(a1 + 672));
if ( (*(_BYTE *)(a1 + 632) & 1) == 0 )
return FLAlertLayer::dFLAlertLayer(a1);
goto LABEL_5;
}
}
else if ( (*(_BYTE *)(a1 + 680) & 1) == 0 )
{
goto LABEL_3;
}
operator delete(*(void **)(a1 + 696));
if ( (*(_BYTE *)(a1 + 656) & 1) != 0 )
goto LABEL_9;
LABEL_4:
if ( (*(_BYTE *)(a1 + 632) & 1) != 0 )
LABEL_5:
operator delete(*(void **)(a1 + 648));
return FLAlertLayer::dFLAlertLayer(a1);
}