//
// sub_1008FFD80 from 0x1008ffd80 to 0x1008ffddf (95 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb85b8
//
// 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:38:02 +0000
//
void __fastcall sub_1008FFD80(__int64 a1, __int64 a2, char a3)
{
char v3; // dl
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rdi
v3 = *(_BYTE *)(a1 + 16) & a3;
*(_BYTE *)(a1 + 16) = 0;
if ( v3 == 1 )
{
v4 = a1 - 664;
v5 = EditorSFXManager::sharedState();
EditorSFXManager::clearAll(v5);
v6 = *(_QWORD *)(a1 + 8);
if ( v6 )
sub_100495650(v6);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1072LL))(v4, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 528LL))(v4, 1);
}
}