//
// sub_1005DF650 from 0x1005df650 to 0x1005df757 (263 bytes)
//
// 4 xrefs:
// > sub_1005DF760 @ 0x1005df765
// > sub_1005DF770 @ 0x1005df77c
// > sub_1005DF790 @ 0x1005df799
// > sub_1005DF7B0 @ 0x1005df7c3
//
// 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_1005DF650(__int64 a1)
{
*(_QWORD *)a1 = off_100975C18;
*(_QWORD *)(a1 + 320) = off_100976168;
*(_QWORD *)(a1 + 328) = &off_1009761D8;
*(_QWORD *)(a1 + 336) = off_1009761F0;
*(_QWORD *)(a1 + 344) = off_100976210;
*(_QWORD *)(a1 + 352) = off_100976230;
*(_QWORD *)(a1 + 408) = off_100976258;
*(_QWORD *)(a1 + 432) = off_1009762D8;
*(_QWORD *)(a1 + 632) = off_1009762F8;
*(_QWORD *)(a1 + 640) = off_100976340;
*(_QWORD *)(a1 + 648) = &off_100976360;
if ( GameLevelManager::sharedState()->m_uploadActionDelegate != (UploadActionDelegate *)(a1 + 640) )
{
if ( (*(_BYTE *)(a1 + 704) & 1) == 0 )
goto LABEL_4;
goto LABEL_3;
}
GameLevelManager::sharedState()->m_uploadActionDelegate = nullptr;
if ( (*(_BYTE *)(a1 + 704) & 1) != 0 )
LABEL_3:
operator delete(*(void **)(a1 + 720));
LABEL_4:
if ( (*(_BYTE *)(a1 + 680) & 1) != 0 )
operator delete(*(void **)(a1 + 696));
return FLAlertLayer::dFLAlertLayer(a1);
}