//
// FMOD_OS_Thread_Destroy from 0x1800c1730 to 0x1800c174d (29 bytes)
//
// 4 xrefs:
// > sub_1800B8560 @ 0x1800b85fd
// > ??> @ 0x180194348
// > ??> @ 0x1801fdbf0
// > ??> @ 0x1801fdbfc
//
// 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 FMOD_OS_Thread_Destroy(void *a1)
{
BOOL v1; // eax
unsigned int v2; // ecx
v1 = CloseHandle(a1);
v2 = 0;
if ( !v1 )
return 28;
return v2;
}